Merge pull request #8728 from storytold/train/carry8458

Brushes: Add original Vector Packs library (#8458)
This commit is contained in:
BFlat authored and GitHub committed 2026-11-20 04:51:02 +07:00
commit a8087ef0bd
32 files changed
+227 -2

No files matched your search

+33
View File
@@ -188,6 +188,7 @@ pub const BUILTIN: &[BuiltinBrushLibrary] = &[
BuiltinBrushLibrary { id: "arrows", name: "Arrows", make: arrows },
BuiltinBrushLibrary { id: "image-brush", name: "Image Brush", make: image_brush },
BuiltinBrushLibrary { id: "artistic", name: "Artistic Brushes", make: artistic },
BuiltinBrushLibrary { id: "vector-packs", name: "Vector Packs", make: vector_packs },
];
/// Built-in library `id`, made once.
@@ -866,6 +867,38 @@ fn scatter_shapes() -> BrushLibrary {
built("Scatter Shapes", doc, brushes)
}
/// Vector Packs: four original, editable vector marks that follow the stroke color.
fn vector_packs() -> BrushLibrary {
let compass = group(vec![black(shapes::star(Point::ZERO, 10.0, 3.0, 8, 0.0)), black(shapes::ellipse(Rect::new(-1.5, -1.5, 1.5, 1.5)))]);
let sprig = group(vec![
black(polygon(&[(-0.7, 10.0), (0.7, 10.0), (0.7, -10.0), (-0.7, -10.0)])),
black(polygon(&[(0.0, 5.0), (5.0, 2.0), (7.0, -1.0), (3.0, 0.0)])),
black(polygon(&[(0.0, 0.0), (-5.0, -3.0), (-7.0, -6.0), (-3.0, -5.0)])),
black(polygon(&[(0.0, -5.0), (5.0, -8.0), (7.0, -10.0), (3.0, -9.0)])),
]);
let diamond = group(vec![
black(polygon(&[(-9.0, 0.0), (-1.0, -9.0), (-1.0, -1.0)])),
black(polygon(&[(1.0, -9.0), (9.0, 0.0), (1.0, -1.0)])),
black(polygon(&[(9.0, 0.0), (1.0, 9.0), (1.0, 1.0)])),
black(polygon(&[(-1.0, 9.0), (-9.0, 0.0), (-1.0, 1.0)])),
]);
let tide = group(vec![
black(band(20.0, 1.2, 32, |x| -3.0 + 2.0 * (x * std::f64::consts::TAU / 20.0).sin())),
black(band(20.0, 1.2, 32, |x| 3.0 + 2.0 * (x * std::f64::consts::TAU / 20.0).sin())),
]);
let settings = Scatter { size: (90.0, 110.0), spacing: (130.0, 160.0), colorization: Colorization::Tints, ..Default::default() };
built(
"Vector Packs",
Document::new(100.0, 100.0),
vec![
scatter("Compass Rose", compass, settings.clone()),
scatter("Botanical Sprig", sprig, settings.clone()),
scatter("Facet Diamond", diamond, settings.clone()),
scatter("Tide Crest", tide, settings),
],
)
}
/// Stipple: original dot-based scatter brushes for fine and broad shading along a path.
fn stipple() -> BrushLibrary {
let dot = |x: f64, y: f64, r: f64, opacity: f32| {
+45 -1
View File
@@ -124,7 +124,8 @@ fn the_builtin_libraries_are_original_brushes_generated_in_code() {
"engraving",
"arrows",
"image-brush",
"artistic"
"artistic",
"vector-packs"
]
);
assert!(libs.iter().all(|l| l["category"] == "builtIn"));
@@ -204,6 +205,7 @@ fn every_builtin_library_brush_has_its_kind_and_draws() {
("arrows", "art"),
("image-brush", "scatter"),
("artistic", "art"),
("vector-packs", "scatter"),
] {
let (_, lib) = cmd::brushlib::library(&s, id).unwrap();
assert!(lib.len() >= 4, "{id}");
@@ -272,6 +274,48 @@ fn artistic_library_strokes_are_editable_and_reopen_from_a_saved_library() {
assert_eq!(vectorcraft_brush::library(&reopened), lib.brushes);
}
#[test]
fn vector_packs_marks_are_editable_and_survive_a_saved_library() {
let mut s = session();
let (_, lib) = cmd::brushlib::library(&s, "vector-packs").unwrap();
let names = ["Compass Rose", "Botanical Sprig", "Facet Diamond", "Tide Crest"];
assert_eq!(lib.brushes.iter().map(|b| b.name.as_str()).collect::<Vec<_>>(), names);
let line = run(&mut s, "shape.line", json!({"x1": 10, "y1": 50, "x2": 190, "y2": 50}))["id"].as_u64().unwrap();
for b in &lib.brushes {
let BrushKind::Scatter(sc) = &b.kind else { panic!("{} is not a scatter brush", b.name) };
assert!(art_paths(&sc.art).len() >= 2, "{} has no editable vector mark", b.name);
let pieces = vectorcraft_brush::stroke_pieces(&lib.doc, b, &line_to(180.0), &black_stroke());
assert!(pieces.len() >= 3, "{} does not repeat along a path", b.name);
// The black marks take a non-black stroke color as their fill.
let teal = vectorcraft_color::Color::rgb(0.1, 0.6, 0.5);
let stroke = vectorcraft_doc::StrokeLayer::new(vectorcraft_color::Paint::solid(teal), 1.0);
let mut fills = vec![];
for piece in vectorcraft_brush::stroke_pieces(&lib.doc, b, &line_to(180.0), &stroke) {
piece.walk(&mut |c| {
if c.path_data().is_some() {
fills.push(c.appearance.fill().map(|f| f.paint.clone()));
}
});
}
assert!(!fills.is_empty(), "{} draws no paths", b.name);
for fill in fills {
let Some(vectorcraft_color::Paint::Solid { color, .. }) = fill else { panic!("{} draws a path without a solid fill: {fill:?}", b.name) };
let (got, want) = (color.to_rgb(), teal.to_rgb());
assert!(got.iter().zip(want).all(|(g, w)| (g - w).abs() < 1e-3), "{} fills {got:?}, not the stroke color {want:?}", b.name);
}
let before = undo_len(&s);
let added = run(&mut s, "brush.addFromLibrary", json!({"library": "vector-packs", "name": b.name, "apply": true, "ids": [line]}));
assert_eq!(strs(&added["added"]), [b.name.as_str()]);
assert_eq!(added["applied"], json!([line]));
assert_eq!(undo_len(&s), before + 1);
assert_eq!(doc(&s).node(NodeId(line)).unwrap().appearance.stroke().unwrap().brush.as_deref(), Some(b.name.as_str()));
}
let saved = run(&mut s, "brush.saveLibrary", json!({"names": names}));
let bytes = vectorcraft_format::base64_decode(saved["dataBase64"].as_str().unwrap()).unwrap();
let reopened = vectorcraft_format::load(&bytes).unwrap();
assert_eq!(vectorcraft_brush::library(&reopened), lib.brushes);
}
#[test]
fn image_brush_stamps_draw_and_carry_their_pixels_when_added_and_saved() {
let mut s = session();
+5
View File
@@ -7911,6 +7911,11 @@ breakText Glyphs Глифи
@msg A joint does not close by {gap} pt. Една връзка не се затваря с {gap} pt.
@msg Two panels pass through each other. Два панела минават един през друг.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer трябва да е "singleLine", "everyLine", "standardSingleLine" или "standardEveryLine"
Vector Packs Векторни пакети
Compass Rose Роза на компаса
Botanical Sprig Ботаническо клонче
Facet Diamond Фасетиран ромб
Tide Crest Гребен на вълна
Leaf Vine Листна лоза
Blossom Chain Цветна верига
Pennant Garland Гирлянд от знаменца
Can't render this file because it is too large.
+5
View File
@@ -7966,6 +7966,11 @@ shape Open Otvoren
@msg A joint does not close by {gap} pt. Spoj se ne zatvara za {gap} pt.
@msg Two panels pass through each other. Dva panela prolaze jedan kroz drugi.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer mora biti "singleLine", "everyLine", "standardSingleLine" ili "standardEveryLine"
Vector Packs Vektorski paketi
Compass Rose Ruža kompasa
Botanical Sprig Botanička grančica
Facet Diamond Fasetirani romb
Tide Crest Vrh vala
Leaf Vine Lisnata loza
Blossom Chain Cvjetni lanac
Pennant Garland Girlanda zastavica
Can't render this file because it contains an unexpected character in line 2 and column 73.
+5
View File
@@ -8954,6 +8954,11 @@ breakText Glyphs Glifs
@msg A joint does not close by {gap} pt. Una unió no es tanca per {gap} pt.
@msg Two panels pass through each other. Dos panells es travessen l’un a l’altre.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer ha de ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine"
Vector Packs Paquets vectorials
Compass Rose Rosa dels vents
Botanical Sprig Branqueta botànica
Facet Diamond Diamant facetat
Tide Crest Cresta de l'onada
Leaf Vine Enfiladissa de fulles
Blossom Chain Cadena de flors
Pennant Garland Garlanda de banderins
Can't render this file because it is too large.
+5
View File
@@ -10778,6 +10778,11 @@ 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}
Vector Packs Vektorové balíčky
Compass Rose Směrová růžice
Botanical Sprig Botanická větvička
Facet Diamond Fazetový diamant
Tide Crest Hřeben vlny
Leaf Vine Listová liána
Blossom Chain Květinový řetěz
Pennant Garland Girlanda praporků
Can't render this file because it is too large.
+5
View File
@@ -10840,6 +10840,11 @@ breakText Glyphs Glyffer
@msg A joint does not close by {gap} pt. En samling lukker ikke med {gap} pt.
@msg Two panels pass through each other. To paneler går gennem hinanden.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer skal være "singleLine", "everyLine", "standardSingleLine" eller "standardEveryLine"
Vector Packs Vektorpakker
Compass Rose Kompasrose
Botanical Sprig Botanisk kvist
Facet Diamond Facetteret diamant
Tide Crest Bølgetop
Leaf Vine Bladranke
Blossom Chain Blomsterkæde
Pennant Garland Vimpelguirlande
Can't render this file because it is too large.
+5
View File
@@ -10419,6 +10419,11 @@ 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}
Vector Packs Vektorpakete
Compass Rose Kompassrose
Botanical Sprig Botanischer Zweig
Facet Diamond Facettierter Diamant
Tide Crest Wellenkamm
Leaf Vine Blätterranke
Blossom Chain Blütenkette
Pennant Garland Wimpelgirlande
Can't render this file because it is too large.
+5
View File
@@ -8927,6 +8927,11 @@ breakText Glyphs Γλύφοι
@msg A joint does not close by {gap} pt. Μια ένωση δεν κλείνει κατά {gap} pt.
@msg Two panels pass through each other. Δύο πάνελ διαπερνούν το ένα το άλλο.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" το composer πρέπει να είναι "singleLine", "everyLine", "standardSingleLine" ή "standardEveryLine"
Vector Packs Διανυσματικά πακέτα
Compass Rose Ρόδο πυξίδας
Botanical Sprig Βοτανικό κλαδάκι
Facet Diamond Πολυεδρικό διαμάντι
Tide Crest Κορυφή κύματος
Leaf Vine Κληματίδα φύλλων
Blossom Chain Αλυσίδα λουλουδιών
Pennant Garland Γιρλάντα σημαιών
Can't render this file because it is too large.
+5
View File
@@ -10671,6 +10671,11 @@ breakText Glyphs Glifos
@msg A joint does not close by {gap} pt. Una unión no cierra por {gap} pt.
@msg Two panels pass through each other. Dos paneles se atraviesan entre sí.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer debe ser "singleLine", "everyLine", "standardSingleLine" o "standardEveryLine"
Vector Packs Paquetes vectoriales
Compass Rose Rosa de los vientos
Botanical Sprig Ramita botánica
Facet Diamond Diamante facetado
Tide Crest Cresta de ola
Leaf Vine Enredadera de hojas
Blossom Chain Cadena de flores
Pennant Garland Guirnalda de banderines
Can't render this file because it is too large.
+5
View File
@@ -9010,6 +9010,11 @@ breakText Glyphs Merkit
@msg A joint does not close by {gap} pt. Liitos ei sulkeudu, rako {gap} pt.
@msg Two panels pass through each other. Kaksi paneelia kulkee toistensa läpi.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer on oltava "singleLine", "everyLine", "standardSingleLine" tai "standardEveryLine"
Vector Packs Vektoripaketit
Compass Rose Kompassiruusu
Botanical Sprig Kasvinoksa
Facet Diamond Särmätty timantti
Tide Crest Aallonharja
Leaf Vine Lehtiköynnös
Blossom Chain Kukkaketju
Pennant Garland Viiririvistö
Can't render this file because it is too large.
+5
View File
@@ -10741,6 +10741,11 @@ breakText Glyphs Glyphes
@msg A joint does not close by {gap} pt. Un joint ne se ferme pas, avec un écart de {gap} pt.
@msg Two panels pass through each other. Deux panneaux se traversent.
@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
Vector Packs Packs vectoriels
Compass Rose Rose des vents
Botanical Sprig Rameau botanique
Facet Diamond Diamant facetté
Tide Crest Crête de vague
Leaf Vine Liane feuillue
Blossom Chain Chaîne de fleurs
Pennant Garland Guirlande de fanions
Can't render this file because it is too large.
+5
View File
@@ -5653,6 +5653,11 @@ swatch [Registration] [રજિસ્ટ્રેશન]
Standard Single-line Composer સ્ટાન્ડર્ડ સિંગલ-લાઇન કમ્પોઝર
Standard Every-line Composer સ્ટાન્ડર્ડ એવરી-લાઇન કમ્પોઝર
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer આમાંથી એક હોવું જોઈએ: "singleLine", "everyLine", "standardSingleLine" અથવા "standardEveryLine"
Vector Packs વેક્ટર પૅક
Compass Rose દિશાસૂચક ગુલાબ
Botanical Sprig વનસ્પતિ ડાળી
Facet Diamond પાસાદાર હીરો
Tide Crest તરંગ શિખર
Leaf Vine પાંદડાની વેલ
Blossom Chain ફૂલોની સાંકળ
Pennant Garland ધ્વજપટ્ટીની માળા
Can't render this file because it contains an unexpected character in line 72 and column 5.
+5
View File
@@ -10384,6 +10384,11 @@ 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}
Vector Packs वेक्टर पैक
Compass Rose दिशासूचक गुलाब
Botanical Sprig वनस्पति टहनी
Facet Diamond पहलूदार हीरा
Tide Crest लहर की चोटी
Leaf Vine पत्तों की बेल
Blossom Chain फूलों की शृंखला
Pennant Garland झंडियों की माला
Can't render this file because it is too large.
+5
View File
@@ -10767,6 +10767,11 @@ 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}
Vector Packs Vektorcsomagok
Compass Rose Iránytűrózsa
Botanical Sprig Növényi ágacska
Facet Diamond Csiszolt gyémánt
Tide Crest Hullámhegy
Leaf Vine Leveles inda
Blossom Chain Virágfüzér
Pennant Garland Zászlófüzér
Can't render this file because it is too large.
+5
View File
@@ -8612,6 +8612,11 @@ breakText Glyphs Glif
@msg A joint does not close by {gap} pt. Sebuah sambungan tidak menutup sejauh {gap} pt.
@msg Two panels pass through each other. Dua panel saling menembus.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer harus "singleLine", "everyLine", "standardSingleLine", atau "standardEveryLine"
Vector Packs Paket Vektor
Compass Rose Mawar Kompas
Botanical Sprig Ranting Botani
Facet Diamond Berlian Berfaset
Tide Crest Puncak Gelombang
Leaf Vine Sulur Daun
Blossom Chain Rangkaian Bunga
Pennant Garland Untaian Panji
Can't render this file because it is too large.
+5
View File
@@ -10453,6 +10453,11 @@ 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}
Vector Packs Pacchetti vettoriali
Compass Rose Rosa dei venti
Botanical Sprig Rametto botanico
Facet Diamond Diamante sfaccettato
Tide Crest Cresta dell'onda
Leaf Vine Tralcio di foglie
Blossom Chain Catena di fiori
Pennant Garland Ghirlanda di bandierine
Can't render this file because it is too large.
+5
View File
@@ -10516,6 +10516,11 @@ 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}
Vector Packs ベクターパック
Compass Rose 羅針盤のバラ
Botanical Sprig 植物の小枝
Facet Diamond 多面体ダイヤ
Tide Crest 波の頂
Leaf Vine 葉のつる
Blossom Chain 花の連なり
Pennant Garland 三角旗のガーランド
Can't render this file because it is too large.
+5
View File
@@ -11064,6 +11064,11 @@ font-script Japanese იაპონური
@msg A joint does not close by {gap} pt. შეერთება არ იხურება {gap} pt-ით.
@msg Two panels pass through each other. ორი პანელი ერთმანეთში გადის.
@msg composer must be "singleLine", "everyLine", "standardSingleLine" or "standardEveryLine" composer უნდა იყოს "singleLine", "everyLine", "standardSingleLine" ან "standardEveryLine"
Vector Packs ვექტორული პაკეტები
Compass Rose კომპასის ვარდი
Botanical Sprig ბოტანიკური ტოტი
Facet Diamond წახნაგოვანი ბრილიანტი
Tide Crest ტალღის ქედი
Leaf Vine ფოთლების ვაზი
Blossom Chain ყვავილების ჯაჭვი
Pennant Garland ალმების გირლანდა
Can't render this file because it is too large.
+5
View File
@@ -10416,6 +10416,11 @@ 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}
Vector Packs 벡터 팩
Compass Rose 나침반 장미
Botanical Sprig 식물 가지
Facet Diamond 패싯 다이아몬드
Tide Crest 파도 마루
Leaf Vine 잎 덩굴
Blossom Chain 꽃사슬
Pennant Garland 깃발 장식
Can't render this file because it is too large.
+5
View File
@@ -10817,6 +10817,11 @@ 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}
Vector Packs Vectorpakketten
Compass Rose Kompasroos
Botanical Sprig Botanisch takje
Facet Diamond Gefacetteerde diamant
Tide Crest Golfkam
Leaf Vine Bladrank
Blossom Chain Bloemenketting
Pennant Garland Vlaggetjesslinger
Can't render this file because it is too large.
+5
View File
@@ -10642,6 +10642,11 @@ 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}
Vector Packs Pakiety wektorowe
Compass Rose Róża wiatrów
Botanical Sprig Gałązka botaniczna
Facet Diamond Fasetowany diament
Tide Crest Grzbiet fali
Leaf Vine Liściasta winorośl
Blossom Chain Łańcuch kwiatów
Pennant Garland Girlanda proporczyków
Can't render this file because it is too large.
+5
View File
@@ -10850,6 +10850,11 @@ 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}
Vector Packs Pacotes vetoriais
Compass Rose Rosa dos ventos
Botanical Sprig Ramo botânico
Facet Diamond Diamante facetado
Tide Crest Crista da onda
Leaf Vine Trepadeira de folhas
Blossom Chain Corrente de flores
Pennant Garland Guirlanda de bandeirolas
Can't render this file because it is too large.
+5
View File
@@ -10834,6 +10834,11 @@ shape Open Открытый
@msg Two panels pass through each other. Две панели проходят друг сквозь друга.
@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"
Vector Packs Векторные наборы
Compass Rose Роза ветров
Botanical Sprig Ботаническая ветвь
Facet Diamond Гранёный бриллиант
Tide Crest Гребень волны
Leaf Vine Лиственная лоза
Blossom Chain Цветочная цепочка
Pennant Garland Гирлянда флажков
Can't render this file because it is too large.
+5
View File
@@ -10871,6 +10871,11 @@ digits Hindi Hindi
@msg A joint does not close by {gap} pt. En fog sluter inte med {gap} pt.
@msg Two panels pass through each other. Två paneler går igenom varandra.
@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
Vector Packs Vektorpaket
Compass Rose Kompassros
Botanical Sprig Botanisk kvist
Facet Diamond Fasetterad diamant
Tide Crest Vågkam
Leaf Vine Bladranka
Blossom Chain Blomkedja
Pennant Garland Vimpelgirlang
Can't render this file because it is too large.
+5
View File
@@ -10736,6 +10736,11 @@ 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}
Vector Packs Vektör Paketleri
Compass Rose Pusula Gülü
Botanical Sprig Botanik Dal
Facet Diamond Fasetli Elmas
Tide Crest Dalga Tepesi
Leaf Vine Yapraklı sarmaşık
Blossom Chain Çiçek zinciri
Pennant Garland Bayrak süsü
Can't render this file because it is too large.
+5
View File
@@ -10429,6 +10429,11 @@ 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}
Vector Packs Векторні набори
Compass Rose Роза вітрів
Botanical Sprig Ботанічна гілочка
Facet Diamond Гранований діамант
Tide Crest Гребінь хвилі
Leaf Vine Листяна лоза
Blossom Chain Квітковий ланцюжок
Pennant Garland Гірлянда прапорців
Can't render this file because it is too large.
+5
View File
@@ -8626,6 +8626,11 @@ 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"
Vector Packs Bộ cọ véc-tơ
Compass Rose Hoa la bàn
Botanical Sprig Cành cây
Facet Diamond Kim cương nhiều mặt
Tide Crest Đỉnh sóng
Leaf Vine Dây leo lá
Blossom Chain Chuỗi hoa
Pennant Garland Dây cờ tam giác
Can't render this file because it is too large.
+5
View File
@@ -10621,6 +10621,11 @@ breakText Glyphs 字形
@msg A joint does not close by {gap} pt. 有一处接缝相差 {gap} pt 未闭合。
@msg Two panels pass through each other. 两个面板相互穿插。
@msg {w} × {h} pixels is too large for PSD (at most {MAX_SIDE} pixels a side): lower the resolution {w} × {h} 像素对 PSD 而言过大 (每边最多 {MAX_SIDE} 像素):请降低分辨率
Vector Packs 矢量画笔包
Compass Rose 罗盘玫瑰
Botanical Sprig 植物枝条
Facet Diamond 切面钻石
Tide Crest 浪尖
Leaf Vine 叶藤
Blossom Chain 花链
Pennant Garland 旗帜花环
Can't render this file because it is too large.
+5
View File
@@ -10436,6 +10436,11 @@ breakText Glyphs 字符
@msg A joint does not close by {gap} pt. 有一處接縫相差 {gap} pt 未閉合。
@msg Two panels pass through each other. 兩個面板相互穿插。
@msg {what} would print on more than {MAX_TILES} tiles: scale it down {what} 會列印在超過 {MAX_TILES} 個拼貼上:請縮小
Vector Packs 向量筆刷包
Compass Rose 羅盤玫瑰
Botanical Sprig 植物枝條
Facet Diamond 切面鑽石
Tide Crest 浪尖
Leaf Vine 葉藤
Blossom Chain 花鏈
Pennant Garland 旗幟花環
Can't render this file because it is too large.
@@ -209,7 +209,8 @@ fn the_window_menu_and_the_brushes_panel_open_brush_libraries() {
json!("engraving"),
json!("arrows"),
json!("image-brush"),
json!("artistic")
json!("artistic"),
json!("vector-packs")
]
);
let dry = entries.iter().find(|e| under(e) && e.params["library"] == "dry-media").map(|e| e.label.as_str());
@@ -250,6 +251,12 @@ fn the_window_menu_and_the_brushes_panel_open_brush_libraries() {
click(&mut app, &ctx, "Orbit Lines", Modifiers::NONE, 3.0);
assert!(has(&app, "Orbit Lines") && !has(&app, "Facet Sweep"));
assert_eq!(undo_len(&app), undo + 1);
let r = app.run("window.brushLibrary", json!({"library": "Vector Packs"})).unwrap();
assert_eq!((r["open"].as_str(), r["count"].as_u64()), (Some("vector-packs"), Some(4)));
let undo = undo_len(&app);
click(&mut app, &ctx, "Compass Rose", Modifiers::NONE, 4.0);
assert!(has(&app, "Compass Rose") && !has(&app, "Facet Diamond"));
assert_eq!(undo_len(&app), undo + 1);
// Without brushes there is nothing to save.
let all: Vec<String> = vectorcraft_brush::library(&app.session.doc().unwrap().doc).into_iter().map(|b| b.name).collect();
app.run("brush.delete", json!({ "names": all })).unwrap();
+1
View File
@@ -1251,6 +1251,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- **Tech Circuit library:** Circuit Trace is a chamfered art brush with 45-degree elbows and terminal pads; Bus Lines repeats three parallel conductor lanes; Terminal Nodes repeats solder pads, circular test points and connecting leads. Original vector geometry generated in code, with Tints colorization and continuous pattern tile edges. Evidence: `the_tech_circuit_library_constructs_adds_and_applies_each_brush` in `crates/engine/src/tests/brushlib.rs` covers listing, finite geometry on straight, curved, short and closed paths, add/apply, undo/redo, deduplication and saved-library round trips. G5 remaining estimate 3–13 h (estimated); area scores unchanged.
- **Engraving library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Fine Hatching, Dense Hatching, Tapered Hatching and Broken Hatching make fine parallel-line textures along paths. These four 100 pt art brushes are original VectorCraft geometry, with Tints colorization; they can be added, applied and saved through the existing library controls.
- **Image Brush library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Window › Brush Libraries › Image Brush offers Soft Bloom, Halftone Field, Solar Grain and Color Flecks as original image stamp designs. Each preset places copies of its embedded, transparent PNG along a path as a scatter brush; adding a brush carries its image resource into the document, and saving a library keeps the pixels. The public page names the category but not these presets. Evidence: `image_brush_stamps_draw_and_carry_their_pixels_when_added_and_saved` in `crates/engine/src/tests/brushlib.rs` covers stamps, add/apply and reopening; `the_window_menu_and_the_brushes_panel_open_brush_libraries` covers the UI.
- **Vector Packs library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Window › Brush Libraries › Vector Packs offers Compass Rose, Botanical Sprig, Facet Diamond and Tide Crest. Each is an original editable vector mark repeated along a path as a scatter brush and tinted by the stroke color. The public page names the category but does not specify its presets. Evidence: `vector_packs_marks_are_editable_and_survive_a_saved_library` in `crates/engine/src/tests/brushlib.rs` covers geometry, repetition, add/apply, undo and saving; `the_window_menu_and_the_brushes_panel_open_brush_libraries` covers the menu and panel.
- **Pressure Sensitive library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Window › Brush Libraries › Pressure Sensitive offers Flex Ribbon, Pulse Stroke, Round Flow and Chisel Flow. The first two are art brushes whose width follows recorded pen pressure; the other two are calligraphic nibs whose size follows it. They use the engine's existing pressure input where the device and platform deliver it, and a neutral width for a mouse path. These presets and names are VectorCraft's own. Evidence: `pressure_sensitive_brushes_widen_with_pen_pressure_and_survive_a_saved_library` in `crates/engine/src/tests/brushlib.rs` checks light and heavy pressure, short and curved paths, add/apply and saved-library reopening; `the_window_menu_and_the_brushes_panel_open_brush_libraries` covers opening and clicking from the UI.
- **Decorative library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Window › Brush Libraries › Decorative offers Leaf Vine, Blossom Chain, Pennant Garland and Lantern String. The four original vector pattern brushes repeat plant, flower and hanging ornament tiles along paths and take the stroke color as tints. The public source identifies Decorative as a classic brush library; these preset designs are VectorCraft's own. Evidence: `decorative_brushes_repeat_distinct_art_and_survive_a_saved_library` in `crates/engine/src/tests/brushlib.rs` covers distinct finite output, add/apply and saved-library reopening, and `the_window_menu_and_the_brushes_panel_open_brush_libraries` covers opening and clicking from the UI.
- **Paint library** ([About brushes](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/about-brushes.html)): Window › Brush Libraries › Paint offers Flat Sweep, Dry Drag, Loaded Stroke and Fan Sweep. These original art brushes stretch broad, broken, loaded and fanned vector marks along a path and take the stroke color as tints. The public source describes the Paint category's varied thickness, textured edges and natural effects; the preset designs and names are VectorCraft's own. Evidence: `paint_brushes_draw_distinct_marks_and_survive_a_saved_library` in `crates/engine/src/tests/brushlib.rs` covers finite output on short, long and curved paths, add/apply and saved-library reopening; `the_window_menu_and_the_brushes_panel_open_brush_libraries` covers opening and clicking from the UI.