Skip to content

Commit

Permalink
Updates example.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveruizok committed Feb 20, 2021
1 parent 908f560 commit f700990
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@types/react-dom": "^17.0.1",
"@types/styled-components": "^5.1.7",
"next": "10.0.7",
"perfect-freehand": "latest",
"perfect-freehand": "^0.2.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-feather": "^2.0.9",
Expand Down
5 changes: 2 additions & 3 deletions example/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import * as React from 'react'
import { createState, createSelectorHook } from '@state-designer/react'
import { getPointer } from './hooks/useEvents'
import { Mark, CompleteMark } from './types'
import pathAlgorithm from 'perfect-freehand'
import pathAlgorithm, { StrokeOptions } from 'perfect-freehand'

const defaultOptions = {
type: 'mouse',
const defaultOptions: StrokeOptions = {
pressure: true,
streamline: 0.5,
minSize: 2.5,
Expand Down
2 changes: 1 addition & 1 deletion example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ pbkdf2@^3.0.3:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

perfect-freehand@latest:
perfect-freehand@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/perfect-freehand/-/perfect-freehand-0.1.3.tgz#456bf810bd005279489362cf34be2ef24023d5a7"
integrity sha512-TvI+dLe6i0DxIsBJJfS/39znvdPpMD22HLR8JJFawLmcFJ9aMRkz47zyCkRVOYGvWclXYK34YHj5m3K68z9PZA==
Expand Down

0 comments on commit f700990

Please sign in to comment.