diff --git a/crates/engine/src/cmd/conceptvector.rs b/crates/engine/src/cmd/conceptvector.rs index 4f329b9d7f..7b3b47f936 100644 --- a/crates/engine/src/cmd/conceptvector.rs +++ b/crates/engine/src/cmd/conceptvector.rs @@ -149,7 +149,7 @@ impl ConceptRun { Some(Value::Array(a)) => a.iter().map(|v| v.as_str().map(str::to_string)).collect::>().ok_or_else(styles_error)?, _ => return Err(styles_error()), }; - // The count first: the scan for repeats takes time that grows with its square. + // Checks the count before the scan for repeats. if styles.is_empty() || styles.len() > MAX_STYLES { return Err(styles_error()); } @@ -422,7 +422,7 @@ fn insert(s: &mut Session, p: &Value) -> Result { let (doc, source, image, bytes, picked, label_of) = { let j = s.concept.jobs.get(at).ok_or_else(|| no_job(C, job))?; let Outcome::Done(all) = &j.outcome else { return Err(bad(C, format!("job {job} has no results to insert: it was canceled"))) }; - // The count first: the scan for repeats takes time that grows with its square. + // Checks the count before the scan for repeats. if chosen.len() > all.len() { return Err(list_error()); } diff --git a/crates/engine/src/concept_vector/offline.rs b/crates/engine/src/concept_vector/offline.rs index c32fa98686..f97bf823c2 100644 --- a/crates/engine/src/concept_vector/offline.rs +++ b/crates/engine/src/concept_vector/offline.rs @@ -113,8 +113,7 @@ pub(super) fn fit_within(img: tr::Raster, max: u64) -> tr::Raster { let (y0, y1) = (u64::from(y) * h / u64::from(nh), (u64::from(y + 1) * h / u64::from(nh)).max(u64::from(y) * h / u64::from(nh) + 1)); for x in 0..nw { let (x0, x1) = (u64::from(x) * w / u64::from(nw), (u64::from(x + 1) * w / u64::from(nw)).max(u64::from(x) * w / u64::from(nw) + 1)); - // Color weighted by alpha, so that a clear pixel does not darken the colors beside it; - // a box with nothing opaque in it is clear black. + // Each pixel's color is weighted by its alpha. A box with nothing opaque in it is clear black. let mut sum = [0u64; 4]; for sy in y0..y1.min(h) { for sx in x0..x1.min(w) { diff --git a/crates/mcp/src/ui_catalog.rs b/crates/mcp/src/ui_catalog.rs index 8a27d55092..b1e8597e57 100644 --- a/crates/mcp/src/ui_catalog.rs +++ b/crates/mcp/src/ui_catalog.rs @@ -806,7 +806,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[ "ui.conceptVector.cancel", "Cancel Concept to Vector", "", - "{} the Concept to Vector panel's Cancel: stop the styles being made off the UI thread (on the web, before the next part); nothing is kept or shown → {cancelled: 0 or 1}", + "{} stop the styles the Concept to Vector panel is making off the UI thread (the panel's Cancel; on the web, before the next part): nothing is kept or shown → {canceled: 0 or 1}", ), ( "ui.cropImage", diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 992f2b8f14..16d16c2c0b 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -6878,6 +6878,7 @@ breakText Glyphs Глифи Concept to Vector Концепция към вектор Concept to Vector… Концепция към вектор… Cancel Concept to Vector Job Отказ от задачата „Концепция към вектор“ + Cancel Concept to Vector Отказ от „Концепция към вектор“ Concept to Vector Providers Доставчици за „Концепция към вектор“ Concept to Vector Results Резултати от „Концепция към вектор“ Generate Concept to Vector Styles Създаване на стилове „Концепция към вектор“ diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index b117c2cd27..f273a0806e 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -6931,6 +6931,7 @@ shape Open Otvoren Concept to Vector Koncept u vektor Concept to Vector… Koncept u vektor… Cancel Concept to Vector Job Otkaži zadatak Koncept u vektor + Cancel Concept to Vector Otkaži Koncept u vektor Concept to Vector Providers Pružaoci za Koncept u vektor Concept to Vector Results Rezultati za Koncept u vektor Generate Concept to Vector Styles Napravi stilove Koncept u vektor diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index 7b53763f54..d4daa5056f 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -7470,6 +7470,7 @@ breakText Glyphs Glifs Concept to Vector Concepte a vector Concept to Vector… Concepte a vector… Cancel Concept to Vector Job Cancel·la la tasca de Concepte a vector + Cancel Concept to Vector Cancel·la Concepte a vector Concept to Vector Providers Proveïdors de Concepte a vector Concept to Vector Results Resultats de Concepte a vector Generate Concept to Vector Styles Genera els estils de Concepte a vector diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 1e3fe9d4ea..838dac87e5 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -7489,6 +7489,7 @@ breakText Glyphs Glyfy Concept to Vector Koncept na vektor Concept to Vector… Koncept na vektor… Cancel Concept to Vector Job Zrušit úlohu Koncept na vektor + Cancel Concept to Vector Zrušit Koncept na vektor Concept to Vector Providers Poskytovatelé Koncept na vektor Concept to Vector Results Výsledky Koncept na vektor Generate Concept to Vector Styles Vytvořit styly Koncept na vektor diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 594d9bbf2e..82c0c20b74 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -6893,6 +6893,7 @@ breakText Glyphs Glyffer Concept to Vector Koncept til vektor Concept to Vector… Koncept til vektor… Cancel Concept to Vector Job Annuller jobbet Koncept til vektor + Cancel Concept to Vector Annuller Koncept til vektor Concept to Vector Providers Udbydere til Koncept til vektor Concept to Vector Results Resultater fra Koncept til vektor Generate Concept to Vector Styles Lav stilarter til Koncept til vektor diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 27ac0a406b..54c503e733 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -7085,6 +7085,7 @@ breakText Glyphs Glyphen Concept to Vector Konzept zu Vektor Concept to Vector… Konzept zu Vektor… Cancel Concept to Vector Job Konzept-zu-Vektor-Auftrag abbrechen + Cancel Concept to Vector Konzept zu Vektor abbrechen Concept to Vector Providers Konzept-zu-Vektor-Anbieter Concept to Vector Results Konzept-zu-Vektor-Ergebnisse Generate Concept to Vector Styles Konzept-zu-Vektor-Stile erzeugen diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 4226c4913a..213539da1d 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -7442,6 +7442,7 @@ breakText Glyphs Γλύφοι Concept to Vector Από ιδέα σε διάνυσμα Concept to Vector… Από ιδέα σε διάνυσμα… Cancel Concept to Vector Job Ακύρωση εργασίας «Από ιδέα σε διάνυσμα» + Cancel Concept to Vector Ακύρωση «Από ιδέα σε διάνυσμα» Concept to Vector Providers Πάροχοι «Από ιδέα σε διάνυσμα» Concept to Vector Results Αποτελέσματα «Από ιδέα σε διάνυσμα» Generate Concept to Vector Styles Δημιουργία στυλ «Από ιδέα σε διάνυσμα» diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index f47ca5f107..255f1d38cb 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -7433,6 +7433,7 @@ breakText Glyphs Glifos Concept to Vector Concepto a vector Concept to Vector… Concepto a vector… Cancel Concept to Vector Job Cancelar tarea de Concepto a vector + Cancel Concept to Vector Cancelar Concepto a vector Concept to Vector Providers Proveedores de Concepto a vector Concept to Vector Results Resultados de Concepto a vector Generate Concept to Vector Styles Generar estilos de Concepto a vector diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index 1c659a47bd..93de93c15b 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -7524,6 +7524,7 @@ breakText Glyphs Merkit Concept to Vector Konseptista vektoriksi Concept to Vector… Konseptista vektoriksi… Cancel Concept to Vector Job Peruuta Konseptista vektoriksi -työ + Cancel Concept to Vector Peruuta Konseptista vektoriksi Concept to Vector Providers Konseptista vektoriksi -palveluntarjoajat Concept to Vector Results Konseptista vektoriksi -tulokset Generate Concept to Vector Styles Luo Konseptista vektoriksi -tyylit diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 6aeccc9e15..8dff3dd0f4 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -7484,6 +7484,7 @@ breakText Glyphs Glyphes Concept to Vector Du concept au vecteur Concept to Vector… Du concept au vecteur… Cancel Concept to Vector Job Annuler la tâche Du concept au vecteur + Cancel Concept to Vector Annuler Du concept au vecteur Concept to Vector Providers Fournisseurs Du concept au vecteur Concept to Vector Results Résultats Du concept au vecteur Generate Concept to Vector Styles Générer les styles Du concept au vecteur diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index 5106367e80..6fe72a93d7 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -8880,6 +8880,7 @@ theme Appearance अपीयरेंस Concept to Vector कॉन्सेप्ट से वेक्टर Concept to Vector… कॉन्सेप्ट से वेक्टर… Cancel Concept to Vector Job कॉन्सेप्ट से वेक्टर जॉब रद्द करें + Cancel Concept to Vector कॉन्सेप्ट से वेक्टर रद्द करें Concept to Vector Providers कॉन्सेप्ट से वेक्टर प्रदाता Concept to Vector Results कॉन्सेप्ट से वेक्टर परिणाम Generate Concept to Vector Styles कॉन्सेप्ट से वेक्टर स्टाइल बनाएँ diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 03ef7f041d..9e628afd90 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -7473,6 +7473,7 @@ breakText Glyphs Glifák Concept to Vector Koncepcióból vektor Concept to Vector… Koncepcióból vektor… Cancel Concept to Vector Job Koncepcióból vektor feladat megszakítása + Cancel Concept to Vector Koncepcióból vektor megszakítása Concept to Vector Providers Koncepcióból vektor szolgáltatók Concept to Vector Results Koncepcióból vektor eredmények Generate Concept to Vector Styles Koncepcióból vektor stílusok létrehozása diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 15651eb51d..af1ed5d418 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -6893,6 +6893,7 @@ breakText Glyphs Glif Concept to Vector Konsep ke Vektor Concept to Vector… Konsep ke Vektor… Cancel Concept to Vector Job Batalkan Tugas Konsep ke Vektor + Cancel Concept to Vector Batalkan Konsep ke Vektor Concept to Vector Providers Penyedia Konsep ke Vektor Concept to Vector Results Hasil Konsep ke Vektor Generate Concept to Vector Styles Buat Gaya Konsep ke Vektor diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index b7ec055896..86735b4e87 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -7119,6 +7119,7 @@ breakText Glyphs Glifi Concept to Vector Da concetto a vettore Concept to Vector… Da concetto a vettore… Cancel Concept to Vector Job Annulla attività Da concetto a vettore + Cancel Concept to Vector Annulla Da concetto a vettore Concept to Vector Providers Fornitori Da concetto a vettore Concept to Vector Results Risultati Da concetto a vettore Generate Concept to Vector Styles Genera stili Da concetto a vettore diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index a2344d8938..f21069d33f 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -7185,6 +7185,7 @@ breakText Glyphs 字形 Concept to Vector コンセプトからベクター Concept to Vector… コンセプトからベクター… Cancel Concept to Vector Job コンセプトからベクターのジョブをキャンセル + Cancel Concept to Vector コンセプトからベクターをキャンセル Concept to Vector Providers コンセプトからベクターのプロバイダー Concept to Vector Results コンセプトからベクターの結果 Generate Concept to Vector Styles コンセプトからベクターのスタイルを生成 diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 01310b01f4..9e82fba498 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -7603,6 +7603,7 @@ font-script Japanese იაპონური Concept to Vector კონცეფციიდან ვექტორამდე Concept to Vector… კონცეფციიდან ვექტორამდე… Cancel Concept to Vector Job „კონცეფციიდან ვექტორამდე“ დავალების გაუქმება + Cancel Concept to Vector „კონცეფციიდან ვექტორამდე“ გაუქმება Concept to Vector Providers „კონცეფციიდან ვექტორამდე“ მომწოდებლები Concept to Vector Results „კონცეფციიდან ვექტორამდე“ შედეგები Generate Concept to Vector Styles „კონცეფციიდან ვექტორამდე“ სტილების შექმნა diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index c0f023bd78..d14a990c15 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -7080,6 +7080,7 @@ breakText Glyphs 글리프 Concept to Vector 콘셉트를 벡터로 Concept to Vector… 콘셉트를 벡터로… Cancel Concept to Vector Job 콘셉트를 벡터로 작업 취소 + Cancel Concept to Vector 콘셉트를 벡터로 취소 Concept to Vector Providers 콘셉트를 벡터로 공급자 Concept to Vector Results 콘셉트를 벡터로 결과 Generate Concept to Vector Styles 콘셉트를 벡터로 스타일 생성 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 38fb352700..61c9b7b732 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -7516,6 +7516,7 @@ breakText Glyphs Glyphs Concept to Vector Concept naar vector Concept to Vector… Concept naar vector… Cancel Concept to Vector Job Taak Concept naar vector annuleren + Cancel Concept to Vector Concept naar vector annuleren Concept to Vector Providers Aanbieders voor Concept naar vector Concept to Vector Results Resultaten van Concept naar vector Generate Concept to Vector Styles Stijlen voor Concept naar vector maken diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index b55e15b11f..1bb9d462b1 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -7346,6 +7346,7 @@ breakText Glyphs Glify Concept to Vector Koncepcja na wektor Concept to Vector… Koncepcja na wektor… Cancel Concept to Vector Job Anuluj zadanie Koncepcja na wektor + Cancel Concept to Vector Anuluj Koncepcja na wektor Concept to Vector Providers Dostawcy Koncepcja na wektor Concept to Vector Results Wyniki Koncepcja na wektor Generate Concept to Vector Styles Generuj style Koncepcja na wektor diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index 39f6eadba5..59dedd1154 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -7562,6 +7562,7 @@ swatch Yellow Green Verde-amarelado Concept to Vector Conceito para vetor Concept to Vector… Conceito para vetor… Cancel Concept to Vector Job Cancelar tarefa de Conceito para vetor + Cancel Concept to Vector Cancelar Conceito para vetor Concept to Vector Providers Provedores de Conceito para vetor Concept to Vector Results Resultados de Conceito para vetor Generate Concept to Vector Styles Gerar estilos de Conceito para vetor diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 2757db8457..6b8c12ef48 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -7578,6 +7578,7 @@ shape Open Открытый Concept to Vector Концепт в вектор Concept to Vector… Концепт в вектор… Cancel Concept to Vector Job Отменить задание «Концепт в вектор» + Cancel Concept to Vector Отменить «Концепт в вектор» Concept to Vector Providers Поставщики «Концепт в вектор» Concept to Vector Results Результаты «Концепт в вектор» Generate Concept to Vector Styles Создать стили «Концепт в вектор» diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index 0889df804c..4abcef31c4 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -8927,6 +8927,7 @@ digits Hindi Hindi Concept to Vector Koncept till vektor Concept to Vector… Koncept till vektor… Cancel Concept to Vector Job Avbryt jobbet Koncept till vektor + Cancel Concept to Vector Avbryt Koncept till vektor Concept to Vector Providers Leverantörer för Koncept till vektor Concept to Vector Results Resultat för Koncept till vektor Generate Concept to Vector Styles Skapa stilar för Koncept till vektor diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index cd6326f740..1791f73e19 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -7445,6 +7445,7 @@ breakText Glyphs Glifler Concept to Vector Konseptten Vektöre Concept to Vector… Konseptten Vektöre… Cancel Concept to Vector Job Konseptten Vektöre İşini İptal Et + Cancel Concept to Vector Konseptten Vektöre İşlemini İptal Et Concept to Vector Providers Konseptten Vektöre Sağlayıcıları Concept to Vector Results Konseptten Vektöre Sonuçları Generate Concept to Vector Styles Konseptten Vektöre Stilleri Oluştur diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index 8330435f86..7833026b23 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -7099,6 +7099,7 @@ breakText Glyphs Гліфи Concept to Vector Концепт у вектор Concept to Vector… Концепт у вектор… Cancel Concept to Vector Job Скасувати завдання «Концепт у вектор» + Cancel Concept to Vector Скасувати «Концепт у вектор» Concept to Vector Providers Постачальники «Концепт у вектор» Concept to Vector Results Результати «Концепт у вектор» Generate Concept to Vector Styles Створити стилі «Концепт у вектор» diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 6302c8573f..f0b17c84a9 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -7100,6 +7100,7 @@ breakText Glyphs Glyph Concept to Vector Ý tưởng thành vector Concept to Vector… Ý tưởng thành vector… Cancel Concept to Vector Job Hủy tác vụ Ý tưởng thành vector + Cancel Concept to Vector Hủy Ý tưởng thành vector Concept to Vector Providers Nhà cung cấp Ý tưởng thành vector Concept to Vector Results Kết quả Ý tưởng thành vector Generate Concept to Vector Styles Tạo kiểu Ý tưởng thành vector diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 470cf713f0..f514afb2d2 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -7328,6 +7328,7 @@ breakText Glyphs 字形 Concept to Vector 概念转矢量 Concept to Vector… 概念转矢量… Cancel Concept to Vector Job 取消概念转矢量任务 + Cancel Concept to Vector 取消概念转矢量 Concept to Vector Providers 概念转矢量提供程序 Concept to Vector Results 概念转矢量结果 Generate Concept to Vector Styles 生成概念转矢量样式 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 95cd7a5c5a..f65fce5e3f 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -7135,6 +7135,7 @@ breakText Glyphs 字符 Concept to Vector 概念轉向量 Concept to Vector… 概念轉向量… Cancel Concept to Vector Job 取消概念轉向量工作 + Cancel Concept to Vector 取消概念轉向量 Concept to Vector Providers 概念轉向量提供者 Concept to Vector Results 概念轉向量結果 Generate Concept to Vector Styles 產生概念轉向量樣式 diff --git a/crates/ui-egui/src/menus/ui_commands.rs b/crates/ui-egui/src/menus/ui_commands.rs index 2cd285a2a8..5187398254 100644 --- a/crates/ui-egui/src/menus/ui_commands.rs +++ b/crates/ui-egui/src/menus/ui_commands.rs @@ -807,7 +807,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[ "ui.conceptVector.cancel", "Cancel Concept to Vector", "", - "{} the Concept to Vector panel's Cancel: stop the styles being made off the UI thread (on the web, before the next part); nothing is kept or shown → {cancelled: 0 or 1}", + "{} stop the styles the Concept to Vector panel is making off the UI thread (the panel's Cancel; on the web, before the next part): nothing is kept or shown → {canceled: 0 or 1}", ), ( "ui.cropImage", diff --git a/crates/ui-egui/src/panels/concept_vector.rs b/crates/ui-egui/src/panels/concept_vector.rs index 5a17aba0b3..641e329b11 100644 --- a/crates/ui-egui/src/panels/concept_vector.rs +++ b/crates/ui-egui/src/panels/concept_vector.rs @@ -202,14 +202,14 @@ pub fn cancel(app: &mut VectorcraftApp) { } /// `ui.conceptVector.cancel`, the panel's Cancel: stops the styles being made, and says so in the -/// status bar → `{cancelled: 0 or 1}`. +/// status bar → `{canceled: 0 or 1}`. pub fn cancel_run(app: &mut VectorcraftApp) -> Value { if !app.concept_runs.busy() { - return json!({ "cancelled": 0 }); + return json!({ "canceled": 0 }); } cancel(app); app.status(vectorcraft_engine::EngineError::Cancelled.to_string()); - json!({ "cancelled": 1 }) + json!({ "canceled": 1 }) } /// Each frame: makes the next part of a run made one part a frame, and keeps a finished run's diff --git a/crates/ui-egui/src/panels/concept_vector/tests.rs b/crates/ui-egui/src/panels/concept_vector/tests.rs index 833a4db26f..e042027cc2 100644 --- a/crates/ui-egui/src/panels/concept_vector/tests.rs +++ b/crates/ui-egui/src/panels/concept_vector/tests.rs @@ -213,7 +213,7 @@ fn the_cancel_command_stops_a_run_as_the_button_does() { assert!(!menus::enabled(&app, CANCEL)); generate(&mut app).unwrap(); assert!(menus::enabled(&app, CANCEL)); - assert_eq!(app.run(CANCEL, json!({})).unwrap(), json!({"cancelled": 1})); + assert_eq!(app.run(CANCEL, json!({})).unwrap(), json!({"canceled": 1})); assert!(!app.concept_runs.busy() && !menus::enabled(&app, CANCEL)); assert_eq!(app.ui.status, vectorcraft_engine::EngineError::Cancelled.to_string()); poll(&mut app); diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 2bde0f49ee..a1fae2a8d3 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1394,7 +1394,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - **Image Trace, JPEG blocks:** Color, Grayscale and Black and White traces smooth the edges of a JPEG's 8 × 8 blocks before tracing, so a dark ground whose tone changes slowly is no longer traced as staircases along the block edges. The block grid is found in the image itself: the mean step between neighboring pixels must peak at one position in eight, across and down. A cropped JPEG and a JPEG saved in another format are smoothed too. A picture of flat 8 × 8 cells is left as it is, and art made of 8 × 8 cells with slight texture inside each cell is smoothed as a JPEG copy would be. A small step at a block edge, with no edge in the eight pixels around it, is spread over those eight pixels, and larger steps are kept, as the deblocking filters of ITU-T H.263 Annex J and MPEG-4 Part 2 Annex F.3.1 do. Black and White smooths only the smallest steps, and traces of more than 16 colors move every row of a stretch of eight by the same amount (VectorCraft's own rule and values). On a 4000 × 3000 photo saved as JPEG, the straight outline segments that lie on the block grid fall from 52% and 51% (across and down) to 24% and 29% at 16 Colors, and from 54% and 51% to 43% and 42% at High Fidelity Photo; staircase runs fall from 83 to 67 (16 Colors), 11 to 1 (6 Colors), 30 to 13 (Black and White Logo) and 428 to 403 (High Fidelity Photo). A 600 px photo saved as a quality-40 JPEG has 4 staircase runs instead of 2 at 16 Colors. Images without a block grid trace as before. Tests: `tests::a_jpegs_blocks_are_not_traced_as_steps`, `deblock::tests`. Scores and hours unchanged. - **Image Trace, Document Library color groups:** with Document Swatches, the panel's Colors menu and `"colorGroup"` trace with one color group's colors instead of every swatch, as the public panel documentation describes Document Library; code-drawn tests in `crates/engine` and the panel. - **Image Trace, Document Library colors:** with Document Swatches, traced fills and strokes use the displayed colors of process, global, spot and tint swatches without links, so editing a swatch leaves the trace unchanged; swatch-library colors are also unlinked; code-drawn tests in `crates/engine`. -- **Concept to Vector, offline styles (in part):** Window › Concept to Vector and Object › Concept to Vector… (also the context menu, the contextual task bar and the Control bar for one image or unexpanded Image Trace object; Properties for one image) make 1 to 8 styles of the selected image side by side and insert the ticked ones to the right of it as one undo step, as the help page describes for comparing styles ([Generate vector artwork from images](https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html)). The only provider is built in: five VectorCraft styles (Outline, Ink Lines, Flat Color, Detailed Color, Gray Tones) made with Image Trace on this computer, with Detail from 0 to 100; it takes no prompt and makes no raster output, so prompt-led generation is still missing. Other providers plug in by id through `crates/engine/src/concept_vector.rs`, and every result is checked before it is kept. Tests: `concept_vector::tests` in `crates/engine` and `panels::concept_vector::tests` in `crates/ui-egui`. Scores and hours unchanged. +- **Concept to Vector, offline styles (in part):** Window › Concept to Vector and Object › Concept to Vector… (also the context menu and the contextual task bar for one image or unexpanded Image Trace object; the Control bar and Properties for one image) make 1 to 5 styles of the selected image side by side (a provider may offer up to 8) and insert the ticked ones to the right of it as one undo step, as the help page describes for comparing styles ([Generate vector artwork from images](https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html)). The only provider is built in: five VectorCraft styles (Outline, Ink Lines, Flat Color, Detailed Color, Gray Tones) made with Image Trace on this computer, with Detail from 0 to 100; it takes no prompt and makes no raster output, so prompt-led generation is still missing. Other providers plug in by id through `crates/engine/src/concept_vector.rs`, and every result is checked before it is kept. Tests: `concept_vector::tests` in `crates/engine` and `panels::concept_vector::tests` in `crates/ui-egui`. Scores and hours unchanged. - **Image Trace, flattened slivers:** in a Color, Grayscale or Black and White trace with Fills, a traced region whose outline straightens onto one line (a single pixel, or a one-pixel row along an edge, its pieces shared with the regions beside it) is left out instead of becoming a selectable path with no area, which paints nothing. Snap Curves To Lines straightens more outlines, so it leaves out more of these. Without Fills, the region's 1 px stroke draws it, and it is kept. Code-drawn tests in `crates/trace`. - **Image Trace, Auto Color rare colours:** the Automatic palette keeps colours too rare for its area count when they are distinct (Oklab) and drawn as coherent regions, at most six, protected from mixed-colour merging and Noise; code-drawn stem, highlight, low-contrast and scattered-noise tests (see [quality notes](image-trace-quality.md#auto-color-keeps-rare-colours)). - **Image Trace, nearly flat dark grounds:** with a Limited palette of 9 to 16 colors (16 Colors, and Document Library without swatches), by VectorCraft's own rule, a cut whose two sides both have a dark gray mean (Oklab lightness under 0.30, chroma under 0.03) and lie less than 0.03 apart in Oklab has its gain scaled by (distance / 0.03)². A near-black ground with faint noise then traces in one color, and the color it would have taken goes to another cut. Code-drawn tests `a_nearly_flat_dark_ground_keeps_one_color`, `only_a_limited_palette_of_nine_to_sixteen_colors_weighs_alike_sides` and `a_dark_colored_figure_on_a_nearly_flat_dark_ground_keeps_its_color` in `crates/trace`. diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 0f966ec6b1..61a8567d1f 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -405,7 +405,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | Image Trace panel: holding the eye button next to View down shows the selected Image Trace objects' source image on the canvas | done | Per the public documentation, the control next to View is pressed and held to compare the trace result with the source image (). On release the objects show their View again; the document, its View and the undo history are unchanged. `RenderOptions::trace_source`; `panels/image_trace.rs` headless test `holding_the_eye_button_shows_the_source_image_until_released`, render test `trace_source_draws_the_source_image_of_the_listed_objects`. The Control bar and Properties have no such button | | Live trace result bounds and selection highlights exclude the retained bitmap; source-image views retain it | done | All TraceView modes and rotated result bounds regression-covered; ordinary hidden group behavior retained | | Image Trace panel: the Preview checkbox before Trace chooses whether a setting change traces the selected Image Trace object again at once | done | Per the public documentation, Preview shows the result of the current settings and Trace traces with them (). Preview is on by default and kept with the UI preferences; Reset to Default leaves it. Off, changes wait in the panel until Trace applies them as one undo step, or until Preview is turned on again. Changes stay with the object they were made for while another object is selected, and come back when it is selected again. `imageTrace.preview {on?}`, `ui.set {imageTracePreview}`; `panels/image_trace.rs` headless tests (`with_preview_off_a_slider_change_waits_for_trace`, `turning_preview_on_traces_the_changes_that_waited`, `preview_turned_on_with_nothing_selected_traces_when_the_object_is_selected_again`, `settings_that_wait_stay_with_their_object`, `settings_that_wait_come_back_when_their_object_is_selected_again`, `settings_that_wait_are_dropped_when_their_object_changed_since`, `preview_is_kept_with_the_preferences_and_reset_to_default_leaves_it`) | -| Concept to Vector panel: Window › Concept to Vector and Object › Concept to Vector… (also the context menu, the Contextual Task Bar and the Control bar) open it for one image or unexpanded Image Trace object, and Properties' Quick Actions for one image; it makes 1 to 8 styles side by side and Insert Selected puts the ticked ones to the right of the image as one undo step | partial | The help page describes choosing up to 8 styles of the selected image to compare side by side (). The built-in provider makes five offline Image Trace styles with Detail 0 to 100; its prompt field is disabled and it makes no raster output. On the web build a run is made one part a frame, so Cancel takes effect inside a style. Decoding the image, finding a style's color layers and tracing one layer are each one part; the Detailed Color and Gray Tones styles trace all their color layers in one part. Cancel waits for the part in progress to end. `conceptVector.providers`, `conceptVector.generate`, `conceptVector.results`, `conceptVector.cancel`, `conceptVector.insert`, `ui.conceptVector.cancel` (the panel's Cancel); `panels/concept_vector.rs` headless tests | +| Concept to Vector panel: Window › Concept to Vector and Object › Concept to Vector… (also the context menu and the Contextual Task Bar) open it for one image or unexpanded Image Trace object, and the Control bar and Properties' Quick Actions for one image; it makes 1 to 5 styles side by side (a provider may offer up to 8) and Insert Selected puts the ticked ones to the right of the image as one undo step | partial | The help page describes choosing up to 8 styles of the selected image to compare side by side (). The built-in provider makes five offline Image Trace styles with Detail 0 to 100; its prompt field is disabled and it makes no raster output. On the web build a run is made one part a frame, so Cancel takes effect inside a style. Decoding the image, finding a style's color layers and tracing one layer are each one part; the Detailed Color and Gray Tones styles trace all their color layers in one part. Cancel waits for the part in progress to end. `conceptVector.providers`, `conceptVector.generate`, `conceptVector.results`, `conceptVector.cancel`, `conceptVector.insert`, `ui.conceptVector.cancel` (the panel's Cancel); `panels/concept_vector.rs` headless tests | | Toolbar without group labels by default, one or two columns; All Tools drawer by flyout group with shortcuts, its menu (Reset, Basic, Advanced) and Show section | done | #1751; a preference brings the labels back; `toolbar.show` sets the Fill/Stroke, Coloring, Draw Mode and Screen Mode controls | | Actions panel: ≡ › Save Actions… saves the current set with all its actions to a file and ≡ › Load Actions… adds a saved set ([Manage a set of actions](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/manage-a-set-of-actions.html)) | partial | `ui.actionSet.save`, `ui.actionSet.load`; `panels/actions.rs` tests. The file is VectorCraft's own `.vcactions` JSON; Reset, Clear and Replace Actions remain | | Actions panel: ≡ › Load Actions… also reads action sets saved as `.aia` files ([Actions panel overview](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/actions-panel-overview.html)) | partial | `actionSet.read`, `ui.actionSet.load`; `tests/actionset.rs`, `panels/actions.rs` tests, `import_fuzz`. Only steps with a label and no recorded values come in, as menu commands that run with no values and open no dialog, matched by label; the other steps, recorded menu items included, are left out and counted |