mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 14:34:34 +00:00
Merge main into feat/symbolism-shift-gestures
This commit is contained in:
@@ -44,6 +44,7 @@ mod constrain_new;
|
||||
mod constrain_tools;
|
||||
mod containers;
|
||||
mod css;
|
||||
mod curvature_circle;
|
||||
mod cut;
|
||||
mod dashalign;
|
||||
mod dcs;
|
||||
@@ -154,6 +155,7 @@ mod printps;
|
||||
mod printtiling;
|
||||
mod proxyitems;
|
||||
mod puppetwarp;
|
||||
mod quickpen;
|
||||
mod rasterfilters;
|
||||
mod rastersettings;
|
||||
mod recolor;
|
||||
@@ -861,12 +863,13 @@ fn align_and_distribute_reject_bad_params_without_changing_state() {
|
||||
let h = "`horizontal` must be one of left, center, right";
|
||||
let v = "`vertical` must be one of top, center, bottom";
|
||||
let to = "`to` must be one of selection, artboard, key";
|
||||
let align_to = "`to` must be one of selection, artboard, key, auto";
|
||||
for (cmd, p, msg) in [
|
||||
("object.align", json!({"horizontal": "middle"}), h),
|
||||
("object.align", json!({"vertical": "centre"}), v),
|
||||
("object.align", json!({"horizontal": true}), h),
|
||||
("object.align", json!({"horizontal": "left", "to": "page"}), to),
|
||||
("object.align", json!({"horizontal": "left", "to": 0}), to),
|
||||
("object.align", json!({"horizontal": "left", "to": "page"}), align_to),
|
||||
("object.align", json!({"horizontal": "left", "to": 0}), align_to),
|
||||
("object.align", json!({"horizontal": "left", "bounds": false}), "`bounds` must be one of preview, geometric"),
|
||||
("object.align", json!({"horizontal": "left", "vertical": "middle"}), v),
|
||||
("object.distribute", json!({"horizontal": "middle"}), h),
|
||||
|
||||
Reference in New Issue
Block a user