mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 19:04:25 +01:00
.ai import: use American spelling in the one-paint style comments
This commit is contained in:
1 parent
29649a9d35
commit
ec892d4218
2 files changed
+4
-4
No files matched your search
@@ -33,7 +33,7 @@
|
||||
//! paints at all. A blend filter's `mode opacity isolate knockout shape Xy` is its transparency.
|
||||
//!
|
||||
//! A style with no filters is one paint (`/SimpleStyle :` … `/Paint ;` in place of `/ActiveStyle`):
|
||||
//! the fill's and stroke's colours and the stroke's style as an object's own paint operators write
|
||||
//! the fill's and stroke's colors and the stroke's style as an object's own paint operators write
|
||||
//! them, `stroke fill Xd` turning each on, and an `Xy` for its transparency.
|
||||
//!
|
||||
//! A stroke with a Calligraphic or Art brush is its own basic filter, `(Adobe Calligraphic Brush
|
||||
@@ -212,7 +212,7 @@ pub(super) struct ArtStyle {
|
||||
pub simple_pattern: Option<StyleItem>,
|
||||
/// A style that is one paint: its fill and stroke, bottom first, each there when its
|
||||
/// `stroke fill Xd` turns it on (none when neither is on). `Err` when it turns on a fill or
|
||||
/// stroke whose paint isn't read here (a gradient, a pattern, a colour that isn't read) or has
|
||||
/// stroke whose paint isn't read here (a gradient, a pattern, a color that isn't read) or has
|
||||
/// no `Xd`. `None` for a style with filters, whose paint is [`Self::items`].
|
||||
pub one_paint: Option<Result<Vec<StyleItem>, ()>>,
|
||||
}
|
||||
|
||||
@@ -1513,7 +1513,7 @@ fn only_a_style_of_one_pattern_paint_holds_a_pattern_for_type() {
|
||||
}
|
||||
}
|
||||
|
||||
/// A style that is one paint reads as the fill and stroke its `Xd` turns on, in the paint's colours
|
||||
/// A style that is one paint reads as the fill and stroke its `Xd` turns on, in the paint's colors
|
||||
/// and the stroke's style; one that turns on a paint not read here, or has no `Xd`, isn't read.
|
||||
#[test]
|
||||
fn a_style_of_one_paint_reads_as_the_fill_and_stroke_its_xd_turns_on() {
|
||||
@@ -1534,7 +1534,7 @@ fn a_style_of_one_paint_reads_as_the_fill_and_stroke_its_xd_turns_on() {
|
||||
// Only what `Xd` turns on; nothing when it turns on neither.
|
||||
assert!(matches!(one(&format!("0 0 1 0 k\n{stroke}1 0 Xd\n")), Some(Ok(i)) if matches!(i.as_slice(), [StyleItem::Stroke { .. }])));
|
||||
assert_eq!(one(&format!("0 0 1 0 k\n{stroke}0 0 Xd\n")), Some(Ok(vec![])));
|
||||
// Not read: no `Xd`, a gradient or pattern fill, a pattern stroke, a paint turned on with no colour.
|
||||
// Not read: no `Xd`, a gradient or pattern fill, a pattern stroke, a paint turned on with no color.
|
||||
for paint in [
|
||||
format!("0 0 1 0 k\n{stroke}"),
|
||||
"0 Bb\n2 (Sky) 0 0 0 100 1 0 0 1 0 0 Bg\n0 BB\n0 1 Xd\n".to_string(),
|
||||
|
||||
Reference in new issue
Block a user