Skip to content

Commit

Permalink
usvg 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard authored and nical committed Apr 20, 2024
1 parent 567477c commit 2b69a8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/wgpu_svg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lyon = { path = "../../crates/lyon", features = ["extra"] }
clap = "2.32.0"
wgpu = "0.13.1"
winit = "0.27.5"
usvg = "0.16.0"
usvg = "0.18.0"
futures = "0.3.5"
bytemuck = "1.2.0"
env_logger = "0.11.0"
4 changes: 2 additions & 2 deletions examples/wgpu_svg/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use lyon::math::Point;
use lyon::path::PathEvent;
use lyon::tessellation::geometry_builder::*;
use lyon::tessellation::{self, FillOptions, FillTessellator, StrokeOptions, StrokeTessellator};
use usvg::prelude::*;
use usvg::*;
use wgpu::include_wgsl;
use winit::dpi::PhysicalSize;
use winit::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent};
Expand Down Expand Up @@ -95,7 +95,7 @@ fn main() {
let view_box = rtree.svg_node().view_box;
for node in rtree.root().descendants() {
if let usvg::NodeKind::Path(ref p) = *node.borrow() {
let t = node.transform();
let t = NodeExt::transform(&node);
if t != prev_transform {
transforms.push(GpuTransform {
data0: [t.a as f32, t.b as f32, t.c as f32, t.d as f32],
Expand Down

0 comments on commit 2b69a8f

Please sign in to comment.