mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
Type: selected type shows its in and out ports, and the in port threads backwards
Squashed from #3817 onto main.
This commit is contained in:
1 parent
b321a77d38
commit
f247772042
15 files changed
+619
-142
No files matched your search
@@ -28,7 +28,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
"Thread Text",
|
||||
[],
|
||||
None,
|
||||
"{from, to?, rect?: [x, y, width, height], at?: [x, y]} thread area type or type on a path `from` (a click on its out port) into one more frame, put after it in its thread: closed path, area type or type on a path `to`, a new rectangle `rect`, or a new frame of `from`'s kind, shape and size with its top-left at `at` (give one of the three) → {id}; the two frames are selected",
|
||||
"{from, to?, rect?: [x, y, width, height], at?: [x, y], before?} thread area type or type on a path `from` (a click on its out port) into one more frame, put after it in its thread, or before it with `before: true` (a click on its in port: the story starts there and flows on into `from`): closed path, area type or type on a path `to`, a new rectangle `rect`, or a new frame of `from`'s kind, shape and size with its top-left at `at` (give one of the three) → {id}; the two frames are selected",
|
||||
has_doc,
|
||||
add
|
||||
),
|
||||
@@ -263,11 +263,12 @@ fn create(s: &mut Session, _: &Value) -> Result<Value> {
|
||||
Ok(json!({ "ids": out.iter().map(|i| i.0).collect::<Vec<_>>() }))
|
||||
}
|
||||
|
||||
/// `text.thread.add`: the out port's loaded text, placed.
|
||||
/// `text.thread.add`: the loaded text of a port, placed.
|
||||
fn add(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
const C: &str = "text.thread.add";
|
||||
let given = |k: &str| p.get(k).filter(|v| !v.is_null());
|
||||
let from = checked_id(s, given("from").unwrap_or(&Value::Null), C)?;
|
||||
let before = switch_or(p, "before", false, C)?;
|
||||
let d = &s.doc()?.doc;
|
||||
let src = text_of(d, from).ok_or_else(|| bad(C, "`from` must be area type or type on a path"))?;
|
||||
let style = src.first_style();
|
||||
@@ -330,9 +331,10 @@ fn add(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
};
|
||||
match d.text_threads.iter_mut().find(|t| t.contains(&from)) {
|
||||
Some(t) => {
|
||||
let at = t.iter().position(|x| *x == from).map_or(t.len(), |i| i + 1);
|
||||
let at = t.iter().position(|x| *x == from).map_or(t.len(), |i| if before { i } else { i + 1 });
|
||||
t.insert(at, to);
|
||||
}
|
||||
None if before => d.text_threads.push(vec![to, from]),
|
||||
None => d.text_threads.push(vec![from, to]),
|
||||
}
|
||||
// Force a re-flow of the thread on this edit: the edit leaves existing area type `to`
|
||||
@@ -618,6 +620,35 @@ mod tests {
|
||||
assert_eq!(threads(&s), [[a, c, d]]);
|
||||
}
|
||||
|
||||
/// #2572: the text loaded from an in port threads back: the new frame or the path clicked comes
|
||||
/// before the frame it was loaded from, so the story starts there and flows on into it; in the
|
||||
/// middle of a thread the new frame goes in between, each in one undo step.
|
||||
#[test]
|
||||
fn add_before_threads_the_story_from_the_new_frame_into_the_clicked_one() {
|
||||
let (mut s, a, b) = setup();
|
||||
let c = new_id(s.execute("text.thread.add", &json!({"from": a, "at": [400, 200], "before": true})).unwrap());
|
||||
assert_eq!(threads(&s), [[c, a]]);
|
||||
assert_eq!(frame_box(&s, c), vectorcraft_geom::Rect::new(400.0, 200.0, 550.0, 260.0), "the clicked frame's size at the click");
|
||||
assert!(TEXT.repeat(4).starts_with(&text(&s, c)) && !text(&s, c).is_empty(), "the story starts in the new frame: {:?}", text(&s, c));
|
||||
assert_eq!(format!("{}{}", text(&s, c), text(&s, a)), TEXT.repeat(4));
|
||||
assert_eq!(s.doc().unwrap().selection.objects, [NodeId(a), NodeId(c)]);
|
||||
// In between the frame and the one before it.
|
||||
let d = new_id(s.execute("text.thread.add", &json!({"from": a, "rect": [10, 100, 300, 150], "before": true})).unwrap());
|
||||
assert_eq!(threads(&s), [[c, d, a]]);
|
||||
assert_eq!(format!("{}{}{}", text(&s, c), text(&s, d), text(&s, a)), TEXT.repeat(4));
|
||||
s.execute("edit.undo", &json!({})).unwrap();
|
||||
assert_eq!(threads(&s), [[c, a]]);
|
||||
// A closed path clicked with the in port's text comes first, with the start of the story.
|
||||
s.execute("edit.undo", &json!({})).unwrap();
|
||||
assert_eq!(new_id(s.execute("text.thread.add", &json!({"from": a, "to": b, "before": true})).unwrap()), b);
|
||||
assert_eq!(threads(&s), [[b, a]]);
|
||||
assert!(TEXT.repeat(4).starts_with(&text(&s, b)) && !text(&s, b).is_empty());
|
||||
assert_eq!(format!("{}{}", text(&s, b), text(&s, a)), TEXT.repeat(4));
|
||||
// `before: false` is the out port's.
|
||||
let e = new_id(s.execute("text.thread.add", &json!({"from": a, "at": [0, 0], "before": false})).unwrap());
|
||||
assert_eq!(threads(&s), [[b, a, e]]);
|
||||
}
|
||||
|
||||
/// Type on a path along a line beside the area type of [`setup`].
|
||||
fn type_on_a_line(s: &mut Session) -> u64 {
|
||||
let line = new_id(s.execute("shape.line", &json!({"x1": 10, "y1": 250, "x2": 110, "y2": 250})).unwrap());
|
||||
@@ -692,6 +723,8 @@ mod tests {
|
||||
json!({"from": a, "rect": [0, 0, 10, 0]}),
|
||||
json!({"from": a, "rect": [0, 0, 10]}),
|
||||
json!({"from": a, "rect": "big"}),
|
||||
json!({"from": a, "at": [0, 0], "before": "yes"}),
|
||||
json!({"from": a, "at": [0, 0], "before": 1}),
|
||||
] {
|
||||
assert!(s.execute("text.thread.add", &p).is_err(), "{p} was accepted");
|
||||
assert!(std::sync::Arc::ptr_eq(&s.doc().unwrap().doc, &before), "{p} changed the document");
|
||||
|
||||
@@ -1432,8 +1432,8 @@ pub struct Session {
|
||||
pub(crate) pointer_held: bool,
|
||||
/// A guide being dragged out of a ruler ([`Session::ruler_guide`]).
|
||||
pub(crate) ruler_guide: Option<vectorcraft_tools::rulerguide::NewGuide>,
|
||||
/// Which selected type overflows its frame, for the markers every tool but the Type tools shows.
|
||||
pub(crate) overflow_marks: vectorcraft_tools::text::OverflowMarks,
|
||||
/// Which selected type overflows its frame, for the ports every tool but the Type tools shows.
|
||||
pub(crate) port_marks: vectorcraft_tools::text::PortMarks,
|
||||
/// The last search for the files of missing fonts (`text.findFontFiles`), until another
|
||||
/// starts; dropping it stops it.
|
||||
pub(crate) font_search: Option<cmd::fontfiles::FontSearch>,
|
||||
@@ -1527,7 +1527,7 @@ impl Session {
|
||||
plane_widget_press: false,
|
||||
pointer_held: false,
|
||||
ruler_guide: None,
|
||||
overflow_marks: Default::default(),
|
||||
port_marks: Default::default(),
|
||||
font_search: None,
|
||||
link_search: None,
|
||||
search_rules: None,
|
||||
|
||||
@@ -1216,3 +1216,33 @@ fn clicking_the_out_port_then_the_canvas_threads_the_text_into_a_new_frame() {
|
||||
assert_eq!(format!("{}{}", obj(&s, id).plain_text(), obj(&s, thread[1]).plain_text()), long);
|
||||
assert_eq!(&undo_labels(&s)[steps..], ["Thread Text"]);
|
||||
}
|
||||
|
||||
/// #2572: with the Selection tool, area type whose text fits shows both ports, and a click on its
|
||||
/// in port then on empty canvas makes a new frame the story starts in, flowing on into the frame
|
||||
/// clicked, in one undo step; the ports then show the thread's arrows.
|
||||
#[test]
|
||||
fn clicking_the_in_port_then_the_canvas_threads_a_new_frame_before_it() {
|
||||
let mut s = session();
|
||||
let v = ViewInfo::default();
|
||||
let words = "Words that fit. ";
|
||||
let r = s.execute("text.create", &json!({"x": 50, "y": 50, "text": words, "size": 12, "area": {"width": 100, "height": 40}})).unwrap();
|
||||
let id = NodeId(r["id"].as_u64().unwrap());
|
||||
s.execute("select.set", &json!({"ids": [id.0]})).unwrap();
|
||||
s.select_tool("selection", v).unwrap();
|
||||
let boxes = |s: &mut Session| {
|
||||
s.overlays(v).iter().filter(|o| matches!(o, vectorcraft_tools::Overlay::Highlight { color: [255, 255, 255, 255], .. })).count()
|
||||
};
|
||||
assert_eq!(boxes(&mut s), 2, "an in port and an out port");
|
||||
let steps = undo_labels(&s).len();
|
||||
click(&mut s, 50.0, 50.0 + vectorcraft_tools::text::PORT_RISE_PX);
|
||||
assert_eq!(s.cursor(Point::new(400.0, 400.0), Mods::default(), v), vectorcraft_tools::Cursor::LoadedText);
|
||||
click(&mut s, 400.0, 400.0);
|
||||
let doc = &s.doc().unwrap().doc;
|
||||
let [thread] = &doc.text_threads[..] else { panic!("one thread: {:?}", doc.text_threads) };
|
||||
assert_eq!(thread[1], id, "the frame clicked comes second");
|
||||
assert_eq!(format!("{}{}", obj(&s, thread[0]).plain_text(), obj(&s, id).plain_text()), words);
|
||||
assert!(!obj(&s, thread[0]).plain_text().is_empty(), "the story starts in the new frame");
|
||||
assert_eq!(&undo_labels(&s)[steps..], ["Thread Text"]);
|
||||
let strokes = s.overlays(v).iter().filter(|o| matches!(o, vectorcraft_tools::Overlay::Line { .. })).count();
|
||||
assert_eq!(strokes, 6, "both frames selected: the first one's out port and the second one's in port show arrows");
|
||||
}
|
||||
@@ -473,11 +473,11 @@ impl Session {
|
||||
|
||||
pub fn overlays(&mut self, view: ViewInfo) -> Vec<Overlay> {
|
||||
let mut v = self.with_tool_cx(view, |t, cx| t.overlays(cx));
|
||||
// The Type tools draw the overflow markers of selected type themselves.
|
||||
// The Type tools draw the ports of selected type themselves.
|
||||
if !matches!(self.tool.id(), "type" | "areaType" | "typeOnPath" | "verticalType" | "verticalAreaType" | "verticalTypeOnPath") {
|
||||
let mut marks = std::mem::take(&mut self.overflow_marks);
|
||||
v.extend(self.with_tool_cx(view, |_, cx| vectorcraft_tools::text::overflow_markers(&mut marks, cx)));
|
||||
self.overflow_marks = marks;
|
||||
let mut marks = std::mem::take(&mut self.port_marks);
|
||||
v.extend(self.with_tool_cx(view, |_, cx| vectorcraft_tools::text::thread_ports(&mut marks, cx)));
|
||||
self.port_marks = marks;
|
||||
}
|
||||
if let Some(g) = self.ruler_guide.take() {
|
||||
v.extend(self.with_tool_cx(view, |_, cx| g.overlays(cx)));
|
||||
|
||||
@@ -130,7 +130,7 @@ look = "Arrow with a type badge (a letter T)."
|
||||
id = "LoadedText"
|
||||
group = "Selection"
|
||||
shown_when = [
|
||||
"The Selection tool after a click on the red out port of selected area type or type on a path whose text overflows: the pointer carries that text until a click threads it into a closed path, area type or type on a path, a click on empty canvas makes a new frame of the same kind and shape there, or a drag draws the new frame. Escape or another tool drops it.",
|
||||
"The Selection tool after a click on the out port or the in port of selected area type or type on a path, threaded, overflowing or not: the pointer carries that text until a click threads it into a closed path, area type or type on a path, a click on empty canvas makes a new frame of the same kind and shape there, or a drag draws the new frame; from the in port the frame placed comes before the clicked one. Escape or another tool drops it.",
|
||||
]
|
||||
hotspot = "Where the new frame's top-left corner goes (the click), or the path clicked."
|
||||
look = "A small block of text lines: the overflow text the pointer carries. Until it is drawn it borrows the I-beam (Text)."
|
||||
|
||||
@@ -561,8 +561,8 @@ pub enum Cursor {
|
||||
/// Over the type widget of selected type (a double-click converts point type to area type and
|
||||
/// back): the arrow with a type badge.
|
||||
TypeWidget,
|
||||
/// The Selection tool loaded with the text of the out port of area type or type on a path (a
|
||||
/// click threads it into a path or a new frame, a drag draws the new frame).
|
||||
/// The Selection tool loaded with the text of area type or type on a path by a click on its out
|
||||
/// or in port (a click threads it into a path or a new frame, a drag draws the new frame).
|
||||
LoadedText,
|
||||
/// The Shape Builder: a crosshair with a plus (merge mode)...
|
||||
ShapeBuilder,
|
||||
|
||||
+104
-24
@@ -17,11 +17,13 @@
|
||||
//! scaling its type: the text reflows at its size.
|
||||
//! E pressed during a marquee drag makes the marquee take only the objects entirely inside it, and
|
||||
//! E pressed again makes it take the objects it touches.
|
||||
//! A click on the red out port of selected area type or type on a path whose text overflows loads
|
||||
//! the pointer with that text ([`Cursor::LoadedText`]): the next click threads it into the closed
|
||||
//! path, area type or type on a path under the pointer, or into a new frame of the same kind, shape
|
||||
//! and size at the click on empty canvas,
|
||||
//! and a drag draws a rectangle for the new frame (`text.thread.add`). Escape drops the loaded text.
|
||||
//! Selected area type and type on a path show an in port and an out port. A click on the out port
|
||||
//! loads the pointer with the text ([`Cursor::LoadedText`]): the next click threads it into the
|
||||
//! closed path, area type or type on a path under the pointer, or into a new frame of the same
|
||||
//! kind, shape and size at the click on empty canvas, and a drag draws a rectangle for the new
|
||||
//! frame (`text.thread.add`), which comes after the clicked one in its thread. A click on the in
|
||||
//! port does the same with the new frame put before it: the story then starts there and flows on
|
||||
//! into the clicked one. Escape drops the loaded text.
|
||||
//! With Smart Guides and Invoke Distance Guides on, Alt/Option held over another object shows how
|
||||
//! far the selection is from it, and over an empty part of an artboard how far it is from the
|
||||
//! artboard's edges ([`crate::guides::distance_guides`]).
|
||||
@@ -90,10 +92,12 @@ enum State {
|
||||
Mirror(crate::mirror::MirrorDrag),
|
||||
/// Dragging a bracket of type on a path.
|
||||
Bracket(BracketDrag),
|
||||
/// Loaded with the text of area type or type on a path `from` by a click on its out port;
|
||||
/// Loaded with the text of area type or type on a path `from` by a click on its out port, or
|
||||
/// on its in port (`before`: the frame it goes into comes before `from` in its thread);
|
||||
/// `press`: where the next press went down and where the pointer is now.
|
||||
Loaded {
|
||||
from: NodeId,
|
||||
before: bool,
|
||||
press: Option<(Point, Point)>,
|
||||
},
|
||||
}
|
||||
@@ -483,20 +487,25 @@ impl SelectionTool {
|
||||
}
|
||||
|
||||
/// The pointer loaded with the text of area type or type on a path `from` ([`State::Loaded`]):
|
||||
/// a press starts placing it, and its release threads it (`text.thread.add`). None when `from`
|
||||
/// can no longer thread: the press is an ordinary one.
|
||||
fn loaded(&mut self, cx: &ToolContext, ev: &PointerEvent, from: NodeId, press: Option<(Point, Point)>) -> Option<Vec<Action>> {
|
||||
/// a press starts placing it, and its release threads it (`text.thread.add`), into a frame put
|
||||
/// `before` `from` or after it. None when `from` can no longer thread: the press is an
|
||||
/// ordinary one.
|
||||
fn loaded(&mut self, cx: &ToolContext, ev: &PointerEvent, from: NodeId, before: bool, press: Option<(Point, Point)>) -> Option<Vec<Action>> {
|
||||
let p = ev.pos;
|
||||
match (ev.kind, press) {
|
||||
(PointerKind::Down, _) if !cx.doc.node(from).is_some_and(is_threadable) => {
|
||||
self.state = State::Idle;
|
||||
return None;
|
||||
}
|
||||
(PointerKind::Down, _) => self.state = State::Loaded { from, press: Some((p, p)) },
|
||||
(PointerKind::Drag, Some((start, _))) => self.state = State::Loaded { from, press: Some((start, p)) },
|
||||
(PointerKind::Down, _) => self.state = State::Loaded { from, before, press: Some((p, p)) },
|
||||
(PointerKind::Drag, Some((start, _))) => self.state = State::Loaded { from, before, press: Some((start, p)) },
|
||||
(PointerKind::Up, Some((start, _))) => {
|
||||
self.state = State::Idle;
|
||||
return Some(vec![Action::Exec("text.thread.add".into(), thread_params(cx, from, start, p))]);
|
||||
let mut params = thread_params(cx, from, start, p);
|
||||
if before {
|
||||
params["before"] = json!(true);
|
||||
}
|
||||
return Some(vec![Action::Exec("text.thread.add".into(), params)]);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
@@ -589,8 +598,8 @@ impl Tool for SelectionTool {
|
||||
let hovering = ev.kind == PointerKind::Move && matches!(self.state, State::Idle);
|
||||
self.alt_hover = hovering && ev.mods.alt;
|
||||
self.distance = hovering.then(|| distance_target(cx, ev.pos, ev.mods)).flatten();
|
||||
if let State::Loaded { from, press } = self.state
|
||||
&& let Some(out) = self.loaded(cx, ev, from, press)
|
||||
if let State::Loaded { from, before, press } = self.state
|
||||
&& let Some(out) = self.loaded(cx, ev, from, before, press)
|
||||
{
|
||||
return out;
|
||||
}
|
||||
@@ -663,9 +672,10 @@ impl Tool for SelectionTool {
|
||||
vec![]
|
||||
}
|
||||
(PointerKind::Down, _) => {
|
||||
// 0. The out port of selected area type: the pointer takes its text.
|
||||
if let Some(from) = crate::text::out_port_at(cx, p) {
|
||||
self.state = State::Loaded { from, press: None };
|
||||
// 0. A port of selected area type or type on a path: the pointer takes its text,
|
||||
// to thread on from the out port or back from the in port.
|
||||
if let Some((from, port)) = crate::text::port_at(cx, p) {
|
||||
self.state = State::Loaded { from, before: port == crate::text::Port::In, press: None };
|
||||
return vec![];
|
||||
}
|
||||
// 1. Live Corners widgets, pie widgets and type on a path's brackets, then the
|
||||
@@ -2541,10 +2551,9 @@ mod tests {
|
||||
assert_eq!(a, vec![Action::Exec("view.guides.release".into(), json!({"ids": [id.0]}))]);
|
||||
}
|
||||
|
||||
/// Escape drops the loaded text, and the next click is an ordinary one; type that fits its
|
||||
/// frame shows no out port to click.
|
||||
/// Escape drops the loaded text, and the next click is an ordinary one.
|
||||
#[test]
|
||||
fn escape_drops_the_loaded_text_and_type_that_fits_has_no_port() {
|
||||
fn escape_drops_the_loaded_text() {
|
||||
let (d, id, _, port) = overflowing_area_type();
|
||||
let mut s = Selection::default();
|
||||
s.set([id]);
|
||||
@@ -2559,15 +2568,86 @@ mod tests {
|
||||
assert_ne!(t.cursor(&cx, Point::new(30.0, 420.0), Mods::default()), Cursor::LoadedText);
|
||||
t.pointer(&cx, &ev(PointerKind::Down, 30.0, 420.0));
|
||||
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 30.0, 420.0)), vec![Action::Exec("select.none".into(), json!({}))]);
|
||||
}
|
||||
|
||||
/// [`doc_with_area_type`], its text fitting its frame; where its in and out ports are.
|
||||
fn fitting_area_type() -> (vectorcraft_doc::Document, NodeId, Point, Point) {
|
||||
let (d, id) = doc_with_area_type();
|
||||
let Some(vectorcraft_doc::NodeKind::Text(t)) = d.node(id).map(|n| &n.kind) else { panic!("not text") };
|
||||
assert!(!vectorcraft_text::layout(vectorcraft_text::FontDb::global(), t).overflow, "the text fits");
|
||||
// On the left side below the top-left corner, on the right side above the bottom-right one.
|
||||
let (input, output) = (t.xf * Point::new(0.0, crate::text::PORT_RISE_PX), t.xf * Point::new(120.0, 40.0 - crate::text::PORT_RISE_PX));
|
||||
(d, id, input, output)
|
||||
}
|
||||
|
||||
/// #2572: selected area type has both ports to click whether its text fits or not; other
|
||||
/// points of its frame, and type that isn't selected, have none.
|
||||
#[test]
|
||||
fn every_selected_area_type_has_an_in_and_an_out_port() {
|
||||
use crate::text::{Port, port_at};
|
||||
let (d, id, input, output) = fitting_area_type();
|
||||
let p = paint();
|
||||
let mut s = Selection::default();
|
||||
assert_eq!(port_at(&cx(&d, &s, &p), output), None, "not selected");
|
||||
s.set([id]);
|
||||
let cx = cx(&d, &s, &p);
|
||||
assert_eq!(port_at(&cx, output), Some((id, Port::Out)));
|
||||
assert_eq!(port_at(&cx, input), Some((id, Port::In)));
|
||||
assert_eq!(port_at(&cx, Point::new(input.x + 4.0, input.y + 4.0)), Some((id, Port::In)), "the box around it");
|
||||
assert_eq!(port_at(&cx, Point::new(input.x + 12.0, input.y)), None);
|
||||
assert_eq!(port_at(&cx, Point::new(output.x, output.y + crate::text::PORT_RISE_PX)), None, "the corner");
|
||||
}
|
||||
|
||||
/// #2572: a click on the out port of type that fits loads its text as well; the next click
|
||||
/// threads it into a new frame after it.
|
||||
#[test]
|
||||
fn a_click_on_the_out_port_of_type_that_fits_starts_threading() {
|
||||
let (d, id, _, output) = fitting_area_type();
|
||||
let mut s = Selection::default();
|
||||
s.set([id]);
|
||||
let cx = crate::testutil::cx(&d, &s, &p);
|
||||
let p = paint();
|
||||
let cx = cx(&d, &s, &p);
|
||||
let mut t = SelectionTool::default();
|
||||
t.pointer(&cx, &ev(PointerKind::Down, port.x, port.y));
|
||||
t.pointer(&cx, &ev(PointerKind::Up, port.x, port.y));
|
||||
assert_ne!(t.cursor(&cx, Point::new(30.0, 420.0), Mods::default()), Cursor::LoadedText);
|
||||
assert!(t.pointer(&cx, &ev(PointerKind::Down, output.x, output.y)).is_empty());
|
||||
assert!(t.pointer(&cx, &ev(PointerKind::Up, output.x, output.y)).is_empty());
|
||||
assert_eq!(t.cursor(&cx, Point::new(30.0, 420.0), Mods::default()), Cursor::LoadedText);
|
||||
t.pointer(&cx, &ev(PointerKind::Down, 30.0, 420.0));
|
||||
assert_eq!(
|
||||
t.pointer(&cx, &ev(PointerKind::Up, 30.0, 420.0)),
|
||||
vec![Action::Exec("text.thread.add".into(), json!({"from": id.0, "at": [30.0, 420.0]}))]
|
||||
);
|
||||
}
|
||||
|
||||
/// #2572: a click on the in port loads the text to thread backwards: the next click on empty
|
||||
/// canvas, on a closed path or a drag makes the frame the story flows from into this one
|
||||
/// (`before`). The corner handle above the in port still resizes the frame.
|
||||
#[test]
|
||||
fn a_click_on_the_in_port_threads_into_a_frame_before_it() {
|
||||
let (d, id, input, _) = fitting_area_type();
|
||||
let rect = d.children(Some(d.layers[0].id)).unwrap()[0].id;
|
||||
let mut s = Selection::default();
|
||||
s.set([id]);
|
||||
let p = paint();
|
||||
let cx = cx(&d, &s, &p);
|
||||
let mut t = SelectionTool::default();
|
||||
let thread = |params: Value| vec![Action::Exec("text.thread.add".into(), params)];
|
||||
let load = |t: &mut SelectionTool| {
|
||||
assert!(t.pointer(&cx, &ev(PointerKind::Down, input.x, input.y)).is_empty());
|
||||
assert!(t.pointer(&cx, &ev(PointerKind::Up, input.x, input.y)).is_empty());
|
||||
assert_eq!(t.cursor(&cx, Point::new(30.0, 420.0), Mods::default()), Cursor::LoadedText);
|
||||
};
|
||||
load(&mut t);
|
||||
t.pointer(&cx, &ev(PointerKind::Down, 30.0, 420.0));
|
||||
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 30.0, 420.0)), thread(json!({"from": id.0, "at": [30.0, 420.0], "before": true})));
|
||||
load(&mut t);
|
||||
t.pointer(&cx, &ev(PointerKind::Down, 150.0, 150.0));
|
||||
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 150.0, 150.0)), thread(json!({"from": id.0, "to": rect.0, "before": true})));
|
||||
load(&mut t);
|
||||
t.pointer(&cx, &ev(PointerKind::Down, 20.0, 20.0));
|
||||
t.pointer(&cx, &ev(PointerKind::Drag, 80.0, 90.0));
|
||||
assert_eq!(t.pointer(&cx, &ev(PointerKind::Up, 80.0, 90.0)), thread(json!({"from": id.0, "rect": [20.0, 20.0, 60.0, 70.0], "before": true})));
|
||||
let corner = Point::new(input.x, input.y - crate::text::PORT_RISE_PX);
|
||||
assert_eq!(t.pointer(&cx, &ev(PointerKind::Down, corner.x, corner.y)), vec![Action::Begin("Resize Type Area".into())]);
|
||||
}
|
||||
|
||||
/// The memo answers for the revision, the selected objects and Use Preview Bounds it measured
|
||||
|
||||
+154
-60
@@ -326,97 +326,188 @@ impl TypeTool {
|
||||
out.push(Action::Notify("text.editNew".into()));
|
||||
out
|
||||
}
|
||||
|
||||
fn overflow_marker(t: &TextObject, lay: &TextLayout, cx: &ToolContext, o: &mut Vec<Overlay>) {
|
||||
if lay.overflow {
|
||||
overflow_port(t, cx, o);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// How far (screen px) the out port of area type sits above the bottom-right corner of its frame,
|
||||
/// on its right side: clear of the bounding box's corner handle, so both can be grabbed.
|
||||
/// How far (screen px) the ports of area type sit from the frame's corners, along its sides: the
|
||||
/// out port above the bottom-right corner on the right side, the in port below the top-left corner
|
||||
/// on the left side, clear of the bounding box's corner handles, so both can be grabbed.
|
||||
pub const PORT_RISE_PX: f64 = 12.0;
|
||||
/// Half the out port's side (screen px).
|
||||
/// Half a port's side (screen px).
|
||||
const PORT_HALF_PX: f64 = 4.5;
|
||||
/// The red of the out port of text that doesn't fit.
|
||||
const OVERFLOW_RED: [u8; 3] = [230, 30, 30];
|
||||
|
||||
/// Centre of the out port of `t`: on the right side of an area type frame just above its
|
||||
/// bottom-right corner ([`PORT_RISE_PX`]), and for type on a path just past its end bracket, where
|
||||
/// its text stops, clear of the bracket, which drags.
|
||||
fn out_port(t: &TextObject, cx: &ToolContext) -> Option<Point> {
|
||||
/// One of the two ports of area type or type on a path: its story flows in through the in port
|
||||
/// and on through the out port.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum Port {
|
||||
In,
|
||||
Out,
|
||||
}
|
||||
|
||||
/// What a port shows: empty when the frame is not threaded on that side (and, for the out port,
|
||||
/// all its text is seen), an arrow when it is threaded to another frame there, a red "+" in the out
|
||||
/// port when its text doesn't fit.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum PortState {
|
||||
Empty,
|
||||
Threaded,
|
||||
Overflow,
|
||||
}
|
||||
|
||||
/// Centre of `port` of `t`, `px` document units to the screen pixel: area type's on its frame's
|
||||
/// sides by [`PORT_RISE_PX`] from the corners; type on a path's along its path, as far past its end
|
||||
/// bracket (out) or before its start bracket (in), clear of the brackets, which drag.
|
||||
pub fn port_centre(t: &TextObject, port: Port, px: f64) -> Option<Point> {
|
||||
let rise = PORT_RISE_PX * px;
|
||||
match &t.kind {
|
||||
TextKind::Area { frame } => {
|
||||
let b = frame.bounds()?;
|
||||
let corner = t.xf * Point::new(b.x1, b.y1);
|
||||
let up = t.xf * Point::new(b.x1, b.y0) - corner;
|
||||
let len = up.hypot();
|
||||
Some(if len > 1e-9 && len.is_finite() { corner + up * (cx.tol(PORT_RISE_PX).min(len / 2.0) / len) } else { corner })
|
||||
// The corner the port sits by, and the far end of the side it sits on.
|
||||
let (corner, far) = match port {
|
||||
Port::Out => (Point::new(b.x1, b.y1), Point::new(b.x1, b.y0)),
|
||||
Port::In => (Point::new(b.x0, b.y0), Point::new(b.x0, b.y1)),
|
||||
};
|
||||
let (corner, side) = (t.xf * corner, t.xf * far - t.xf * corner);
|
||||
let len = side.hypot();
|
||||
Some(if len > 1e-9 && len.is_finite() { corner + side * (rise.min(len / 2.0) / len) } else { corner })
|
||||
}
|
||||
TextKind::OnPath { path, .. } => {
|
||||
let arc = vectorcraft_geom::ArcPath::new(path);
|
||||
let (_, end) = t.kind.path_span()?;
|
||||
let (start, end) = t.kind.path_span()?;
|
||||
if arc.is_empty() {
|
||||
return None;
|
||||
}
|
||||
let (p, dir) = arc.at(end * arc.len());
|
||||
let (at, away) = match port {
|
||||
Port::Out => (end, rise),
|
||||
Port::In => (start, -rise),
|
||||
};
|
||||
let (p, dir) = arc.at(at * arc.len());
|
||||
let (at, ahead) = (t.xf * p, t.xf * (p + dir) - t.xf * p);
|
||||
let len = ahead.hypot();
|
||||
Some(if len > 1e-9 && len.is_finite() { at + ahead * (cx.tol(PORT_RISE_PX) / len) } else { at })
|
||||
Some(if len > 1e-9 && len.is_finite() { at + ahead * (away / len) } else { at })
|
||||
}
|
||||
TextKind::Point => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// The red "+" out port of `t` (area type and type on a path whose text doesn't fit), at [`out_port`].
|
||||
fn overflow_port(t: &TextObject, cx: &ToolContext, o: &mut Vec<Overlay>) {
|
||||
let Some(c) = out_port(t, cx) else { return };
|
||||
let h = cx.tol(PORT_HALF_PX);
|
||||
let r = Rect::new(c.x - h, c.y - h, c.x + h, c.y + h);
|
||||
let red = [230, 30, 30];
|
||||
o.push(Overlay::Path { path: r.to_path(0.1), color: red, width: 1.0, dashed: false });
|
||||
let (k, m) = (cx.tol(2.5), r.center());
|
||||
o.push(Overlay::Line { a: Point::new(m.x - k, m.y), b: Point::new(m.x + k, m.y), color: red, dashed: false });
|
||||
o.push(Overlay::Line { a: Point::new(m.x, m.y - k), b: Point::new(m.x, m.y + k), color: red, dashed: false });
|
||||
/// What the in and out ports of frame `id` of `d` show, its text `overflow`ing or not: an arrow
|
||||
/// where a frame of its thread comes before (in) or after (out) it, else a red "+" in the out port
|
||||
/// of text that doesn't fit, else nothing.
|
||||
pub fn port_states(d: &vectorcraft_doc::Document, id: NodeId, overflow: bool) -> (PortState, PortState) {
|
||||
let thread = d.text_threads.iter().find(|t| t.contains(&id));
|
||||
let at = thread.and_then(|t| t.iter().position(|x| *x == id));
|
||||
let input = if at.is_some_and(|i| i > 0) { PortState::Threaded } else { PortState::Empty };
|
||||
let output = match (thread, at) {
|
||||
(Some(t), Some(i)) if i + 1 < t.len() => PortState::Threaded,
|
||||
_ if overflow => PortState::Overflow,
|
||||
_ => PortState::Empty,
|
||||
};
|
||||
(input, output)
|
||||
}
|
||||
|
||||
/// The selected area type or type on a path whose red out port is under `p` (only text that
|
||||
/// overflows shows one): a click there loads the Selection tool with its text, to thread into
|
||||
/// another frame.
|
||||
pub(crate) fn out_port_at(cx: &ToolContext, p: Point) -> Option<NodeId> {
|
||||
/// A port at `c` showing `state`, `px` document units to the screen pixel: a white box outlined in
|
||||
/// `color` (the frame's layer colour; red for text that doesn't fit), with a red "+" or an arrow
|
||||
/// pointing the way the story flows.
|
||||
pub fn push_port(o: &mut Vec<Overlay>, c: Point, state: PortState, color: [u8; 3], px: f64) {
|
||||
let h = PORT_HALF_PX * px;
|
||||
let r = Rect::new(c.x - h, c.y - h, c.x + h, c.y + h);
|
||||
let color = if state == PortState::Overflow { OVERFLOW_RED } else { color };
|
||||
let corners = [Point::new(r.x0, r.y0), Point::new(r.x1, r.y0), Point::new(r.x1, r.y1), Point::new(r.x0, r.y1)];
|
||||
o.push(Overlay::Highlight { quad: corners, color: [255, 255, 255, 255] });
|
||||
o.push(Overlay::Path { path: r.to_path(0.1), color, width: 1.0, dashed: false });
|
||||
let k = 2.5 * px;
|
||||
let line = |a: Point, b: Point| Overlay::Line { a, b, color, dashed: false };
|
||||
match state {
|
||||
PortState::Empty => {}
|
||||
PortState::Overflow => {
|
||||
o.push(line(Point::new(c.x - k, c.y), Point::new(c.x + k, c.y)));
|
||||
o.push(line(Point::new(c.x, c.y - k), Point::new(c.x, c.y + k)));
|
||||
}
|
||||
PortState::Threaded => {
|
||||
let tip = Point::new(c.x + k, c.y);
|
||||
o.push(line(Point::new(c.x - k, c.y), tip));
|
||||
o.push(line(Point::new(c.x, c.y - k), tip));
|
||||
o.push(line(Point::new(c.x, c.y + k), tip));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The in and out ports of area type or type on a path `t`, frame `id`, its text `overflow`ing or
|
||||
/// not ([`port_states`]).
|
||||
fn ports(cx: &ToolContext, id: NodeId, t: &TextObject, overflow: bool, o: &mut Vec<Overlay>) {
|
||||
let (input, output) = port_states(cx.doc, id, overflow);
|
||||
let (color, px) = (cx.doc.layer_color(id), cx.tol(1.0));
|
||||
for (port, state) in [(Port::In, input), (Port::Out, output)] {
|
||||
if let Some(c) = port_centre(t, port, px) {
|
||||
push_port(o, c, state, color, px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The most selected area type and type on a path whose ports are drawn and take clicks: selecting
|
||||
/// all of an opened PDF can select tens of thousands of type objects, whose ports would only bury
|
||||
/// the canvas (and the GPU's buffers) in boxes.
|
||||
pub const PORTS_MAX: usize = 1_000;
|
||||
|
||||
/// The text of `id` in `d` when it has ports: area type or type on a path a thread can hold, not in
|
||||
/// perspective ([`crate::select::is_threadable`]). The one test for drawing ports, clicking them and
|
||||
/// counting them toward [`PORTS_MAX`].
|
||||
pub fn ported(d: &vectorcraft_doc::Document, id: NodeId) -> Option<&TextObject> {
|
||||
match d.node(id).filter(|n| crate::select::is_threadable(n)).map(|n| &n.kind) {
|
||||
Some(NodeKind::Text(t)) => Some(t),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
/// Are at most [`PORTS_MAX`] of `selected` [`ported`] (counting stops past it), so that their
|
||||
/// ports show?
|
||||
pub fn ports_shown(d: &vectorcraft_doc::Document, selected: &[NodeId]) -> bool {
|
||||
selected.iter().filter(|id| ported(d, **id).is_some()).take(PORTS_MAX + 1).count() <= PORTS_MAX
|
||||
}
|
||||
|
||||
/// The selected area type or type on a path with a port under `p`, and which port: a click on the
|
||||
/// out port loads the Selection tool with its text to thread into another frame after it, a click
|
||||
/// on the in port to thread into one before it. Every such frame has both ports, threaded,
|
||||
/// overflowing or not, while their ports show ([`PORTS_MAX`]).
|
||||
pub(crate) fn port_at(cx: &ToolContext, p: Point) -> Option<(NodeId, Port)> {
|
||||
if !ports_shown(cx.doc, &cx.selection.objects) {
|
||||
return None;
|
||||
}
|
||||
let h = cx.tol(PORT_HALF_PX + 1.0);
|
||||
let near = |t: &TextObject| out_port(t, cx).is_some_and(|c| (c.x - p.x).abs() <= h && (c.y - p.y).abs() <= h);
|
||||
cx.selection.objects.iter().copied().find(|id| {
|
||||
cx.doc
|
||||
.node(*id)
|
||||
.filter(|n| crate::select::is_threadable(n))
|
||||
.and_then(|_| TypeTool::text(cx, *id))
|
||||
.is_some_and(|t| near(t) && vectorcraft_text::layout(FontDb::global(), t).overflow)
|
||||
let near = |c: Point| (c.x - p.x).abs() <= h && (c.y - p.y).abs() <= h;
|
||||
cx.selection.objects.iter().find_map(|id| {
|
||||
let t = ported(cx.doc, *id)?;
|
||||
[Port::Out, Port::In].into_iter().find(|port| port_centre(t, *port, cx.tol(1.0)).is_some_and(near)).map(|port| (*id, port))
|
||||
})
|
||||
}
|
||||
|
||||
/// Which selected text overflows, for [`overflow_markers`]: each text object's layout verdict kept
|
||||
/// Which selected text overflows, for [`thread_ports`]: each text object's layout verdict kept
|
||||
/// with the object and the fonts it was made from, as overlays run every frame.
|
||||
#[derive(Default)]
|
||||
pub struct OverflowMarks {
|
||||
pub struct PortMarks {
|
||||
seen: std::collections::HashMap<NodeId, ((u64, TextObject), bool)>,
|
||||
}
|
||||
|
||||
/// The overflow markers of the selected area type and type on a path, for every tool but the Type
|
||||
/// tools (they draw their own): an out port with a red "+" tells that text is hidden by the size of
|
||||
/// its frame, whatever tool is active.
|
||||
pub fn overflow_markers(marks: &mut OverflowMarks, cx: &ToolContext) -> Vec<Overlay> {
|
||||
/// The in and out ports of the selected area type and type on a path, for every tool but the Type
|
||||
/// tools (they draw their own): each tells whether the frame is threaded on that side and the out
|
||||
/// port whether text is hidden by the size of its frame, whatever tool is active. None when more
|
||||
/// than [`PORTS_MAX`] of them are selected.
|
||||
pub fn thread_ports(marks: &mut PortMarks, cx: &ToolContext) -> Vec<Overlay> {
|
||||
let fonts = FontDb::global().generation();
|
||||
let mut o = Vec::new();
|
||||
let mut kept = std::collections::HashMap::new();
|
||||
if !ports_shown(cx.doc, &cx.selection.objects) {
|
||||
marks.seen = kept;
|
||||
return o;
|
||||
}
|
||||
for id in &cx.selection.objects {
|
||||
let Some(t) = TypeTool::text(cx, *id).filter(|t| !matches!(t.kind, TextKind::Point)) else { continue };
|
||||
let Some(t) = ported(cx.doc, *id) else { continue };
|
||||
let over = match marks.seen.remove(id) {
|
||||
Some(((g, was), over)) if g == fonts && &was == t => over,
|
||||
_ => vectorcraft_text::layout(FontDb::global(), t).overflow,
|
||||
};
|
||||
if over {
|
||||
overflow_port(t, cx, &mut o);
|
||||
}
|
||||
ports(cx, *id, t, over, &mut o);
|
||||
kept.insert(*id, ((fonts, t.clone()), over));
|
||||
}
|
||||
marks.seen = kept;
|
||||
@@ -887,14 +978,15 @@ impl Tool for TypeTool {
|
||||
o.push(Overlay::Measure { p: d, text: cx.size_label(size.width, size.height) });
|
||||
}
|
||||
}
|
||||
// Overflow markers on selected text.
|
||||
for id in &cx.selection.objects {
|
||||
if Some(*id) == self.editing {
|
||||
continue;
|
||||
}
|
||||
if let Some(t) = Self::text(cx, *id) {
|
||||
let lay = self.layout(t);
|
||||
Self::overflow_marker(t, &lay, cx, &mut o);
|
||||
// The ports of selected area type and type on a path, as many as show ([`PORTS_MAX`]), the
|
||||
// edited one's included.
|
||||
let shown = ports_shown(cx.doc, &cx.selection.objects);
|
||||
if shown {
|
||||
for id in cx.selection.objects.iter().filter(|id| Some(**id) != self.editing) {
|
||||
if let Some(t) = ported(cx.doc, *id) {
|
||||
let lay = self.layout(t);
|
||||
ports(cx, *id, t, lay.overflow, &mut o);
|
||||
}
|
||||
}
|
||||
}
|
||||
let Some(t) = self.current(cx) else { return o };
|
||||
@@ -936,7 +1028,9 @@ impl Tool for TypeTool {
|
||||
o.push(Overlay::Highlight { quad: q.map(|p| t.xf * p), color: [60, 120, 255, 90] });
|
||||
}
|
||||
}
|
||||
Self::overflow_marker(&t, &lay, cx, &mut o);
|
||||
if let Some(id) = self.editing.filter(|id| shown && ported(cx.doc, *id).is_some()) {
|
||||
ports(cx, id, &t, lay.overflow, &mut o);
|
||||
}
|
||||
o
|
||||
}
|
||||
fn cursor(&self, cx: &ToolContext, p: Point, _m: Mods) -> Cursor {
|
||||
|
||||
@@ -746,20 +746,135 @@ fn a_drag_or_a_click_on_other_type_while_editing_acts_at_once() {
|
||||
assert_eq!(tool.editing, Some(other));
|
||||
}
|
||||
|
||||
/// Selected area type whose text doesn't fit its frame shows the red out port with any tool, not
|
||||
/// only the Type tools (#2323); text that fits shows none.
|
||||
/// #2572: selected area type shows its in and out ports with any tool, not only the Type tools
|
||||
/// (#2323): empty while its text fits and it isn't threaded, the out port's red "+" when the text
|
||||
/// doesn't fit, an arrow in the port on the side where it is threaded.
|
||||
#[test]
|
||||
fn overflowing_selected_type_shows_its_marker_without_the_type_tool() {
|
||||
fn selected_type_shows_its_ports_in_each_state() {
|
||||
let (mut d, id) = crate::testutil::doc_with_area_type();
|
||||
let (mut sel, p) = (Selection::default(), paint());
|
||||
sel.set([id]);
|
||||
let mut marks = OverflowMarks::default();
|
||||
assert!(overflow_markers(&mut marks, &cx(&d, &sel, &p)).is_empty(), "the text fits");
|
||||
let mut marks = PortMarks::default();
|
||||
// (white boxes, outlines, glyph strokes, red outlines)
|
||||
let count = |ov: &[Overlay]| {
|
||||
let n = |f: &dyn Fn(&Overlay) -> bool| ov.iter().filter(|o| f(o)).count();
|
||||
(
|
||||
n(&|o| matches!(o, Overlay::Highlight { color: [255, 255, 255, 255], .. })),
|
||||
n(&|o| matches!(o, Overlay::Path { .. })),
|
||||
n(&|o| matches!(o, Overlay::Line { .. })),
|
||||
n(&|o| matches!(o, Overlay::Path { color: [230, 30, 30], .. })),
|
||||
)
|
||||
};
|
||||
assert_eq!(count(&thread_ports(&mut marks, &cx(&d, &sel, &p))), (2, 2, 0, 0), "the text fits: two empty ports");
|
||||
let Some(NodeKind::Text(t)) = d.node(id).map(|n| &n.kind) else { panic!("not text") };
|
||||
let (input, output) = (t.xf * Point::new(0.0, PORT_RISE_PX), t.xf * Point::new(120.0, 40.0 - PORT_RISE_PX));
|
||||
let near = |a: Option<Point>, b: Point| a.is_some_and(|a| a.distance(b) < 1e-9);
|
||||
assert!(near(port_centre(t, Port::In, 1.0), input), "on the left side, below the top-left corner");
|
||||
assert!(near(port_centre(t, Port::Out, 1.0), output), "on the right side, above the bottom-right corner");
|
||||
let ov = thread_ports(&mut marks, &cx(&d, &sel, &p));
|
||||
let box_at = |c: Point| ov.iter().any(|o| matches!(o, Overlay::Highlight { quad, .. } if quad[0].midpoint(quad[2]).distance(c) < 1e-9));
|
||||
assert!(box_at(input) && box_at(output), "{ov:?}");
|
||||
if let Some(NodeKind::Text(t)) = d.node_mut(id).map(|n| &mut n.kind) {
|
||||
t.runs = vec![TextRun::new("Words that fill more than the frame holds. ".repeat(20), CharStyle { size: 20.0, ..Default::default() })];
|
||||
}
|
||||
let ov = overflow_markers(&mut marks, &cx(&d, &sel, &p));
|
||||
assert_eq!(ov.len(), 3, "a box and a plus: {ov:?}");
|
||||
assert_eq!(count(&thread_ports(&mut marks, &cx(&d, &sel, &p))), (2, 2, 2, 1), "an empty in port and the red plus");
|
||||
assert_eq!(port_states(&d, id, true), (PortState::Empty, PortState::Overflow));
|
||||
// Threaded on both sides: arrows (three strokes each), the out port's in place of the plus.
|
||||
let (a, b) = (d.alloc_id(), d.alloc_id());
|
||||
d.text_threads = vec![vec![a, id, b]];
|
||||
assert_eq!(port_states(&d, id, true), (PortState::Threaded, PortState::Threaded));
|
||||
assert_eq!(count(&thread_ports(&mut marks, &cx(&d, &sel, &p))), (2, 2, 6, 0));
|
||||
d.text_threads = vec![vec![id, a]];
|
||||
assert_eq!(port_states(&d, id, false), (PortState::Empty, PortState::Threaded));
|
||||
d.text_threads = vec![vec![a, id]];
|
||||
assert_eq!(port_states(&d, id, false), (PortState::Threaded, PortState::Empty));
|
||||
assert_eq!(port_states(&d, id, true), (PortState::Threaded, PortState::Overflow), "the last frame's text doesn't fit");
|
||||
sel.clear();
|
||||
assert!(overflow_markers(&mut marks, &cx(&d, &sel, &p)).is_empty(), "only selected type shows it");
|
||||
assert!(thread_ports(&mut marks, &cx(&d, &sel, &p)).is_empty(), "only selected type shows them");
|
||||
}
|
||||
|
||||
/// Past [`PORTS_MAX`] selected frames (select all of an opened PDF) no ports are drawn or clicked:
|
||||
/// they would bury the canvas in boxes; up to it every frame has its two.
|
||||
#[test]
|
||||
fn a_huge_selection_of_type_shows_no_ports() {
|
||||
let (mut d, id) = crate::testutil::doc_with_area_type();
|
||||
let node = d.node(id).unwrap().clone();
|
||||
let l = d.layers[0].id;
|
||||
let mut sel = Selection::default();
|
||||
sel.set([id]);
|
||||
for _ in 0..PORTS_MAX {
|
||||
let copy = d.alloc_id();
|
||||
d.insert(Some(l), 1, Node::new(copy, node.kind.clone())).unwrap();
|
||||
sel.add(copy);
|
||||
}
|
||||
let p = paint();
|
||||
let Some(NodeKind::Text(t)) = d.node(id).map(|n| &n.kind) else { panic!("not text") };
|
||||
let out = port_centre(t, Port::Out, 1.0).unwrap();
|
||||
let mut marks = PortMarks::default();
|
||||
assert!(thread_ports(&mut marks, &cx(&d, &sel, &p)).is_empty());
|
||||
assert_eq!(port_at(&cx(&d, &sel, &p), out), None);
|
||||
sel.remove(id);
|
||||
let ports = thread_ports(&mut marks, &cx(&d, &sel, &p));
|
||||
assert_eq!(ports.iter().filter(|o| matches!(o, Overlay::Highlight { .. })).count(), 2 * PORTS_MAX, "at the limit");
|
||||
}
|
||||
|
||||
/// Type in perspective has no ports, as it can't thread ([`crate::select::is_threadable`]): none
|
||||
/// are drawn with any tool, the Type tools included, and it doesn't count toward [`PORTS_MAX`].
|
||||
#[test]
|
||||
fn type_in_perspective_has_no_ports_and_doesnt_count() {
|
||||
let (mut d, id) = crate::testutil::doc_with_area_type();
|
||||
d.node_mut(id).unwrap().extras_mut().perspective = Some(Box::new(vectorcraft_doc::PerspectiveAttachment::new("left", 0.0)));
|
||||
let (mut sel, p) = (Selection::default(), paint());
|
||||
sel.set([id]);
|
||||
let mut marks = PortMarks::default();
|
||||
assert!(thread_ports(&mut marks, &cx(&d, &sel, &p)).is_empty(), "no ports on type in perspective");
|
||||
let boxes = |o: &[Overlay]| o.iter().filter(|o| matches!(o, Overlay::Highlight { color: [255, 255, 255, 255], .. })).count();
|
||||
assert_eq!(boxes(&TypeTool::new("type").overlays(&cx(&d, &sel, &p))), 0, "nor with the Type tool");
|
||||
// With PORTS_MAX frames that have ports selected besides it, theirs still show.
|
||||
let mut node = d.node(id).unwrap().clone();
|
||||
node.extras_mut().perspective = None;
|
||||
let l = d.layers[0].id;
|
||||
for _ in 0..PORTS_MAX {
|
||||
let copy = d.alloc_id();
|
||||
d.insert(Some(l), 1, Node::new(copy, node.kind.clone())).unwrap();
|
||||
sel.add(copy);
|
||||
}
|
||||
assert_eq!(boxes(&thread_ports(&mut marks, &cx(&d, &sel, &p))), 2 * PORTS_MAX);
|
||||
}
|
||||
|
||||
/// The Type tool draws the ports of the type it edits as of the rest of the selection: none past
|
||||
/// [`PORTS_MAX`] selected frames, where they can't be clicked either.
|
||||
#[test]
|
||||
fn the_edited_types_ports_follow_the_limit_too() {
|
||||
let (mut d, id) = crate::testutil::doc_with_area_type();
|
||||
let node = d.node(id).unwrap().clone();
|
||||
let l = d.layers[0].id;
|
||||
let mut sel = Selection::default();
|
||||
sel.set([id]);
|
||||
for _ in 1..PORTS_MAX {
|
||||
let copy = d.alloc_id();
|
||||
d.insert(Some(l), 1, Node::new(copy, node.kind.clone())).unwrap();
|
||||
sel.add(copy);
|
||||
}
|
||||
let p = paint();
|
||||
let mut tool = TypeTool::new("type");
|
||||
tool.start_editing(id, 0);
|
||||
let boxes = |o: &[Overlay]| o.iter().filter(|o| matches!(o, Overlay::Highlight { color: [255, 255, 255, 255], .. })).count();
|
||||
assert_eq!(boxes(&tool.overlays(&cx(&d, &sel, &p))), 2 * PORTS_MAX, "at the limit, the edited one's included");
|
||||
let copy = d.alloc_id();
|
||||
d.insert(Some(l), 1, Node::new(copy, node.kind.clone())).unwrap();
|
||||
sel.add(copy);
|
||||
assert_eq!(boxes(&tool.overlays(&cx(&d, &sel, &p))), 0, "past it, not even the edited one's");
|
||||
}
|
||||
|
||||
/// Type on a path has its in port just before its start bracket and its out port just past its
|
||||
/// end bracket, along the path, clear of the brackets.
|
||||
#[test]
|
||||
fn type_on_a_path_has_its_ports_beyond_its_brackets() {
|
||||
let (d, id) = crate::testutil::doc_with_path_type();
|
||||
let Some(NodeKind::Text(t)) = d.node(id).map(|n| &n.kind) else { panic!("not text") };
|
||||
let near = |a: Option<Point>, b: Point| a.is_some_and(|a| a.distance(b) < 1e-6);
|
||||
assert!(near(port_centre(t, Port::In, 1.0), Point::new(160.0 - PORT_RISE_PX, 300.0)), "{:?}", port_centre(t, Port::In, 1.0));
|
||||
assert!(near(port_centre(t, Port::Out, 1.0), Point::new(400.0 + PORT_RISE_PX, 300.0)), "{:?}", port_centre(t, Port::Out, 1.0));
|
||||
assert!(near(port_centre(t, Port::In, 0.5), Point::new(160.0 - PORT_RISE_PX / 2.0, 300.0)), "screen pixels at 200%");
|
||||
}
|
||||
+123
-16
@@ -652,7 +652,10 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
selection_overlay(app, &painter, &xf, overlays.iter().any(|o| matches!(o, Overlay::CurvePoint { .. })));
|
||||
mirror_axis_overlay(app, &painter, &xf);
|
||||
if app.ui.view.text_threads {
|
||||
thread_overlay(app, &painter, &xf);
|
||||
// Under the tools' overlays: a selected frame's own ports are drawn over its thread's.
|
||||
let mut threads = thread_overlays(app, xf.zoom);
|
||||
threads.append(&mut overlays);
|
||||
overlays = threads;
|
||||
}
|
||||
if app.ui.view.live_paint_gaps {
|
||||
overlays.extend(live_paint_gap_overlays(app));
|
||||
@@ -2577,28 +2580,36 @@ impl HiddenMarks {
|
||||
}
|
||||
}
|
||||
|
||||
/// Text threads of the selected frames: a line from each frame's out port (on its right side,
|
||||
/// just above the bottom right, where the tools draw the red one) to the next frame's in port (top
|
||||
/// left), like Illustrator's thread indicators.
|
||||
fn thread_overlay(app: &VectorcraftApp, p: &egui::Painter, xf: &Xf) {
|
||||
let Some(st) = app.session.active() else { return };
|
||||
/// View › Show Text Threads: for each thread with a selected frame, a line in its first frame's
|
||||
/// layer colour from each frame's out port to the next frame's in port, both showing the arrow of a
|
||||
/// threaded port, where the tools draw the ports of selected type ([`vectorcraft_tools::text`]).
|
||||
/// Only frames with ports ([`vectorcraft_tools::text::ported`]) are joined: a link to or from a
|
||||
/// frame in perspective, which has none, gets no line. With more than
|
||||
/// [`vectorcraft_tools::text::PORTS_MAX`] such frames selected the tools draw no ports, and only
|
||||
/// the lines are drawn here. `zoom`: screen pixels to the document unit.
|
||||
fn thread_overlays(app: &VectorcraftApp, zoom: f64) -> Vec<Overlay> {
|
||||
use vectorcraft_tools::text::{Port, PortState, port_centre, ported, ports_shown, push_port};
|
||||
let Some(st) = app.session.active() else { return vec![] };
|
||||
let px = 1.0 / zoom.max(1e-9);
|
||||
let boxes = ports_shown(&st.doc, &st.selection.objects);
|
||||
let mut o = vec![];
|
||||
for thread in &st.doc.text_threads {
|
||||
if !thread.iter().any(|id| st.selection.objects.contains(id)) {
|
||||
continue;
|
||||
}
|
||||
let color = c32(st.doc.layer_color(thread[0]));
|
||||
let frames: Vec<vectorcraft_geom::Rect> = thread.iter().filter_map(|id| st.doc.node(*id).and_then(|n| n.geometric_bounds())).collect();
|
||||
for w in frames.windows(2) {
|
||||
let rise = (vectorcraft_tools::text::PORT_RISE_PX / xf.zoom.max(1e-9)).min(w[0].height() / 2.0);
|
||||
let (out, inp) = (xf.to_screen(Point::new(w[0].x1, w[0].y1 - rise)), xf.to_screen(Point::new(w[1].x0, w[1].y0)));
|
||||
p.line_segment([out, inp], Stroke::new(1.0, color));
|
||||
for port in [out, inp] {
|
||||
p.rect_filled(egui::Rect::from_center_size(port, egui::vec2(7.0, 7.0)), 0.0, Color32::WHITE);
|
||||
p.rect_stroke(egui::Rect::from_center_size(port, egui::vec2(7.0, 7.0)), 0.0, Stroke::new(1.0, color), egui::StrokeKind::Inside);
|
||||
p.line_segment([port - egui::vec2(2.0, 0.0), port + egui::vec2(2.0, 0.0)], Stroke::new(1.0, color));
|
||||
let color = st.doc.layer_color(thread[0]);
|
||||
for w in thread.windows(2) {
|
||||
let [a, b] = [w[0], w[1]];
|
||||
let (Some(from), Some(to)) = (ported(&st.doc, a), ported(&st.doc, b)) else { continue };
|
||||
let (Some(out), Some(input)) = (port_centre(from, Port::Out, px), port_centre(to, Port::In, px)) else { continue };
|
||||
o.push(Overlay::Line { a: out, b: input, color, dashed: false });
|
||||
if boxes {
|
||||
push_port(&mut o, out, PortState::Threaded, st.doc.layer_color(a), px);
|
||||
push_port(&mut o, input, PortState::Threaded, st.doc.layer_color(b), px);
|
||||
}
|
||||
}
|
||||
}
|
||||
o
|
||||
}
|
||||
|
||||
/// View → Show Live Paint Gaps: the gaps of the selected Live Paint groups in each group's Gap
|
||||
@@ -9991,4 +10002,100 @@ mod tests {
|
||||
.collect();
|
||||
assert!(!baselines.is_empty(), "selected text shows baseline alongside bounding box");
|
||||
}
|
||||
|
||||
/// #2572: Show Text Threads links a thread's frames from the out port of one to the in port of
|
||||
/// the next, where the tools draw those ports, each with the arrow of a threaded port; nothing
|
||||
/// is drawn while no frame of the thread is selected.
|
||||
#[test]
|
||||
fn text_threads_run_from_each_out_port_to_the_next_in_port() {
|
||||
use vectorcraft_tools::text::{Port, port_centre};
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 600, "height": 400})).unwrap();
|
||||
let text = "Words that fill more than the frame holds. ".repeat(10);
|
||||
let a = app.run("text.create", json!({"x": 20, "y": 20, "text": text, "area": {"width": 150, "height": 60}})).unwrap()["id"].clone();
|
||||
let b = app.run("text.thread.add", json!({"from": a, "at": [300, 200]})).unwrap()["id"].clone();
|
||||
let frame = |app: &VectorcraftApp, id: &serde_json::Value| match &app
|
||||
.session
|
||||
.active()
|
||||
.unwrap()
|
||||
.doc
|
||||
.node(vectorcraft_doc::NodeId(id.as_u64().unwrap()))
|
||||
.unwrap()
|
||||
.kind
|
||||
{
|
||||
NodeKind::Text(t) => (**t).clone(),
|
||||
_ => panic!("not text"),
|
||||
};
|
||||
let zoom = 2.0;
|
||||
let (out, input) = (port_centre(&frame(&app, &a), Port::Out, 0.5).unwrap(), port_centre(&frame(&app, &b), Port::In, 0.5).unwrap());
|
||||
let o = thread_overlays(&app, zoom);
|
||||
assert!(o.iter().any(|x| matches!(x, Overlay::Line { a, b, .. } if *a == out && *b == input)), "the thread line: {o:?}");
|
||||
let boxes: Vec<Point> =
|
||||
o.iter().filter_map(|x| if let Overlay::Highlight { quad, .. } = x { Some(quad[0].midpoint(quad[2])) } else { None }).collect();
|
||||
assert_eq!(boxes.len(), 2);
|
||||
assert!(boxes[0].distance(out) < 1e-9 && boxes[1].distance(input) < 1e-9, "{boxes:?}");
|
||||
// Two arrows: three strokes each, beside the thread line.
|
||||
assert_eq!(o.iter().filter(|x| matches!(x, Overlay::Line { .. })).count(), 7);
|
||||
app.run("select.none", json!({})).unwrap();
|
||||
assert!(thread_overlays(&app, zoom).is_empty());
|
||||
}
|
||||
|
||||
/// With more than `PORTS_MAX` type objects selected the tools draw no ports, and Show Text
|
||||
/// Threads draws only its lines, no port boxes.
|
||||
#[test]
|
||||
fn text_threads_of_a_huge_selection_have_lines_but_no_ports() {
|
||||
use vectorcraft_tools::text::PORTS_MAX;
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 600, "height": 400})).unwrap();
|
||||
let text = "Words that fill more than the frame holds. ".repeat(10);
|
||||
let a = app.run("text.create", json!({"x": 20, "y": 20, "text": text, "area": {"width": 150, "height": 60}})).unwrap()["id"].clone();
|
||||
app.run("text.thread.add", json!({"from": a, "at": [300, 200]})).unwrap();
|
||||
app.run("text.create", json!({"x": 20, "y": 300, "text": "x", "area": {"width": 50, "height": 20}})).unwrap();
|
||||
while app.session.active().unwrap().doc.layers[0].children().map_or(0, |c| c.len()) <= PORTS_MAX {
|
||||
app.run("select.all", json!({})).unwrap();
|
||||
app.run("edit.duplicate", json!({})).unwrap();
|
||||
}
|
||||
app.run("select.all", json!({})).unwrap();
|
||||
let o = thread_overlays(&app, 1.0);
|
||||
assert!(o.iter().any(|x| matches!(x, Overlay::Line { .. })), "the thread lines");
|
||||
assert!(!o.iter().any(|x| matches!(x, Overlay::Highlight { .. } | Overlay::Path { .. })), "no port boxes");
|
||||
}
|
||||
|
||||
/// A frame of a thread in perspective has no ports: Show Text Threads draws no port box on it
|
||||
/// and no line to or from it; the links between frames with ports keep theirs.
|
||||
#[test]
|
||||
fn text_threads_skip_the_links_of_a_frame_in_perspective() {
|
||||
use vectorcraft_tools::text::{Port, port_centre};
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 600, "height": 400})).unwrap();
|
||||
let text = "Words that fill more than the frame holds. ".repeat(20);
|
||||
let id = |v: serde_json::Value| vectorcraft_doc::NodeId(v["id"].as_u64().unwrap());
|
||||
let a = id(app.run("text.create", json!({"x": 20, "y": 20, "text": text, "area": {"width": 150, "height": 60}})).unwrap());
|
||||
let b = id(app.run("text.thread.add", json!({"from": a.0, "at": [200, 20]})).unwrap());
|
||||
let c = id(app.run("text.thread.add", json!({"from": b.0, "at": [20, 200]})).unwrap());
|
||||
let d = id(app.run("text.thread.add", json!({"from": c.0, "at": [200, 200]})).unwrap());
|
||||
app.session
|
||||
.edit("Perspective", |doc, _| {
|
||||
if let Some(n) = doc.node_mut(b) {
|
||||
n.extras_mut().perspective = Some(Box::new(vectorcraft_doc::PerspectiveAttachment::new("left", 0.0)));
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.unwrap();
|
||||
app.run("select.set", json!({"ids": [a.0, b.0, c.0, d.0]})).unwrap();
|
||||
let st = app.session.active().unwrap();
|
||||
assert_eq!(st.doc.text_threads, [vec![a, b, c, d]], "b is still threaded");
|
||||
let frame = |id| match &st.doc.node(id).unwrap().kind {
|
||||
NodeKind::Text(t) => (**t).clone(),
|
||||
_ => panic!("not text"),
|
||||
};
|
||||
let (out, input) = (port_centre(&frame(c), Port::Out, 1.0).unwrap(), port_centre(&frame(d), Port::In, 1.0).unwrap());
|
||||
let o = thread_overlays(&app, 1.0);
|
||||
let boxes: Vec<Point> =
|
||||
o.iter().filter_map(|x| if let Overlay::Highlight { quad, .. } = x { Some(quad[0].midpoint(quad[2])) } else { None }).collect();
|
||||
assert_eq!(boxes.len(), 2, "only c's out port and d's in port: {boxes:?}");
|
||||
assert!(boxes[0].distance(out) < 1e-9 && boxes[1].distance(input) < 1e-9, "{boxes:?}");
|
||||
// One thread line (c to d) and its two arrows of three strokes each.
|
||||
assert_eq!(o.iter().filter(|x| matches!(x, Overlay::Line { .. })).count(), 7);
|
||||
}
|
||||
}
|
||||
+7
-1
@@ -1,6 +1,6 @@
|
||||
# Gaps
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (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; remaining: filter thumbnails and a preview area inside the dialog; G2 estimate 4–6 → 1–2 h; Raster effects 82% → 85% (power-user view 49% → 52%), estimated, a modest move because the named missing dialog landed without thumbnails or an in-dialog preview; previously: G4: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images; COLR and OpenType SVG fonts remain; estimate 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; G2: Effect › Sketch › Conté Crayon (Foreground Level, Background Level, Texture, Scaling, Relief, Light Direction, Invert; a black crayon in the dark areas and a white one in the light areas on textured mid-grey paper; ranges and defaults unverified VectorCraft choices); measured Photoshop-style filters 57/57, the Effect Gallery remains (4–6 h); Affinity import AF.5: master pages, tables, paragraph formats, shadows, glows, outlines, overlays and embedded documents; 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; 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; filter plug-ins read and set effect records and stroke joins, caps and miter limits, G17; 3D: original Standard, Diffuse, Top Left and Right lighting presets; command access, effective-setting recognition and previLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (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; remaining: filter thumbnails and a preview area inside the dialog; G2 estimate 4–6 → 1–2 h; Raster effects 82% → 85% (power-user view 49% → 52%), estimated, a modest move because the named missing dialog landed without thumbnails or an in-dialog preview; previously: G4: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images; COLR and OpenType SVG fonts remain; estimate 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; G2: Effect › Sketch › Conté Crayon (Foreground Level, Background Level, Texture, Scaling, Relief, Light Direction, Invert; a black crayon in the dark areas and a white one in the light areas on textured mid-grey paper; ranges and defaults unverified VectorCraft choices); measured Photoshop-style filters 57/57, the Effect Gallery remains (4–6 h); Affinity import AF.5: master pages, tables, paragraph formats, shadows, glows, outlines, overlays and embedded documents; 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; 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; filter plug-ins read and set effect records and stroke joins, caps and miter limits, G17; 3D: oriLine truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -332,6 +332,11 @@ from G14 and the budget run of G15: **~170–270 h** one agent, ~50–80 h wall
|
||||
in the run's colours where it uses `currentColor` (or the legacy `context-fill`/`context-stroke`), then drawn, exported and outlined as COLR
|
||||
glyphs are (PDF real text writes them as text that draws nothing, their art drawn where they sit). Limits: images, scripts and text
|
||||
inside glyph documents, CPAL palette variables; estimate unchanged.
|
||||
- **Done:** threading ports (#2572): every selected area type and type on a path shows an in port and an out port,
|
||||
empty, with an arrow where it is threaded or with the red "+" of text that doesn't fit; with the Selection tool a
|
||||
click on the out port of any of them loads the text to thread on, and a click on the in port threads a new or
|
||||
clicked frame before it, so the story starts there (`text.thread.add` `before`). Limits: a double-click on a port
|
||||
doesn't break the thread yet; estimate unchanged.
|
||||
- **Done:** variable fonts: the font menu's Font Technology › Variable lists only variable font families (a family
|
||||
with a variable file beside static ones included), together with the script, kind and favourites filters, as
|
||||
[Find, apply, and adjust variable fonts](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/find-apply-and-adjust-variable-fonts.html)
|
||||
@@ -585,6 +590,7 @@ trap, and the defaults (0.25 pt, 100%, 40%) are VectorCraft's own, the pages giv
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-23 | minor | G4: threading ports (#2572): every selected area type and type on a path shows its in and out ports in their states (empty, arrow, red "+"); with the Selection tool the out port of any of them loads the text and the in port threads a new or clicked frame before it; a double-click on a port breaking the thread remains; estimate unchanged |
|
||||
| 2026-10-23 | minor | G1: Distance Guides: with the Selection tool, Alt/Option over another object shows the horizontal and vertical distances between it and the selection, and over an empty part of an artboard the selection's distances from its four edges, labelled in the General unit; Preferences › Smart Guides › Invoke Distance Guides turns them off. No entry closed, estimates unchanged. |
|
||||
| 2026-10-23 | minor | No entry closed. Pathfinder › Trap: the panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps where solid colours meet; Effect › Pathfinder 13/13; Live vector effects hours 6–10 → 4–8 in target-app-parity.md. |
|
||||
| 2026-10-23 | minor | G1: a double-click on the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options; OK sets the next drag's and click's options (#2691, in part: editing a drawn grid remains); estimates unchanged |
|
||||
|
||||
+22
-15
@@ -4072,23 +4072,30 @@ chosen artboards draw all of them. A PDF leaves out the layers that don't print
|
||||
{"name":"run_command","arguments":{"command":"text.areaOptions","params":{"fit":"shrinkText","fitMinPercent":60}}}
|
||||
```
|
||||
|
||||
## Threading text from the out port
|
||||
## Threading text from the in and out ports
|
||||
|
||||
As in the reference app, a click with the Selection tool on the red "+" out port of selected area type whose text
|
||||
overflows loads the pointer with that text (the port sits on the frame's right side, just above the bottom-right
|
||||
corner, so the corner handle stays free). The next click threads the text into the closed path or area type under the
|
||||
pointer, which becomes the next frame; a click on empty canvas makes a new frame of the first one's shape and size
|
||||
with its top-left corner at the click, and a drag draws a rectangle for the new frame. Escape or another tool drops
|
||||
the loaded text. Each placement is one undo step (`text.thread.add`), which agents can run directly:
|
||||
As in the reference app, selected area type and type on a path show an in port and an out port: area type's on the
|
||||
frame's left side just below the top-left corner and on its right side just above the bottom-right corner (so the
|
||||
corner handles stay free), type on a path's just before its start bracket and just past its end bracket. A port is
|
||||
empty while the frame isn't threaded on that side, shows an arrow when it is, and the out port shows a red "+" when
|
||||
the text doesn't fit (with more than 1,000 such objects selected no ports are drawn). A click with the Selection tool
|
||||
on the out port loads the pointer with the text. The next click
|
||||
threads it into the closed path, area type or type on a path under the pointer, which becomes the next frame; a click
|
||||
on empty canvas makes a new frame of the first one's kind, shape and size with its top-left corner at the click, and a
|
||||
drag draws a rectangle for the new frame. A click on the in port works the same way, but the frame placed comes
|
||||
before the clicked one: the story starts there and flows on into it. Escape or another tool drops the loaded text.
|
||||
Each placement is one undo step (`text.thread.add`), which agents can run directly:
|
||||
|
||||
`text.thread.add {from, to? | rect?: [x, y, width, height] | at?: [x, y]}` threads area type `from` into one more
|
||||
frame, put right after it in its thread (a new thread of the two when `from` has none): `to`, a closed path (converted
|
||||
to an empty frame) or area type that is not threaded yet; `rect`, a new rectangular frame (positive width and height);
|
||||
or `at`, a new frame of `from`'s shape and size whose top-left is at `at`. Give exactly one of the three. New frames
|
||||
take `from`'s type options, paint and first character and paragraph attributes, and go just above it. The story
|
||||
reflows through the thread, the two frames are selected, and it returns `{id}`, the frame threaded into. It refuses
|
||||
an `id` that doesn't exist, a `from` that isn't area type (type on a path doesn't thread), an open path, `from`
|
||||
itself, an object inside a compound path, a frame already in a thread, and coordinates that aren't finite numbers.
|
||||
`text.thread.add {from, to? | rect?: [x, y, width, height] | at?: [x, y], before?}` threads area type or type on a
|
||||
path `from` into one more frame, put right after it in its thread (a new thread of the two when `from` has none), or
|
||||
right before it with `before: true` (the in port): `to`, a closed path (converted to an empty frame), area type or
|
||||
type on a path that is not threaded yet; `rect`, a new rectangular frame (positive width and height); or `at`, a new
|
||||
frame of `from`'s kind, shape and size whose top-left is at `at`. Give exactly one of the three. New frames take
|
||||
`from`'s type options, paint and first character and paragraph attributes, and go just above it. The story reflows
|
||||
through the thread, the two frames are selected, and it returns `{id}`, the frame threaded into. It refuses an `id`
|
||||
that doesn't exist, a `from` that is point type, a `to` that is an open path, `from` itself, inside a compound path
|
||||
or already in a thread (`from` may be threaded already: the frame goes in beside it), coordinates that aren't finite
|
||||
numbers and a `before` that isn't true or false.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"text.thread.add","params":{"from":42,"at":[300,120]}}}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Parity with Adobe Illustrator
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (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, remove) with a live canvas preview, and OK applies it as separate appearance effects in one undo step; remaining: filter thumbnails and a preview area inside the dialog; G2 estimate 4–6 → 1–2 h; Raster effects 82% → 85% (power-user view 49% → 52%), estimated, a modest move because the named missing dialog landed without thumbnails or an in-dialog preview; previously: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images, see [type-parity.md](type-parity.md); scores unchanged; imported PDF type keeps a word space between two sizes (#3623); 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; #3546: `--automation-read-root` and `--automation-write-root` may each be given more than once (`vectorcraft-cli mcp` and the desktop app); a path inside any root of its kind is allowed, every confinement check unchanged. Scores and estimates unchanged; #3147: `vectorcraft-cli run --commands FILE` (or `-`) reads the steps from a JSON file or standard input (an array or JSON Lines, at most 64 MiB and 100,000 steps), among `--cmd` and `--export` in order; errors name the step. Scores and estimates unchanged; G2: Effect › Sketch › Conté Crayon (Foreground Level, Background Level, Texture, Scaling, Relief, Light Direction, Invert; a black crayon in the dark areas and a white one in the light areas onLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (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, remove) with a live canvas preview, and OK applies it as separate appearance effects in one undo step; remaining: filter thumbnails and a preview area inside the dialog; G2 estimate 4–6 → 1–2 h; Raster effects 82% → 85% (power-user view 49% → 52%), estimated, a modest move because the named missing dialog landed without thumbnails or an in-dialog preview; previously: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images, see [type-parity.md](type-parity.md); scores unchanged; imported PDF type keeps a word space between two sizes (#3623); 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; #3546: `--automation-read-root` and `--automation-write-root` may each be given more than once (`vectorcraft-cli mcp` and the desktop app); a path inside any root of its kind is allowed, every confinement check unchanged. Scores and estimates unchanged; #3147: `vectorcraft-cli run --commands FILE` (or `-`) reads the steps from a JSON file or standard input (an array or JSON Lines, at most 64 MiB and 100,000 steps), among `--cmd` and `--export` in order; errors name the step. Scores and estimates unchanged; G2: Effect › Sketch › Conté Crayon (Foreground Level, BackgrLine truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -123,6 +123,8 @@ dominate; 3D, graphs and automation are specialist). They sum to 105. Feature de
|
||||
| Image Trace, graphs, image tools | 3 | 75% | graph Column designs, Image Trace Create Strokes depth (Create Object Mosaic is done; junction-returning piece survival has source-generated regressions in `image-trace-quality.md`; simpler contour walk, identical output; an edge's sub-pixel shift is the same from either side; notches read only their own piece; collapsed loops keep few segments, so Paths is monotone on the code-drawn sweep) | 5–8 | estimated (raised from 72%); quick presets reveal adjustment controls, Properties reopens them; Live trace result bounds and selection highlights exclude the retained bitmap except in source-image views (scores/hours unchanged) |
|
||||
| Live vector effects | 5 | 85% | Outline Object, SVG Filters, a Transform effect in a fill's or stroke's own effects ignoring Transform Patterns and Scale Strokes & Effects | 4–8 | measured count 49/50 (Pathfinder 13/13 with Trap), depth estimated; Warp Options controls verified by focused checks and original-image review |
|
||||
| 3D and Materials (and Turntable) | 4 | ~25% | live Revolve with automatic smooth vector shading and default-on continuous circular caps, Extrude & Bevel (twist, taper, caps, five bevel shapes), Inflate and Rotate with Position presets (colored Inflate uses smooth membrane lighting; white-light Inflate retains its existing shading; Extrude & Bevel and Rotate retain planar shading; one to ten colored lights, shared neutral ambient, original lighting presets, painter visibility); materials, shadows, ray tracing, 3D Classic, Turntable views, 3D export | 30–55 | estimated (Extrude & Bevel, Inflate and Rotate added 2026-10-12) |
|
||||
| Type core | 9 | 80% | Auto-leading style resets are implemented; remaining: hyphenation and justification options, Middle Eastern features beyond bidi layout, optional group font-size preservation; transformed character controls fixed (#1034), see [type-parity.md](type-parity.md) | 14–19 | estimated; recent-font groups in font pickers (#3515); full-name font matches regression-tested (#1258); mixed paragraph alignment indication implemented; headless regressions, full integration CI and visual review pass; localized legacy family-name fallback with loaded/catalog regressions (#2208); Fractional Widths per type object regression-tested; colour emoji fonts with bitmap glyphs (`sbix`, `CBDT`) draw and export; threading ports: every selected area type and type on a path shows its in and out ports (empty, arrow, red "+"), and the Selection tool threads from either, the in port into a frame before it (#2572; `select::tests::a_click_on_the_in_port_threads_into_a_frame_before_it`, `text::tests::selected_type_shows_its_ports_in_each_state`, `threads::tests::add_before_threads_the_story_from_the_new_frame_into_the_clicked_one`, live screenshot); scores and hours unchanged |
|
||||
| Type advanced (CJK, spelling, Touch Type, Retype) | 4 | 50% | CJK vertical composition (mojikumi), variable font axes, tab leaders, spell check, Touch Type, Retype | 20–28 | estimated; No Break keeps marked characters on one line; upright fallback for fullwidth `!` / `?` regression-tested; score and hours unchanged |
|
||||
| Type core | 9 | 80% | Auto-leading style resets are implemented; remaining: hyphenation and justification options, Middle Eastern features beyond bidi layout, optional group font-size preservation; transformed character controls fixed (#1034), see [type-parity.md](type-parity.md) | 14–19 | estimated; recent-font groups in font pickers (#3515); full-name font matches regression-tested (#1258); mixed paragraph alignment indication implemented; headless regressions, full integration CI and visual review pass; localized legacy family-name fallback with loaded/catalog regressions (#2208); Fractional Widths per type object regression-tested; colour emoji fonts with bitmap glyphs (`sbix`, `CBDT`) draw and export; scores and hours unchanged |
|
||||
| Type advanced (CJK, spelling, Touch Type, Retype) | 4 | 50% | CJK vertical composition (mojikumi), tab leaders, spell check, Touch Type, Retype | 20–28 | estimated; No Break keeps marked characters on one line; upright fallback for fullwidth `!` / `?` regression-tested; score and hours unchanged |
|
||||
| Raster effects (Effect Gallery) | 4 | 52% | the Effect Gallery's filter thumbnails and in-dialog preview area ([Filter Gallery overview](https://helpx.adobe.com/photoshop/desktop/effects-filters/get-started-with-filters/filter-gallery.html)) | 1–2 | estimated (raised from 49%: the Effect Gallery shipped, #2883, six categories, per-filter settings, ordered stack, live canvas preview, one undo step, `dialogs::effect_gallery::tests::stack_ok_is_one_undo_step`, `stack_preview_is_one_interaction`); measured count 57/57 (Artistic complete with Colored Pencil, Fresco, Paint Daubs, Palette Knife, Rough Pastels and Underpainting; Sketch complete with Torn Edges and Conté Crayon, `pixel::tests_sketch::conte_crayon_*`); texture redraw distances optimized (#1257), pixels verified; depth estimated |
|
||||
@@ -1074,6 +1076,7 @@ applies to fills). Tests: `color::gradient::tests` (perceptual midpoint, expansi
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-23 | minor | Type core: threading ports (#2572): every selected area type and type on a path shows its in and out ports in their states, a click on the out port of any of them threads on, and a click on the in port threads a new or clicked frame before it; evidence added; scores unchanged. |
|
||||
| 2026-10-23 | minor | Guides and snapping: Distance Guides (Smart Guides › Invoke Distance Guides): Alt/Option over another object with the Selection tool shows the horizontal and vertical distances between it and the selection, and over an empty part of an artboard the selection's distances from its four edges, labelled in the General unit; evidence added. Score and hours unchanged. |
|
||||
| 2026-10-23 | minor | Pathfinder › Trap: the Pathfinder panel's Trap… and Effect › Pathfinder › Trap… add overprinting traps of the lighter colour where solid colours meet; evidence added; Live vector effects measured count 46/50 → 49/50 (Hard Mix and Soft Mix had shipped), score 85% unchanged (depth estimated), hours 6–10 → 4–8. |
|
||||
| 2026-10-23 | minor | 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); evidence added; score and hours unchanged (estimated). |
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
# Type parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (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:; OpenType SVG glyphs follow the `SVG ` table's coordinate rules: a root size without a `viewBox` sets up the em, a `viewBox` that isn't square is centred in it, and a glyph element nested in others is drawn on its own; previously: OpenType SVG colour fonts draw and export as vector art; hanging punctuation: Glyph Scaling leaves the hung marks at their width, Standard burasagari counts a hung line start as room, G4; a paragraph's Auto Leading also drives the Character panel's Leading, the Alt+↑/↓ leading nudge and Fill with Placeholder Text; scores unchanged; COLR colour fonts (v0 and v1) draw and export as vector art; previously: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images; scores unchanged; previously: #3515: recent-font groups in font pickers; manual Tate-chu-yoko marks characters across one em of a vertical column; System Layout: Character panel menu sets whole-point advances for every text object in the document (off by default); ruby (ふりがな) for live text: `type.ruby` sets or removes a reading over a byte range, above or below (right of the column in vertical type), start/centre/end aligned, sized and overhanging or squeezed; saved natively, laid out with its line growing, drawn on the canvas and in SVG/PDF (outlines where ruby is present); scores unchanged; previously:; Fractional Widths: Character panel menu turns whole-point advances on or off per type object, on by default; scores unchanged; type on a path threads, mixed with area type in one thread; scores unchanged; No Break keeps marked characters on one line; scores unchanged; a click on the out port threads the text into a closed path, a new frame at the click or a dragged rectangle, #2572 in part; scores unchanged; native family labels fall back to localized legacy names when typographic names are English-only, #2208; scores unchanged; Cmd+Shift+C aligns centre off the Mac, #1940; tab leaders are drawn in the tab's gap, #1877; type in symbols, pattern tiles, graph designs and opacity masks gets its layout bounds back on opening a native file, #1738; score unchanged; Escape while typing ends the edit, #1686; Select › Same on type, #1737; `justify` when creating point type, #1748; scores unchanged; OpenType stylistic sets, alternates, figure styles, superscript and subscript as character features, #1607; a wide word in non-rectangular area type moves down, #1615; scores unchanged; Character Styles New/Redefine capture the first selected character at run boundaries and end prior typing before capture; boundary and typing-history input tests and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Linux font folders from fontconfig, #1529; commands and MCP `add_text` report area type that does not fit its frame, #1471; Tabs panel stop drags, #1458; Fit Headline in a frame one line tall, #1444; frames and paths beyond a billion points hold no text, #1451; scores unchanged; missing glyphs are looked for again after a font rescan, #1376; scores unchanged; Full-name font matching (#1258); Windows font-service QA pending; scores unchanged; Middle Eastern digit types: Character panel menu › Digits, `{digits}`; the font menu's script filter lists Thai fonts; Thai, Lao, Khmer and Myanmar lines break between words; the caret steps over whole clusters such as Thai consonants with their marks; Thai typed in a font without Thai falls back to a font made for Thai; earlier: Proportional Metrics in vertical type, `vpal`, #966; Cmd+Shift+C aligns centre off the Mac, a double-click on area type's bottom handle turns on Auto Size, #1940; MCP `add_text` exposes the existing `vertical` option for point, area and path type; horizontal remains the default; scores and hours unchanged; Vertical fullwidth question and exclamation marks keep their nominal glyph upright when the font has no vertical alternate; scores and hours unchanged. tab leaders are drawn in the tab's gap, #1877; type in symbols, pattern tiles, graph designs and opacity masks gets its layout bounds back on opening a native file, #1738; score unchanged; Escape while typing ends the edit, #1686; Select › Same on type, #1737; `justify` when creating point type, #1748; scores unchanged; OpenType stylistic sets, alternates, figure styles, superscript and subscript as character features, #1607; a wide word in non-rectangular area type moves down, #1615; scores unchanged; Character Styles Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (threading ports: every selected area type and type on a path shows its in and out ports (empty, arrow, red "+"), and the Selection tool threads from either, the in port into a frame before it, #2572; scores 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:; OpenType SVG glyphs follow the `SVG ` table's coordinate rules: a root size without a `viewBox` sets up the em, a `viewBox` that isn't square is centred in it, and a glyph element nested in others is drawn on its own; previously: OpenType SVG colour fonts draw and export as vector art; hanging punctuation: Glyph Scaling leaves the hung marks at their width, Standard burasagari counts a hung line start as room, G4; a paragraph's Auto Leading also drives the Character panel's Leading, the Alt+↑/↓ leading nudge and Fill with Placeholder Text; scores unchanged; COLR colour fonts (v0 and v1) draw and export as vector art; previously: colour emoji fonts with bitmap glyphs (`sbix`: Apple Color Emoji; `CBDT`: Noto Color Emoji) draw on the canvas and export: PDF Type 3 glyphs or images, SVG images with outlined text, EPS and legacy `.ai` images, Create Outlines images; scores unchanged; previously: #3515: recent-font groups in font pickers; manual Tate-chu-yoko marks characters across one em of a vertical column; System Layout: Character panel menu sets whole-point advances for every text object in the document (off by default); ruby (ふりがな) for live text: `type.ruby` sets or removes a reading over a byte range, above or below (right of the column in vertical type), start/centre/end aligned, sized and overhanging or squeezed; saved natively, laid out with its line growing, drawn on the canvas and in SVG/PDF (outlines where ruby is present); scores unchanged; previously:; Fractional Widths: Character panel menu turns whole-point advances on or off per type object, on by default; scores unchanged; type on a path threads, mixed with area type in one thread; scores unchanged; No Break keeps marked characters on one line; scores unchanged; a click on the out port threads the text into a closed path, a new frame at the click or a dragged rectangle, #2572 in part; scores unchanged; native family labels fall back to localized legacy names when typographic names are English-only, #2208; scores unchanged; Cmd+Shift+C aligns centre off the Mac, #1940; tab leaders are drawn in the tab's gap, #1877; type in symbols, pattern tiles, graph designs and opacity masks gets its layout bounds back on opening a native file, #1738; score unchanged; Escape while typing ends the edit, #1686; Select › Same on type, #1737; `justify` when creating point type, #1748; scores unchanged; OpenType stylistic sets, alternates, figure styles, superscript and subscript as character features, #1607; a wide word in non-rectangular area type moves down, #1615; scores unchanged; Character Styles New/Redefine capture the first selected character at run boundaries and end prior typing before capture; boundary and typing-history input tests and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Linux font folders from fontconfig, #1529; commands and MCP `add_text` report area type that does not fit its frame, #1471; Tabs panel stop drags, #1458; Fit Headline in a frame one line tall, #1444; frames and paths beyond a billion points hold no text, #1451; scores unchanged; missing glyphs are looked for again after a font rescan, #1376; scores unchanged; Full-name font matching (#1258); Windows font-service QA pending; scores unchanged; Middle Eastern digit types: Character panel menu › Digits, `{digits}`; the font menu's script filter lists Thai fonts; Thai, Lao, Khmer and Myanmar lines break between words; the caret steps over whole clusters such as Thai consonants with their marks; Thai typed in a font without Thai falls back to a font made for Thai; earlier: Proportional Metrics in vertical type, `vpal`, #966; Cmd+Shift+C aligns centre off the Mac, a double-click on area type's bottom handle turns on Auto Size, #1940; MCP `add_text` exposes the existing `vertical` option for point, area and path type; horizontal remains the default; scores and hours unchanged; Vertical fullwidth question and exclamation marks keep their nominal glyph upright when the font has no vertical alternate; scores and hours unchanged. tab leaders are drawn in the tab's gap, #1877; type in symbols, pattern tiles, graph designs and opacity masks gets its layout bounds back on opening a native file, #1738; score unchanged; Escape while typing ends the edit, #1686; Select › Same on type, #1737; `justify` when creating point type, #1748; scoLine truncated
|
||||
|
||||
Type is Illustrator's largest single area by use (weight 13 of 105 across "Type core" and "Type advanced" in
|
||||
[target-app-parity.md](target-app-parity.md)). This checklist lists the features one by one. Status is from the
|
||||
@@ -22,7 +22,7 @@ against Illustrator's public documentation; **estimated** unless noted.
|
||||
| Point, area and type-on-a-path type; vertical variants | done / partial | vertical point, area and path type have initial support; fullwidth `!` / `?` keep the nominal glyph upright when no vertical alternate exists (Unicode Tu); in a non-rectangular area a word too wide for the top lines moves down to the first line that holds it (#1615); Escape while typing ends the edit, keeps the type selected and switches to the Selection tool (#1802); `text.create` and `text.createInPath` take `justify` (#1752); MCP `add_text` forwards `vertical` to both commands |
|
||||
| Area Type Options (rows, columns, inset, first baseline, Auto Size, Shrink Text to Fit) | done | the commands that make or restyle type say when it does not fit its frame; MCP `add_text` takes Auto Size and Shrink Text to Fit (#1471) |
|
||||
| Threaded text, Fit Headline, Text Wrap | done | Fit Headline sees wrapping in a frame one line tall (#1444); a thread holds area type and type on a path in any mix, as Illustrator links type in an area or along a path ([help](https://helpx.adobe.com/illustrator/using/manage-text-area.html)) |
|
||||
| Threading from the out port: a click on the red "+" loads the text; a click on a closed path, area type or type on a path threads into it, a click on empty canvas makes a frame of the same kind, shape and size there, a drag draws a rectangular frame; Escape or another tool cancels | partial | #2572 in part: the Selection tool, `text.thread.add {from, to?, rect?, at?}`; only the red port of overflowing area type and type on a path is clickable (type on a path's sits just past its end bracket; empty ports and in ports are not drawn, so they can't be clicked yet), and the loaded cursor borrows the I-beam until it's drawn |
|
||||
| Threading from the ports: selected area type and type on a path show an in port and an out port, empty, with an arrow on a side where the frame is threaded, or with a red "+" in the out port when the text doesn't fit; a click on either port loads the text; a click on a closed path, area type or type on a path threads into it, a click on empty canvas makes a frame of the same kind, shape and size there, a drag draws a rectangular frame; the frame placed comes after the clicked one from its out port and before it from its in port (the story then starts there); Escape or another tool cancels | partial | #2572: the Selection tool, `text.thread.add {from, to?, rect?, at?, before?}`, as the reference app's help describes ports and threading ([archived help, Threading text between objects](https://web.archive.org/web/20210119051048/https://helpx.adobe.com/illustrator/using/creating-text.html), [create text threads](https://helpx.adobe.com/illustrator/desktop/design-with-text/add-manage-text/create-text-threads-between-objects.html)); area type's in port sits on the left side below the top-left corner, type on a path's just before its start bracket; Show Text Threads draws its lines between the same ports; with more than 1,000 such objects selected no ports are drawn. Remaining: a double-click on a port doesn't break the thread yet, the ports only take clicks with the Selection tool, and the loaded cursor borrows the I-beam until it's drawn |
|
||||
| Type on a Path effects and options; brackets | done | #429 |
|
||||
| Character and Paragraph panels, styles with overrides | done | Character-style Auto-leading resets, partial definitions, local leading overrides, override markers, Undo/Redo and native serialization have regression coverage; differing paragraph alignments leave the shared alignment buttons unselected (headless regressions, full integration CI and visual review pass); mixed-value display for other paragraph fields remains missing |
|
||||
| Character size and horizontal scale after object/group scaling | done | #1034: fields and setters compensate the stored affine; point size follows the transformed em-height axis, not the glyph ink bounds. Range edits, keyboard increments, leading and baseline shift use document points; rotation, reflection and shear remain editable. |
|
||||
@@ -71,6 +71,7 @@ Character Styles menu New/Redefine and footer New capture the first selected cha
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-23 | minor | Threading ports (#2572): every selected area type and type on a path shows its in and out ports, empty, with an arrow where threaded or with the red "+" of overflow; a click on the out port of any of them, overflowing or not, loads the Selection tool with the text, and a click on the in port threads a new or clicked frame before it (`text.thread.add` `before`); scores unchanged |
|
||||
| 2026-10-23 | minor | Variable fonts done: the font menu's Font Technology › Variable lists only variable font families, together with the script, kind and favourites filters; scores unchanged |
|
||||
| 2026-10-23 | minor | Colour fonts: colour glyphs (COLR, SVG) go with type that effects reshape, into Expand Appearance and EMF/WMF export, where they were left out with the type's outlines; bitmap glyphs not yet; scores unchanged |
|
||||
| 2026-10-23 | minor | Colour fonts: OpenType SVG glyphs follow the `SVG ` table's coordinate rules: a root size without a `viewBox` sets up the em, a `viewBox` that isn't square is centred in it, and a glyph element nested in others is drawn on its own; scores unchanged |
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
# UI and interaction parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (Smart guides: Distance Guides, Alt/Option over another object or an empty part of an artboard with the Selection tool, and the Invoke Distance Guides preference; scores and estimates unchanged; previously:; 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; 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); scores and estimates unchanged; Pencil: Shift held at the press draws a straight line at 45° steps from the Constrain Angle (part of #3799); status-bar pointer readout follow-up; scores and hours unchanged; 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; the Simplify row is done; scores and 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; 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 staLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-23 · **Change:** minor (Selection tool: in and out ports on every selected area type and type on a path, the in port threading a new or clicked frame before it, #2572; scores unchanged; Smart guides: Distance Guides, Alt/Option over another object or an empty part of an artboard with the Selection tool, and the Invoke Distance Guides preference; scores and estimates unchanged; previously:; 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; 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); scores and estimates unchanged; Pencil: Shift held at the press draws a straight line at 45° steps from the Constrain Angle (part of #3799); status-bar pointer readout follow-up; scores and hours unchanged; 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; the Simplify row is done; scores and 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; 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; PencilLine truncated
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
@@ -216,7 +216,7 @@ tools, never checked side by side) isn't captured row by row.
|
||||
| Document Setup → Edit Artboards applies valid settings, closes the dialog and activates the Artboard tool | done | Pointer-click tests cover successful handoff, invalid settings, OK, Cancel and Undo in `dialogs/document_setup.rs`. |
|
||||
| Escape leaves Artboard editing for Selection; during a drag it first cancels the gesture | done | Headless egui key events cover idle Escape, active-drag cancellation and a subsequent Escape in `tests_distortkeys.rs`. |
|
||||
| Escape while typing ends the edit, keeps the type selected and switches to the Selection tool | done | #1802 (#1686, #1656) |
|
||||
| Selection tool: a click on overflowing area type's out port loads the text cursor; a click on a closed path, on empty canvas or a drag threads the text there; Escape or another tool drops it | partial | #2572 in part (`text.thread.add`); the out port sits on the frame's right side above the corner handle so both can be grabbed; in ports and empty out ports are not drawn or clickable yet; the loaded cursor borrows the I-beam |
|
||||
| Selection tool: selected area type and type on a path show an in port and an out port (empty, an arrow where threaded, the red "+" of overflow); a click on either loads the text cursor; a click on a closed path, on empty canvas or a drag threads the text there, after the clicked frame from its out port, before it from its in port; Escape or another tool drops it | partial | #2572 (`text.thread.add`, `before` for the in port); the out port sits on the frame's right side above the bottom-right corner handle and the in port on its left side below the top-left one, so the handles can still be grabbed; a double-click on a port doesn't break the thread yet; the loaded cursor borrows the I-beam |
|
||||
| Shift-click selects several artboards (Artboard tool, Artboards panel); they move, Alt-copy and delete together | done | `artboard.move`/`artboard.delete` `indices` (#1139); panel menu, trash and Properties share selected-set deletion; all-selected retains artboard 1 and a single board cannot be deleted, with pointer-event and Undo/Redo coverage |
|
||||
| Artboard Delete/Backspace delete selected boards while protecting artwork, the last board and active drags | done | Headless shortcut regressions in `tests_distortkeys.rs` cover retaining the original first board when all are selected, single-board protection, artwork, saved state and Undo/Redo; the navigator follows the tool’s surviving board through repeated deletion and history changes. |
|
||||
| Artboard navigator synchronizes the active tool selection before deletion | done | Actual status-bar Next → Delete/Backspace and Next → Properties Delete regressions in `chrome.rs` cover surviving board records, preserved artwork and Undo/Redo; other tools keep object selection and history. **Tab-switch follow-up:** document-tab changes align the Artboard tool with the displayed board. Actual A → B → A tab clicks followed by Properties Delete and controls for same-tab multiselection, Move/Scale Artwork options and other tools passed, along with historical full CI on `a0671777`. [Validation evidence](target-app-parity.md#evidence-what-ships-today-by-area). **Clean-tab close:** with the Artboard tool active, closing a clean active tab restores the surviving document's displayed board before Properties Delete. |
|
||||
@@ -340,6 +340,7 @@ separate. Scores and hours unchanged. [Behavior and command details](development
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-23 | minor | Selection tool: every selected area type and type on a path shows its in and out ports in their states (empty, arrow, red "+"); the out port of type that fits loads the text too, and the in port threads a new or clicked frame before the clicked one (#2572). Scores and estimates unchanged. |
|
||||
| 2026-10-23 | minor | Smart guides: Distance Guides (Alt/Option over another object or an empty part of an artboard with the Selection tool) and the Smart Guides › Invoke Distance Guides preference; scores and estimates unchanged. |
|
||||
| 2026-10-23 | minor | Double-clicking the Line Segment, Arc, Rectangular Grid or Polar Grid tool opens its Tool Options (#2691); the grid dialog row is done; scores and estimates unchanged. |
|
||||
| 2026-10-23 | minor | Pencil: Shift held at the press draws a straight line at 45° steps from the Constrain Angle (part of #3799). Scores and estimates unchanged. |
|
||||
|
||||
Reference in new issue
Block a user