diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f45d42..83e9f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 0.3.3 + +- Fixes bug with short marks. + +# 0.3.2 + +- Update to confirm that auto-updates are working. + # 0.3.1 - Changes colors. diff --git a/package.json b/package.json index 87e7ff4..2f1e7de 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "version": "0.3.1", + "version": "0.3.3", "private": true, "name": "telestrator", - "description": "A drawing app for streaming.", + "description": "An over-screen drawing app.", "author": "Steve Ruiz @steveruizok", "homepage": "https://github.com/steveruizok/telestrator", "repository": "https://github.com/steveruizok/telestrator", @@ -16,7 +16,7 @@ "build:win64": "nextron build --win --x64", "build:mac": "nextron build --mac --x64", "build:linux": "nextron build --linux", - "release:mac": "nextron build --mac --x64" + "release:mac": "gh release create v0.3.3 ./dist/*.dmg" }, "dependencies": { "@state-designer/react": "^1.5.1", diff --git a/renderer/hooks/usePointer.tsx b/renderer/hooks/usePointer.tsx index 820abf7..8f66138 100644 --- a/renderer/hooks/usePointer.tsx +++ b/renderer/hooks/usePointer.tsx @@ -25,9 +25,7 @@ interface PointerInfo { dy: number } -export default function usePointer( - onMove = ({ dx, dy, x, y }: PointerInfo) => {} -) { +export default function usePointer(onMove = (info: PointerInfo) => {}) { React.useEffect(() => { function updateMotionValues(e: PointerEvent) { const x = e.pageX, diff --git a/renderer/lib/state.ts b/renderer/lib/state.ts index 6f2b6bc..ecce1c7 100644 --- a/renderer/lib/state.ts +++ b/renderer/lib/state.ts @@ -765,14 +765,6 @@ const state = createState({ function getFreehandPath(mark: Mark, isPressure: boolean) { const { points } = mark - if (points.length < 10) { - const path = new Path2D() - const [x, y] = points[points.length - 1] - path.moveTo(x, y) - path.ellipse(x, y, mark.size / 2, mark.size / 2, 0, Math.PI * 2, 0) - return path - } - const path = new Path2D( getSvgPathFromStroke( getStroke(points, {