@@ -309,8 +309,6 @@ pub struct Stroke {
309309 #[ serde( default = "daffine2_identity" ) ]
310310 pub transform : DAffine2 ,
311311 #[ serde( default ) ]
312- pub non_scaling : bool ,
313- #[ serde( default ) ]
314312 pub paint_order : PaintOrder ,
315313}
316314
@@ -328,7 +326,6 @@ impl std::hash::Hash for Stroke {
328326 self . join_miter_limit . to_bits ( ) . hash ( state) ;
329327 self . align . hash ( state) ;
330328 self . transform . to_cols_array ( ) . iter ( ) . for_each ( |x| x. to_bits ( ) . hash ( state) ) ;
331- self . non_scaling . hash ( state) ;
332329 self . paint_order . hash ( state) ;
333330 }
334331}
@@ -345,7 +342,6 @@ impl Stroke {
345342 join_miter_limit : 4. ,
346343 align : StrokeAlign :: Center ,
347344 transform : DAffine2 :: IDENTITY ,
348- non_scaling : false ,
349345 paint_order : PaintOrder :: StrokeAbove ,
350346 }
351347 }
@@ -364,7 +360,6 @@ impl Stroke {
364360 time * self . transform . matrix2 + ( 1. - time) * other. transform . matrix2 ,
365361 self . transform . translation * time + other. transform . translation * ( 1. - time) ,
366362 ) ,
367- non_scaling : if time < 0.5 { self . non_scaling } else { other. non_scaling } ,
368363 paint_order : if time < 0.5 { self . paint_order } else { other. paint_order } ,
369364 }
370365 }
@@ -462,11 +457,6 @@ impl Stroke {
462457 self
463458 }
464459
465- pub fn with_non_scaling ( mut self , non_scaling : bool ) -> Self {
466- self . non_scaling = non_scaling;
467- self
468- }
469-
470460 pub fn has_renderable_stroke ( & self ) -> bool {
471461 self . weight > 0. && self . color . is_some_and ( |color| color. a ( ) != 0. )
472462 }
@@ -485,7 +475,6 @@ impl Default for Stroke {
485475 join_miter_limit : 4. ,
486476 align : StrokeAlign :: Center ,
487477 transform : DAffine2 :: IDENTITY ,
488- non_scaling : false ,
489478 paint_order : PaintOrder :: default ( ) ,
490479 }
491480 }
0 commit comments