mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 12:38:18 +00:00
G5: Add original Paper Cutouts graphic style library
This commit is contained in:
@@ -157,6 +157,7 @@ pub const STYLE_LIBRARIES: &[BuiltinStyleLibrary] = &[
|
||||
BuiltinStyleLibrary { id: "hand-drawn", name: "Hand-Drawn", make: hand_drawn },
|
||||
BuiltinStyleLibrary { id: "textures", name: "Textures", make: textures },
|
||||
BuiltinStyleLibrary { id: "painted-sketched", name: "Painted and Sketched", make: painted_sketched },
|
||||
BuiltinStyleLibrary { id: "paper-cutouts", name: "Paper Cutouts", make: paper_cutouts },
|
||||
BuiltinStyleLibrary { id: "gradient-finishes", name: "Gradient Finishes", make: gradient_finishes },
|
||||
BuiltinStyleLibrary { id: "shape-effects", name: "Shape Effects", make: shape_effects },
|
||||
BuiltinStyleLibrary { id: "blends-transparency", name: "Blends and Transparency", make: blends_transparency },
|
||||
@@ -384,6 +385,25 @@ fn painted_sketched() -> Vec<GraphicStyle> {
|
||||
]
|
||||
}
|
||||
|
||||
/// Paper Cutouts: original layered paper colors with visible cut edges and crisp cast shadows.
|
||||
fn paper_cutouts() -> Vec<GraphicStyle> {
|
||||
let cutout = |name: &str, face: &str, edge: &str, rim: &str, shadow: &str, x: f64, y: f64| {
|
||||
style(
|
||||
name,
|
||||
vec![F(fill(face)), S(stroke(edge, 7.0)), S(stroke(rim, 2.0))],
|
||||
vec![fx("stylize.dropShadow", json!({"mode": "normal", "opacity": 100.0, "x": x, "y": y, "blur": 0.0, "color": shadow}))],
|
||||
)
|
||||
};
|
||||
vec![
|
||||
cutout("Coral Layers", "#ff6b6b", "#f9c74f", "#fff4e6", "#6d597a", 5.0, 5.0),
|
||||
cutout("Mint Layers", "#80cbc4", "#2a9d8f", "#e9f5db", "#355070", 4.0, 6.0),
|
||||
cutout("Midnight Layers", "#3d5a80", "#ee6c4d", "#e0fbfc", "#1b263b", 6.0, 4.0),
|
||||
cutout("Sunflower Sheet", "#ffbe0b", "#fb5607", "#fff3b0", "#6a4c93", 3.0, 6.0),
|
||||
cutout("Rose Layers", "#f28482", "#84a59d", "#f7ede2", "#4a4e69", 6.0, 3.0),
|
||||
cutout("Monochrome Stack", "#f5f5f5", "#444444", "#ffffff", "#222222", 5.0, 5.0),
|
||||
]
|
||||
}
|
||||
|
||||
/// Textures: fills and strokes painted with the catalog's texture effects (grain, canvas and
|
||||
/// burlap surfaces, craquelure, tiles, patchwork, stained glass and water paper).
|
||||
fn textures() -> Vec<GraphicStyle> {
|
||||
@@ -702,6 +722,26 @@ mod tests {
|
||||
assert_eq!(ids.iter().position(|&i| i == "textures"), ids.iter().position(|&i| i == "hand-drawn").map(|i| i + 1), "after Hand-Drawn");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn paper_cutouts_have_layered_edges_and_crisp_shadows() {
|
||||
let lib = builtin_style_library("paper-cutouts").unwrap();
|
||||
assert_eq!(lib.name, "Paper Cutouts");
|
||||
let names: Vec<&str> = lib.styles.iter().map(|g| g.name.as_str()).collect();
|
||||
assert_eq!(names, ["Coral Layers", "Mint Layers", "Midnight Layers", "Sunflower Sheet", "Rose Layers", "Monochrome Stack"]);
|
||||
for g in &lib.styles {
|
||||
assert_eq!(g.appearance.items.len(), 3, "{} has a face and two cut edges", g.name);
|
||||
assert!(matches!(g.appearance.items[0], AppearanceItem::Fill(_)));
|
||||
assert!(matches!(g.appearance.items[1], AppearanceItem::Stroke(_)));
|
||||
assert!(matches!(g.appearance.items[2], AppearanceItem::Stroke(_)));
|
||||
assert_eq!(g.appearance.effects.len(), 1);
|
||||
let shadow = &g.appearance.effects[0];
|
||||
assert_eq!(shadow.id, "stylize.dropShadow");
|
||||
assert_eq!(shadow.params["blur"], 0.0);
|
||||
assert_eq!(shadow.params["opacity"], 100.0);
|
||||
}
|
||||
assert_eq!(read(&write(&lib), "Fallback").unwrap(), *lib);
|
||||
}
|
||||
|
||||
/// The built-in styles' Warps draw with the map a new Warp takes.
|
||||
#[test]
|
||||
fn builtin_warp_styles_take_the_nets_map() {
|
||||
|
||||
@@ -46,6 +46,7 @@ fn builtin_libraries_are_listed_with_original_styles_using_catalogued_effects()
|
||||
assert!(libs.iter().any(|l| l["id"] == "status-effects" && l["name"] == "Status Effects"), "{libs:?}");
|
||||
assert!(libs.iter().any(|l| l["id"] == "textures" && l["name"] == "Textures" && l["count"] == 8), "{libs:?}");
|
||||
assert!(libs.iter().any(|l| l["id"] == "neon-glow" && l["name"] == "Neon & Glow" && l["count"] == 6), "{libs:?}");
|
||||
assert!(libs.iter().any(|l| l["id"] == "paper-cutouts" && l["name"] == "Paper Cutouts" && l["count"] == 6), "{libs:?}");
|
||||
for l in libs {
|
||||
let id = l["id"].as_str().unwrap();
|
||||
let g = run(&mut s, "graphicStyle.library", json!({"library": id}));
|
||||
@@ -91,6 +92,24 @@ fn builtin_libraries_are_listed_with_original_styles_using_catalogued_effects()
|
||||
assert!(s.execute("graphicStyle.library", &json!({"library": "nope"})).is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn paper_cutout_style_applies_to_an_object_and_undoes_together() {
|
||||
let mut s = session();
|
||||
let id = rect(&mut s, 10.0, 20.0, 40.0, 30.0);
|
||||
let before = doc(&s).node(id).unwrap().appearance.clone();
|
||||
let undo_before = undo_len(&s);
|
||||
let result =
|
||||
run(&mut s, "graphicStyle.addFromLibrary", json!({"library": "paper-cutouts", "name": "Coral Layers", "apply": true, "ids": [id.0]}));
|
||||
assert_eq!((names(&result["added"]), result["applied"].as_str()), (vec!["Coral Layers"], Some("Coral Layers")));
|
||||
assert_eq!(undo_len(&s), undo_before + 1);
|
||||
let applied = &doc(&s).node(id).unwrap().appearance;
|
||||
assert_eq!(applied.items.len(), 3);
|
||||
assert_eq!(applied.effects[0].id, "stylize.dropShadow");
|
||||
assert_eq!(applied.effects[0].params["blur"], 0.0);
|
||||
run(&mut s, "edit.undo", json!({}));
|
||||
assert_eq!(doc(&s).node(id).unwrap().appearance, before);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn painted_and_sketched_styles_set_every_effect_setting_and_reopen_applied() {
|
||||
let mut s = session();
|
||||
|
||||
@@ -7237,3 +7237,10 @@ breakText Glyphs Глифи
|
||||
@msg A fold line is on a non-printing layer. Линия на сгъване е на слой, който не се печата.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Панели: {panels}, панти: {hinges}, грешки: {errors}, предупреждения: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer трябва да е "singleLine", "everyLine", "standardSingleLine" или "standardEveryLine"
|
||||
Paper Cutouts Хартиени изрезки
|
||||
Coral Layers Коралови слоеве
|
||||
Mint Layers Ментови слоеве
|
||||
Midnight Layers Среднощни слоеве
|
||||
Sunflower Sheet Слънчогледов лист
|
||||
Rose Layers Розови слоеве
|
||||
Monochrome Stack Монохромен стек
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7291,3 +7291,10 @@ shape Open Otvoren
|
||||
@msg A fold line is on a non-printing layer. Linija savijanja je na sloju koji se ne štampa.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneli: {panels}, šarke: {hinges}, greške: {errors}, upozorenja: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer mora biti "singleLine", "everyLine", "standardSingleLine" ili "standardEveryLine"
|
||||
Paper Cutouts Papirni izrezi
|
||||
Coral Layers Koraljni slojevi
|
||||
Mint Layers Mentini slojevi
|
||||
Midnight Layers Ponoćni slojevi
|
||||
Sunflower Sheet List suncokreta
|
||||
Rose Layers Ružičasti slojevi
|
||||
Monochrome Stack Jednobojni slojevi
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -8126,3 +8126,10 @@ breakText Glyphs Glifs
|
||||
@msg A fold line is on a non-printing layer. Una línia de plegat és en una capa que no s’imprimeix.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panells: {panels}, frontisses: {hinges}, errors: {errors}, avisos: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer ha de ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine"
|
||||
Paper Cutouts Retalls de paper
|
||||
Coral Layers Capes de corall
|
||||
Mint Layers Capes de menta
|
||||
Midnight Layers Capes de mitjanit
|
||||
Sunflower Sheet Full de gira-sol
|
||||
Rose Layers Capes de rosa
|
||||
Monochrome Stack Pila monocroma
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -9917,3 +9917,10 @@ breakText Glyphs Glyfy
|
||||
@msg A panel is not joined to the rest by a crease. Panel není se zbytkem spojen žádnou linií bigu.
|
||||
@msg A fold line is on a non-printing layer. Linie skladu je na netisknutelné vrstvě.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panely: {panels}, panty: {hinges}, chyby: {errors}, upozornění: {warnings}
|
||||
Paper Cutouts Papírové výřezy
|
||||
Coral Layers Korálové vrstvy
|
||||
Mint Layers Mátové vrstvy
|
||||
Midnight Layers Půlnoční vrstvy
|
||||
Sunflower Sheet Slunečnicový list
|
||||
Rose Layers Růžové vrstvy
|
||||
Monochrome Stack Jednobarevná sada
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -10025,3 +10025,10 @@ breakText Glyphs Glyffer
|
||||
@msg A fold line is on a non-printing layer. En foldelinje ligger på et lag, der ikke udskrives.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneler: {panels}, hængsler: {hinges}, fejl: {errors}, advarsler: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer skal være "singleLine", "everyLine", "standardSingleLine" eller "standardEveryLine"
|
||||
Paper Cutouts Papirudklip
|
||||
Coral Layers Korallag
|
||||
Mint Layers Myntelag
|
||||
Midnight Layers Midnatslag
|
||||
Sunflower Sheet Solsikkeark
|
||||
Rose Layers Rosenlag
|
||||
Monochrome Stack Monokrom stak
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9516,3 +9516,10 @@ breakText Glyphs Glyphen
|
||||
@msg A panel is not joined to the rest by a crease. Ein Feld ist durch keine Rilllinie mit den übrigen verbunden.
|
||||
@msg A fold line is on a non-printing layer. Eine Faltlinie liegt auf einer nicht druckbaren Ebene.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Felder: {panels}, Scharniere: {hinges}, Fehler: {errors}, Warnungen: {warnings}
|
||||
Paper Cutouts Papierschnitte
|
||||
Coral Layers Korallschichten
|
||||
Mint Layers Minzschichten
|
||||
Midnight Layers Mitternachtsschichten
|
||||
Sunflower Sheet Sonnenblumenblatt
|
||||
Rose Layers Rosenschichten
|
||||
Monochrome Stack Monochromer Stapel
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8100,3 +8100,10 @@ breakText Glyphs Γλύφοι
|
||||
@msg A fold line is on a non-printing layer. Μια γραμμή δίπλωσης βρίσκεται σε επίπεδο που δεν εκτυπώνεται.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Πάνελ: {panels}, μεντεσέδες: {hinges}, σφάλματα: {errors}, προειδοποιήσεις: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" το composer πρέπει να είναι "singleLine", "everyLine", "standardSingleLine" ή "standardEveryLine"
|
||||
Paper Cutouts Χάρτινα αποκόμματα
|
||||
Coral Layers Στρώσεις κοραλλί
|
||||
Mint Layers Στρώσεις μέντας
|
||||
Midnight Layers Στρώσεις μεσονυκτίου
|
||||
Sunflower Sheet Φύλλο ηλιοτρόπιου
|
||||
Rose Layers Στρώσεις ροζ
|
||||
Monochrome Stack Μονόχρωμη στοίβα
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -8087,3 +8087,10 @@ breakText Glyphs Glifos
|
||||
@msg A fold line is on a non-printing layer. Una línea de plegado está en una capa que no se imprime.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneles: {panels}, bisagras: {hinges}, errores: {errors}, advertencias: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer debe ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine"
|
||||
Paper Cutouts Recortes de papel
|
||||
Coral Layers Capas coral
|
||||
Mint Layers Capas menta
|
||||
Midnight Layers Capas de medianoche
|
||||
Sunflower Sheet Hoja de girasol
|
||||
Rose Layers Capas rosa
|
||||
Monochrome Stack Pila monocroma
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -8183,3 +8183,10 @@ breakText Glyphs Merkit
|
||||
@msg A fold line is on a non-printing layer. Taittoviiva on tasolla, jota ei tulosteta.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneelit: {panels}, saranat: {hinges}, virheet: {errors}, varoitukset: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer on oltava "singleLine", "everyLine", "standardSingleLine" tai "standardEveryLine"
|
||||
Paper Cutouts Paperileikkeet
|
||||
Coral Layers Korallikerrokset
|
||||
Mint Layers Minttukerrokset
|
||||
Midnight Layers Keskiyön kerrokset
|
||||
Sunflower Sheet Auringonkukka-arkki
|
||||
Rose Layers Ruusukerrokset
|
||||
Monochrome Stack Yksivärinen pino
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -9902,3 +9902,10 @@ breakText Glyphs Glyphes
|
||||
@msg A fold line is on a non-printing layer. Une ligne de pliage se trouve sur un calque non imprimable.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} {panels} panneau(x), {hinges} charnière(s), {errors} erreur(s), {warnings} avertissement(s)
|
||||
@msg {_1} × {_2} pixels is too large for GIF (at most 65535 pixels a side): lower the resolution {_1} × {_2} pixels, c’est trop grand pour le GIF (65535 pixels par côté au plus) : réduisez la résolution
|
||||
Paper Cutouts Découpes de papier
|
||||
Coral Layers Couches corail
|
||||
Mint Layers Couches menthe
|
||||
Midnight Layers Couches de minuit
|
||||
Sunflower Sheet Feuille tournesol
|
||||
Rose Layers Couches rose
|
||||
Monochrome Stack Pile monochrome
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4987,3 +4987,10 @@ swatch [Registration] [રજિસ્ટ્રેશન]
|
||||
Standard Single-line Composer સ્ટાન્ડર્ડ સિંગલ-લાઇન કમ્પોઝર
|
||||
Standard Every-line Composer સ્ટાન્ડર્ડ એવરી-લાઇન કમ્પોઝર
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer આમાંથી એક હોવું જોઈએ: "singleLine", "everyLine", "standardSingleLine" અથવા "standardEveryLine"
|
||||
Paper Cutouts કાગળના કટઆઉટ
|
||||
Coral Layers કોરલ સ્તરો
|
||||
Mint Layers મિન્ટ સ્તરો
|
||||
Midnight Layers મધ્યરાત્રિના સ્તરો
|
||||
Sunflower Sheet સૂર્યમુખી શીટ
|
||||
Rose Layers ગુલાબી સ્તરો
|
||||
Monochrome Stack એકરંગી થપ્પો
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -9524,3 +9524,10 @@ theme Appearance अपीयरेंस
|
||||
@msg A panel is not joined to the rest by a crease. कोई पैनल किसी क्रीज़ लाइन से बाकी से जुड़ा नहीं है।
|
||||
@msg A fold line is on a non-printing layer. एक फ़ोल्ड लाइन नॉन-प्रिंटिंग लेयर पर है।
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} पैनल: {panels}, हिंज: {hinges}, एरर: {errors}, वॉर्निंग: {warnings}
|
||||
Paper Cutouts कागज़ की कतरनें
|
||||
Coral Layers कोरल परतें
|
||||
Mint Layers मिंट परतें
|
||||
Midnight Layers आधी रात की परतें
|
||||
Sunflower Sheet सूरजमुखी शीट
|
||||
Rose Layers गुलाबी परतें
|
||||
Monochrome Stack मोनोक्रोम स्टैक
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9905,3 +9905,10 @@ breakText Glyphs Glifák
|
||||
@msg A panel is not joined to the rest by a crease. Egy panelt egyetlen bigvonal sem köt a többihez.
|
||||
@msg A fold line is on a non-printing layer. Egy hajtásvonal nem nyomtatható rétegen van.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panelek: {panels}, zsanérok: {hinges}, hibák: {errors}, figyelmeztetések: {warnings}
|
||||
Paper Cutouts Papírkivágások
|
||||
Coral Layers Korallrétegek
|
||||
Mint Layers Mentás rétegek
|
||||
Midnight Layers Éjféli rétegek
|
||||
Sunflower Sheet Napraforgólap
|
||||
Rose Layers Rózsaszín rétegek
|
||||
Monochrome Stack Monokróm köteg
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7252,3 +7252,10 @@ breakText Glyphs Glif
|
||||
@msg A fold line is on a non-printing layer. Sebuah garis lipat berada di lapisan yang tidak dicetak.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panel: {panels}, engsel: {hinges}, galat: {errors}, peringatan: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer harus "singleLine", "everyLine", "standardSingleLine", atau "standardEveryLine"
|
||||
Paper Cutouts Potongan Kertas
|
||||
Coral Layers Lapisan Koral
|
||||
Mint Layers Lapisan Mint
|
||||
Midnight Layers Lapisan Tengah Malam
|
||||
Sunflower Sheet Lembar Bunga Matahari
|
||||
Rose Layers Lapisan Mawar
|
||||
Monochrome Stack Tumpukan Monokrom
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2511 and column 5.
|
@@ -9550,3 +9550,10 @@ breakText Glyphs Glifi
|
||||
@msg A panel is not joined to the rest by a crease. Un pannello non è unito al resto da alcuna linea di cordonatura.
|
||||
@msg A fold line is on a non-printing layer. Una linea di piega si trova su un livello non stampabile.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Pannelli: {panels}, cerniere: {hinges}, errori: {errors}, avvisi: {warnings}
|
||||
Paper Cutouts Ritagli di carta
|
||||
Coral Layers Livelli corallo
|
||||
Mint Layers Livelli menta
|
||||
Midnight Layers Livelli di mezzanotte
|
||||
Sunflower Sheet Foglio girasole
|
||||
Rose Layers Livelli rosa
|
||||
Monochrome Stack Pila monocromatica
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9617,3 +9617,10 @@ breakText Glyphs 字形
|
||||
@msg A panel is not joined to the rest by a crease. パネルがどの筋入れ線でも他とつながっていません。
|
||||
@msg A fold line is on a non-printing layer. 折り線が印刷しないレイヤーにあります。
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} パネル: {panels}、ヒンジ: {hinges}、エラー: {errors}、警告: {warnings}
|
||||
Paper Cutouts 切り絵
|
||||
Coral Layers コーラルのレイヤー
|
||||
Mint Layers ミントのレイヤー
|
||||
Midnight Layers 真夜中のレイヤー
|
||||
Sunflower Sheet ひまわりのシート
|
||||
Rose Layers ローズのレイヤー
|
||||
Monochrome Stack モノクロの重なり
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -10285,3 +10285,10 @@ font-script Japanese იაპონური
|
||||
@msg A fold line is on a non-printing layer. მოკეცვის ხაზი არაბეჭდვად შრეზეა.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} პანელები: {panels}, ანჯამები: {hinges}, შეცდომები: {errors}, გაფრთხილებები: {warnings}
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer უნდა იყოს "singleLine", "everyLine", "standardSingleLine" ან "standardEveryLine"
|
||||
Paper Cutouts ქაღალდის ამონაჭრები
|
||||
Coral Layers მარჯნის ფენები
|
||||
Mint Layers პიტნის ფენები
|
||||
Midnight Layers შუაღამის ფენები
|
||||
Sunflower Sheet მზესუმზირის ფურცელი
|
||||
Rose Layers ვარდისფერი ფენები
|
||||
Monochrome Stack მონოქრომული დასტა
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9514,3 +9514,10 @@ breakText Glyphs 글리프
|
||||
@msg A panel is not joined to the rest by a crease. 패널이 어떤 오시선으로도 나머지와 연결되어 있지 않습니다.
|
||||
@msg A fold line is on a non-printing layer. 접는 선이 인쇄되지 않는 레이어에 있습니다.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} 패널: {panels}, 힌지: {hinges}, 오류: {errors}, 경고: {warnings}
|
||||
Paper Cutouts 종이 오려내기
|
||||
Coral Layers 산호색 레이어
|
||||
Mint Layers 민트색 레이어
|
||||
Midnight Layers 한밤중 레이어
|
||||
Sunflower Sheet 해바라기 시트
|
||||
Rose Layers 장미색 레이어
|
||||
Monochrome Stack 단색 쌓기
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9953,3 +9953,10 @@ breakText Glyphs Glyphs
|
||||
@msg A panel is not joined to the rest by a crease. Een paneel is door geen rillijn met de rest verbonden.
|
||||
@msg A fold line is on a non-printing layer. Een vouwlijn staat op een laag die niet wordt afgedrukt.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panelen: {panels}, scharnieren: {hinges}, fouten: {errors}, waarschuwingen: {warnings}
|
||||
Paper Cutouts Papieruitsneden
|
||||
Coral Layers Koraallagen
|
||||
Mint Layers Muntlagen
|
||||
Midnight Layers Middernachtlagen
|
||||
Sunflower Sheet Zonnebloemvel
|
||||
Rose Layers Rozenlagen
|
||||
Monochrome Stack Monochrome stapel
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9770,3 +9770,10 @@ breakText Glyphs Glify
|
||||
@msg A panel is not joined to the rest by a crease. Panel nie jest połączony z resztą żadną linią bigowania.
|
||||
@msg A fold line is on a non-printing layer. Linia zgięcia znajduje się na warstwie niedrukowanej.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Panele: {panels}, zawiasy: {hinges}, błędy: {errors}, ostrzeżenia: {warnings}
|
||||
Paper Cutouts Wycinanki papierowe
|
||||
Coral Layers Warstwy koralowe
|
||||
Mint Layers Warstwy miętowe
|
||||
Midnight Layers Warstwy północy
|
||||
Sunflower Sheet Arkusz słonecznika
|
||||
Rose Layers Warstwy różowe
|
||||
Monochrome Stack Monochromatyczny stos
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9988,3 +9988,10 @@ swatch Yellow Green Verde-amarelado
|
||||
@msg A panel is not joined to the rest by a crease. Um painel não está unido ao restante por nenhuma linha de vinco.
|
||||
@msg A fold line is on a non-printing layer. Uma linha de dobra está em uma camada não imprimível.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Painéis: {panels}, dobradiças: {hinges}, erros: {errors}, avisos: {warnings}
|
||||
Paper Cutouts Recortes de papel
|
||||
Coral Layers Camadas de coral
|
||||
Mint Layers Camadas de menta
|
||||
Midnight Layers Camadas da meia-noite
|
||||
Sunflower Sheet Folha de girassol
|
||||
Rose Layers Camadas de rosa
|
||||
Monochrome Stack Pilha monocromática
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -10011,3 +10011,10 @@ shape Open Открытый
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Панели: {panels}, шарниры: {hinges}, ошибки: {errors}, предупреждения: {warnings}
|
||||
@msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} пикселей — слишком большой размер для PSD (не более {MAX_SIDE} пикселей по стороне): уменьшите разрешение
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer должен быть "singleLine", "everyLine", "standardSingleLine" или "standardEveryLine"
|
||||
Paper Cutouts Бумажные вырезки
|
||||
Coral Layers Коралловые слои
|
||||
Mint Layers Мятные слои
|
||||
Midnight Layers Полуночные слои
|
||||
Sunflower Sheet Лист подсолнуха
|
||||
Rose Layers Розовые слои
|
||||
Monochrome Stack Монохромная стопка
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9601,3 +9601,10 @@ digits Hindi Hindi
|
||||
@msg A fold line is on a non-printing layer. En falslinje ligger på ett lager som inte skrivs ut.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneler: {panels}, gångjärn: {hinges}, fel: {errors}, varningar: {warnings}
|
||||
@msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} pixlar är för stort för PSD (högst {MAX_SIDE} pixlar per sida): sänk upplösningen
|
||||
Paper Cutouts Pappersutklipp
|
||||
Coral Layers Korallager
|
||||
Mint Layers Myntalager
|
||||
Midnight Layers Midnattslager
|
||||
Sunflower Sheet Solrosark
|
||||
Rose Layers Rosenlager
|
||||
Monochrome Stack Monokrom stapel
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -668,6 +668,16 @@ fn painted_and_sketched_style_names_are_in_every_catalog() {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn paper_cutout_style_names_are_in_every_catalog() {
|
||||
let lib = vectorcraft_doc::style_libs::builtin_style_library("paper-cutouts").expect("built in");
|
||||
for lang in LANGUAGES.iter().filter(|lang| !lang.source.is_empty()) {
|
||||
for label in std::iter::once(lib.name.as_str()).chain(lib.styles.iter().map(|g| g.name.as_str())) {
|
||||
assert!(lang.catalog().plain(label).is_some(), "{} is missing {label}", lang.code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The names the EPS options' menus show (preview, overprints, flattener preset and PostScript
|
||||
/// level), and Save As's Preview label.
|
||||
#[test]
|
||||
|
||||
@@ -9875,3 +9875,10 @@ breakText Glyphs Glifler
|
||||
@msg A panel is not joined to the rest by a crease. Bir panel geri kalanlara hiçbir pilyaj çizgisiyle bağlı değil.
|
||||
@msg A fold line is on a non-printing layer. Bir katlama çizgisi yazdırılmayan bir katmanda.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Paneller: {panels}, menteşeler: {hinges}, hatalar: {errors}, uyarılar: {warnings}
|
||||
Paper Cutouts Kağıt Kesikleri
|
||||
Coral Layers Mercan Katmanları
|
||||
Mint Layers Nane Katmanları
|
||||
Midnight Layers Gece Yarısı Katmanları
|
||||
Sunflower Sheet Ayçiçeği Yaprağı
|
||||
Rose Layers Gül Katmanları
|
||||
Monochrome Stack Tek Renkli Yığın
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9526,3 +9526,10 @@ breakText Glyphs Гліфи
|
||||
@msg A panel is not joined to the rest by a crease. Панель не з’єднана з рештою жодною лінією біговки.
|
||||
@msg A fold line is on a non-printing layer. Лінія згину лежить на шарі, що не друкується.
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} Панелі: {panels}, шарніри: {hinges}, помилки: {errors}, попередження: {warnings}
|
||||
Paper Cutouts Паперові вирізки
|
||||
Coral Layers Коралові шари
|
||||
Mint Layers М’ятні шари
|
||||
Midnight Layers Опівнічні шари
|
||||
Sunflower Sheet Аркуш соняшника
|
||||
Rose Layers Рожеві шари
|
||||
Monochrome Stack Монохромний стос
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7759,3 +7759,10 @@ breakText Glyphs Glyph
|
||||
@msg {width} × {height} pixels is too large for Targa (at most 65535 pixels a side): lower the resolution {width} × {height} điểm ảnh quá lớn cho Targa (tối đa 65535 điểm ảnh mỗi cạnh): hãy giảm độ phân giải
|
||||
@msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} điểm ảnh quá lớn cho PSD (tối đa {MAX_SIDE} điểm ảnh mỗi cạnh): hãy giảm độ phân giải
|
||||
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer phải là "singleLine", "everyLine", "standardSingleLine" hoặc "standardEveryLine"
|
||||
Paper Cutouts Hình cắt giấy
|
||||
Coral Layers Lớp san hô
|
||||
Mint Layers Lớp bạc hà
|
||||
Midnight Layers Lớp nửa đêm
|
||||
Sunflower Sheet Tờ hướng dương
|
||||
Rose Layers Lớp hoa hồng
|
||||
Monochrome Stack Chồng đơn sắc
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 205 and column 5.
|
@@ -9758,3 +9758,10 @@ breakText Glyphs 字形
|
||||
@msg A fold line is on a non-printing layer. 一条折线位于不打印的图层上。
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} 面板:{panels},铰链:{hinges},错误:{errors},警告:{warnings}
|
||||
@msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} 像素对 PSD 而言过大 (每边最多 {MAX_SIDE} 像素):请降低分辨率
|
||||
Paper Cutouts 剪纸
|
||||
Coral Layers 珊瑚色图层
|
||||
Mint Layers 薄荷色图层
|
||||
Midnight Layers 午夜色图层
|
||||
Sunflower Sheet 向日葵纸片
|
||||
Rose Layers 玫瑰色图层
|
||||
Monochrome Stack 单色叠层
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -9568,3 +9568,10 @@ breakText Glyphs 字符
|
||||
@msg A fold line is on a non-printing layer. 一條摺線位於不列印的圖層上。
|
||||
@msg Panels: {panels}, hinges: {hinges}, errors: {errors}, warnings: {warnings} 面板:{panels},鉸鏈:{hinges},錯誤:{errors},警告:{warnings}
|
||||
@msg {what} would print on more than {MAX_TILES} tiles: scale it down {what} 會列印在超過 {MAX_TILES} 個拼貼上:請縮小
|
||||
Paper Cutouts 剪紙
|
||||
Coral Layers 珊瑚色圖層
|
||||
Mint Layers 薄荷色圖層
|
||||
Midnight Layers 午夜色圖層
|
||||
Sunflower Sheet 向日葵紙片
|
||||
Rose Layers 玫瑰色圖層
|
||||
Monochrome Stack 單色疊層
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -125,6 +125,24 @@ fn painted_and_sketched_opens_from_the_window_menu_and_a_click_applies_its_style
|
||||
assert_eq!(rows.iter().map(|r| r.name).collect::<Vec<_>>(), ["Ink Contour", "Wet Ink"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn paper_cutouts_opens_from_the_window_menu_and_applies_a_layered_style() {
|
||||
let mut app = app();
|
||||
let entry = crate::menus::menu_entries(&app)
|
||||
.into_iter()
|
||||
.find(|e| e.path == ["Window", "Graphic Style Libraries"] && e.label == "Paper Cutouts")
|
||||
.expect("a Window menu item");
|
||||
let rect = app.run("shape.rectangle", json!({"x": 10, "y": 10, "width": 80, "height": 40})).unwrap()["id"].as_u64().unwrap();
|
||||
app.run(entry.command.as_deref().unwrap(), entry.params.clone()).unwrap();
|
||||
assert_eq!(last_open(&app.ui).map(|p| p.id.as_str()), Some("paper-cutouts"));
|
||||
let undo = undo_len(&app);
|
||||
click(&mut app, &context(), "Coral Layers", Modifiers::NONE, 0.0);
|
||||
assert_eq!(undo_len(&app), undo + 1);
|
||||
let appearance = &app.session.doc().unwrap().doc.node(vectorcraft_doc::NodeId(rect)).unwrap().appearance;
|
||||
assert_eq!(appearance.items.len(), 3);
|
||||
assert_eq!(appearance.effects[0].id, "stylize.dropShadow");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_window_menu_and_the_panel_open_every_library() {
|
||||
let mut app = app();
|
||||
|
||||
+4
-3
@@ -685,15 +685,16 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
|
||||
Direct Selection of a path, compound path or type inside a dynamic instance also takes opacity and blend
|
||||
(`transparency.set`) and a gradient or pattern fill or stroke (`paint.setFill` / `paint.setStroke`,
|
||||
Eyedropper), for that instance only;
|
||||
graphic style libraries (Window › Graphic Style Libraries; eleven original libraries generated in code, including
|
||||
graphic style libraries (Window › Graphic Style Libraries; twelve original libraries generated in code, including
|
||||
Game HUD with Health Fill, Mana Glow, Damage Flash, Quest Outline, Coin Shine and Boss Alert, Status Effects
|
||||
with Poison Tint, Freeze Edge, Burn Aura, Stun Pulse, Stealth Fade and Shield Buff, Neon & Glow with Cyan Neon,
|
||||
Magenta Laser, Amber Tube, Electric Lime, Pulse Violet and Cobalt Phosphor, Painted and Sketched with
|
||||
Washed Blue, Bristle Ochre, Pastel Heather, Charcoal Shade, Ink Contour, Wet Ink and Fine Pen, and Textures with
|
||||
Fine Grain, Canvas Weave, Burlap Sack, Cracked Glaze, Mosaic Floor, Quilted Squares, Leaded Glass and Damp Paper,
|
||||
painted with the texture effects; User Defined; Other Library…; `graphicStyle.libraries`,
|
||||
painted with the texture effects, and Paper Cutouts with six original layered-paper styles, two colored cut edges
|
||||
and crisp cast shadows; User Defined; Other Library…; `graphicStyle.libraries`,
|
||||
`graphicStyle.addFromLibrary`).
|
||||
- **Missing:** more built-in brush libraries beyond the ten shipped (and further graphic-style libraries beyond the eleven shipped, and further symbol libraries beyond Basic
|
||||
- **Missing:** more built-in brush libraries beyond the ten shipped (and further graphic-style libraries beyond the twelve shipped, and further symbol libraries beyond Basic
|
||||
Shapes, UI Frames, Map Markers, Inventory Icons, Skill Icons and Weather Icons; original, generated in code, never Adobe's); dynamic symbols' `.ai` read and write.
|
||||
- **Estimate:** 3–13 h (estimated).
|
||||
|
||||
|
||||
+5
-1
@@ -4972,7 +4972,7 @@ as a value left out.
|
||||
## Graphic style libraries
|
||||
|
||||
Graphic style libraries are read-only sets of graphic styles generated in code (Shadows and Glows, Outlines and
|
||||
Rules, Hand-Drawn, Textures, Painted and Sketched, Gradient Finishes, Shape Effects, Blends and Transparency, Game HUD, Status Effects). Textures
|
||||
Rules, Hand-Drawn, Textures, Painted and Sketched, Paper Cutouts, Gradient Finishes, Shape Effects, Blends and Transparency, Game HUD, Status Effects, Neon & Glow). Textures
|
||||
(`textures`) paints its fills and strokes with the texture effects: Fine Grain (`texture.grain`), Canvas Weave and Burlap
|
||||
Sack (`texture.texturizer`), Cracked Glaze (`texture.craquelure`), Mosaic Floor (`texture.mosaicTiles`), Quilted Squares
|
||||
(`texture.patchwork`), Leaded Glass (`texture.stainedGlass`) and Damp Paper (`sketch.waterPaper`). `graphicStyle.libraries` lists them
|
||||
@@ -4992,6 +4992,10 @@ effect that repaints fill and stroke together: `artistic.watercolor`, `artistic.
|
||||
colors and effect settings are VectorCraft's own. These are raster effects, so the document's raster effects
|
||||
resolution sets how fine they draw.
|
||||
|
||||
Paper Cutouts (`paper-cutouts`) holds Coral Layers, Mint Layers, Midnight Layers, Sunflower Sheet,
|
||||
Rose Layers and Monochrome Stack. Each original style paints a solid paper face with two colored
|
||||
cut edges and a hard, unblurred cast shadow. The colors and shadow offsets are VectorCraft's own.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"graphicStyle.library","params":{"library":"hand-drawn"}}}
|
||||
{"name":"run_command","arguments":{"command":"graphicStyle.addFromLibrary","params":{"library":"hand-drawn","name":"Crosshatch","apply":true}}}
|
||||
|
||||
@@ -1839,7 +1839,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
PDF export writes a knockout group as one PDF knockout group (`/K true`, with `/I true` when the group isolates; ISO 32000-1, 11.4.6.3), so a knockout group of any size opens again in VectorCraft as a knockout group, and the form nesting of the file does not grow with the number of elements. When an element's opacity or mask defines its knockout shape, or it paints translucently, each element is drawn through one soft mask of the overlapping elements above it instead; past 65,536 objects in a group's masks (or 2,048 elements) the group is a PDF knockout group, with a warning that its translucent elements knock out fully. SVG export draws each element of a knockout group through one mask of the overlapping elements above it, and the masks refer to one copy of each element's shape, so the elements stay siblings and the file nests no deeper with more elements; past 65,536 shapes in a group's masks (or 2,048 elements) the group is written as a plain group, with a warning. Evidence: `pdf/src/tests/blend.rs`, `svg/tests/it/blend_export.rs`, `pdf/tests/gradient_forms.rs` (a gradient in a knockout group reads back in place).
|
||||
A knockout group in Normal mode at full opacity that does not isolate, with nothing blending inside, is written without an isolated group around its elements, clipped or not, so the art below the group is its initial backdrop in the PDF as on the canvas (ISO 32000-1, 11.4.5): neither its `/K` group nor a form around a clipped group carries `/I true`, and an overprinting element in it overprints the art below the group. Evidence: `pdf/src/tests/blend.rs` (`a_knockout_group_without_blending_inside_is_isolated_only_when_it_isolates`, `an_overprinting_element_of_a_knockout_group_that_does_not_isolate_overprints_the_art_below`).
|
||||
PDF import keeps a group's isolation when something inside it overprints as well as when something blends, so an isolated group or knockout group whose objects only overprint opens as an isolated group and is written with `/I true` again, and its overprinting objects still cover the inks of the art below the group. Evidence: `pdf/src/tests/blend.rs` (`an_isolated_group_with_an_overprinting_object_reads_back_isolated`, `an_overprinting_element_of_a_knockout_group_that_does_not_isolate_overprints_the_art_below`).
|
||||
- **Graphic styles:** styles keep opacity and blend mode, capture groups and type, apply on top with Alt, and link to the objects using them; Redefine, Break Link, Graphic Style Options, Select All Unused, Sort by Name, and Select > Same Graphic Style / Appearance Attribute. The panel has list and thumbnail views with rendered previews, merge, reorder and drag and drop, plus a Control bar Style picker; eleven generated style libraries (including Game HUD, Status Effects, Neon & Glow, Painted and Sketched, whose seven styles each repaint a solid fill with one watercolor, dry brush, pastel, charcoal or ink effect, and Textures) save and load as `.vcstyles`.
|
||||
- **Graphic styles:** styles keep opacity and blend mode, capture groups and type, apply on top with Alt, and link to the objects using them; Redefine, Break Link, Graphic Style Options, Select All Unused, Sort by Name, and Select > Same Graphic Style / Appearance Attribute. The panel has list and thumbnail views with rendered previews, merge, reorder and drag and drop, plus a Control bar Style picker; twelve generated style libraries (including Game HUD, Status Effects, Neon & Glow, Painted and Sketched, whose seven styles each repaint a solid fill with one watercolor, dry brush, pastel, charcoal or ink effect, Textures, and Paper Cutouts with six original layered-paper looks and crisp cast shadows) save and load as `.vcstyles`.
|
||||
The built-in Textures graphic style library (`graphicStyle.addFromLibrary {library: "textures"}`) has eight styles that paint their fills and strokes with the texture effects: Fine Grain (Grain), Canvas Weave and Burlap Sack (Texturizer), Cracked Glaze (Craquelure), Mosaic Floor (Mosaic Tiles), Quilted Squares (Patchwork), Leaded Glass (Stained Glass) and Damp Paper (Water Paper). The help page names new graphic styles for textures ([What's new](https://helpx.adobe.com/illustrator/desktop/new-features/whats-new.html)) without naming them, so the styles, their names and their settings are VectorCraft's own (`tests::stylelib::textures_styles_apply_their_texture_effects_and_keep_their_params_through_save_and_open`).
|
||||
In the Graphic Styles panel, Shift-click selects a range of styles and Ctrl/Cmd-click adds or removes one.
|
||||
A graphic style dragged onto the Graphic Styles panel's New Graphic Style button is duplicated, as the panel menu's Duplicate Graphic Style does, and both put the copy at the end of the list, as the help page describes ([the help page](https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=391)). VectorCraft's own rules: the button takes the drop with no art selected; a dragged style that is highlighted brings the other highlighted styles, copied in panel order in one undo step, and the copies are highlighted; the copy is named `<name> copy`, with a number when that is taken, and no art is linked to it (`a_style_dropped_on_new_graphic_style_is_duplicated_at_the_end` in `crates/ui-egui/src/panels/graphic_styles.rs`, `tests::styles::duplicate_puts_the_copy_at_the_end_of_the_list_in_one_undo_step`).
|
||||
|
||||
Reference in New Issue
Block a user