Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandercar-vt committed May 13, 2024
1 parent 9ca26a8 commit e347cda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spoof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ export function path (start: Vector, end: BoundingBox | Vector, optionsOrSpread?
const curve = bezierCurve(start, end, optionsResolved.spreadOverride)
const length = curve.length() * 0.8

// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
const speed = optionsResolved.moveSpeed ? (25 / optionsResolved.moveSpeed) : Math.random()
const speed = optionsResolved.moveSpeed !== undefined && optionsResolved.moveSpeed > 0
? (25 / optionsResolved.moveSpeed)
: Math.random()
const baseTime = speed * MIN_STEPS
const steps = Math.ceil((Math.log2(fitts(length, width) + 1) + baseTime) * 3)
const re = curve.getLUT(steps)
Expand Down

0 comments on commit e347cda

Please sign in to comment.