You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The vector geometry with points to be jittered.
1885
1887
content:Table<Vector>,
1886
-
#[unit(" px")]
1888
+
/// The maximum extent of the random distance each point can be offset.
1887
1889
#[default(5.)]
1890
+
#[unit(" px")]
1888
1891
amount:f64,
1892
+
/// Seed used to determine unique variations on all randomized offsets.
1889
1893
seed:SeedValue,
1894
+
/// Whether to offset anchor points along their normal direction (perpendicular to the path) or in a random direction. Free-floating and branching points have no normal direction, so they receive a random-angled offset regardless of this setting.
1895
+
#[default(true)]
1896
+
along_normals:bool,
1890
1897
) -> Table<Vector>{
1891
1898
content
1892
1899
.into_iter()
@@ -1897,10 +1904,20 @@ async fn jitter_points(
1897
1904
let inverse_transform = if transform.matrix2.determinant() != 0.{ transform.inverse()}else{Default::default()};
1898
1905
1899
1906
let deltas = (0..row.element.point_domain.positions().len())
0 commit comments