Merge #552: Fix #543: Object › Image Trace › Make traces with the Default preset

# Conflicts:
#	ROADMAP.md
This commit is contained in:
bflatastic 2026-10-09 01:03:27 +07:00
commit 086d6287be
9 changed files with 21 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@ -143,6 +143,7 @@
Make Pixel Perfect Zarovnat na obrazové body
Slice Řez
Make Vytvořit
Make and Expand Vytvořit a rozložit
Release Uvolnit
Create from Guides Vytvořit z vodítek
Create from Selection Vytvořit z výběru
@ -199,8 +200,6 @@
Merge Sloučit
Gap Options… Možnosti mezer…
Image Trace Vektorizace obrazu
Make… Vytvořit…
Make and Expand… Vytvořit a rozložit…
Text Wrap Obtékání textu
Text Wrap Options… Možnosti obtékání textu…
Clipping Mask Ořezová maska

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -1369,7 +1369,6 @@
Make a theme on Create and save it. Crea un tema en Crear y guárdalo.
Make all bleed settings the same Usar el mismo valor en todos los sangrados
Make and Expand Crear y expandir
Make and Expand… Crear y expandir…
Make Clipping Mask Crear máscara de recorte
Make Compound Shape Crear forma compuesta
Make Envelope Crear envolvente
@ -1382,7 +1381,6 @@
Make with Top Object Crear con objeto superior
Make with Warp… Crear con deformación…
Make/Release Clipping Mask Crear/soltar máscara de recorte
Make… Crear…
Manage Workspaces Administrar espacios de trabajo
Manage Workspaces… Administrar espacios de trabajo…
Manually Manualmente

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -1369,7 +1369,6 @@
Make a theme on Create and save it. Crea un tema nella scheda Crea e salvalo.
Make all bleed settings the same Usa lo stesso valore per tutte le abbondanze
Make and Expand Crea ed espandi
Make and Expand… Crea ed espandi…
Make Clipping Mask Crea maschera di ritaglio
Make Compound Shape Crea forma composta
Make Envelope Crea involucro
@ -1382,7 +1381,6 @@
Make with Top Object Crea con oggetto superiore
Make with Warp… Crea con alterazione…
Make/Release Clipping Mask Crea/rilascia maschera di ritaglio
Make… Crea…
Manage Workspaces Gestisci aree di lavoro
Manage Workspaces… Gestisci aree di lavoro…
Manually Manualmente

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -233,8 +233,6 @@
Image Trace 画像トレース
Image Tracing 画像トレースオブジェクト
Tracing Presets トレースプリセット
Make… 作成…
Make and Expand… 作成して拡張…
Text Wrap テキストの回り込み
Text Wrap Options… テキストの回り込みオプション…
Clipping Mask クリッピングマスク

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -1242,13 +1242,11 @@
Make a theme on Create and save it. Crie um tema em Criar e salve-o.
Make all bleed settings the same Tornar todas as configurações de sangria iguais
Make and Expand Criar e Expandir
Make and Expand… Criar e Expandir…
Make the bleed values differ Fazer os valores de sangria diferirem
Make with Mesh… Criar com Malha…
Make with Top Object Criar com Objeto Superior
Make with Warp… Criar com Distorção…
Make/Release Clipping Mask Criar/Liberar Máscara de Recorte
Make… Criar…
Manage Workspaces Gerenciar Espaços de Trabalho
Manage Workspaces… Gerenciar Espaços de Trabalho…
Manually Manualmente

Can't render this file because it contains an unexpected character in line 6 and column 47.

View File

@ -1351,7 +1351,6 @@
Make a theme on Create and save it. 在“创建”中制作主题并存储。
Make all bleed settings the same 使所有出血设置相同
Make and Expand 创建并扩展
Make and Expand… 制作并展开…
Make Clipping Mask 制作剪切蒙版
Make Compound Shape 创建复合形状
Make Envelope 制作封套
@ -1364,7 +1363,6 @@
Make with Top Object 用顶层对象创建
Make with Warp… 用变形创建…
Make/Release Clipping Mask 创建/释放剪切蒙版
Make… 制作…
Manage Workspaces 管理工作区
Manage Workspaces… 管理工作区…
Manually 手动

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -1387,7 +1387,6 @@
Make a theme on Create and save it. 按一下「建立」即可製作主題並儲存。
Make all bleed settings the same 將所有出血設定設為相同
Make and Expand 製作並展開
Make and Expand… 製作並展開…
Make Clipping Mask 製作剪裁遮色片
Make Compound Shape 製作複合形狀
Make Envelope 製作封套
@ -1400,7 +1399,6 @@
Make with Top Object 以最上層物件製作
Make with Warp… 以彎曲製作…
Make/Release Clipping Mask 製作/釋放剪裁遮色片
Make… 製作…
Manage Workspaces 管理工作區
Manage Workspaces… 管理工作區…
Manually 手動

Can't render this file because it contains an unexpected character in line 6 and column 47.

View File

@ -2157,8 +2157,11 @@ pub fn menu_tree() -> Vec<(&'static str, Vec<Item>)> {
sub(
"Image Trace",
vec![
cp("Make…", "imageTrace.make", json!({"preset": "Black and White Logo"})),
cp("Make and Expand…", "imageTrace.makeAndExpand", json!({"preset": "6 Colors"})),
// Traced at once with the Default preset, as the Control bar's Image Trace
// button does; other presets come from its arrow or the Image Trace panel
// (#543: the "…" form asked for a preset's name in a text box).
cp("Make", "imageTrace.make", json!({"preset": "Default"})),
cp("Make and Expand", "imageTrace.makeAndExpand", json!({"preset": "Default"})),
c("Release", "imageTrace.release"),
c("Expand", "imageTrace.expand"),
],
@ -3780,6 +3783,19 @@ mod tests {
assert_eq!(pretty_shortcut(""), "");
}
/// #543: Object › Image Trace › Make and Make and Expand trace with the Default preset at once,
/// with no form asking for a preset's name.
#[test]
fn image_trace_make_traces_with_the_default_preset() {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());
app.run("file.new", json!({})).unwrap();
for cmd in ["imageTrace.make", "imageTrace.makeAndExpand"] {
let e = menu_entries(&app).into_iter().find(|e| e.command.as_deref() == Some(cmd)).unwrap();
assert_eq!(e.path, ["Object", "Image Trace"]);
assert_eq!(click_target(&e.label, cmd, &e.params), (cmd.to_string(), json!({"preset": "Default"})), "{}", e.label);
}
}
#[test]
fn expand_appearance_is_an_object_menu_item_only() {
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());