VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Select: Same › Link Block Series selects every frame of a text thread
dotCooCoo67032aece69a
diff --git a/crates/engine/src/cmd/docmenu.rs b/crates/engine/src/cmd/docmenu.rsindex 05973c9f9..181864a6c 100644--- a/crates/engine/src/cmd/docmenu.rs+++ b/crates/engine/src/cmd/docmenu.rs@@ -27,6 +27,15 @@ pub fn specs() -> Vec<CommandSpec> {_ => false,})),+ cmd!(+ "select.same.linkBlockSeries",+ "Link Block Series",+ ["Select", "Same"],+ None,+ "{} select every frame of the threads of the selected type objects (and of the type inside selected groups); type in no thread selects itself; frames that are hidden or locked, inside a hidden or locked object or layer, on a template layer, or outside the isolated group or layer are left out → {count}",+ has_text_selection,+ same_link_block_series+ ),cmd!("select.same.fontFamily", "Font Family", ["Select", "Same"], None, "{} → {count}", has_selection, |s, _| same_text(s,"select.same.fontFamily",@@ -313,6 +322,48 @@ fn same_text(s: &mut Session, cmd: &str, eq: fn(&CharStyle, &CharStyle) -> bool)finish_same(s, cmd, ids)}+/// The type objects among the selected objects and inside them, in selection order.+fn selected_text(s: &Session) -> Vec<NodeId> {+ let Some(st) = s.active() else { return vec![] };+ let mut out = vec![];+ for n in st.selection.objects.iter().filter_map(|id| st.doc.node(*id)) {+ n.walk(&mut |c| {+ if matches!(c.kind, NodeKind::Text(_)) && !out.contains(&c.id) {+ out.push(c.id);+ }+ });+ }+ out+}++/// A type object is selected, or is inside a selected object.+fn has_text_selection(s: &Session) -> std::result::Result<(), String> {+ has_selection(s)?;+ if selected_text(s).is_empty() { Err("select a text object".into()) } else { Ok(()) }+}++/// Select › Same › Link Block Series: the frames of the threads the selected type objects are+/// in, in thread order; a type object in no thread is its own series.+fn same_link_block_series(s: &mut Session, _: &Value) -> Result<Value> {+ const C: &str = "select.same.linkBlockSeries";+ let seeds = selected_text(s);+ if seeds.is_empty() {+ return Err(bad(C, "select a text object"));+ }+ let st = s.doc()?;+ let can = selectable_ids(&st.doc, st.isolation);+ let mut ids: Vec<NodeId> = vec![];+ for seed in seeds {+ let series = st.doc.text_threads.iter().find(|t| t.contains(&seed)).cloned().unwrap_or_else(|| vec![seed]);+ for id in series {+ if can.contains(&id) && !ids.contains(&id) {+ ids.push(id);+ }+ }+ }+ finish_same(s, C, ids)+}+fn by_kind(s: &mut Session, f: impl Fn(&Node) -> bool) -> Result<Value> {let ids = candidates(s, f)?;s.select(|_, sel| sel.set(ids))?;diff --git a/crates/engine/src/tests/menucmds.rs b/crates/engine/src/tests/menucmds.rsindex 91194b273..9f6a68ab1 100644--- a/crates/engine/src/tests/menucmds.rs+++ b/crates/engine/src/tests/menucmds.rs@@ -1948,6 +1948,38 @@ fn select_same_font_size_and_fill() {assert!(s.execute("select.same.fontSize", &json!({})).is_err());}+#[test]+fn select_same_link_block_series_selects_the_frames_of_a_thread() {+ let mut s = session();+ let frame = |s: &mut Session, x: f64, y: f64| {+ id_of(&s.execute("text.create", &json!({"x": x, "y": y, "text": "words ".repeat(40), "area": {"width": 80, "height": 30}})).unwrap())+ };+ let (a, b, c) = (frame(&mut s, 10.0, 10.0), frame(&mut s, 110.0, 10.0), frame(&mut s, 210.0, 10.0));+ sel(&mut s, &[a, b, c]);+ s.execute("text.thread.create", &json!({})).unwrap();+ let (d, e) = (frame(&mut s, 10.0, 200.0), frame(&mut s, 110.0, 200.0));+ sel(&mut s, &[d, e]);+ s.execute("text.thread.create", &json!({})).unwrap();+ let lone = text(&mut s, "alone");+ let r = rect(&mut s, 300.0, 300.0, 10.0, 10.0);+ let undo = s.doc().unwrap().history.undo.len();+ // The middle frame of the first thread selects that thread's three frames, in thread order.+ sel(&mut s, &[b]);+ assert_eq!(s.execute("select.same.linkBlockSeries", &json!({})).unwrap()["count"], 3);+ assert_eq!(selected(&s), vec![a, b, c]);+ // Frames of two threads select both threads.+ sel(&mut s, &[c, e]);+ assert_eq!(s.execute("select.same.linkBlockSeries", &json!({})).unwrap()["count"], 5);+ // Type in no thread selects itself; a path beside it is left out.+ sel(&mut s, &[lone, r]);+ assert_eq!(s.execute("select.same.linkBlockSeries", &json!({})).unwrap()["count"], 1);+ assert_eq!(selected(&s), vec![lone]);+ assert_eq!(s.doc().unwrap().history.undo.len(), undo, "selecting adds no undo step");+ // With no type selected the command is not available.+ sel(&mut s, &[r]);+ assert!(s.execute("select.same.linkBlockSeries", &json!({})).is_err());+}+/// #1737: Select > Same reads type's fill and stroke from its characters (the first run), so type/// matches type and paths both ways.#[test]diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsvindex 180c65dd3..cd7c81359 100644--- a/crates/ui-egui/src/i18n/bg.tsv+++ b/crates/ui-egui/src/i18n/bg.tsv@@ -3270,6 +3270,7 @@ digits Malayalam МалаяламGraphic ГрафикаShow all open documents Показване на всички отворени документиSymbol Instance Екземпляр на символ+ Link Block Series Серия свързани блоковеSymbol Libraries Библиотеки със символиSymbol Screener Tool Инструмент „Филтър на символи“Symbol Scruncher Tool Инструмент „Свиване на символи“diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsvindex 02defa9a1..e1c1eb8b7 100644--- a/crates/ui-egui/src/i18n/bs.tsv+++ b/crates/ui-egui/src/i18n/bs.tsv@@ -418,6 +418,7 @@Stroke Weight Debljina potezaGraphic Style Grafički stilSymbol Instance Instanca simbola+ Link Block Series Niz povezanih blokovaFont Family Porodica fontaFont Family & Style Porodica i stil fontaFont Family, Style & Size Porodica, stil i veličina fontadiff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsvindex d9d162bfe..f2158a683 100644--- a/crates/ui-egui/src/i18n/ca.tsv+++ b/crates/ui-egui/src/i18n/ca.tsv@@ -4156,6 +4156,7 @@ digits Malayalam MalaiàlamSwitch x/y Intercanvia x/ySymbol SímbolSymbol Instance Instància de símbol+ Link Block Series Sèrie de blocs enllaçatsSymbol Libraries Biblioteques de símbolsSymbol Libraries Menu Menú de biblioteques de símbolsSymbol Library Biblioteca de símbolsdiff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 66db77578..19b8c43c9 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -426,6 +426,7 @@Stroke Weight Tloušťka tahuGraphic Style Grafický stylSymbol Instance Instance symbolu+ Link Block Series Řada propojených blokůFont Family Rodina písmaFont Family & Style Rodina a řez písmaFont Family, Style & Size Rodina, řez a velikost písmadiff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsvindex e3123798e..c0bdb184b 100644--- a/crates/ui-egui/src/i18n/da.tsv+++ b/crates/ui-egui/src/i18n/da.tsv@@ -385,6 +385,7 @@Stroke Weight StregtykkelseGraphic Style Grafisk stilSymbol Instance Symbolforekomst+ Link Block Series Serie af sammenkædede blokkeFont Family SkrifttypefamilieFont Family & Style Skrifttypefamilie og -stilFont Family, Style & Size Skrifttypefamilie, stil og størrelsediff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 73e449299..0fec9a048 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -3298,6 +3298,7 @@ effect Points PunkteGraphic GrafikShow all open documents Alle geöffneten Dokumente anzeigenSymbol Instance Symbolinstanz+ Link Block Series Reihe verketteter BlöckeSymbol Libraries Symbol-BibliothekenSymbol Screener Tool Symbol-transparent-gestalten-WerkzeugSymbol Scruncher Tool Symbol-stauchen-Werkzeugdiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex e452c1deb..9c4ba881b 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3697,6 +3697,7 @@ digits Malayalam ΜαλαγιάλαμGraphic ΓραφικόShow all open documents Εμφάνιση όλων των ανοιχτών εγγράφωνSymbol Instance Στιγμιότυπο συμβόλου+ Link Block Series Σειρά συνδεδεμένων μπλοκSymbol Libraries Βιβλιοθήκες συμβόλωνSymbol Screener Tool Αραίωση συμβόλων (Symbol Screener Tool)Symbol Scruncher Tool Σύμπτυξη συμβόλων (Symbol Scruncher Tool)diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 5d5656e06..90273208d 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -3354,6 +3354,7 @@ digits Malayalam MalayálamGraphic GráficoShow all open documents Mostrar todos los documentos abiertosSymbol Instance Instancia de símbolo+ Link Block Series Serie de bloques enlazadosSymbol Libraries Bibliotecas de símbolosSymbol Screener Tool Herramienta Transparencia de símbolosSymbol Scruncher Tool Herramienta Concentración de símbolosdiff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsvindex ccfe1b354..b56dc7e73 100644--- a/crates/ui-egui/src/i18n/fi.tsv+++ b/crates/ui-egui/src/i18n/fi.tsv@@ -423,6 +423,7 @@Stroke Weight Viivan paksuusGraphic Style GrafiikkatyyliSymbol Instance Symbolin ilmentymä+ Link Block Series Linkitettyjen lohkojen sarjaFont Family FonttiperheFont Family & Style Fonttiperhe ja tyyliFont Family, Style & Size Fonttiperhe, tyyli ja kokodiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex 37c75f40c..3f1374cf8 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3346,6 +3346,7 @@ digits Malayalam MalayalamGraphic GraphiqueShow all open documents Afficher tous les documents ouvertsSymbol Instance Instance de symbole+ Link Block Series Série de blocs liésSymbol Libraries Bibliothèques de symbolesSymbol Screener Tool Outil Transparence de symbolesSymbol Scruncher Tool Outil Espacement de symbolesdiff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 639882637..5c0099845 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -3988,6 +3988,7 @@ mark-style Japanese JapánSwitch workspace Munkaterület váltásaSymbol SzimbólumSymbol Instance Szimbólumpéldány+ Link Block Series Csatolt blokkok sorozataSymbol Libraries SzimbólumkönyvtárakSymbol Screener Tool SzimbólumhalványítóSymbol Scruncher Tool Szimbólumtömörítődiff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 033f5fbcc..fabe83bc6 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -385,6 +385,7 @@Stroke Weight Ketebalan strokeGraphic Style Gaya grafisSymbol Instance Instans simbol+ Link Block Series Rangkaian blok tertautFont Family Keluarga fontFont Family & Style Keluarga & gaya fontFont Family, Style & Size Keluarga, gaya & ukuran fontdiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex dc71df96a..3185cf883 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -3390,6 +3390,7 @@ digits Malayalam MalayalamGraphic GraficaShow all open documents Mostra tutti i documenti apertiSymbol Instance Istanza di simbolo+ Link Block Series Serie di blocchi collegatiSymbol Libraries Librerie simboliSymbol Screener Tool Strumento Trasparenza simboliSymbol Scruncher Tool Strumento Addensamento simbolidiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex f9332e14e..928fd7055 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -455,6 +455,7 @@ digits Malayalam マラヤーラム数字Stroke Weight 線幅Graphic Style グラフィックスタイルSymbol Instance シンボルインスタンス+ Link Block Series 連結ブロックの系列Font Family フォントファミリーFont Family & Style フォントファミリー (スタイル)Font Family, Style & Size フォントファミリー (スタイルとサイズ)diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsvindex f39f10da3..8a42692a8 100644--- a/crates/ui-egui/src/i18n/ka.tsv+++ b/crates/ui-egui/src/i18n/ka.tsv@@ -343,6 +343,7 @@Stroke Weight კონტურის სისქეGraphic Style გრაფიკული სტილიSymbol Instance სიმბოლოს ეგზემპლარი+ Link Block Series დაკავშირებული ბლოკების სერიაFont Family შრიფტის ოჯახიFont Family & Style შრიფტის ოჯახი და სტილიFont Family, Style & Size შრიფტის ოჯახი, სტილი და ზომაdiff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 00f6807c9..495c8b230 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -448,6 +448,7 @@ digits Malayalam 말라얄람어Stroke Weight 선 두께Graphic Style 그래픽 스타일Symbol Instance 심볼 인스턴스+ Link Block Series 연결된 블록 시리즈Font Family 글꼴 패밀리Font Family & Style 글꼴 패밀리 및 스타일Font Family, Style & Size 글꼴 패밀리, 스타일 및 크기diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex d15de7a87..698e576eb 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -399,6 +399,7 @@Stroke Weight ContourdikteGraphic Style Grafische stijlSymbol Instance Symboolinstantie+ Link Block Series Reeks gekoppelde blokkenFont Family LettertypefamilieFont Family & Style Lettertypefamilie en -stijlFont Family, Style & Size Lettertypefamilie, -stijl en -groottediff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 24d441a9e..711bf649e 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -386,6 +386,7 @@Stroke Weight Grubość obrysuGraphic Style Styl graficznySymbol Instance Wystąpienie symbolu+ Link Block Series Seria połączonych blokówFont Family Rodzina czcionekFont Family & Style Rodzina i styl czcionkiFont Family, Style & Size Rodzina, styl i rozmiar czcionkidiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 879d45239..5e77e3e63 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -2757,6 +2757,7 @@ digits Malayalam MalaialaSwitch Units Trocar UnidadesSwitch workspace Trocar espaço de trabalhoSymbol Instance Instância de Símbolo+ Link Block Series Série de Blocos VinculadosSymbol Libraries Bibliotecas de SímbolosSymbol Screener Tool Ferramenta Peneira de SímbolosSymbol Scruncher Tool Ferramenta Amontoar Símbolosdiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 01e135647..3a52211b4 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3385,6 +3385,7 @@ digits Malayalam МалаяламGraphic ГрафикаShow all open documents Показать все открытые документыSymbol Instance Экземпляр символа+ Link Block Series Серия связанных блоковSymbol Libraries Библиотеки символовSymbol Screener Tool Инструмент «Прозрачность символов»Symbol Scruncher Tool Инструмент «Сжатие символов»diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsvindex 9e1782d29..1e2eace01 100644--- a/crates/ui-egui/src/i18n/sv.tsv+++ b/crates/ui-egui/src/i18n/sv.tsv@@ -3276,6 +3276,7 @@ digits Malayalam MalayalamGraphic GrafikShow all open documents Visa alla öppna dokumentSymbol Instance Symbolinstans+ Link Block Series Serie av länkade blockSymbol Libraries SymbolbibliotekSymbol Screener Tool Verktyg för symbolopacitetSymbol Scruncher Tool Verktyg för att dra ihop symbolerdiff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex ad6ea39b6..a9bf7050e 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3169,6 +3169,7 @@ digits Malayalam MalayalamGraphic GrafikShow all open documents Tüm açık belgeleri gösterSymbol Instance Sembol Örneği+ Link Block Series Bağlantılı Blok SerisiSymbol Libraries Sembol KitaplıklarıSymbol Screener Tool Sembol Perdeleyici AracıSymbol Scruncher Tool Sembol Ezici Aracıdiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 1e9a28590..03f9ee088 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3383,6 +3383,7 @@ effect Points ТочкиGraphic ГрафікаShow all open documents Показати всі відкриті документиSymbol Instance Екземпляр символу+ Link Block Series Серія пов’язаних блоківSymbol Libraries Бібліотеки символівSymbol Screener Tool Інструмент «Прозорість символів»Symbol Scruncher Tool Інструмент «Стиск символів»diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex d39a33d34..1db2648f6 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3706,6 +3706,7 @@ mark-style Japanese Kiểu NhậtSwitch workspace Chuyển không gian làm việcSwitch x/y Đổi x/ySymbol Instance Thực thể ký hiệu+ Link Block Series Chuỗi khối liên kếtSymbol Libraries Thư viện ký hiệuSymbol Screener Tool Công cụ Lọc ký hiệuSymbol Scruncher Tool Công cụ Thu gọn ký hiệudiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex dd17b3e73..28846a8c1 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -3222,6 +3222,7 @@ digits Malayalam 马拉雅拉姆数字Graphic 图形Show all open documents 显示所有打开的文档Symbol Instance 符号实例+ Link Block Series 链接块系列Symbol Libraries 符号库Symbol Screener Tool 符号透明度工具Symbol Scruncher Tool 符号紧缩工具diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 604ec3091..6f2903978 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -4234,6 +4234,7 @@ digits Malayalam 馬來亞拉姆數字Graphic 圖形Show all open documents 顯示所有開啟的文件Symbol Instance 符號範例+ Link Block Series 連結區塊系列Symbol Libraries 符號資料庫Symbol Screener Tool 符號濾色器工具Symbol Scruncher Tool 符號緊縮器工具diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rsindex a9dd3f749..04769b2c6 100644--- a/crates/ui-egui/src/menus/tests.rs+++ b/crates/ui-egui/src/menus/tests.rs@@ -507,6 +507,26 @@ fn update_selection_follows_save_selection_and_needs_a_recall() {assert_eq!(app.run("select.recall1", json!({})).unwrap()["count"], 2);}+#[test]+fn select_same_link_block_series_selects_a_thread_from_the_menu() {+ let mut app = app_with_a_rectangle();+ let entry = menu_entries(&app).into_iter().find(|e| e.command.as_deref() == Some("select.same.linkBlockSeries")).expect("menu entry");+ assert_eq!((entry.path, entry.label.as_str()), (vec!["Select".to_string(), "Same".to_string()], "Link Block Series"));+ // A rectangle selected: no type, so the item is off.+ assert!(!enabled(&app, "select.same.linkBlockSeries"));+ let frame = |app: &mut VectorcraftApp, x: i32| {+ app.run("text.create", json!({"x": x, "y": 40, "text": "words ".repeat(40), "area": {"width": 60, "height": 30}})).unwrap()["id"].clone()+ };+ let (a, b) = (frame(&mut app, 0), frame(&mut app, 100));+ app.run("select.set", json!({"ids": [a.clone(), b.clone()]})).unwrap();+ app.run("text.thread.create", json!({})).unwrap();+ app.run("select.set", json!({"ids": [b.clone()]})).unwrap();+ assert!(enabled(&app, "select.same.linkBlockSeries"));+ invoke(&mut app, "select.same.linkBlockSeries", json!({}));+ let ids: Vec<u64> = app.session.active().unwrap().selection.objects.iter().map(|i| i.0).collect();+ assert_eq!(json!(ids), json!([a, b]));+}+#[test]fn edit_selection_opens_its_dialog_on_the_saved_selections() {let mut app = app_with_a_rectangle();diff --git a/crates/ui-egui/src/menus/tree.rs b/crates/ui-egui/src/menus/tree.rsindex e2952eac3..9eabfc681 100644--- a/crates/ui-egui/src/menus/tree.rs+++ b/crates/ui-egui/src/menus/tree.rs@@ -462,6 +462,7 @@ pub fn menu_tree_named(english_names: bool) -> Vec<(&'static str, Vec<Item>)> {c("Graphic Style", "select.same.graphicStyle"),c("Shape", "select.same.shapeType"),c("Symbol Instance", "select.same.symbolInstance"),+ c("Link Block Series", "select.same.linkBlockSeries"),Sep,c("Font Family", "select.same.fontFamily"),c("Font Family & Style", "select.same.fontFamilyStyle"),diff --git a/docs/mcp.md b/docs/mcp.mdindex 5802a8144..26732cee6 100644--- a/docs/mcp.md+++ b/docs/mcp.md@@ -4883,6 +4883,11 @@ after it (`out`). The whole story flows into the frames before the break; the frthreaded with each other when two or more remain, and the first of them starts a paragraph. It refuses an `id` thatdoesn't exist, a `port` other than `in` or `out`, and a side where no frame of a thread comes before or after `id`.+`select.same.linkBlockSeries` (Select › Same › Link Block Series) selects every frame of the threads that the selected+type objects, and the type inside selected groups, are in, in thread order, and returns `{count}`. Type in no thread+selects itself, and other selected objects are left out. With frames of several threads selected, it selects the frames+of all of them. It is off while no type is selected, and records no undo step.+In every thread, a paragraph that continues from one frame into the next has its first line, first-line indent andbullet or number in the frame where it starts. In the next frame its first line starts where its wrapped lines start,and it has no bullet or number. In a frame that is no longer threaded (after `text.thread.releaseSelection` ordiff --git a/docs/target-app-parity.md b/docs/target-app-parity.mdindex 66add4773..da63cd9be 100644--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@ -888,6 +888,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featurType › Convert To Point Type on a frame of threaded text makes point type of the text that frame holds and takes it out of the thread; the story flows through the other frames without that text, so each character is in the document once.Object › Rasterize on a frame of threaded text takes it out of the thread with the text it shows, which the image draws, and the other frames keep the text they hold. When the last frame is rasterized, the text it has no room for goes after the text of the last frame that stays.Type › Create Outlines, Object › Expand and Object › Expand Appearance on a frame of threaded text take it out of the thread with the text it shows, which the outlines draw, and the other frames keep the text they hold. When the last frame is outlined, the text it has no room for goes after the text of the last frame that stays. When Expand Appearance keeps the frame as type in a group with its shadow, outer glow or Crop Marks, the type stays in the thread. The public help on threads ([Create text threads between objects](https://helpx.adobe.com/illustrator/desktop/design-with-text/add-manage-text/create-text-threads-between-objects.html), [Remove or break text threads between objects](https://helpx.adobe.com/illustrator/desktop/design-with-text/add-manage-text/remove-or-break-text-threads-between-objects.html)) does not describe outlining a threaded frame; this handling is VectorCraft's own behavior.+ Select › Same › Link Block Series selects every frame of the threads of the selected type; type in no thread selects itself (`select.same.linkBlockSeries`). The menu entry is listed in [Select objects by characteristics](https://helpx.adobe.com/illustrator/desktop/manage-objects/select-objects/select-objects-by-characteristics.html); selecting several threads at once and type in no thread selecting itself are VectorCraft's own behavior.Object › Flatten Transparency takes a frame of threaded text out of the thread in the same way when Convert All Text to Outlines outlines it or when the frame becomes flat regions or an image, and the other frames keep the text they hold.New Symbol and Redefine Symbol on a frame of threaded text take it out of the thread with the text it shows, which the symbol's art holds, and the other frames keep the text they hold. When the last frame goes into the symbol, the text it has no room for goes after the text of the last frame that stays. When every frame of a thread goes into the symbol, the copy of the last frame keeps all its text.With Optical Margin Alignment on, or Roman Hanging Punctuation on in the first paragraph, the glyphs at the ends of left-to-right type on a path hang outside its brackets, measured along the path. The type hangs at the start bracket when its line is placed there, hangs at the end bracket when the line is placed there, and hangs at both when it is centered. Glyphs that hang past the end bracket do not make the type overflow, and a hang stops at an open path's end. SVG export writes such type as outlines.