Tldraw/packages/core/src/hooks
Christian Petersen e2814943e9
[feature] Add grids (#344)
* [feature] grids

* Shows relative grids at different zoom levels

* Update colors

* Restores vec and intersect to monorepo, changes vec.round to vec.toFixed, adds vec.snap

* Snapping in translate and transforms, fix shortcut

* fix bugs in build

* use grid size for nudge too

* update scripts

* Update grid.tsx

* Update grid.tsx

* Fixed!

* Update grid.tsx

* Fix package imports

* Update Editor.tsx

* Improve tsconfigs, imports

* Fix tiny arrow bugs, snap starting points to grid

* Update tsconfig.base.json

* Update shape-styles.ts

* Fix example tsconfig

* Fix translate type error

* Fix types, paths

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-26 15:14:10 +00:00
..
index.ts [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
useBoundsEvents.tsx [improvement] Add basic support for copying text (#354) 2021-11-22 16:15:51 +00:00
useBoundsHandleEvents.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useCameraCss.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useCanvasEvents.tsx feature middle mouse wheel pan (#364) 2021-11-24 10:01:17 +00:00
useForceUpdate.ts [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
useHandleEvents.tsx [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
useHandles.ts fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useKeyEvents.ts fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
usePosition.ts fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
usePreventNavigation.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useResizeObserver.ts fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useSafariFocusOutFix.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useSelection.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useShapeEvents.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useShapeTree.tsx [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
useStyle.tsx [feature] Add grids (#344) 2021-11-26 15:14:10 +00:00
useTLContext.tsx fix stuck pointer during text editing / palm hits (#316) 2021-11-20 00:05:48 +00:00
useZoomEvents.ts [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00