@drauu/core
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -132,7 +132,7 @@ interface Unsubscribe { | ||
constructor(drauu: Drauu); | ||
onSelected(el: SVGSVGElement | null): void; | ||
onSelected(_el: SVGSVGElement | null): void; | ||
onUnselected(): void; | ||
onStart(point: Point): SVGElement | undefined; | ||
onMove(point: Point): boolean; | ||
onEnd(point: Point): SVGElement | boolean | undefined; | ||
onStart(_point: Point): SVGElement | undefined; | ||
onMove(_point: Point): boolean; | ||
onEnd(_point: Point): SVGElement | boolean | undefined; | ||
get brush(): Brush; | ||
@@ -139,0 +139,0 @@ get shiftPressed(): boolean; |
@@ -229,13 +229,13 @@ "use strict"; | ||
} | ||
onSelected(el) { | ||
onSelected(_el) { | ||
} | ||
onUnselected() { | ||
} | ||
onStart(point) { | ||
onStart(_point) { | ||
return void 0; | ||
} | ||
onMove(point) { | ||
onMove(_point) { | ||
return false; | ||
} | ||
onEnd(point) { | ||
onEnd(_point) { | ||
return void 0; | ||
@@ -351,3 +351,3 @@ } | ||
const stroke = ae(points, __spreadValues({ | ||
size: this.brush.size * 2, | ||
size: this.brush.size, | ||
thinning: 0.9, | ||
@@ -354,0 +354,0 @@ simulatePressure: false, |
@@ -251,13 +251,13 @@ "use strict"; | ||
} | ||
onSelected(el) { | ||
onSelected(_el) { | ||
} | ||
onUnselected() { | ||
} | ||
onStart(point) { | ||
onStart(_point) { | ||
return void 0; | ||
} | ||
onMove(point) { | ||
onMove(_point) { | ||
return false; | ||
} | ||
onEnd(point) { | ||
onEnd(_point) { | ||
return void 0; | ||
@@ -373,3 +373,3 @@ } | ||
const stroke = ae(points, __spreadValues({ | ||
size: this.brush.size * 2, | ||
size: this.brush.size, | ||
thinning: 0.9, | ||
@@ -376,0 +376,0 @@ simulatePressure: false, |
{ | ||
"name": "@drauu/core", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
@@ -19,4 +19,4 @@ "license": "MIT", | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs" | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
} | ||
@@ -23,0 +23,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104526