timcreatedit / scribble

Scribble is a lightweight library for freehand drawing in Flutter supporting pressure, variable line width and more!
https://pub.dev/packages/scribble
MIT License
115 stars 39 forks source link

feat: configurable `simulatePressure` in `Scribble` and `ScribbleSketch` #60

Closed timcreatedit closed 6 months ago

timcreatedit commented 6 months ago

Description

Allows configuring simulatePressure.

Checklist

github-actions[bot] commented 6 months ago

Coverage Report

This is an automatic coverage report for 9d0ceb7b, proudly generated by Dart Coverage Assistant 🎯🧪.

Monorepo coverage

This repository contains 3 Dart projects. This is is the total coverage across all of them:

49.90990990990991% - pass ⬆️ +10.35%

scribble

Scribble is a lightweight library for freehand drawing in Flutter

31.35802469135803% - pass ⬆️ +14.69%

Coverage Details for scribble | File | Line Percentage | Line Count | | --- | --- | --- | | **lib/src/domain** | | | | iterable_removed_x.dart | 100.00 | 15 | | **lib/src/domain/model/point** | | | | point.dart | 100.00 | 2 | | point.g.dart | 44.44 | 9 | | **lib/src/domain/model/sketch** | | | | sketch.dart | 100.00 | 1 | | sketch.g.dart | 57.14 | 7 | | **lib/src/domain/model/sketch_line** | | | | sketch_line.dart | 100.00 | 2 | | sketch_line.g.dart | 58.33 | 12 | | **lib/src/view** | | | | scribble.dart | 100.00 | 32 | | scribble_sketch.dart | 0.00 | 7 | | pan_gesture_catcher.dart | 75.00 | 16 | | **lib/src/view/notifier** | | | | scribble_notifier.dart | 11.04 | 154 | | **lib/src/view/painting** | | | | point_to_offset_x.dart | 0.00 | 1 | | sketch_line_path_mixin.dart | 0.00 | 25 | | scribble_editing_painter.dart | 24.00 | 25 | | scribble_painter.dart | 30.77 | 13 | | **lib/src/view/simplification** | | | | sketch_simplifier.dart | 100.00 | 15 | | **lib/src/view/state** | | | | scribble.state.dart | 37.50 | 16 | | scribble.state.g.dart | 0.00 | 53 |

simpli

Polyline simplification algorithms, made simple! Sporting exciting algorithms such as Ramer-Douglas-Peucker and Visvalingam.

100% - pass ➡️ 0.00%

Coverage Details for simpli | File | Line Percentage | Line Count | | --- | --- | --- | | **lib/src/data** | | | | utils.dart | 100.00 | 10 | | visvalingam_simplifier.dart | 100.00 | 42 | | rdp_simplifier.dart | 100.00 | 18 |

value_notifier_tools

Helpful lightweight tools for working with ValueNotifiers

100% - pass ➡️ 0.00%

Coverage Details for value_notifier_tools | File | Line Percentage | Line Count | | --- | --- | --- | | **lib/src/history_value_notifier** | | | | history_value_notifier.dart | 100.00 | 1 | | history_value_notifier_mixin.dart | 100.00 | 45 | | **lib/src/select_value_notifier** | | | | select_value_notifier.dart | 100.00 | 12 | | **lib/src/where_value_notifier** | | | | where_value_notifier_mixin.dart | 100.00 | 7 | | where_value_notifier.dart | 100.00 | 1 | | where_value_notifier_from_parent.dart | 100.00 | 14 |