Rasterize: Anti Alias and Background are dropdowns in the dialog

Object › Rasterize… showed Anti Alias and Background as text fields
holding the command's values. They are now dropdowns of the values
object.rasterize takes: None, Art Optimized and Type Optimized, and
White and Transparent. Create Gradient Mesh… shows Appearance (Flat,
To Center, To Edge) and grid Repeat Options shows Grid Type the same
way. A value the dialog does not list is shown and sent unchanged.

Catalog rows are added for the labels that had none.

Part of #8020, part of #7991.
This commit is contained in:
dotCooCoo
2026-11-16 21:54:56 -08:00
parent 42193ed3ca
commit f8ccbf72f5
31 changed files with 278 additions and 1 deletions
+168
View File
@@ -201,10 +201,35 @@ fn choices(command: &str, key: &str) -> Option<form::Choices> {
(crate::addons::pathtools::COMMON_TANGENTS, "tangents") => Some(crate::addons::pathtools::TANGENT_KINDS),
(crate::addons::image::REMOVE_BACKGROUND | crate::addons::image::COLOR_MASK, "background") => Some(crate::addons::image::BACKGROUNDS),
(crate::addons::image::REMOVE_BACKGROUND | crate::addons::image::COLOR_MASK, "match") => Some(crate::addons::image::MATCHES),
("object.rasterize", "antiAlias") => Some(RASTERIZE_ANTI_ALIAS),
("object.rasterize", "background") => Some(RASTERIZE_BACKGROUNDS),
("object.mesh.create", "appearance") => Some(MESH_APPEARANCES),
("object.repeat.options", "gridType") => Some(REPEAT_GRID_TYPES),
_ => None,
}
}
/// Object › Rasterize › Anti-aliasing: the modes `vectorcraft_render::AntiAlias` names, with its
/// labels, as the Rasterize effect's dialog lists them (`effect.rs`, `own_choices`).
const RASTERIZE_ANTI_ALIAS: form::Choices = &[("None", "none"), ("Art Optimized", "art"), ("Type Optimized", "type")];
/// Object › Rasterize › Background, as Document Raster Effects Settings and the Rasterize effect
/// list it. A color the command was given another way (black, a hex color) shows as it is.
const RASTERIZE_BACKGROUNDS: form::Choices = &[("White", "white"), ("Transparent", "transparent")];
/// Object › Create Gradient Mesh › Appearance: the values `object.mesh.create` takes.
const MESH_APPEARANCES: form::Choices = &[("Flat", "flat"), ("To Center", "center"), ("To Edge", "edge")];
/// Repeat Options › Grid Type of a grid repeat: the tile types, labeled as the Pattern Options
/// panel labels them (`panels/pattern_options.rs`, `TILE_LABELS`).
const REPEAT_GRID_TYPES: form::Choices = &[
("Grid", "grid"),
("Brick by Row", "brickByRow"),
("Brick by Column", "brickByColumn"),
("Hex by Column", "hexByColumn"),
("Hex by Row", "hexByRow"),
];
/// Object › Rasterize › Color Model: the values `object.rasterize` takes, the document's own
/// colour model first (#5660).
fn rasterize_color_models(command: &str, key: &str, cmyk: bool) -> Option<form::Choices> {
@@ -688,4 +713,147 @@ mod tests {
h.event(egui::Event::PointerButton { pos: ok, button, pressed: false, modifiers });
h.run_steps(3);
}
/// The dialog that is open in `app`, drawn by a kittest harness (the first frame installs the
/// fonts).
fn dialog_harness(app: VectorcraftApp) -> egui_kittest::Harness<'static, VectorcraftApp> {
let mut fonts = false;
let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(1100.0, 900.0)).build_ui_state(
move |ui, app: &mut VectorcraftApp| {
if !std::mem::replace(&mut fonts, true) {
crate::theme::install_fonts(ui.ctx());
return;
}
crate::dialogs::show(app, ui.ctx());
},
app,
);
h.run_steps(5);
h
}
/// Opens the dropdown labeled `label` and picks `choice` in it: the field must be a dropdown,
/// not a text field.
fn pick(h: &mut egui_kittest::Harness<'_, VectorcraftApp>, label: &str, choice: &str) {
use egui::accesskit::Role;
use egui_kittest::kittest::Queryable;
assert!(h.query_by_role_and_label(Role::TextInput, label).is_none(), "{label} is not a text field");
h.get_by_role_and_label(Role::ComboBox, label).click();
h.run_steps(3);
h.get_by_label(choice).click();
h.run_steps(3);
}
/// The choices this dialog lists for Rasterize, Create Gradient Mesh and Repeat Options are the
/// values their commands take (#8020, #7991): each one runs, and every language with complete
/// menus has a row for each label.
#[test]
fn choice_fields_list_the_values_their_commands_take() {
use vectorcraft_doc::pattern::TileType;
use vectorcraft_render::AntiAlias;
let listed = |command: &str, key: &str| choices(command, key).unwrap_or_else(|| panic!("{command} {key}: a choice"));
let aa: Vec<(&str, &str)> = AntiAlias::ALL.iter().map(|a| (a.label(), a.id())).collect();
assert_eq!(listed("object.rasterize", "antiAlias"), aa.as_slice());
for (_, value) in listed("object.rasterize", "background") {
assert!(vectorcraft_doc::Background::parse(value).is_some(), "{value}");
}
for (label, value) in listed("object.repeat.options", "gridType") {
let tile = TileType::parse(value, None).unwrap_or_else(|| panic!("{value}"));
assert_eq!((tile.id(), tile.label()), (*value, *label));
}
let run = |command: &str, key: &str, value: &str| {
let mut s = Session::new();
s.execute("file.new", &json!({"width": 100, "height": 100})).unwrap();
let id = s.execute("shape.rectangle", &json!({"x": 10, "y": 10, "width": 20, "height": 20})).unwrap()["id"].clone();
if command == "object.repeat.options" {
s.execute("object.repeat.grid", &json!({"ids": [id], "rows": 2, "cols": 2})).unwrap();
}
s.execute(command, &json!({ key: value })).unwrap_or_else(|e| panic!("{command} {key} {value}: {e}"));
};
let fields = [
("object.rasterize", "antiAlias"),
("object.rasterize", "background"),
("object.mesh.create", "appearance"),
("object.repeat.options", "gridType"),
];
for (command, key) in fields {
for (label, value) in listed(command, key) {
run(command, key, value);
for lang in crate::i18n::Lang::all().filter(|l| l.complete_menus()) {
assert!(crate::i18n::has(lang, label), "{}: {label}", lang.code());
}
}
}
}
/// Object › Rasterize… shows Anti Alias and Background as dropdowns of the values
/// `object.rasterize` takes. OK rasterizes with the picked ones as one undo step, and a value
/// the dialog doesn't list (black) shows as it is and is sent unchanged.
#[test]
fn rasterize_anti_alias_and_background_are_dropdowns() {
let corner = |app: &VectorcraftApp| {
let st = app.session.active().unwrap();
let key = st.selection.objects.iter().find_map(|id| match st.doc.node(*id).map(|n| &n.kind) {
Some(NodeKind::Image(i)) => Some(i.key.clone()),
_ => None,
});
let decoded = craft_image_codecs::decode(&st.doc.images[&key.expect("the ellipse became an image")].bytes).unwrap();
image::RgbaImage::from_raw(decoded.width(), decoded.height(), decoded.to_rgba8()).unwrap().get_pixel(0, 0).0
};
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
let id = app.run("shape.ellipse", json!({"x": 10, "y": 10, "width": 40, "height": 40})).unwrap()["id"].as_u64().unwrap();
app.run("paint.setFill", json!({"color": "#ff0000", "ids": [id]})).unwrap();
app.run("select.set", json!({"ids": [id]})).unwrap();
let steps = app.session.active().unwrap().history.undo.len();
crate::menus::invoke(&mut app, "object.rasterize", json!({}));
let d = app.ui.dialog.as_ref().unwrap();
assert_eq!((d.str("antiAlias"), d.str("background")), ("art".into(), "transparent".into()));
let mut h = dialog_harness(app);
pick(&mut h, "Anti Alias:", "Type Optimized");
pick(&mut h, "Background:", "White");
let d = h.state().ui.dialog.as_ref().unwrap();
assert_eq!((d.str("antiAlias"), d.str("background")), ("type".into(), "white".into()));
let app = h.state_mut();
crate::dialogs::confirm(app).unwrap();
assert_eq!(app.session.active().unwrap().history.undo.len(), steps + 1, "one undo step");
assert_eq!(corner(app), [255, 255, 255, 255], "a white background");
// A background the dialog doesn't list stays as it is.
app.run("edit.undo", json!({})).unwrap();
app.run("select.set", json!({"ids": [id]})).unwrap();
crate::menus::invoke(app, "object.rasterize", json!({}));
app.ui.dialog.as_mut().unwrap().fields.insert("background".into(), json!("black"));
frame(app);
assert_eq!(app.ui.dialog.as_ref().unwrap().str("background"), "black", "drawing the dropdown keeps it");
crate::dialogs::confirm(app).unwrap();
assert_eq!(corner(app), [0, 0, 0, 255], "a black background");
}
/// Create Gradient Mesh… shows Appearance, and Repeat Options for a grid repeat its Grid Type,
/// as dropdowns of the values their commands take; OK applies the picked one.
#[test]
fn mesh_appearance_and_repeat_grid_type_are_dropdowns() {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 50, "height": 50})).unwrap();
let entries = crate::menus::menu_entries(&app);
let item = entries.iter().find(|e| e.path == ["Object"] && e.label == "Create Gradient Mesh…").expect("listed");
let (cmd, p) = crate::menus::click_target(&item.label, item.command.as_deref().unwrap(), &item.params);
crate::menus::invoke(&mut app, &cmd, p);
let mut h = dialog_harness(app);
pick(&mut h, "Appearance:", "To Center");
let app = h.state_mut();
assert_eq!(app.ui.dialog.as_ref().unwrap().str("appearance"), "center");
crate::dialogs::confirm(app).unwrap();
let st = app.session.active().unwrap();
assert!(st.selection.objects.iter().any(|id| matches!(st.doc.node(*id).map(|n| &n.kind), Some(NodeKind::Mesh(_)))), "a mesh");
let mut h = dialog_harness(grid_options_app());
pick(&mut h, "Grid Type:", "Brick by Row");
let app = h.state_mut();
assert_eq!(app.ui.dialog.as_ref().unwrap().str("gridType"), "brickByRow");
crate::dialogs::confirm(app).unwrap();
let fields = crate::panels::pattern_options::repeat_fields(app).unwrap();
assert_eq!(fields["gridType"], json!("brickByRow"));
}
}
+3
View File
@@ -670,6 +670,9 @@ font-technology Variable Променливи
Create from Selection Създаване от селекцията
Create From: Създаване от:
Create Gradient Mesh… Създаване на градиентна мрежа…
Flat Плоско
To Center Към центъра
To Edge Към ръба
Create Graph Създаване на диаграма
Create New Layer Създаване на нов слой
Create New Sublayer Създаване на нов подслой
Can't render this file because it is too large.
+3
View File
@@ -218,6 +218,9 @@
Mask Maska
Rasterize… Rasteriziraj…
Create Gradient Mesh… Kreiraj gradijentnu mrežu…
Flat Ravno
To Center Prema sredini
To Edge Prema ivici
Create Object Mosaic… Kreiraj mozaik objekata…
Vector Halftone… Vektorski polutonovi…
Create Trim Marks Kreiraj oznake za obrezivanje
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3
View File
@@ -989,6 +989,9 @@ antiAlias Sharp Nítid
Create from Selection Crea a partir de la selecció
Create From: Crea a partir de:
Create Gradient Mesh… Crea una malla de degradat…
Flat Pla
To Center Cap al centre
To Edge Cap a la vora
Create Graph Crea un gràfic
Create New Fields by Crea camps nous mitjançant
Create New Layer Crea una capa nova
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3
View File
@@ -224,6 +224,9 @@
Mask Maska
Rasterize… Rastrovat…
Create Gradient Mesh… Vytvořit přechodovou síť…
Flat Ploché
To Center Ke středu
To Edge K okraji
Create Object Mosaic… Vytvořit mozaiku objektů…
Vector Halftone… Vektorový polotón…
Create Trim Marks Vytvořit značky ořezu
Can't render this file because it is too large.
+3
View File
@@ -2905,6 +2905,9 @@ liquify-list-end {0}, {1} {0} og {1}
Mask Maskér
Rasterize… Rasterisér…
Create Gradient Mesh… Opret gradientnet…
Flat Flad
To Center Mod midten
To Edge Mod kanten
Create Object Mosaic… Opret objektmosaik…
Vector Halftone… Vektorhalvtone…
Create Trim Marks Opret beskæringsmærker
Can't render this file because it is too large.
+5
View File
@@ -180,6 +180,8 @@ antiAlias Sharp Scharf
Crisp Klar
Strong Stark
Anti-aliasing: Glättung:
Art Optimized Für Grafik optimiert
Type Optimized Für Text optimiert
Any Kind Beliebige Art
Font Technology Schrifttechnologie
font-technology Variable Variabel
@@ -670,6 +672,9 @@ font-technology Variable Variabel
Create from Selection Aus Auswahl erstellen
Create From: Erstellen aus:
Create Gradient Mesh… Verlaufsgitter erstellen…
Flat Flach
To Center Zur Mitte
To Edge Zum Rand
Create Graph Diagramm erstellen
Create New Layer Neue Ebene erstellen
Create New Sublayer Neue Unterebene erstellen
Can't render this file because it is too large.
+3
View File
@@ -651,6 +651,9 @@ font-technology Variable Μεταβλητές
Create from Selection Δημιουργία από επιλογή
Create From: Δημιουργία από:
Create Gradient Mesh… Δημιουργία πλέγματος ντεγκραντέ…
Flat Επίπεδο
To Center Προς το κέντρο
To Edge Προς την ακμή
Create Graph Δημιουργία γραφήματος
Create New Layer Δημιουργία νέου επιπέδου
Create New Sublayer Δημιουργία νέου υποεπιπέδου
Can't render this file because it is too large.
+3
View File
@@ -692,6 +692,9 @@ font-technology Variable Variables
Create from Selection Crear a partir de la selección
Create From: Crear a partir de:
Create Gradient Mesh… Crear malla de degradado…
Flat Plano
To Center Hacia el centro
To Edge Hacia el borde
Create Graph Crear gráfico
Create New Layer Crear capa nueva
Create New Sublayer Crear subcapa nueva
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3
View File
@@ -231,6 +231,9 @@
Mask Maski
Rasterize… Rasteroi…
Create Gradient Mesh… Luo liukuväriverkko…
Flat Tasainen
To Center Keskustaa kohti
To Edge Reunaa kohti
Create Object Mosaic… Luo objektimosaiikki…
Vector Halftone… Vektorirasterointi…
Create Trim Marks Luo leikkuumerkit
Can't render this file because it contains an unexpected character in line 2 and column 73.
+3
View File
@@ -693,6 +693,9 @@ font-technology Variable Variables
Create from Selection Créer à partir de la sélection
Create From: Créer à partir de :
Create Gradient Mesh… Créer un filet de dégradé…
Flat Plat
To Center Vers le centre
To Edge Vers le bord
Create Graph Créer un graphe
Create New Layer Créer un calque
Create New Sublayer Créer un sous-calque
Can't render this file because it is too large.
+9
View File
@@ -236,6 +236,8 @@
Anti-aliased Artwork એન્ટિ-એલિયાસ્ડ આર્ટવર્ક
Anti-aliasing Method એન્ટિ-એલિયાસિંગ પદ્ધતિ
Anti-aliasing: એન્ટિ-એલિયાસિંગ:
Art Optimized આર્ટ માટે ઑપ્ટિમાઇઝ કરેલું
Type Optimized ટેક્સ્ટ માટે ઑપ્ટિમાઇઝ કરેલું
Appearance દેખાવ
Appearance Attribute દેખાવ ગુણધર્મ
Appearance Item દેખાવ આઇટમ
@@ -429,6 +431,10 @@
Break Text into Words ટેક્સ્ટને શબ્દોમાં તોડો
Break Thread થ્રેડ તોડો
Brick Offset: ઈંટ ઑફસેટ:
Brick by Row પંક્તિ પ્રમાણે ઈંટ
Brick by Column કૉલમ પ્રમાણે ઈંટ
Hex by Column કૉલમ પ્રમાણે ષટ્કોણ
Hex by Row પંક્તિ પ્રમાણે ષટ્કોણ
Brightness તેજ
Brightness/Contrast… તેજ/કૉન્ટ્રાસ્ટ…
Brightness: તેજ:
@@ -791,6 +797,9 @@
Create From: આમાંથી બનાવો:
Create Gradient Mesh ગ્રેડિયન્ટ મેશ બનાવો
Create Gradient Mesh… ગ્રેડિયન્ટ મેશ બનાવો…
Flat સપાટ
To Center કેન્દ્ર તરફ
To Edge કિનારી તરફ
Create Graph ગ્રાફ બનાવો
Create New Layer નવો લેયર બનાવો
Create New Library નવી લાઇબ્રેરી બનાવો
Can't render this file because it contains an unexpected character in line 72 and column 5.
+3
View File
@@ -1133,6 +1133,9 @@ antiAlias Sharp शार्प
Create From: से बनाएँ:
Create Gradient Mesh ग्रेडिएंट मेश बनाएँ
Create Gradient Mesh… ग्रेडिएंट मेश बनाएँ…
Flat समतल
To Center केंद्र की ओर
To Edge किनारे की ओर
Create Graph ग्राफ़ बनाएँ
Create New {kind} Style नई {kind} स्टाइल बनाएँ
Create New Action नया एक्शन बनाएँ
Can't render this file because it is too large.
+3
View File
@@ -892,6 +892,9 @@ font-technology Variable Változó
Create from Selection Létrehozás a kijelölésből
Create From: Létrehozás ebből:
Create Gradient Mesh… Színátmenetes háló létrehozása…
Flat Sík
To Center A közép felé
To Edge Az él felé
Create Graph Diagram létrehozása
Create New Fields by Új félképek létrehozása
Create New Layer Új réteg létrehozása
Can't render this file because it is too large.
+3
View File
@@ -211,6 +211,9 @@
Mask Masker
Rasterize… Rasterisasi…
Create Gradient Mesh… Buat mesh gradien…
Flat Datar
To Center Ke tengah
To Edge Ke tepi
Create Object Mosaic… Buat mozaik objek…
Vector Halftone… Halftone vektor…
Create Trim Marks Buat tanda potong
1 # Indonesian (id) catalog. Same format as zh-hant.tsv: context <TAB> source <TAB> translation
211
212
213
214
215
216
217
218
219
+5
View File
@@ -205,6 +205,8 @@ antiAlias Sharp Nitido
Crisp Definito
Strong Forte
Anti-aliasing: Anti-aliasing:
Art Optimized Ottimizzato per la grafica
Type Optimized Ottimizzato per il testo
Any Kind Qualsiasi tipo
Font Technology Tecnologia font
font-technology Variable Variabili
@@ -692,6 +694,9 @@ font-technology Variable Variabili
Create from Selection Crea dalla selezione
Create From: Crea da:
Create Gradient Mesh… Crea trama sfumatura…
Flat Piatto
To Center Verso il centro
To Edge Verso il bordo
Create Graph Crea grafico
Create New Layer Crea nuovo livello
Create New Sublayer Crea nuovo sottolivello
Can't render this file because it is too large.
+5
View File
@@ -268,6 +268,9 @@ digits Malayalam マラヤーラム数字
Mask マスク
Rasterize… ラスタライズ…
Create Gradient Mesh… グラデーションメッシュを作成…
Flat フラット
To Center 中心へ
To Edge エッジへ
Create Object Mosaic… モザイクオブジェクトを作成…
Vector Halftone… ベクターハーフトーン…
Create Trim Marks トリムマークを作成
@@ -1120,6 +1123,8 @@ antiAlias Sharp シャープ
Crisp くっきり
Strong 太め
Anti-aliasing: アンチエイリアス:
Art Optimized アートに最適化
Type Optimized 文字に最適化
Appearance Item アピアランス項目
Appearance Panel アピアランスパネル
Appearance of Black ブラックのアピアランス
Can't render this file because it is too large.
+3
View File
@@ -2383,6 +2383,9 @@
Mask ნიღაბი
Rasterize… რასტრირება…
Create Gradient Mesh… გრადიენტული ბადის შექმნა…
Flat ბრტყელი
To Center ცენტრისკენ
To Edge კიდისკენ
Create Object Mosaic… ობიექტების მოზაიკის შექმნა…
Vector Halftone… ვექტორული ნახევარტონი…
Create Trim Marks ჭრის ნიშნების შექმნა
Can't render this file because it is too large.
+5
View File
@@ -261,6 +261,9 @@ digits Malayalam 말라얄람어
Mask 마스크
Rasterize… 래스터화…
Create Gradient Mesh… 그레이디언트 메시 만들기…
Flat 평면
To Center 가운데로
To Edge 가장자리로
Create Object Mosaic… 개체 모자이크 만들기…
Vector Halftone… 벡터 하프톤…
Create Trim Marks 트림 마크 만들기
@@ -1110,6 +1113,8 @@ antiAlias Sharp 날카롭게
Crisp 또렷하게
Strong 강하게
Anti-aliasing: 안티 앨리어싱:
Art Optimized 아트에 최적화
Type Optimized 문자에 최적화
Appearance Item 모양새 항목
Appearance Panel 모양새 패널
Appearance of Black 검정 표시 방식
Can't render this file because it is too large.
+3
View File
@@ -779,6 +779,9 @@ liquify-list-end {0}, {1} {0} en {1}
Mask Masker
Rasterize… Rasteriseren…
Create Gradient Mesh… Verloopmesh maken…
Flat Vlak
To Center Naar het midden
To Edge Naar de rand
Create Object Mosaic… Objectmozaïek maken…
Vector Halftone… Vectorhalftoon…
Create Trim Marks Afsnijtekens maken
Can't render this file because it is too large.
+3
View File
@@ -188,6 +188,9 @@
Mask Maska
Rasterize… Rasteryzuj…
Create Gradient Mesh… Utwórz siatkę gradientową…
Flat Płaski
To Center Do środka
To Edge Do krawędzi
Create Object Mosaic… Utwórz mozaikę obiektów…
Vector Halftone… Półton wektorowy…
Create Trim Marks Utwórz znaczniki przycięcia
Can't render this file because it is too large.
+3
View File
@@ -615,6 +615,9 @@ antiAlias Sharp Nítido
Create Clipping Mask Criar Máscara de Recorte
Create From: Criar De:
Create Gradient Mesh… Criar Malha de Gradiente…
Flat Plano
To Center Para o Centro
To Edge Para a Borda
Create Graph Criar Gráfico
Create New Layer Criar Nova Camada
Create New Sublayer Criar Nova Subcamada
Can't render this file because it is too large.
+3
View File
@@ -690,6 +690,9 @@ font-technology Variable Вариативные
Create from Selection Создать из выделения
Create From: Создать из:
Create Gradient Mesh… Создать градиентную сетку…
Flat Плоский
To Center К центру
To Edge К краю
Create Graph Создать диаграмму
Create New Layer Создать новый слой
Create New Sublayer Создать новый подслой
Can't render this file because it is too large.
+3
View File
@@ -679,6 +679,9 @@ font-technology Variable Variabla
Create from Selection Skapa från markering
Create From: Skapa från:
Create Gradient Mesh… Skapa gradientnät…
Flat Platt
To Center Mot mitten
To Edge Mot kanten
Create Graph Skapa diagram
Create New Layer Skapa nytt lager
Create New Sublayer Skapa nytt underlager
Can't render this file because it is too large.
+3
View File
@@ -671,6 +671,9 @@ font-technology Variable Değişken
Create from Selection Seçimden Oluştur
Create From: Şuradan Oluştur:
Create Gradient Mesh… Degrade Kafes Oluştur…
Flat Düz
To Center Merkeze Doğru
To Edge Kenara Doğru
Create Graph Grafik Oluştur
Create New Layer Yeni Katman Oluştur
Create New Sublayer Yeni Alt Katman Oluştur
Can't render this file because it is too large.
+5
View File
@@ -199,6 +199,8 @@ antiAlias Sharp Різке
Crisp Чітке
Strong Сильне
Anti-aliasing: Згладжування:
Art Optimized Оптимізовано для графіки
Type Optimized Оптимізовано для тексту
Any Kind Будь-який тип
Font Technology Технологія шрифту
font-technology Variable Варіативні
@@ -686,6 +688,9 @@ font-technology Variable Варіативні
Create from Selection Створити із виділення
Create From: Створити з:
Create Gradient Mesh… Створити градієнтну сітку…
Flat Плаский
To Center До центру
To Edge До краю
Create Graph Створити діаграму
Create New Layer Створити новий шар
Create New Sublayer Створити новий підшар
Can't render this file because it is too large.
+5
View File
@@ -222,6 +222,8 @@ antiAlias Sharp Sắc nét
Crisp Rõ nét
Strong Đậm
Anti-aliasing: Khử răng cưa:
Art Optimized Tối ưu cho hình vẽ
Type Optimized Tối ưu cho chữ
Any Kind Bất kỳ loại
Font Technology Công nghệ phông chữ
font-technology Variable Biến thiên
@@ -793,6 +795,9 @@ font-technology Variable Biến thiên
Create from Selection Tạo từ vùng chọn
Create From: Tạo từ:
Create Gradient Mesh… Tạo lưới chuyển sắc…
Flat Phẳng
To Center Về tâm
To Edge Về cạnh
Create Graph Tạo biểu đồ
Create New Fields by Tạo trường mới bằng
Create New Layer Tạo lớp mới
Can't render this file because it contains an unexpected character in line 205 and column 5.
+5
View File
@@ -153,6 +153,8 @@ antiAlias Sharp 锐利
Crisp 清晰
Strong 强
Anti-aliasing: 消除锯齿:
Art Optimized 图稿优化
Type Optimized 文字优化
Appearance 外观
Appearance Attribute 外观属性
Appearance Item 外观项目
@@ -636,6 +638,9 @@ antiAlias Sharp 锐利
Create from Selection 从选区创建
Create From: 创建自:
Create Gradient Mesh… 创建渐变网格…
Flat 平面
To Center 向中心
To Edge 向边缘
Create Graph 创建图表
Create New Layer 创建新图层
Create New Sublayer 创建新子图层
Can't render this file because it is too large.
+5
View File
@@ -163,6 +163,8 @@ antiAlias Sharp 銳利
Crisp 清晰
Strong 強
Anti-aliasing: 消除鋸齒:
Art Optimized 圖稿最佳化
Type Optimized 文字最佳化
Any Kind 所有類型
Font Technology 字體技術
font-technology Variable 可變
@@ -654,6 +656,9 @@ font-technology Variable 可變
Create from Selection 從選取範圍建立
Create From: 建立來源:
Create Gradient Mesh… 建立漸層網格…
Flat 平面
To Center 向中心
To Edge 向邊緣
Create Graph 建立圖表
Create New Layer 建立新圖層
Create New Sublayer 建立新子圖層
Can't render this file because it is too large.
+3 -1
View File
@@ -669,7 +669,9 @@ agents) opens the `rasterEffectsSettings` dialog. Its fields are what `document.
(`resolution`, `colorModel`, `background`, `antiAlias`, `clippingMask`, `addAround` in pt, `preserveSpotColors`);
`ui.dialog.confirm` runs it with them as one undo step; a bad value keeps the dialog open. Object → Rasterize… opens a
`command` dialog for `object.rasterize` whose fields (`ppi`, `colorModel`, `background`, `antiAlias`, `clippingMask`,
`addAround`) start from these settings.
`addAround`) start from these settings. `colorModel`, `antiAlias` (`none`, `art`, `type`) and `background` (`white`,
`transparent`) are dropdowns; `ui.dialog.set` also takes any other value the command takes, and the dialog sends it
unchanged.
Missing linked files: `app.open` of a document whose linked images' files can't be found (`document.open`'s
`missingLinks`) opens the `missingLinks` dialog for the first (fields `missing`: `[{name, path, ids}]`, `modified`,
+1
View File
@@ -2193,6 +2193,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- **Raster-effect resolution in PDF:** when the 64 million pixel cap on an effect image renders an object's raster effects below the document's raster effects resolution, PDF export warns once per object with the requested and the lowest achieved ppi (`crates/engine/src/tests/pdfraster.rs`).
- **Rasterize effect:** Effect › Rasterize… (`rasterize`) draws an object as an image of square pixels at its own resolution or the document's raster effects resolution, with Object › Rasterize's color model, background, anti-aliasing, clipping mask and room around the object, while its paths stay editable. Expand Appearance and PDF and SVG export of an object whose only raster effect is Rasterize give the image Object › Rasterize gives (`crates/engine/src/tests/rastersettings.rs`, `crates/render/src/tests/rasterize.rs`). Behavior reference: [How to save artwork in Illustrator](https://helpx.adobe.com/illustrator/using/saving-artwork.html), [Work with effects](https://helpx.adobe.com/illustrator/using/effects.html).
- **Rasterize colour models:** Object › Rasterize with the Grayscale colour model makes a grayscale image (a gray PNG, with alpha over a transparent background), and with Bitmap a 1-bit image (a TIFF), or a black-and-white gray PNG with alpha over a transparent background; `image.info` and the Control bar say Grayscale, and a fill color colorizes the image, in RGB and CMYK documents (#6969). Expand Appearance and PDF export of a Rasterize effect make the same images. Regression coverage: `rasterize_to_grayscale_or_bitmap_makes_a_grayscale_image` (`crates/engine/src/tests/rastersettings.rs`) and `gray_and_bilevel_images_store_gray` (`crates/render/src/encode/tests.rs`). Scores and estimates unchanged.
- **Rasterize dialog choices:** Object › Rasterize… shows Anti Alias (None, Art Optimized, Type Optimized) and Background (White, Transparent) as dropdowns, where they were text fields holding the command's values. Object › Create Gradient Mesh… shows its Appearance (Flat, To Center, To Edge) and Repeat Options for a grid repeat its Grid Type the same way (#8020, #7991). A value the dialog does not list, such as a black background set through `ui.dialog.set`, shows as it is and is sent unchanged. Regression coverage: `rasterize_anti_alias_and_background_are_dropdowns`, `mesh_appearance_and_repeat_grid_type_are_dropdowns` and `choice_fields_list_the_values_their_commands_take` (`crates/ui-egui/src/dialogs/command.rs`). Scores and estimates unchanged.
- **SVG filters:** Effect › SVG Filters lists 14 default SVG filters and then the document's own below Apply SVG Filter… and Import SVG Filter…, and choosing one applies it to the selection as a live effect in one undo step (`svgFilter.apply`). Apply SVG Filter applies the selected filter, New and Edit open its code, and Delete and Import… remove filters or add those of an SVG file (`svgFilter.define`, `svgFilter.delete`, `svgFilter.import`). The public page names no default set: the defaults (Soft Blur to Hue Shift, `crates/effects/src/svg_filter/defaults.rs`) are VectorCraft's own, written with SVG 1.1 primitives. A default is copied into the document when it is applied or edited, and Delete does not remove a default. The canvas, raster export and PDF draw the filter at the Document Raster Effects resolution; SVG export writes it as a `<filter>` element when it is the object's last effect and otherwise draws the object as an image; SVG import keeps filters the other live effects can't express as this effect instead of leaving them out; the native format keeps the filters (`crates/engine/src/tests/svgfilter.rs`, `crates/effects/src/svg_filter/tests.rs`). Behavior reference: [Apply SVG filter effects](https://helpx.adobe.com/illustrator/desktop/special-effects-styles/apply-filter-effects/apply-svg-filter-effects.html), [CS5 help, Apply SVG effects](https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=402), [SVG 1.1 Filter Effects](https://www.w3.org/TR/SVG11/filters.html).
- **Pattern tiles:** the renderer keeps a tile of each pattern for each scale it rasterizes the pattern at, until the tiles fill the tile cache's budget, and then drops the least recently used tiles first. Objects that show one pattern at different scales, such as a pattern scaled to 25% with Transform Pattern Tiles next to the same pattern at 100%, draw from tiles kept between frames.