perfect_freehand 2.3.2 copy "perfect_freehand: ^2.3.2" to clipboard
perfect_freehand: ^2.3.2 copied to clipboard

Draw perfect pressure-sensitive freehand lines. A set of functions for turning input points into a polygon of outline points.

2.3.2 #

  • Fixed an error in toJson() when taperEnabled is true but customTaper is null.

2.3.1 #

  • Fixed an error that occured when trying to lerp a NaN point.

2.3.0 #

  • Added toJson() and fromJson() methods to StrokeOptions.

2.2.0 #

  • Breaking change: The properties of StrokeOptions are now non-nullable. This means that e.g. StrokeOptions.smoothing now defaults to StrokeOptions.defaultSmoothing instead of null. Note that you can change the defaults.

2.1.0 #

  • Breaking change: getStroke(points, options) is now getStroke(points, options: options).
  • You can now run getStroke(points, rememberSimulatedPressure: true) to store the simulated pressure values in the points list. (#12)

2.0.1 #

  • Fixed an edge case where we have an input of two equal points.

2.0.0 #

  • 2.0.0 is a complete re-port of the original JavaScript library to Dart. There are some breaking changes, but the API is mostly the same and some automatic migration is possible by running dart fix --apply.

1.0.4 #

  • One more fix to README.

1.0.3 #

  • Pub score optimizations.
  • Improve README.
  • Add FUNDING.

1.0.2 #

  • Fix README.

1.0.1 #

  • Fix README.

1.0.0 #

  • Initial version
136
likes
140
pub points
91%
popularity

Publisher

unverified uploader

Draw perfect pressure-sensitive freehand lines. A set of functions for turning input points into a polygon of outline points.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on perfect_freehand