mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-20 01:14:23 +01:00
Merge pull request #4146 from Taha-Mahmoodi/feat/transform-panel-menu
Transform panel: the menu's Transform Object Only, Pattern Only, Both and Use Registration Point for Symbol act
This commit is contained in:
9 files changed
+465
-33
No files matched your search
@@ -367,6 +367,16 @@ pub const PREF_SPECS: &[PrefSpec] = &[
|
||||
// The W/H link of the Transform panel, the Properties panel and the Control bar
|
||||
p!("constrainProportions", "General", "Transform Panel", "Constrain Width and Height Proportions", bool),
|
||||
p!("singleCornerRadius", "General", "Transform Panel", "Single Corner Radius", bool),
|
||||
// The Transform panel menu: what the panel transforms (`default`: as General › Transform
|
||||
// Pattern Tiles, until a choice in the menu), and symbols' registration point
|
||||
p!(
|
||||
"transformPanelPatterns",
|
||||
"General",
|
||||
"Transform Panel",
|
||||
"Transform",
|
||||
choice(&[("default", "Default"), ("object", "Transform Object Only"), ("pattern", "Transform Pattern Only"), ("both", "Transform Both")])
|
||||
),
|
||||
p!("useRegistrationPointForSymbol", "General", "Transform Panel", "Use Registration Point for Symbol", bool),
|
||||
];
|
||||
|
||||
pub fn spec(key: &str) -> Option<&'static PrefSpec> {
|
||||
|
||||
@@ -1170,6 +1170,16 @@ pub struct Prefs {
|
||||
pub constrain_proportions: bool,
|
||||
/// One Corner Radius field sets every corner of a live rectangle (off: a field per corner).
|
||||
pub single_corner_radius: bool,
|
||||
/// The Transform panel menu's Transform Object Only / Transform Pattern Only / Transform Both
|
||||
/// (`object`, `pattern`, `both`): what the panel's fields, flips and menu flips transform
|
||||
/// (they pass `objects` and `patterns` to the transform commands). `default` (and any other
|
||||
/// value), until one is chosen: they pass neither, so patterns follow General › Transform
|
||||
/// Pattern Tiles (`transformPatternTiles`), as before the menu acted.
|
||||
pub transform_panel_patterns: String,
|
||||
/// The Transform panel menu's Use Registration Point for Symbol: with one symbol instance
|
||||
/// selected, the panel and the Properties panel's Transform section measure and transform it
|
||||
/// from its symbol's registration point instead of the reference point.
|
||||
pub use_registration_point_for_symbol: bool,
|
||||
/// The tools' persistent options by store (a tool id, or a store a family shares: `liquify`
|
||||
/// holds the Liquify tools' Global Brush Dimensions), see [`vectorcraft_tools::settings`]:
|
||||
/// kept across tool switches and saved with the preferences. Not a Preferences dialog field:
|
||||
@@ -1344,6 +1354,8 @@ impl Default for Prefs {
|
||||
print_presets: vec![],
|
||||
constrain_proportions: false,
|
||||
single_corner_radius: true,
|
||||
transform_panel_patterns: "default".to_string(),
|
||||
use_registration_point_for_symbol: false,
|
||||
tool_settings: Default::default(),
|
||||
perspective_presets: vec![],
|
||||
blend_options: None,
|
||||
|
||||
@@ -1741,3 +1741,22 @@ fn a_straight_segment_dragged_by_direct_selection_lands_on_a_ruler_guide() {
|
||||
s.execute("edit.undo", &json!({})).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
/// The Transform panel menu's choice starts as `default` (the panels follow General › Transform
|
||||
/// Pattern Tiles): in a new session, in a preferences file saved before the choice existed and
|
||||
/// after a reset; `prefs.set` takes it and the three menu choices, and nothing else.
|
||||
#[test]
|
||||
fn transform_panel_patterns_defaults_to_following_the_general_preference() {
|
||||
assert_eq!(Prefs::default().transform_panel_patterns, "default");
|
||||
let old: Prefs = serde_json::from_value(json!({"transformPatternTiles": true, "scaleStrokes": true})).unwrap();
|
||||
assert_eq!((old.transform_panel_patterns.as_str(), old.transform_pattern_tiles), ("default", true));
|
||||
let mut s = Session::new();
|
||||
for v in ["object", "pattern", "both", "default"] {
|
||||
s.execute("prefs.set", &json!({"key": "transformPanelPatterns", "value": v})).unwrap();
|
||||
assert_eq!(s.prefs.transform_panel_patterns, v);
|
||||
}
|
||||
assert!(s.execute("prefs.set", &json!({"key": "transformPanelPatterns", "value": "tiles"})).is_err());
|
||||
s.execute("prefs.set", &json!({"key": "transformPanelPatterns", "value": "both"})).unwrap();
|
||||
s.execute("prefs.reset", &json!({"category": "General"})).unwrap();
|
||||
assert_eq!(s.prefs.transform_panel_patterns, "default");
|
||||
}
|
||||
@@ -687,8 +687,10 @@ pub fn transform_section(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
return;
|
||||
};
|
||||
let b = bx.rect;
|
||||
let refi: usize = ui.data(|d| d.get_temp(egui::Id::unique("refpt"))).unwrap_or(4);
|
||||
let rp = bx.reference_point(refi);
|
||||
// The reference point, or a symbol instance's registration point: X/Y are read and set there
|
||||
// and the rotation and flips turn and mirror the selection about it, as in the Transform panel.
|
||||
let reference = super::transform::panel_reference(app, ui, &bx);
|
||||
let (refi, rp) = (reference.index, reference.point);
|
||||
let copy = super::transform::alt_enter_copies(app, ui);
|
||||
section_header(ui, tl!("Transform"));
|
||||
let fw = super::field_width(ui);
|
||||
@@ -701,20 +703,28 @@ pub fn transform_section(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
egui::Grid::new("xf-grid").num_columns(4).spacing([4.0, 6.0]).min_col_width(0.0).show(ui, |ui| {
|
||||
dim_label(ui, "X:");
|
||||
if let Some(v) = widgets::num_field_named(ui, "tx", Some(crate::i18n::t("X:")), Some(rp.x - origin.x), units, fw) {
|
||||
app.run("object.setBounds", json!({"x": v + origin.x, "reference": refi, "copy": copy})).ok();
|
||||
super::transform::run_transform(
|
||||
app,
|
||||
"object.setBounds",
|
||||
json!({"x": reference.bounds_xy(v + origin.x, 0.0).0, "reference": refi, "copy": copy}),
|
||||
);
|
||||
}
|
||||
dim_label(ui, "W:");
|
||||
if let Some(v) = widgets::size_field_named(ui, "tw", Some(tl!("W:")), Some(b.width()), units, fw) {
|
||||
app.run("object.setBounds", json!({"width": v, "reference": refi, "proportional": link, "copy": copy})).ok();
|
||||
super::transform::run_transform(app, "object.setBounds", json!({"width": v, "reference": refi, "proportional": link, "copy": copy}));
|
||||
}
|
||||
ui.end_row();
|
||||
dim_label(ui, "Y:");
|
||||
if let Some(v) = widgets::num_field_named(ui, "ty", Some(crate::i18n::t("Y:")), Some(rp.y - origin.y), units, fw) {
|
||||
app.run("object.setBounds", json!({"y": v + origin.y, "reference": refi, "copy": copy})).ok();
|
||||
super::transform::run_transform(
|
||||
app,
|
||||
"object.setBounds",
|
||||
json!({"y": reference.bounds_xy(0.0, v + origin.y).1, "reference": refi, "copy": copy}),
|
||||
);
|
||||
}
|
||||
dim_label(ui, "H:");
|
||||
if let Some(v) = widgets::size_field_named(ui, "th", Some(tl!("H:")), Some(b.height()), units, fw) {
|
||||
app.run("object.setBounds", json!({"height": v, "reference": refi, "proportional": link, "copy": copy})).ok();
|
||||
super::transform::run_transform(app, "object.setBounds", json!({"height": v, "reference": refi, "proportional": link, "copy": copy}));
|
||||
}
|
||||
ui.end_row();
|
||||
});
|
||||
@@ -726,17 +736,17 @@ pub fn transform_section(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
crate::scrub::note_label(ui, icon.rect);
|
||||
// The bounding box's angle: a new value turns the selection to it.
|
||||
if let Some(a) = widgets::plain_field_named(ui, "rot", Some(tl!("Rotation")), bx.angle, "°", 2, fw) {
|
||||
app.run("object.rotate", json!({"angle": a, "absolute": true, "copy": copy})).ok();
|
||||
super::transform::run_transform(app, "object.rotate", json!({"angle": a, "absolute": true, "origin": reference.origin(), "copy": copy}));
|
||||
}
|
||||
ui.add_space(10.0);
|
||||
// Lucide's flip icons are named for their mirror line: flip-vertical-2 draws a vertical
|
||||
// line (the left-right flip), flip-horizontal-2 a horizontal one (top-bottom). The labels
|
||||
// are the reference app's Properties panel names for the same buttons (#1910).
|
||||
if widgets::icon_button(ui, "flip-vertical-2", tl!("Flip Along Horizontal Axis"), false, 24.0).clicked() {
|
||||
app.run("object.reflect", json!({"axis": "vertical"})).ok();
|
||||
super::transform::run_transform(app, "object.reflect", json!({"axis": "vertical", "origin": reference.origin()}));
|
||||
}
|
||||
if widgets::icon_button(ui, "flip-horizontal-2", tl!("Flip Along Vertical Axis"), false, 24.0).clicked() {
|
||||
app.run("object.reflect", json!({"axis": "horizontal"})).ok();
|
||||
super::transform::run_transform(app, "object.reflect", json!({"axis": "horizontal", "origin": reference.origin()}));
|
||||
}
|
||||
// More Options: the Transform panel's Scale Corners and Scale Strokes & Effects, open
|
||||
// while they are toggled.
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
use egui::Ui;
|
||||
use serde_json::json;
|
||||
use vectorcraft_doc::{LiveShape, Node, NodeKind};
|
||||
use vectorcraft_geom::Rect;
|
||||
use vectorcraft_doc::{LiveShape, Node, NodeKind, OrientedBox};
|
||||
use vectorcraft_geom::shapes::CornerKind;
|
||||
use vectorcraft_geom::{Point, Rect, Vec2};
|
||||
|
||||
use super::{corner_radius_row, first_selected, pstate, set_pstate};
|
||||
use crate::dialogs::corners::kind_label as corner_kind;
|
||||
@@ -56,6 +56,101 @@ pub fn reference_index(ui: &Ui) -> usize {
|
||||
ui.data(|d| d.get_temp(egui::Id::unique("refpt"))).unwrap_or(4)
|
||||
}
|
||||
|
||||
/// Where the Transform panel and the Properties panel's Transform section measure the selection
|
||||
/// from and turn, shear and flip it about ([`panel_reference`]).
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct PanelReference {
|
||||
/// The reference point (0 to 8) of the selection's box that `object.setBounds` keeps in place
|
||||
/// or moves to a new X or Y, and that the locator shows.
|
||||
pub index: usize,
|
||||
/// The point on the page: that reference point, or a symbol instance's registration point.
|
||||
pub point: Point,
|
||||
/// `point` less the box's reference point `index` (zero unless the registration point lies on
|
||||
/// none of the box's nine points, as on a sheared instance).
|
||||
shift: Vec2,
|
||||
}
|
||||
|
||||
impl PanelReference {
|
||||
/// The `x` and `y` of `object.setBounds` that put [`Self::point`] at `x`, `y` on the page.
|
||||
pub fn bounds_xy(&self, x: f64, y: f64) -> (f64, f64) {
|
||||
(x - self.shift.x, y - self.shift.y)
|
||||
}
|
||||
|
||||
/// The `origin` param of the rotations, shears and reflections: [`Self::point`].
|
||||
pub fn origin(&self) -> serde_json::Value {
|
||||
json!([self.point.x, self.point.y])
|
||||
}
|
||||
}
|
||||
|
||||
/// The reference of box `bx` of the selection for the Transform panel and the Properties panel's
|
||||
/// Transform section: the shared reference point ([`reference_index`]); with Use Registration Point
|
||||
/// for Symbol on and one symbol instance selected, its symbol's registration point (Symbol Options
|
||||
/// › Registration) where the instance's transform puts it, with the box's reference point nearest
|
||||
/// it: after a flip the art's top-left corner is the box's top-right one, after a rotation the
|
||||
/// box turns with the art.
|
||||
pub fn panel_reference(app: &VectorcraftApp, ui: &Ui, bx: &OrientedBox) -> PanelReference {
|
||||
let Some(q) = symbol_registration(app) else {
|
||||
let index = reference_index(ui);
|
||||
return PanelReference { index, point: bx.reference_point(index), shift: Vec2::ZERO };
|
||||
};
|
||||
// The nearest of the box's nine points, measured in the box's own (turned) frame.
|
||||
let (local, r) = (bx.to_local(q), bx.rect);
|
||||
let third = |v: f64, start: f64, len: f64| if len > 1e-9 { ((v - start) / len * 2.0).round().clamp(0.0, 2.0) as usize } else { 1 };
|
||||
let index = third(local.y, r.y0, r.height()) * 3 + third(local.x, r.x0, r.width());
|
||||
PanelReference { index, point: q, shift: q - bx.reference_point(index) }
|
||||
}
|
||||
|
||||
/// Where the registration point of the one selected symbol instance is on the page, while Use
|
||||
/// Registration Point for Symbol is on: the point of the symbol's art box on the 9-point grid,
|
||||
/// placed by the instance's transform.
|
||||
fn symbol_registration(app: &VectorcraftApp) -> Option<Point> {
|
||||
if !app.session.prefs.use_registration_point_for_symbol {
|
||||
return None;
|
||||
}
|
||||
let st = app.session.active()?;
|
||||
let [id] = st.selection.objects.as_slice() else { return None };
|
||||
let NodeKind::SymbolInstance { symbol, xf } = &st.doc.node(*id)?.kind else { return None };
|
||||
let own = Node::new(*id, NodeKind::SymbolInstance { symbol: symbol.clone(), xf: vectorcraft_geom::Affine::IDENTITY });
|
||||
let art = own.geometric_bounds_with(&st.doc.symbol_boxes())?;
|
||||
Some(*xf * vectorcraft_geom::reference_point(art, usize::from(st.doc.symbol_registration(symbol).0)))
|
||||
}
|
||||
|
||||
/// The Transform panel menu's choices for what the panel transforms: the value of the
|
||||
/// `transformPanelPatterns` preference each sets, and its label.
|
||||
const PATTERN_MODES: [(&str, &str); 3] = [("object", "Transform Object Only"), ("pattern", "Transform Pattern Only"), ("both", "Transform Both")];
|
||||
|
||||
/// Run transform command `cmd` from the Transform panel or the Properties panel's Transform
|
||||
/// section with `params` and the `objects` and `patterns` switches of the panel menu's Transform
|
||||
/// Object Only (the object; its pattern fills and strokes stay as they are), Transform Pattern
|
||||
/// Only (the pattern tiles alone) or Transform Both. Until one is chosen (`default`, or any other
|
||||
/// value) neither is passed: patterns follow General › Transform Pattern Tiles. Errors are
|
||||
/// dropped, as the panels' fields have always done.
|
||||
pub fn run_transform(app: &mut VectorcraftApp, cmd: &str, mut params: serde_json::Value) {
|
||||
let switches = match app.session.prefs.transform_panel_patterns.as_str() {
|
||||
"object" => Some((true, false)),
|
||||
"pattern" => Some((false, true)),
|
||||
"both" => Some((true, true)),
|
||||
_ => None,
|
||||
};
|
||||
if let Some((objects, patterns)) = switches {
|
||||
params["objects"] = json!(objects);
|
||||
params["patterns"] = json!(patterns);
|
||||
}
|
||||
app.run(cmd, params).ok();
|
||||
}
|
||||
|
||||
/// The panel menu's checked choice of [`PATTERN_MODES`]: the one chosen, else (`default`) what
|
||||
/// General › Transform Pattern Tiles makes the panel do, Transform Both when it is on and
|
||||
/// Transform Object Only when it is off.
|
||||
fn pattern_mode(app: &VectorcraftApp) -> &'static str {
|
||||
let prefs = &app.session.prefs;
|
||||
PATTERN_MODES.iter().map(|(v, _)| *v).find(|v| *v == prefs.transform_panel_patterns).unwrap_or(if prefs.transform_pattern_tiles {
|
||||
"both"
|
||||
} else {
|
||||
"object"
|
||||
})
|
||||
}
|
||||
|
||||
/// The shared reference point's locator; a click on it chooses another point.
|
||||
pub fn reference_locator(ui: &mut Ui, refi: usize) {
|
||||
if let Some(i) = widgets::reference_point(ui, refi) {
|
||||
@@ -171,11 +266,14 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
// point on the page.
|
||||
let bx = app.selection_box();
|
||||
let bounds = bx.map(|b| b.rect);
|
||||
let refi: usize = ui.data(|d| d.get_temp(egui::Id::unique("refpt"))).unwrap_or(4);
|
||||
let reference = bx.map(|b| panel_reference(app, ui, &b));
|
||||
let refi = reference.map_or_else(|| reference_index(ui), |r| r.index);
|
||||
// `object.setBounds`'s x and y that put the reference (the registration point) at x, y.
|
||||
let to_box = |x: f64, y: f64| reference.map_or((x, y), |r| r.bounds_xy(x, y));
|
||||
let link = proportional(app, ui);
|
||||
let copy = alt_enter_copies(app, ui);
|
||||
let has = bounds.is_some();
|
||||
let rp = bx.map(|b| b.reference_point(refi));
|
||||
let rp = reference.map(|r| r.point);
|
||||
ui.horizontal(|ui| {
|
||||
if let Some(i) = widgets::reference_point(ui, refi) {
|
||||
ui.data_mut(|d| d.insert_temp(egui::Id::unique("refpt"), i));
|
||||
@@ -185,20 +283,20 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
egui::Grid::new("xfp-grid").num_columns(4).spacing([4.0, 6.0]).min_col_width(0.0).show(ui, |ui| {
|
||||
widgets::dim_label(ui, "X:");
|
||||
if let Some(v) = widgets::num_field_named(ui, "xfp-x", Some(crate::i18n::t("X:")), rp.map(|p| p.x - origin.x), units, 80.0) {
|
||||
app.run("object.setBounds", json!({"x": v + origin.x, "reference": refi, "copy": copy})).ok();
|
||||
run_transform(app, "object.setBounds", json!({"x": to_box(v + origin.x, 0.0).0, "reference": refi, "copy": copy}));
|
||||
}
|
||||
widgets::dim_label(ui, "W:");
|
||||
if let Some(v) = widgets::size_field_named(ui, "xfp-w", Some(tl!("W:")), bounds.map(|b| b.width()), units, 80.0) {
|
||||
app.run("object.setBounds", json!({"width": v, "reference": refi, "proportional": link, "copy": copy})).ok();
|
||||
run_transform(app, "object.setBounds", json!({"width": v, "reference": refi, "proportional": link, "copy": copy}));
|
||||
}
|
||||
ui.end_row();
|
||||
widgets::dim_label(ui, "Y:");
|
||||
if let Some(v) = widgets::num_field_named(ui, "xfp-y", Some(crate::i18n::t("Y:")), rp.map(|p| p.y - origin.y), units, 80.0) {
|
||||
app.run("object.setBounds", json!({"y": v + origin.y, "reference": refi, "copy": copy})).ok();
|
||||
run_transform(app, "object.setBounds", json!({"y": to_box(0.0, v + origin.y).1, "reference": refi, "copy": copy}));
|
||||
}
|
||||
widgets::dim_label(ui, "H:");
|
||||
if let Some(v) = widgets::size_field_named(ui, "xfp-h", Some(tl!("H:")), bounds.map(|b| b.height()), units, 80.0) {
|
||||
app.run("object.setBounds", json!({"height": v, "reference": refi, "proportional": link, "copy": copy})).ok();
|
||||
run_transform(app, "object.setBounds", json!({"height": v, "reference": refi, "proportional": link, "copy": copy}));
|
||||
}
|
||||
ui.end_row();
|
||||
});
|
||||
@@ -206,7 +304,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
constrain_link(app, ui);
|
||||
});
|
||||
ui.add_space(4.0);
|
||||
let origin = rp.map(|p| json!([p.x, p.y]));
|
||||
let origin = reference.map(|r| r.origin());
|
||||
ui.horizontal(|ui| {
|
||||
ui.add_enabled_ui(has, |ui| {
|
||||
let icon = icons::icon(ui, "rotate-ccw", 16.0, t.icon).on_hover_text(tl!("Rotate"));
|
||||
@@ -216,7 +314,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
if let Some(a) = widgets::spin_plain_named(ui, "xfp-rot", Some(tl!("Rotate")), angle, "°", 2, 96.0, 15.0, -360.0, &ANGLE_PRESETS)
|
||||
&& a != angle
|
||||
{
|
||||
app.run("object.rotate", json!({"angle": a, "absolute": true, "origin": origin, "copy": copy})).ok();
|
||||
run_transform(app, "object.rotate", json!({"angle": a, "absolute": true, "origin": origin, "copy": copy}));
|
||||
}
|
||||
ui.add_space(4.0);
|
||||
let icon = icons::icon(ui, "dc-shear", 16.0, t.icon).on_hover_text(tl!("Shear"));
|
||||
@@ -226,7 +324,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
&& a != 0.0
|
||||
&& a.abs() < 90.0
|
||||
{
|
||||
app.run("object.shear", json!({"angle": a, "axis": "horizontal", "origin": origin, "copy": copy})).ok();
|
||||
run_transform(app, "object.shear", json!({"angle": a, "axis": "horizontal", "origin": origin, "copy": copy}));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -234,10 +332,10 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
// Lucide's flip icons are named for their mirror line: flip-vertical-2 draws a vertical
|
||||
// line (the left-right flip), flip-horizontal-2 a horizontal one (top-bottom).
|
||||
if widgets::icon_button_enabled(ui, "flip-vertical-2", tl!("Flip Horizontal"), false, has, 24.0).clicked() {
|
||||
app.run("object.reflect", json!({"axis": "vertical", "origin": origin})).ok();
|
||||
run_transform(app, "object.reflect", json!({"axis": "vertical", "origin": origin}));
|
||||
}
|
||||
if widgets::icon_button_enabled(ui, "flip-horizontal-2", tl!("Flip Vertical"), false, has, 24.0).clicked() {
|
||||
app.run("object.reflect", json!({"axis": "horizontal", "origin": origin})).ok();
|
||||
run_transform(app, "object.reflect", json!({"axis": "horizontal", "origin": origin}));
|
||||
}
|
||||
});
|
||||
// Live shape properties (a path with live corners is no shape).
|
||||
@@ -391,17 +489,16 @@ pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
let hidden: bool = pstate(ui.ctx(), "xf-hide-options");
|
||||
let has = super::selection_len(app) > 0;
|
||||
// The flips mirror across the panel's reference point, as its flip buttons do.
|
||||
let refi: usize = ui.data(|d| d.get_temp(egui::Id::unique("refpt"))).unwrap_or(4);
|
||||
let origin = app.selection_box().map(|b| b.reference_point(refi)).map(|p| json!([p.x, p.y]));
|
||||
let origin = app.selection_box().map(|b| panel_reference(app, ui, &b).origin());
|
||||
if menu_item(ui, if hidden { tl!("Show Options") } else { tl!("Hide Options") }, true, false) {
|
||||
set_pstate(ui.ctx(), "xf-hide-options", !hidden);
|
||||
}
|
||||
ui.separator();
|
||||
if menu_item(ui, tl!("Flip Horizontal"), has, false) {
|
||||
app.run("object.reflect", json!({"axis": "vertical", "origin": origin})).ok();
|
||||
run_transform(app, "object.reflect", json!({"axis": "vertical", "origin": origin}));
|
||||
}
|
||||
if menu_item(ui, tl!("Flip Vertical"), has, false) {
|
||||
app.run("object.reflect", json!({"axis": "horizontal", "origin": origin})).ok();
|
||||
run_transform(app, "object.reflect", json!({"axis": "horizontal", "origin": origin}));
|
||||
}
|
||||
ui.separator();
|
||||
let ss = app.session.prefs.scale_strokes;
|
||||
@@ -409,11 +506,20 @@ pub fn menu(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
set_pref(app, "scaleStrokes", !ss);
|
||||
}
|
||||
ui.separator();
|
||||
menu_item(ui, tl!("Transform Object Only"), false, true);
|
||||
menu_item(ui, tl!("Transform Pattern Only"), false, false);
|
||||
menu_item(ui, tl!("Transform Both"), false, false);
|
||||
// What the panel transforms (Transform Object Only / Pattern Only / Both), one checked.
|
||||
let current = pattern_mode(app);
|
||||
for (value, label) in PATTERN_MODES {
|
||||
if menu_item(ui, label, true, value == current)
|
||||
&& let Err(e) = app.run("prefs.set", json!({"key": "transformPanelPatterns", "value": value}))
|
||||
{
|
||||
app.status(e);
|
||||
}
|
||||
}
|
||||
ui.separator();
|
||||
menu_item(ui, tl!("Use Registration Point for Symbol"), false, false);
|
||||
let reg = app.session.prefs.use_registration_point_for_symbol;
|
||||
if menu_item(ui, tl!("Use Registration Point for Symbol"), true, reg) {
|
||||
set_pref(app, "useRegistrationPointForSymbol", !reg);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -607,6 +713,245 @@ mod tests {
|
||||
assert_eq!(flip(&mut app, "Flip Vertical"), Rect::new(120.0, -20.0, 220.0, 30.0));
|
||||
}
|
||||
|
||||
/// Clicks the item of the panel menu labelled `item` (with or without its check mark).
|
||||
fn menu_click(ctx: &egui::Context, app: &mut VectorcraftApp, item: &str) {
|
||||
use crate::panels::tests_appearance::{click, frame_events};
|
||||
let texts = frame_events(ctx, app, vec![], menu);
|
||||
let r = texts.iter().find(|(t, _)| t.trim_start_matches('✓').trim_start() == item).unwrap_or_else(|| panic!("{item} in {texts:?}")).1;
|
||||
click(ctx, app, r.center(), menu);
|
||||
}
|
||||
|
||||
/// The panel menu's items as drawn, check marks included.
|
||||
fn menu_texts(ctx: &egui::Context, app: &mut VectorcraftApp) -> Vec<String> {
|
||||
crate::panels::tests_appearance::frame_events(ctx, app, vec![], menu).into_iter().map(|(t, _)| t).collect()
|
||||
}
|
||||
|
||||
/// Types `value` into the field of `draw` that shows `shown`, and presses Enter.
|
||||
fn type_into(ctx: &egui::Context, app: &mut VectorcraftApp, draw: fn(&mut VectorcraftApp, &mut Ui), shown: &str, value: &str) {
|
||||
use crate::panels::tests_appearance::{click, frame_events, text_rect};
|
||||
let texts = frame_events(ctx, app, vec![], draw);
|
||||
click(ctx, app, text_rect(&texts, shown).center(), draw);
|
||||
let key = |key, modifiers| egui::Event::Key { key, physical_key: None, pressed: true, repeat: false, modifiers };
|
||||
frame_events(ctx, app, vec![key(egui::Key::A, egui::Modifiers::COMMAND)], draw);
|
||||
frame_events(ctx, app, vec![egui::Event::Text(value.into())], draw);
|
||||
frame_events(ctx, app, vec![key(egui::Key::Enter, egui::Modifiers::NONE)], draw);
|
||||
frame_events(ctx, app, vec![], draw);
|
||||
}
|
||||
|
||||
/// The panel menu's Transform Object Only, Transform Pattern Only and Transform Both, one
|
||||
/// checked: a new X typed in the panel (or the Properties panel's Transform section) moves the
|
||||
/// pattern-filled rectangle and leaves its tiles, moves its tiles alone, or moves both. Until
|
||||
/// one is chosen the panels do as General › Transform Pattern Tiles says, as they did before
|
||||
/// the menu acted, and the menu checks Transform Both while it is on, Transform Object Only
|
||||
/// while it is off; a choice overrides it, and resetting the preferences returns to it.
|
||||
#[test]
|
||||
fn the_menu_chooses_whether_the_object_its_pattern_or_both_transform() {
|
||||
let tiles = |app: &VectorcraftApp, id: u64| {
|
||||
let n = app.session.active().unwrap().doc.node(vectorcraft_doc::NodeId(id)).unwrap().clone();
|
||||
let vectorcraft_color::Paint::Pattern { xf, .. } = n.appearance.fill_paint() else { panic!("a pattern fill") };
|
||||
xf.as_coeffs()
|
||||
};
|
||||
let labels = ["Transform Object Only", "Transform Pattern Only", "Transform Both"];
|
||||
let modes = ["object", "pattern", "both"];
|
||||
let checked = |shown: &[String]| -> Vec<usize> { (0..3).filter(|i| shown.contains(&format!("✓ {}", labels[*i]))).collect() };
|
||||
for draw in [show as fn(&mut VectorcraftApp, &mut Ui), crate::panels::properties::transform_section] {
|
||||
for general in [false, true] {
|
||||
for pick in [None, Some(0), Some(1), Some(2)] {
|
||||
let case = format!("General › Transform Pattern Tiles {general}, menu choice {pick:?}");
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("prefs.set", json!({"key": "transformPatternTiles", "value": general})).unwrap();
|
||||
app.run("file.new", json!({"width": 300, "height": 300})).unwrap();
|
||||
app.run("shape.rectangle", json!({"x": 0, "y": 0, "width": 10, "height": 10})).unwrap();
|
||||
app.run("object.pattern.make", json!({"name": "Dots", "width": 20, "height": 20})).unwrap();
|
||||
app.run("object.pattern.done", json!({})).unwrap();
|
||||
let id = app.run("shape.rectangle", json!({"x": 100, "y": 40, "width": 100, "height": 60})).unwrap()["id"].as_u64().unwrap();
|
||||
app.run("paint.setFill", json!({"ids": [id], "swatch": "Dots"})).unwrap();
|
||||
app.run("select.set", json!({"ids": [id]})).unwrap();
|
||||
let ctx = egui::Context::default();
|
||||
crate::theme::install_fonts(&ctx);
|
||||
let following = if general { 2 } else { 0 };
|
||||
assert_eq!(checked(&menu_texts(&ctx, &mut app)), [following], "{case}: before a choice");
|
||||
if let Some(item) = pick {
|
||||
menu_click(&ctx, &mut app, labels[item]);
|
||||
}
|
||||
let item = pick.unwrap_or(following);
|
||||
assert_eq!(app.session.prefs.transform_panel_patterns, pick.map_or("default", |i| modes[i]), "{case}");
|
||||
assert_eq!(checked(&menu_texts(&ctx, &mut app)), [item], "{case}");
|
||||
// The centre reference point: X 150 becomes 170.
|
||||
type_into(&ctx, &mut app, draw, "150 pt", "170");
|
||||
let x0 = app.selection_box().unwrap().rect.x0;
|
||||
assert_eq!(x0, if item == 1 { 100.0 } else { 120.0 }, "{case}: the object");
|
||||
assert_eq!(tiles(&app, id), [1.0, 0.0, 0.0, 1.0, if item == 0 { 0.0 } else { 20.0 }, 0.0], "{case}: the tiles");
|
||||
// Reset (the General category): the menu follows General › Transform Pattern
|
||||
// Tiles again.
|
||||
app.run("prefs.reset", json!({"category": "General"})).unwrap();
|
||||
assert_eq!(app.session.prefs.transform_panel_patterns, "default", "{case}: reset");
|
||||
let following = if app.session.prefs.transform_pattern_tiles { 2 } else { 0 };
|
||||
assert_eq!(checked(&menu_texts(&ctx, &mut app)), [following], "{case}: reset");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Transform Object Only, Transform Pattern Only and Transform Both act on the rotation field
|
||||
/// of both panels and on the Transform panel's shear field as they do on X: the pattern-filled
|
||||
/// rectangle turns or shears with its tiles left as they are, its tiles alone, or both.
|
||||
#[test]
|
||||
fn the_menu_choice_also_applies_to_rotation_and_shear() {
|
||||
let tiles = |app: &VectorcraftApp, id: u64| {
|
||||
let n = app.session.active().unwrap().doc.node(vectorcraft_doc::NodeId(id)).unwrap().clone();
|
||||
let vectorcraft_color::Paint::Pattern { xf, .. } = n.appearance.fill_paint() else { panic!("a pattern fill") };
|
||||
xf.as_coeffs()
|
||||
};
|
||||
let labels = ["Transform Object Only", "Transform Pattern Only", "Transform Both"];
|
||||
// (panel, which "0°" field: 0 the rotation, 1 the shear)
|
||||
let fields = [(show as fn(&mut VectorcraftApp, &mut Ui), 0), (show, 1), (crate::panels::properties::transform_section, 0)];
|
||||
for (draw, field) in fields {
|
||||
for (item, label) in labels.iter().enumerate() {
|
||||
let case = format!("{label}, {}", if field == 0 { "rotation" } else { "shear" });
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 300, "height": 300})).unwrap();
|
||||
app.run("shape.rectangle", json!({"x": 0, "y": 0, "width": 10, "height": 10})).unwrap();
|
||||
app.run("object.pattern.make", json!({"name": "Dots", "width": 20, "height": 20})).unwrap();
|
||||
app.run("object.pattern.done", json!({})).unwrap();
|
||||
let id = app.run("shape.rectangle", json!({"x": 100, "y": 40, "width": 100, "height": 60})).unwrap()["id"].as_u64().unwrap();
|
||||
app.run("paint.setFill", json!({"ids": [id], "swatch": "Dots"})).unwrap();
|
||||
app.run("select.set", json!({"ids": [id]})).unwrap();
|
||||
let ctx = egui::Context::default();
|
||||
crate::theme::install_fonts(&ctx);
|
||||
menu_click(&ctx, &mut app, label);
|
||||
let before = (app.selection_box().unwrap(), tiles(&app, id));
|
||||
// Click the field showing "0°" and type 30 over it.
|
||||
use crate::panels::tests_appearance::{click, frame_events};
|
||||
let texts = frame_events(&ctx, &mut app, vec![], draw);
|
||||
let at = texts.iter().filter(|(t, _)| t == "0°").nth(field).unwrap_or_else(|| panic!("{case}: {texts:?}")).1.center();
|
||||
click(&ctx, &mut app, at, draw);
|
||||
let key = |key, modifiers| egui::Event::Key { key, physical_key: None, pressed: true, repeat: false, modifiers };
|
||||
frame_events(&ctx, &mut app, vec![key(egui::Key::A, egui::Modifiers::COMMAND)], draw);
|
||||
frame_events(&ctx, &mut app, vec![egui::Event::Text("30".into())], draw);
|
||||
frame_events(&ctx, &mut app, vec![key(egui::Key::Enter, egui::Modifiers::NONE)], draw);
|
||||
frame_events(&ctx, &mut app, vec![], draw);
|
||||
let after = (app.selection_box().unwrap(), tiles(&app, id));
|
||||
assert_eq!(after.0 != before.0, item != 1, "{case}: the object {:?} → {:?}", before.0, after.0);
|
||||
// Turned or sheared tiles change their matrix's linear part; moved ones only its offset.
|
||||
assert_eq!(after.1[..4] != before.1[..4], item != 0, "{case}: the tiles {:?} → {:?}", before.1, after.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Use Registration Point for Symbol: with one symbol instance selected, the panel and the
|
||||
/// Properties panel's Transform section show and set X and Y at its symbol's registration point
|
||||
/// (here the top-left one) instead of the reference point (the centre).
|
||||
#[test]
|
||||
fn use_registration_point_for_symbol_measures_an_instance_from_its_registration_point() {
|
||||
for draw in [show as fn(&mut VectorcraftApp, &mut Ui), crate::panels::properties::transform_section] {
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 300, "height": 300})).unwrap();
|
||||
app.run("shape.rectangle", json!({"x": 100, "y": 50, "width": 80, "height": 40})).unwrap();
|
||||
let id = app.run("symbol.new", json!({"name": "Corner", "registration": 0})).unwrap()["id"].as_u64().unwrap();
|
||||
app.run("select.set", json!({"ids": [id]})).unwrap();
|
||||
let ctx = egui::Context::default();
|
||||
crate::theme::install_fonts(&ctx);
|
||||
let shown = |app: &mut VectorcraftApp| {
|
||||
crate::panels::tests_appearance::frame_events(&ctx, app, vec![], draw).into_iter().map(|(t, _)| t).collect::<Vec<_>>()
|
||||
};
|
||||
let off = shown(&mut app);
|
||||
assert!(off.iter().any(|t| t == "140 pt") && off.iter().any(|t| t == "70 pt"), "the centre: {off:?}");
|
||||
assert!(menu_texts(&ctx, &mut app).contains(&" Use Registration Point for Symbol".to_string()));
|
||||
menu_click(&ctx, &mut app, "Use Registration Point for Symbol");
|
||||
assert!(app.session.prefs.use_registration_point_for_symbol);
|
||||
assert!(menu_texts(&ctx, &mut app).contains(&"✓ Use Registration Point for Symbol".to_string()));
|
||||
let on = shown(&mut app);
|
||||
assert!(on.iter().any(|t| t == "100 pt") && on.iter().any(|t| t == "50 pt") && !on.iter().any(|t| t == "140 pt"), "the top-left: {on:?}");
|
||||
type_into(&ctx, &mut app, draw, "100 pt", "30");
|
||||
assert_eq!(app.selection_box().unwrap().rect, Rect::new(30.0, 50.0, 110.0, 90.0));
|
||||
// Any other selection: the reference point.
|
||||
app.run("shape.rectangle", json!({"x": 200, "y": 200, "width": 20, "height": 20})).unwrap();
|
||||
let rect = shown(&mut app);
|
||||
assert!(rect.iter().any(|t| t == "210 pt") && !rect.iter().any(|t| t == "200 pt"), "the centre: {rect:?}");
|
||||
}
|
||||
}
|
||||
|
||||
/// Use Registration Point for Symbol on a reflected, a rotated and a sheared symbol instance:
|
||||
/// the panel and the Properties panel's Transform section show X and Y at the registration
|
||||
/// point where the instance's transform put it (not at the box's point of the same index), a
|
||||
/// new X moves it there, and their rotation field and flip buttons, and the panel menu's
|
||||
/// flips, turn and mirror the instance about it.
|
||||
#[test]
|
||||
fn use_registration_point_for_symbol_follows_a_transformed_instance() {
|
||||
let panels = [
|
||||
(show as fn(&mut VectorcraftApp, &mut Ui), "Flip Horizontal", "Flip Vertical"),
|
||||
(crate::panels::properties::transform_section, "Flip Along Horizontal Axis", "Flip Along Vertical Axis"),
|
||||
];
|
||||
// How each instance is transformed after it is made: (command, params).
|
||||
let shapes = [
|
||||
("object.reflect", json!({"axis": "vertical"})),
|
||||
("object.rotate", json!({"angle": 90})),
|
||||
// About the registration point (the top-left corner), which then lies on the box's
|
||||
// top edge but on none of its nine reference points.
|
||||
("object.shear", json!({"angle": 30, "axis": "horizontal", "origin": [100, 50]})),
|
||||
];
|
||||
// The registration point (the art's top-left) where the instance's transform puts it.
|
||||
let registration = |app: &VectorcraftApp, id: u64| match &app.session.active().unwrap().doc.node(vectorcraft_doc::NodeId(id)).unwrap().kind {
|
||||
NodeKind::SymbolInstance { xf, .. } => *xf * vectorcraft_geom::Point::new(-vectorcraft_doc::SYMBOL_HALF, -vectorcraft_doc::SYMBOL_HALF),
|
||||
k => panic!("not an instance: {k:?}"),
|
||||
};
|
||||
let pt = |v: f64| format!("{} pt", (v * 1000.0).round() / 1000.0);
|
||||
let near = |a: vectorcraft_geom::Point, b: vectorcraft_geom::Point| (a - b).hypot() < 1e-6;
|
||||
for (draw, flip_h, flip_v) in panels {
|
||||
for (cmd, params) in &shapes {
|
||||
let case = format!("{cmd} {params}");
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 400, "height": 400})).unwrap();
|
||||
app.run("shape.rectangle", json!({"x": 100, "y": 50, "width": 80, "height": 40})).unwrap();
|
||||
let id = app.run("symbol.new", json!({"name": "Corner", "registration": 0})).unwrap()["id"].as_u64().unwrap();
|
||||
app.run("select.set", json!({"ids": [id]})).unwrap();
|
||||
app.run(cmd, params.clone()).unwrap();
|
||||
app.run("prefs.set", json!({"key": "useRegistrationPointForSymbol", "value": true})).unwrap();
|
||||
let ctx = egui::Context::default();
|
||||
crate::theme::install_fonts(&ctx);
|
||||
ctx.enable_accesskit();
|
||||
let q = registration(&app, id);
|
||||
let shown: Vec<String> =
|
||||
crate::panels::tests_appearance::frame_events(&ctx, &mut app, vec![], draw).into_iter().map(|(t, _)| t).collect();
|
||||
assert!(shown.contains(&pt(q.x)) && shown.contains(&pt(q.y)), "{case}: X/Y at {q:?} in {shown:?}");
|
||||
// A new X moves the registration point there.
|
||||
type_into(&ctx, &mut app, draw, &pt(q.x), &format!("{}", q.x - 40.0));
|
||||
let q = vectorcraft_geom::Point::new(q.x - 40.0, q.y);
|
||||
assert!(near(registration(&app, id), q), "{case}: moved to {q:?}, now {:?}", registration(&app, id));
|
||||
// The rotation field turns it about the registration point.
|
||||
let angle = app.selection_box().unwrap().angle;
|
||||
let texts = crate::panels::tests_appearance::frame_events(&ctx, &mut app, vec![], draw);
|
||||
let degrees = texts.iter().find(|(t, _)| t.ends_with('°')).unwrap_or_else(|| panic!("{case}: no angle in {texts:?}")).0.clone();
|
||||
let before = app.session.active().unwrap().revision;
|
||||
type_into(&ctx, &mut app, draw, °rees, &format!("{}", angle + 30.0));
|
||||
assert_ne!(app.session.active().unwrap().revision, before, "{case}: turned");
|
||||
assert!(near(registration(&app, id), q), "{case}: rotated about {q:?}, now {:?}", registration(&app, id));
|
||||
// The flip buttons mirror it about the registration point.
|
||||
for label in [flip_h, flip_v] {
|
||||
let mut out = ctx.run_ui(egui::RawInput::default(), |ui| draw(&mut app, ui));
|
||||
out.textures_delta.clear();
|
||||
let nodes = &out.platform_output.accesskit_update.as_ref().expect("an accessibility tree").nodes;
|
||||
let (_, n) = nodes
|
||||
.iter()
|
||||
.find(|(_, n)| n.label() == Some(label) && n.role() == egui::accesskit::Role::Button)
|
||||
.unwrap_or_else(|| panic!("no button named {label:?}"));
|
||||
let b = n.bounds().expect("bounds");
|
||||
let at = egui::pos2((b.x0 + b.x1) as f32 * 0.5, (b.y0 + b.y1) as f32 * 0.5);
|
||||
let before = app.session.active().unwrap().revision;
|
||||
crate::panels::tests_appearance::click(&ctx, &mut app, at, draw);
|
||||
assert_ne!(app.session.active().unwrap().revision, before, "{case}: {label} flipped");
|
||||
assert!(near(registration(&app, id), q), "{case}: {label} about {q:?}, now {:?}", registration(&app, id));
|
||||
}
|
||||
// So do the panel menu's flips.
|
||||
for item in ["Flip Horizontal", "Flip Vertical"] {
|
||||
menu_click(&ctx, &mut app, item);
|
||||
assert!(near(registration(&app, id), q), "{case}: menu {item} about {q:?}, now {:?}", registration(&app, id));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn artboard_fields_keep_the_reference_point() {
|
||||
let r = Rect::new(0.0, 0.0, 300.0, 200.0);
|
||||
|
||||
+14
-1
@@ -1,6 +1,6 @@
|
||||
# Gaps
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-25 · **Change:** minor (G12: General › Corner Radius drives the Rounded Rectangle tool and follows its ↑/↓; previously:; G11: the Shape Builder's grid index holds a bounded number of cell references, so coincident segments can't make it quadratic in memory; previously:; floating panels open in OS windows of their own on the desktop (inside the window on the web and on Wayland), and saved layouts from earlier versions convert to the shared docking layout (#4135); scores and estimates unchanged; previously: Recolor Artwork › Assign: double-click a new color for the Color Picker, which keeps a CMYK mix as typed (part of #4028; Lab can't be typed yet); scores and estimates unchanged; previously: G11: Shape Builder's edge-source index is a grid, so diagonal hatches are no longer quadratic; previously:; docs catch-up: G11's stale Missing lines merged into one (#864 and #885's own-effect-list case left; #937, #722, #834 and interior anchor delete done), G2's pre-#2883 Effect Gallery duplicates removed; estimates unchanged; previously: G4: ruby (ふりがな) is kept by Create Outlines and in EPS, EMF/WMF and legacy `.ai`; previously: G14: pen pressure and the eraser end on macOS, #852, not yet tried on a Mac; previously: G11: Shape Builder pieces: the sweep's stubs between two cuts of one line's passes are contracted, so dense hatches no longer leave specks; previously: G4: images in OpenType SVG glyph documents draw, export and outline with the glyph; previously: bitmap glyphs (emoji) go with type that effects reshape, into Expand Appearance, envelope Expand and EMF/WMF export, as images; previously: ranked table: one row each for G2 and G13; previously: G5: Start Global Edit on paths, compound paths and symbol instances, #3521; previously:; G5: Window › Symbol Libraries and the Symbols panel's Symbol Libraries Menu open symbol libraries in library panels (a generated Basic Shapes library, User Defined, Other Library… from any document); clicking a symbol adds it to the document's Symbols, dragging one places it, Save Symbols writes a `.vectorcraft` library; previously:; G4: threading ports, the in port threading a new or clicked frame before the clicked one, #2572; estimate unchanged; G1: Distance Guides (Smart Guides › Invoke Distance Guides): with something selected and the Selection tool, Alt/Option over another object shows the horizontal and vertical distances between them, and over an empty part of an artboard the selection's distances from its left, right, top and bottom edges, as measured lines labelled in the General unit; scores and estimates unchanged; previously:; Pathfinder › Trap: the Pathfinder panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps of the lighter colour where solid colours meet; no entry closed; Artboard Options: Show Video Safe Areas (`showVideoSafeAreas`) outlines the action-safe and title-safe areas 3.5% and 5% in from each edge (EBU R 95) on the canvas only, and Video Ruler Pixel Aspect Ratio (`videoRulerPixelAspectRatio`, 0.1–10, default 1) sets how wide a video pixel is, per artboard, in one undo step and in the native format; View › Rulers › Show Video Rulers (`view.videoRulers`) counts the active artboard in those pixels from its top-left corner (#2849); scores and estimates unchanged; G1: a double-click on the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options, whose OK sets the next drag's and click's options (#2691, in part); estimates unchanged; font menu: Font Technology › Variable lists only variable font families, G4; previously:; colour glyphs (COLR, SVG) go with type that effects reshape, into Expand Appearance and EMF/WMF export; previously:; Simplify of part of a path: with anchors or segments of a path direct-selected, Object › Path › Simplify (slider, Auto-Simplify and dialog) refits only each run of selected segments between its end anchors and leaves the rest of the path exactly as it was, G1; estimates unchanged; Fix #3705: in Draw Inside, art drawn or pasted inside the isolated object takes isolation mode into its clip group, so it can be clicked and isn't dimmed; undo or redo that removes the isolated object ends isolation mode; Fix #3705 in part: drawing modes apply to pastes (Draw Inside puts Paste, Paste in Place and Paste on All Artboards inside the object drawn into; Draw Behind puts Paste in Place and Paste on All Artboards behind the selection), and Shift+D goes from Draw Behind back to Draw Normal when Draw Inside can't draw into the selection instead of stopping at Draw Behind; G2: the Effect Gallery shipped (#2883): Effect › Effect Gallery… browses the Artistic, Brush Strokes, Distort, Sketch, Stylize and Texture filters, edits each filter's settings, builds an ordered stack (add, reorder, hide, remove) with a live canvas preview, and OK applies it as separate appearance effects in one undo step; remainiLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-25 · **Change:** minor (G12: the Transform panel menu's Transform Object Only / Pattern Only / Both and Use Registration Point for Symbol act; previously:; G12: General › Corner Radius drives the Rounded Rectangle tool and follows its ↑/↓; previously:; G11: the Shape Builder's grid index holds a bounded number of cell references, so coincident segments can't make it quadratic in memory; previously:; floating panels open in OS windows of their own on the desktop (inside the window on the web and on Wayland), and saved layouts from earlier versions convert to the shared docking layout (#4135); scores and estimates unchanged; previously: Recolor Artwork › Assign: double-click a new color for the Color Picker, which keeps a CMYK mix as typed (part of #4028; Lab can't be typed yet); scores and estimates unchanged; previously: G11: Shape Builder's edge-source index is a grid, so diagonal hatches are no longer quadratic; previously:; docs catch-up: G11's stale Missing lines merged into one (#864 and #885's own-effect-list case left; #937, #722, #834 and interior anchor delete done), G2's pre-#2883 Effect Gallery duplicates removed; estimates unchanged; previously: G4: ruby (ふりがな) is kept by Create Outlines and in EPS, EMF/WMF and legacy `.ai`; previously: G14: pen pressure and the eraser end on macOS, #852, not yet tried on a Mac; previously: G11: Shape Builder pieces: the sweep's stubs between two cuts of one line's passes are contracted, so dense hatches no longer leave specks; previously: G4: images in OpenType SVG glyph documents draw, export and outline with the glyph; previously: bitmap glyphs (emoji) go with type that effects reshape, into Expand Appearance, envelope Expand and EMF/WMF export, as images; previously: ranked table: one row each for G2 and G13; previously: G5: Start Global Edit on paths, compound paths and symbol instances, #3521; previously:; G5: Window › Symbol Libraries and the Symbols panel's Symbol Libraries Menu open symbol libraries in library panels (a generated Basic Shapes library, User Defined, Other Library… from any document); clicking a symbol adds it to the document's Symbols, dragging one places it, Save Symbols writes a `.vectorcraft` library; previously:; G4: threading ports, the in port threading a new or clicked frame before the clicked one, #2572; estimate unchanged; G1: Distance Guides (Smart Guides › Invoke Distance Guides): with something selected and the Selection tool, Alt/Option over another object shows the horizontal and vertical distances between them, and over an empty part of an artboard the selection's distances from its left, right, top and bottom edges, as measured lines labelled in the General unit; scores and estimates unchanged; previously:; Pathfinder › Trap: the Pathfinder panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps of the lighter colour where solid colours meet; no entry closed; Artboard Options: Show Video Safe Areas (`showVideoSafeAreas`) outlines the action-safe and title-safe areas 3.5% and 5% in from each edge (EBU R 95) on the canvas only, and Video Ruler Pixel Aspect Ratio (`videoRulerPixelAspectRatio`, 0.1–10, default 1) sets how wide a video pixel is, per artboard, in one undo step and in the native format; View › Rulers › Show Video Rulers (`view.videoRulers`) counts the active artboard in those pixels from its top-left corner (#2849); scores and estimates unchanged; G1: a double-click on the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options, whose OK sets the next drag's and click's options (#2691, in part); estimates unchanged; font menu: Font Technology › Variable lists only variable font families, G4; previously:; colour glyphs (COLR, SVG) go with type that effects reshape, into Expand Appearance and EMF/WMF export; previously:; Simplify of part of a path: with anchors or segments of a path direct-selected, Object › Path › Simplify (slider, Auto-Simplify and dialog) refits only each run of selected segments between its end anchors and leaves the rest of the path exactly as it was, G1; estimates unchanged; Fix #3705: in Draw Inside, art drawn or pasted inside the isolated object takes isolation mode into its clip group, so it can be clicked and isn't dimmed; undo or redo that removes the isolated object ends isolation mode; Fix #3705 in part: drawing modes apply to pastes (Draw Inside puts Paste, Paste in Place and Paste on All Artboards inside the object drawn into; Draw Behind puts Paste in Place and Paste on All Artboards behind the selection), and Shift+D goes from Draw Behind back to Draw Normal when Draw Inside can't draw into the selection instead of stopping at Draw Behind; G2: the Effect Gallery shipped (#2883): Effect › Effect Gallery… browses the Artistic, Brush Strokes, Distort, Sketch, Stylize and Texture filters, edits each filter's settings, builds an ordered stackLine truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -360,6 +360,18 @@ from G14 and the budget run of G15: **~170–270 h** one agent, ~50–80 h wall
|
||||
|
||||
## G12 Preferences and panels that don't act yet
|
||||
|
||||
- **Done (2026-10-25):** the Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both
|
||||
(`transformPanelPatterns`) choose what the panel's fields, flips and menu flips and the Properties panel's Transform
|
||||
section transform: the object with its pattern tiles left as they are, the tiles alone, or both; Use Registration
|
||||
Point for Symbol (`useRegistrationPointForSymbol`) has them measure and transform one selected symbol instance from
|
||||
its symbol's registration point, where the instance's flips, rotations and shears put it, instead of the reference
|
||||
point; the Properties panel's rotation and flips now turn and mirror about the reference point, as the Transform
|
||||
panel's do. Limit: on a sheared instance a new W or H keeps the box's point nearest the registration
|
||||
point in place, not the registration point itself ([Transform panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html)).
|
||||
Until a choice is made (`default`), the panels follow General › Transform Pattern Tiles as before, and the menu
|
||||
checks Transform Both while it is on and Transform Object Only while it is off; a choice overrides it.
|
||||
Estimate unchanged.
|
||||
- **Done (2026-10-21, #394):** General › Constrain Angle turns the arrow keys' axes (guides stay on the page's), holds Shift drags of the Selection, Direct Selection, Free Transform, Slice Selection, Reshape and Measure tools and the Pen's handles to the turned axes, and new rectangles, rounded rectangles, ellipses, grids, point and area type, Shift-drawn polygons and stars and the shape size dialogs are drawn along it with their bounding box turned; 0° and whole turns are exactly as before, quarter turns exact (<https://helpx.adobe.com/illustrator/desktop/manage-objects/arrange-objects/rotate-objects-by-specific-angles.html>). Arcs, spirals, flares and the Pen's new paths are not turned yet. Estimate unchanged.
|
||||
- **Done (2026-10-21, #394):** General › Constrain Angle turns the arrow keys' axes (guides stay on the page's), holds Shift drags of the Selection, Direct Selection, Free Transform, Slice Selection, Reshape and Measure tools and the Pen's handles to the turned axes, and new rectangles, rounded rectangles, ellipses, grids, point and area type, Shift-drawn polygons and stars and the shape size dialogs are drawn along it with their bounding box turned; 0° and whole turns are exactly as before, quarter turns exact (<https://helpx.adobe.com/illustrator/desktop/manage-objects/arrange-objects/rotate-objects-by-specific-angles.html>). Arcs, spirals, flares and the Pen's new paths are not turned yet. Estimate unchanged. **2026-10-24:** General › Corner Radius is the Rounded Rectangle tool's radius: the tool takes the preference when chosen and when it changes while the tool is active (or lent a selection tool for a drag), and the radius ↑/↓ set while drawing one, or a Tool Options value, becomes the preference, clamped to its 0–1296 pt range (<https://helpx.adobe.com/illustrator/using/drawing-simple-lines-shapes.html>). Estimate unchanged.
|
||||
- **Done (2026-10-17):** Background Export shows its progress in a dialog with Cancel and Continue in Background (#2564), on the shared cancel token (#2546); a cancelled export writes no file. Save As, Export for Screens and Export Selection don't show it yet. Estimate unchanged.
|
||||
- **Done:** quick Image Trace presets trace at once and leave the panel as it was; the Image Trace button (Control bar, Properties) opens the controls with Threshold and Advanced (Paths, Corners, Noise), as the public documentation describes (<https://helpx.adobe.com/illustrator/using/image-trace-results-optimization.html>). Other context-specific Properties gaps remain.
|
||||
@@ -610,6 +622,7 @@ trap, and the defaults (0.25 pt, 100%, 40%) are VectorCraft's own, the pages giv
|
||||
|---|---|---|
|
||||
| 2026-10-25 | minor | Floating panels open in OS windows of their own on the desktop (inside the window on the web and on Wayland); saved layouts from earlier versions convert to the shared docking layout (#4135); scores and estimates unchanged (estimated) |
|
||||
| 2026-10-24 | minor | Recolor Artwork › Assign: double-clicking a row's new color opens the Color Picker over the dialog; its OK sets the row's new color in the model it was picked in (a CMYK mix stays CMYK, RGB becomes CMYK in a CMYK document), Cancel leaves the row as it was. A Lab new color is kept, but a Lab color can't be typed yet: the picker's Lab fields work in RGB, as for fill and stroke (part of #4028; Lab entry, swatch libraries and the row menu remain). Scores and estimates unchanged. |
|
||||
| 2026-10-25 | minor | G12: the Transform panel menu's Transform Object Only / Pattern Only / Both (`transformPanelPatterns`) choose what the Transform panel and the Properties panel's Transform section transform (until a choice, General › Transform Pattern Tiles as before), and Use Registration Point for Symbol (`useRegistrationPointForSymbol`) measures and transforms one selected symbol instance from its registration point; estimate unchanged |
|
||||
| 2026-10-24 | minor | G1: Live Paint Make, Merge and the Live Paint Bucket refuse type, images and other objects that aren't paths, changing nothing, instead of hiding them among the group's sources; Properties shows Merge Live Paint only for a selection it can take. No entry closed, estimates unchanged. |
|
||||
| 2026-10-24 | minor | G1: Properties: Blend Options and Merge Live Paint in Quick Actions, the Width Profile list and an applied effect's Delete icon in Appearance, and the kind and radius of corners selected with Direct Selection, as the public Properties panel overview lists them. No entry closed, estimates unchanged. |
|
||||
| 2026-10-24 | minor | Docs catch-up: G11's three Missing lines (left by merges, naming fixed bugs) become one: SVG units reverting to points (#864) and a Transform effect in a fill's or stroke's own effect list (#885) remain; Shape Builder regions (#937, closed), PDF text placement (#722), the bezier drag preview (#834) and interior anchor delete are done. G2's pre-#2883 "the Effect Gallery dialog" Missing and 4–6 h estimate lines and a duplicate Done line removed. Estimates unchanged. |
|
||||
|
||||
+19
@@ -4688,6 +4688,25 @@ to `object.setBounds`, which scales the other dimension by the same factor; agen
|
||||
{"name":"run_command","arguments":{"command":"object.setBounds","params":{"width":200,"proportional":true}}}
|
||||
```
|
||||
|
||||
## Transform panel menu
|
||||
|
||||
The Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both are the
|
||||
`transformPanelPatterns` preference (`object`, `pattern`, `both`). Once one is chosen, the fields, flips and menu
|
||||
flips of the Transform panel and the Properties panel's Transform section send it as `objects` (false for `pattern`)
|
||||
and `patterns` (true for `pattern` and `both`) to `object.setBounds`, `object.rotate`, `object.shear` and
|
||||
`object.reflect`; agents pass those switches themselves. Until then (`default`, also after `prefs.reset`) they send
|
||||
neither, so pattern tiles follow `transformPatternTiles`, and the menu checks Transform Both while it is on and
|
||||
Transform Object Only while it is off. Use Registration Point for Symbol is the
|
||||
`useRegistrationPointForSymbol` preference: with it on and one symbol instance selected, those panels show and set X
|
||||
and Y at the symbol's registration point (`symbol.options` `registration`) where the instance's transform puts it
|
||||
(after a flip the art's top-left corner is the box's top-right one), give `reference` as the box's point nearest it
|
||||
and turn, shear and flip about it (`origin`).
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"prefs.set","params":{"key":"transformPanelPatterns","value":"pattern"}}}
|
||||
{"name":"run_command","arguments":{"command":"object.setBounds","params":{"x":170,"reference":4,"objects":false,"patterns":true}}}
|
||||
```
|
||||
|
||||
## Plug-ins
|
||||
|
||||
WebAssembly plug-ins ([plugins.md](plugins.md)) are reached through commands; the desktop app and an unconfined
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Parity with Adobe Illustrator
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-25 · **Change:** minor (UI chrome: General › Corner Radius acts for the Rounded Rectangle tool, score unchanged at 80%, estimated; previously:; Transform Each opens on the values it was last confirmed with and has a Copy button instead of a Copy checkbox (#1732); scores and estimates unchanged; previously: Recolor Artwork › Assign: double-click a new color for the Color Picker, which keeps a CMYK mix as typed (part of #4028; Lab can't be typed yet); scores and estimates unchanged; previously: Path operations: Shape Builder's edge-source index is a grid, diagonal hatches no longer quadratic, scores unchanged; previously:; imported function-based PDF shadings keep their colours (#3621); docs catch-up: superseded Raster effects and Live vector effects rows removed, Relative rounding no longer missing (#3091), Hard/Soft Mix and Trap noted done in the 2026-10-05 table; scores and hours unchanged; previously: Type advanced: ruby is kept by Create Outlines and in EPS, EMF/WMF and legacy `.ai` exports, scores unchanged; previously: Path operations: Shape Builder pieces on dense hatches no longer leave specks where the sweep cut a line's two passes apart, scores unchanged; previously: Select › Start Global Edit: objects of the same shape (Appearance, Size, artboard options) edited together in proportion as one undo step, #3521, score and hours unchanged; previously:; symbol libraries: Window › Symbol Libraries and the Symbols panel's Symbol Libraries Menu open library panels of a generated Basic Shapes library, User Defined libraries and any document's symbols (Other Library…); a symbol clicked is added to the document's Symbols, one dragged onto the canvas is placed too, and Save Symbols writes a `.vectorcraft` library; scores and hours unchanged; previously:; Type core: threading ports on every selected area type and type on a path, the in port threading backwards, #2572; scores unchanged; G1: Distance Guides (Smart Guides › Invoke Distance Guides): with something selected and the Selection tool, Alt/Option over another object shows the horizontal and vertical distances between them, and over an empty part of an artboard the selection's distances from its four edges, labelled in the General unit; scores and hours unchanged; previously:; Pathfinder › Trap: the Pathfinder panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps of the lighter colour where solid colours meet; Live vector effects measured count 49/50, score unchanged, hours 6–10 → 4–8; Artboard Options: Show Video Safe Areas (`showVideoSafeAreas`) outlines the action-safe and title-safe areas 3.5% and 5% in from each edge (EBU R 95) on the canvas only, and Video Ruler Pixel Aspect Ratio (`videoRulerPixelAspectRatio`, 0.1–10, default 1) sets how wide a video pixel is, per artboard, in one undo step and in the native format; View › Rulers › Show Video Rulers (`view.videoRulers`) counts the active artboard in those pixels from its top-left corner (#2849); scores and estimates unchanged; Drawing tools: a double-click on the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options, whose OK sets the next drag's and click's options (#2691, in part); score and hours unchanged; Libraries panel: items show as icons or in a list, toggled beside the library picker; scores unchanged; Pencil: Shift held at the press draws a straight line at 45° steps from the Constrain Angle, and one started on an end of a selected open path continues it (part of #3799); status-bar pointer readout follow-up; scores and hours unchanged; font menu: Font Technology › Variable lists only variable font families, G4; previously:; Simplify of part of a path: with anchors or segments of a path direct-selected, Object › Path › Simplify (slider, Auto-Simplify and dialog) refits only each run of selected segments between its end anchors and leaves the rest of the path exactly as it was; Path operations score and hours unchanged (estimated); Fix #3705: in Draw Inside, art drawn or pasted inside the isolated object takes isolation mode into its clip group, so it can be clicked and isn't dimmed; undo or redo that removes the isolated object ends isolation mode; SVG keeps attributes in other applications' XML namespaces on their objects from import to export, the rest of #522; Fix #3705 in part: drawing modes apply to pastes (Draw Inside puts Paste, Paste in Place and Paste on All Artboards inside the object drawn into; Draw Behind puts Paste in Place and Paste on All Artboards behind the selection), and Shift+D goes from Draw Behind back to Draw Normal when Draw Inside can't draw into the selection instead of stopping at Draw Behind; G2: the Effect Gallery shipped (#2883): Effect › Effect Gallery… browses the Artistic, Brush Strokes, Distort, Sketch, Stylize and Texture filters, edits each filter's settings, builds an ordered stack (add, reorder, hide, remLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-25 · **Change:** minor (UI: the Transform panel menu's Transform Object Only / Pattern Only / Both and Use Registration Point for Symbol act, scores unchanged; previously:; UI chrome: General › Corner Radius acts for the Rounded Rectangle tool, score unchanged at 80%, estimated; previously:; Transform Each opens on the values it was last confirmed with and has a Copy button instead of a Copy checkbox (#1732); scores and estimates unchanged; previously: Recolor Artwork › Assign: double-click a new color for the Color Picker, which keeps a CMYK mix as typed (part of #4028; Lab can't be typed yet); scores and estimates unchanged; previously: Path operations: Shape Builder's edge-source index is a grid, diagonal hatches no longer quadratic, scores unchanged; previously:; imported function-based PDF shadings keep their colours (#3621); docs catch-up: superseded Raster effects and Live vector effects rows removed, Relative rounding no longer missing (#3091), Hard/Soft Mix and Trap noted done in the 2026-10-05 table; scores and hours unchanged; previously: Type advanced: ruby is kept by Create Outlines and in EPS, EMF/WMF and legacy `.ai` exports, scores unchanged; previously: Path operations: Shape Builder pieces on dense hatches no longer leave specks where the sweep cut a line's two passes apart, scores unchanged; previously: Select › Start Global Edit: objects of the same shape (Appearance, Size, artboard options) edited together in proportion as one undo step, #3521, score and hours unchanged; previously:; symbol libraries: Window › Symbol Libraries and the Symbols panel's Symbol Libraries Menu open library panels of a generated Basic Shapes library, User Defined libraries and any document's symbols (Other Library…); a symbol clicked is added to the document's Symbols, one dragged onto the canvas is placed too, and Save Symbols writes a `.vectorcraft` library; scores and hours unchanged; previously:; Type core: threading ports on every selected area type and type on a path, the in port threading backwards, #2572; scores unchanged; G1: Distance Guides (Smart Guides › Invoke Distance Guides): with something selected and the Selection tool, Alt/Option over another object shows the horizontal and vertical distances between them, and over an empty part of an artboard the selection's distances from its four edges, labelled in the General unit; scores and hours unchanged; previously:; Pathfinder › Trap: the Pathfinder panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps of the lighter colour where solid colours meet; Live vector effects measured count 49/50, score unchanged, hours 6–10 → 4–8; Artboard Options: Show Video Safe Areas (`showVideoSafeAreas`) outlines the action-safe and title-safe areas 3.5% and 5% in from each edge (EBU R 95) on the canvas only, and Video Ruler Pixel Aspect Ratio (`videoRulerPixelAspectRatio`, 0.1–10, default 1) sets how wide a video pixel is, per artboard, in one undo step and in the native format; View › Rulers › Show Video Rulers (`view.videoRulers`) counts the active artboard in those pixels from its top-left corner (#2849); scores and estimates unchanged; Drawing tools: a double-click on the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options, whose OK sets the next drag's and click's options (#2691, in part); score and hours unchanged; Libraries panel: items show as icons or in a list, toggled beside the library picker; scores unchanged; Pencil: Shift held at the press draws a straight line at 45° steps from the Constrain Angle, and one started on an end of a selected open path continues it (part of #3799); status-bar pointer readout follow-up; scores and hours unchanged; font menu: Font Technology › Variable lists only variable font families, G4; previously:; Simplify of part of a path: with anchors or segments of a path direct-selected, Object › Path › Simplify (slider, Auto-Simplify and dialog) refits only each run of selected segments between its end anchors and leaves the rest of the path exactly as it was; Path operations score and hours unchanged (estimated); Fix #3705: in Draw Inside, art drawn or pasted inside the isolated object takes isolation mode into its clip group, so it can be clicked and isn't dimmed; undo or redo that removes the isolated object ends isolation mode; SVG keeps attributes in other applications' XML namespaces on their objects from import to export, the rest of #522; Fix #3705 in part: drawing modes apply to pastes (Draw Inside puts Paste, Paste in Place and Paste on All Artboards inside the object drawn into; Draw Behind puts Paste in Place and Paste on All Artboards behind the selection), and Shift+D goes from Draw Behind back to Draw Normal when Draw Inside can't draw into the selection instead of stopping at Draw Behind; G2: the Effect Gallery shipped (#2883): Effect › Effect Gallery… browses the Line truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -563,6 +563,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- The History panel translates the undo step names the engine, the tools and the shell write as literals: the untranslated report (`untranslated_report`) lists any a complete catalog lacks, and a step whose catalog row exists only with an ellipsis (such as an effect's menu name) shows that row without the ellipsis.
|
||||
- The History panel menu has Step Backward and Step Forward, which run Edit › Undo and Edit › Redo and are disabled when there is no step to undo or redo, and Set History Limit…, which opens Preferences at Performance, where History States is set. Not done: a new document from the selected state.
|
||||
- The History panel menu's Clear History (`edit.clearHistory`) removes every step to undo and to redo and leaves the document as it is; it is not an undo step itself, and it is disabled when there is no step to clear.
|
||||
- The Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both (`transformPanelPatterns`) choose whether the fields, flips and menu flips of the Transform panel and the Properties panel's Transform section move the object and leave its pattern tiles, move the tiles alone, or both (until a choice they follow General › Transform Pattern Tiles, as before); Use Registration Point for Symbol (`useRegistrationPointForSymbol`) measures and transforms one selected symbol instance from its symbol's registration point, where the instance's flips, rotations and shears put it ([Transform panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html); `panels::transform::tests::the_menu_chooses_whether_the_object_its_pattern_or_both_transform`, `use_registration_point_for_symbol_measures_an_instance_from_its_registration_point`, `use_registration_point_for_symbol_follows_a_transformed_instance`, `tests_prefs::transform_panel_patterns_defaults_to_following_the_general_preference`).
|
||||
- Native macOS menu bar, vector tool cursors, a ⌘K command palette, middle-button panning with any tool. Native menus explicitly end tracking on command selection, outside window presses and Escape; menu updates wait until tracking ends, and a dismissing press never starts a canvas gesture (M14.8).
|
||||
- The errors of the blend spine commands (Move Spine Point, Reshape Spine Segment, Add Spine Point and Delete Spine Point) show in the status bar in the interface language: each has a row in every catalog that translates all status and error messages and in Bulgarian (`blend_spine_param_errors_are_translated`).
|
||||
- The errors of the parameter checks that many commands share show in the status bar in the interface language: a value that is not a number where a number goes (`object.move` with `"dx": "60 mm"`, and `object.rotate`, `object.setBounds` and the other commands that call `check_numbers`), a missing number or index, `ids` that are not a list of object ids, an object id that is not a non-negative integer or names no object, and a date that is not Unix seconds. Each has a row in every catalog that translates all status and error messages, and in Bulgarian, Danish, Indonesian and Dutch (`shared_param_check_errors_are_translated`).
|
||||
@@ -1120,6 +1121,7 @@ applies to fills). Tests: `color::gradient::tests` (perceptual midpoint, expansi
|
||||
| 2026-10-24 | minor | UI chrome: Preferences › General › Corner Radius is the Rounded Rectangle tool's radius and follows the radius set while drawing (#394); score unchanged at 80% (estimated), ~15 Preferences options still stored but unused. |
|
||||
| 2026-10-25 | minor | Transform Each opens on the values it was last confirmed with (Copy aside) and has a Copy button instead of a Copy checkbox (#1732, public doc cited for Copy; the remembered values are a maintainer's call on the issue). Scores and hours unchanged. |
|
||||
| 2026-10-24 | minor | Recolor Artwork › Assign: double-clicking a row's new color opens the Color Picker over the dialog; its OK sets the row's new color in the model it was picked in (a CMYK mix stays CMYK, RGB becomes CMYK in a CMYK document), Cancel leaves the row as it was. A Lab new color is kept, but a Lab color can't be typed yet: the picker's Lab fields work in RGB, as for fill and stroke (part of #4028; Lab entry, swatch libraries and the row menu remain). Scores and estimates unchanged. |
|
||||
| 2026-10-25 | minor | UI: the Transform panel menu's Transform Object Only / Pattern Only / Both and Use Registration Point for Symbol act in the Transform panel and the Properties panel's Transform section; evidence added; scores unchanged. |
|
||||
| 2026-10-24 | minor | Live Paint: Make, Merge and the Live Paint Bucket refuse type, images and other objects that aren't paths, with a message to convert them first, and change nothing; before, they vanished among the group's hidden sources (public doc cited). Scores and hours unchanged. |
|
||||
| 2026-10-24 | minor | Properties: the overview's contextual controls: Blend Options and Merge Live Paint in Quick Actions, the Width Profile list and an applied effect's Delete icon in Appearance, the kind and radius of Direct-Selected corners (public doc cited) (G1). Scores and hours unchanged. |
|
||||
| 2026-10-24 | minor | Commands: a command whose params take `ids?\|id?` (or `id?, ids?: … (instead of id)`) takes `id` as `ids` of one with nothing selected too, instead of refusing it as "nothing selected" (29 such commands needed a selection); Invert, Complement, Gradient Vector and Make Pixel Perfect act on the object given as `id`; an `id` or `ids` that is malformed or names no object is refused under the command's name instead of the selection standing in for it (`plugin.run`'s required `id`, the plug-in's, is not an object) (`tests_ids_without_selection::id_does_what_ids_of_one_does_with_nothing_selected`, `a_bad_id_is_refused_as_the_same_ids_are_and_changes_nothing`); scores unchanged |
|
||||
|
||||
+3
-1
@@ -1,6 +1,6 @@
|
||||
# UI and interaction parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-26 · **Change:** minor (General › Corner Radius acts for the Rounded Rectangle tool (#394); previously:; Pencil Fidelity down to 0.01 pt on a logarithmic slider with fitting key steps (#3328); scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; bezier drag previews follow the pointer back into the window and to the release, #834; Guides: a path moved by a press on its stroke or beside its edge, and a straight segment Direct Selection drags, snap by the nearest point of the path, landing exactly on a ruler guide (#3701); scores and estimates unchanged; previously:; Artboard Options honors Scale Artwork with Artboard for preset, orientation and typed-size changes; both Fits keep artwork stationary; scores and estimates unchanged; Tangent and straight-segment perpendicular snapping use saved Smart Guides Geometric Guides preferences and Control bar quick access (#2537); no View submenu; G13: gradient Method (Illustrator 30.0): a Method menu in the Gradient panel, Classic or Perceptual (`paint.editGradient`/`paint.setFill` `method`, saved in the native file only when Perceptual, so older files open as Classic); Perceptual mixes a linear or radial gradient's colours in OKLab, on the canvas and in raster exports, and SVG and PDF exports write it as an image at the Document Raster Effects resolution, as the public documentation describes; Classic draws as before; a dithered Perceptual fill takes dither's noise; score and hours unchanged; G13: gradient Dither (Illustrator 30.0): a Dither box in the Gradient panel (`paint.editGradient`/`paint.setFill` `dither`, saved in the native file) draws a linear or radial gradient fill with seeded fine noise that hides banding, on the canvas and in raster exports; SVG and PDF exports write the fill as an image at the Document Raster Effects resolution, as the public documentation describes dither; fills only, as documented; score and hours unchanged; Recolor Artwork Edit chips scroll within the available screen height (#3416); small palettes retain their tab height; scores and estimates unchanged; Blend panel Type and Ramp control step easing with a separate color Shift (#2539); Blend Options retains spacing and orientation; polynomial curves are original approximations; Panels dock into any dock group or the icon column by dragging (UI.6), workspaces keep their layout changes (UI.7), dock groups collapse to their tabs by a double-click (UI.8); scores unchanged; Shape Builder Gap Detection shares Live Paint’s spatial gap finder and temporary merge bridges (#2526); Custom is capped at 72 pt in the existing options dialog; 3D: original Standard, Diffuse, Top Left and Right lighting presets; command access, effective-setting recognition and preview/history; scores and estimates unchanged; one selected clip group's Properties panel has Edit Clipping Path and Edit Contents at its top, G1; Distribute Objects and Distribute Spacing space from a key guide (#3165) with the Distribute Spacing value; Distribute spaces selected ruler guides with the objects, #1597 in part; the selection tools take a clipping path on its outline, over the art it clips; Polygon and Star exact-size placement remembers the chosen count for later drags and dialog openings; Cancel preserves the previous count; Live trace result bounds and selection highlights exclude the retained bitmap except in source-image views; a ruler guide can be the key object Align aligns to, and selected guides align to a key object, #2143; Pencil: Alt key toggles to Smooth Tool, #2001; status-readout sample widths cached by language, document unit and pixels per point; status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; cached canvas dimensions match the renderer limit before cache-key creation, view construction and worker submission; cached canvas reprojection preserves scale during resize, rotation and DPI changes; on-canvas Mirror Repeat axis, #2877; Background Export progress dialog with Cancel, #2564; 3D lighting: one to ten colored lights, smooth colored Inflate, legacy white-light appearance preserved; surface batching and restored seam minimum; scores and estimates unchanged; Blend spine Anchor Point conversions, selection/stacking priority and Shift regression coverage (#2544); scores and hours unchanged; Artboard Options' X and Y with a reference point, #1876; scores unchanged; library panels: one per library, dockable and tabbable, with Persistent, #2603; the Selection tool threads text from the out port, #2572 in part; scores unchanged; Group Selection picks and moves one path of a compound path, #2441 in part; the Move dialog opens on the last move and its last checkboxes; scores unchanged; transparency grid visibility saved in native documents, #1968; Live Corners radius up to the neighbouring cuts, #2332; Image Trace quick presets: wording corrected to the shipped Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-26 · **Change:** minor (Transform panel menu: Transform Object Only / Pattern Only / Both and Use Registration Point for Symbol; previously:; General › Corner Radius acts for the Rounded Rectangle tool (#394); previously:; Pencil Fidelity down to 0.01 pt on a logarithmic slider with fitting key steps (#3328); scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; bezier drag previews follow the pointer back into the window and to the release, #834; Guides: a path moved by a press on its stroke or beside its edge, and a straight segment Direct Selection drags, snap by the nearest point of the path, landing exactly on a ruler guide (#3701); scores and estimates unchanged; previously:; Artboard Options honors Scale Artwork with Artboard for preset, orientation and typed-size changes; both Fits keep artwork stationary; scores and estimates unchanged; Tangent and straight-segment perpendicular snapping use saved Smart Guides Geometric Guides preferences and Control bar quick access (#2537); no View submenu; G13: gradient Method (Illustrator 30.0): a Method menu in the Gradient panel, Classic or Perceptual (`paint.editGradient`/`paint.setFill` `method`, saved in the native file only when Perceptual, so older files open as Classic); Perceptual mixes a linear or radial gradient's colours in OKLab, on the canvas and in raster exports, and SVG and PDF exports write it as an image at the Document Raster Effects resolution, as the public documentation describes; Classic draws as before; a dithered Perceptual fill takes dither's noise; score and hours unchanged; G13: gradient Dither (Illustrator 30.0): a Dither box in the Gradient panel (`paint.editGradient`/`paint.setFill` `dither`, saved in the native file) draws a linear or radial gradient fill with seeded fine noise that hides banding, on the canvas and in raster exports; SVG and PDF exports write the fill as an image at the Document Raster Effects resolution, as the public documentation describes dither; fills only, as documented; score and hours unchanged; Recolor Artwork Edit chips scroll within the available screen height (#3416); small palettes retain their tab height; scores and estimates unchanged; Blend panel Type and Ramp control step easing with a separate color Shift (#2539); Blend Options retains spacing and orientation; polynomial curves are original approximations; Panels dock into any dock group or the icon column by dragging (UI.6), workspaces keep their layout changes (UI.7), dock groups collapse to their tabs by a double-click (UI.8); scores unchanged; Shape Builder Gap Detection shares Live Paint’s spatial gap finder and temporary merge bridges (#2526); Custom is capped at 72 pt in the existing options dialog; 3D: original Standard, Diffuse, Top Left and Right lighting presets; command access, effective-setting recognition and preview/history; scores and estimates unchanged; one selected clip group's Properties panel has Edit Clipping Path and Edit Contents at its top, G1; Distribute Objects and Distribute Spacing space from a key guide (#3165) with the Distribute Spacing value; Distribute spaces selected ruler guides with the objects, #1597 in part; the selection tools take a clipping path on its outline, over the art it clips; Polygon and Star exact-size placement remembers the chosen count for later drags and dialog openings; Cancel preserves the previous count; Live trace result bounds and selection highlights exclude the retained bitmap except in source-image views; a ruler guide can be the key object Align aligns to, and selected guides align to a key object, #2143; Pencil: Alt key toggles to Smooth Tool, #2001; status-readout sample widths cached by language, document unit and pixels per point; status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; cached canvas dimensions match the renderer limit before cache-key creation, view construction and worker submission; cached canvas reprojection preserves scale during resize, rotation and DPI changes; on-canvas Mirror Repeat axis, #2877; Background Export progress dialog with Cancel, #2564; 3D lighting: one to ten colored lights, smooth colored Inflate, legacy white-light appearance preserved; surface batching and restored seam minimum; scores and estimates unchanged; Blend spine Anchor Point conversions, selection/stacking priority and Shift regression coverage (#2544); scores and hours unchanged; Artboard Options' X and Y with a reference point, #1876; scores unchanged; library panels: one per library, dockable and tabbable, with Persistent, #2603; the Selection tool threads text from the out port, #2572 in part; scores unchanged; Group Selection picks and moves one path of a compound path, #2441 in part; the Move dialog opens on the last move and its last checkboxes; scores unchanged; transparency grid visibility saved in native documents, #1968Line truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -180,6 +180,7 @@ tools, never checked side by side) isn't captured row by row.
|
||||
| Transform Objects beside Transform Patterns in the Move, Rotate, Scale, Reflect and Shear dialogs and Transform Each; Reflect across an angle | done | #1448, #1460; off, only the pattern tiles transform; the checkboxes are always enabled (our choice); the link that keeps Transform Each's two scales equal is missing (not documented) |
|
||||
| Split Into Grid dialog: number, height or width, gutter and total for rows and columns, Add Guides, Preview | done | #1462; opens at the selection's size; several paths become one grid painted as the topmost one; a typed height or width keeps the gutter and changes the total (our choice) |
|
||||
| Reference point locator (nine squares) in Control bar and Transform panel | done | |
|
||||
| Transform panel menu: Transform Object Only, Transform Pattern Only, Transform Both (one checked), Use Registration Point for Symbol | done | `transformPanelPatterns` (`object`, `pattern`, `both`) sends `objects` and `patterns` with every field, flip and menu flip of the Transform panel and the Properties panel's Transform section; `useRegistrationPointForSymbol` makes them measure and transform one selected symbol instance from its symbol's registration point (Symbol Options › Registration), where the instance's flips, rotations and shears put it, instead of the reference point; the Properties panel's rotation and flips turn and mirror about it too ([Transform panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html)); until a choice is made (`default`) the panels follow General › Transform Pattern Tiles as before, the menu checking Transform Both while it is on and Transform Object Only while it is off |
|
||||
| Transform panel, Properties and Control bar X/Y/W/H of the anchor points selected with Direct Selection | done | #1839 (fixes #1824): they show and edit the selected points' bounds; a whole-object selection is unchanged |
|
||||
|
||||
## Nudging, numeric entry and precision
|
||||
@@ -353,6 +354,7 @@ separate. Scores and hours unchanged. [Behavior and command details](development
|
||||
| 2026-10-24 | minor | G12: General › Corner Radius is the Rounded Rectangle tool's radius, a change while the tool is active reaches it, and the radius ↑/↓ set while drawing (or a Tool Options value) becomes the preference, within 0–1296 pt (#394, `crates/engine/src/tests_constrain_tools.rs`); no entry closed, estimate unchanged. |
|
||||
| 2026-10-25 | minor | Transform Each opens on the values it was last confirmed with (Copy aside) and has a Copy button left of Cancel instead of a Copy checkbox (#1732). Scores and estimates unchanged. |
|
||||
| 2026-10-24 | minor | Recolor Artwork › Assign: double-clicking a row's new color opens the Color Picker over the dialog; its OK sets the row's new color in the model it was picked in (a CMYK mix stays CMYK, RGB becomes CMYK in a CMYK document), Cancel leaves the row as it was. A Lab new color is kept, but a Lab color can't be typed yet: the picker's Lab fields work in RGB, as for fill and stroke (part of #4028; Lab entry, swatch libraries and the row menu remain). Scores and estimates unchanged. |
|
||||
| 2026-10-25 | minor | Transform panel menu: Transform Object Only / Pattern Only / Both and Use Registration Point for Symbol act in the Transform panel and the Properties panel's Transform section; scores and estimates unchanged |
|
||||
| 2026-10-24 | minor | Properties: Merge Live Paint shows only when the selection holds nothing Live Paint refuses (type, images and other objects that aren't paths), which `livePaint.merge` and Make now refuse too. Scores unchanged. |
|
||||
| 2026-10-24 | minor | G1: Properties has the additional contextual controls of the public Properties panel overview: Blend Options and Merge Live Paint in Quick Actions, the Width Profile list and an applied effect's Delete icon in Appearance, and the kind and radius of corners selected with Direct Selection. Scores unchanged. |
|
||||
| 2026-10-24 | minor | Docs catch-up: Relative rounding (#3091) marked done; the stale "Video rulers: missing" duplicate row removed (done, #2849). Scores and estimates unchanged. |
|
||||
|
||||
Reference in new issue
Block a user