inky boxes
This commit is contained in:
parent
350c1debde
commit
84c93060d0
19 changed files with 304 additions and 31 deletions
|
@ -11,10 +11,6 @@ import Bounds from './bounds/bounding-box'
|
|||
import BoundsBg from './bounds/bounds-bg'
|
||||
import Selected from './selected'
|
||||
import Handles from './bounds/handles'
|
||||
import { isMobile, screenToWorld, throttle } from 'utils/utils'
|
||||
import session from 'state/session'
|
||||
import { PointerInfo } from 'types'
|
||||
import { fastDrawUpdate } from 'state/hacks'
|
||||
import useCanvasEvents from 'hooks/useCanvasEvents'
|
||||
|
||||
export default function Canvas() {
|
||||
|
@ -56,16 +52,9 @@ const MainSVG = styled('svg', {
|
|||
zIndex: 100,
|
||||
backgroundColor: '$canvas',
|
||||
pointerEvents: 'all',
|
||||
// cursor: 'none',
|
||||
|
||||
'& *': {
|
||||
userSelect: 'none',
|
||||
},
|
||||
})
|
||||
|
||||
// const throttledPointerMove = throttle((payload: any) => {
|
||||
// state.send('MOVED_POINTER', payload)
|
||||
// }, 16)
|
||||
|
||||
const throttledPointerMove = (payload: any) => {
|
||||
state.send('MOVED_POINTER', payload)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue