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
/// * [roughness] Numerical value indicating how rough the drawing is. A rectangle with the roughness of 0 would be a perfect rectangle. Default value is 1. There is no upper limit to this value, but a value over 10 is mostly useless.
37
+
/// * [bowing] Numerical value indicating how curvy the lines are when drawing a sketch. A value of 0 will cause straight lines. Default value is 1.
38
+
/// * [seed] The seed for creating random values used in shape generation. This is useful for creating the exact shape when re-generating with the same parameters. Default value is 1.
39
+
/// * [curveStepCount] When drawing ellipses, circles, and arcs, Rough approximates [curveStepCount] number of points to estimate the shape. Default value is 9.
40
+
/// * [curveTightness]
41
+
/// * [curveFitting] When drawing ellipses, circles, and arcs, it means how close should the rendered dimensions be when compared to the specified one. Default value is 0.95.
Copy file name to clipboardExpand all lines: lib/src/filler.dart
+45-18Lines changed: 45 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,43 @@ class FillerConfig {
24
24
finaldouble dashGap;
25
25
finaldouble zigzagOffset;
26
26
27
-
constFillerConfig({
27
+
constFillerConfig._({
28
28
DrawConfig drawConfig,
29
-
this.fillWeight=1,
30
-
this.hachureAngle=-41,
31
-
this.hachureGap=15,
32
-
this.dashOffset=15,
33
-
this.dashGap=2,
34
-
this.zigzagOffset=5,
29
+
this.fillWeight,
30
+
this.hachureAngle,
31
+
this.hachureGap,
32
+
this.dashOffset,
33
+
this.dashGap,
34
+
this.zigzagOffset,
35
35
}) : _drawConfig = drawConfig;
36
36
37
+
/// * [fillWeigh] When using dots styles to fill the shape, this value represents the diameter of the dot.
38
+
/// * [hachureAngle] Numerical value (in degrees) that defines the angle of the hachure lines. Default value is -41 degrees.
39
+
/// * [hachureGap] Numerical value that defines the average gap, in pixels, between two hachure lines. Default value is 15.
40
+
/// * [dashOffset] When filling a shape using the [DashedFiller], this property indicates the nominal length of dash (in pixels). If not set, it defaults to the hachureGap value.
41
+
/// * [dashGap] When filling a shape using the [DashedFiller], this property indicates the nominal gap between dashes (in pixels). If not set, it defaults to the hachureGap value.
42
+
/// * [zigzagOffset] When filling a shape using the [ZigZagLineFiller], this property indicates the nominal width of the zig-zag triangle in each line. If not set, it defaults to the hachureGap value.
0 commit comments