@stroke-stabilizer/vue 0.1.4 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -39,7 +39,9 @@ function handlePointerMove(e: PointerEvent) {
39
39
  }
40
40
 
41
41
  function handlePointerUp() {
42
- reset()
42
+ // Get final smoothed points with post-processing
43
+ const finalPoints = pointer.value.finish()
44
+ drawFinalStroke(finalPoints)
43
45
  }
44
46
  </script>
45
47
 
@@ -137,6 +139,7 @@ Creates a stabilized pointer instance.
137
139
  - `process(point)` - Process a single point
138
140
  - `processAll(points)` - Process multiple points
139
141
  - `flushBuffer()` - Flush internal buffer
142
+ - `finish()` - Apply post-processing and return final points (auto-appends endpoint)
140
143
  - `reset()` - Reset the pointer state
141
144
  - `addFilter(filter)` - Add a filter dynamically
142
145
  - `removeFilter(type)` - Remove a filter by type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stroke-stabilizer/vue",
3
- "version": "0.1.4",
3
+ "version": "0.2.9",
4
4
  "description": "Vue composables for stroke stabilization",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",