Skip to content

Commit

Permalink
v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruizok committed Mar 5, 2021
1 parent 655897b commit 80070c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions renderer/hooks/usePointer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions renderer/lib/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 80070c4

Please sign in to comment.