Access lyon_algorithms indirectly through lyon
This commit is contained in:
parent
f56c8a7361
commit
bace264bfe
2 changed files with 3 additions and 7 deletions
|
|
@ -11,7 +11,7 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
categories = ["gui"]
|
categories = ["gui"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
canvas = ["lyon", "lyon_algorithms"]
|
canvas = ["lyon"]
|
||||||
qr_code = ["qrcode", "canvas"]
|
qr_code = ["qrcode", "canvas"]
|
||||||
font-source = ["font-kit"]
|
font-source = ["font-kit"]
|
||||||
font-fallback = []
|
font-fallback = []
|
||||||
|
|
@ -39,10 +39,6 @@ path = "../style"
|
||||||
version = "0.17"
|
version = "0.17"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[dependencies.lyon_algorithms]
|
|
||||||
version = "0.17"
|
|
||||||
optional = true
|
|
||||||
|
|
||||||
[dependencies.qrcode]
|
[dependencies.qrcode]
|
||||||
version = "0.12"
|
version = "0.12"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ pub use builder::Builder;
|
||||||
use crate::canvas::LineDash;
|
use crate::canvas::LineDash;
|
||||||
|
|
||||||
use iced_native::{Point, Size};
|
use iced_native::{Point, Size};
|
||||||
|
use lyon::algorithms::walk::{walk_along_path, RepeatedPattern};
|
||||||
use lyon::path::iterator::PathIterator;
|
use lyon::path::iterator::PathIterator;
|
||||||
use lyon_algorithms::walk::{walk_along_path, RepeatedPattern};
|
|
||||||
|
|
||||||
/// An immutable set of points that may or may not be connected.
|
/// An immutable set of points that may or may not be connected.
|
||||||
///
|
///
|
||||||
|
|
@ -83,7 +83,7 @@ pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path {
|
||||||
path.raw().iter().flattened(0.01),
|
path.raw().iter().flattened(0.01),
|
||||||
0.0,
|
0.0,
|
||||||
&mut RepeatedPattern {
|
&mut RepeatedPattern {
|
||||||
callback: |position: lyon_algorithms::math::Point,
|
callback: |position: lyon::algorithms::math::Point,
|
||||||
_tangent,
|
_tangent,
|
||||||
_distance| {
|
_distance| {
|
||||||
let point = Point {
|
let point = Point {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue