commit
dcefd7b70b
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,7 @@ pf-gl = []
|
|||
clap = "2.32"
|
||||
gl = "0.6"
|
||||
rayon = "1.0"
|
||||
usvg = "0.7"
|
||||
usvg = "0.8"
|
||||
|
||||
[dependencies.image]
|
||||
version = "0.21"
|
||||
|
|
|
@ -7,7 +7,7 @@ authors = ["Alan Jeffrey <ajeffrey@mozilla.com>"]
|
|||
[dependencies]
|
||||
gl = "0.6"
|
||||
rayon = "1.0"
|
||||
usvg = "0.7"
|
||||
usvg = "0.8"
|
||||
egl = "0.2"
|
||||
log = "0.4"
|
||||
smallvec = "0.6"
|
||||
|
|
|
@ -6,7 +6,7 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
|
|||
|
||||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
usvg = "0.7"
|
||||
usvg = "0.8"
|
||||
|
||||
[dependencies.pathfinder_content]
|
||||
path = "../content"
|
||||
|
|
|
@ -118,7 +118,7 @@ impl BuiltSVG {
|
|||
&mut self.result_flags,
|
||||
));
|
||||
|
||||
let path = UsvgPathToSegments::new(path.segments.iter().cloned());
|
||||
let path = UsvgPathToSegments::new(path.data.iter().cloned());
|
||||
let path = Transform2FPathIter::new(path, &transform);
|
||||
let outline = Outline::from_segments(path);
|
||||
|
||||
|
@ -140,7 +140,7 @@ impl BuiltSVG {
|
|||
stroke.miterlimit.value() as f32),
|
||||
};
|
||||
|
||||
let path = UsvgPathToSegments::new(path.segments.iter().cloned());
|
||||
let path = UsvgPathToSegments::new(path.data.iter().cloned());
|
||||
let outline = Outline::from_segments(path);
|
||||
|
||||
let mut stroke_to_fill = OutlineStrokeToFill::new(&outline, stroke_style);
|
||||
|
|
|
@ -9,4 +9,4 @@ edition = "2018"
|
|||
[dependencies]
|
||||
pathfinder_export = { path = "../../export" }
|
||||
pathfinder_svg = { path = "../../svg" }
|
||||
usvg = "*"
|
||||
usvg = "0.8"
|
||||
|
|
|
@ -5,4 +5,4 @@ authors = ["Patrick Walton <pcwalton@mimiga.net>"]
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
usvg = "0.7"
|
||||
usvg = "0.8"
|
||||
|
|
|
@ -45,7 +45,7 @@ fn process_node(node: &Node) {
|
|||
}
|
||||
}
|
||||
NodeKind::Path(ref path) => {
|
||||
for segment in path.segments.iter() {
|
||||
for segment in path.data.iter() {
|
||||
match segment {
|
||||
PathSegment::MoveTo { x, y } => println!(" path.moveTo({}, {});", x, y),
|
||||
PathSegment::LineTo { x, y } => println!(" path.lineTo({}, {});", x, y),
|
||||
|
|
Loading…
Reference in New Issue