Tldraw/packages/ui/src/lib/hooks
Steve Ruiz a220b2eff1
[feature] reduce motion (#1485)
This PR adds a user preference to reduce motion. When enabled the app
will not animate the camera (and perhaps skip other animations in the
future). It's actual implementation is as an `animateSpeed` property, so
we can also use it to speed up or slow down our animations if that's
something we want to do!

### Change Type

- [x] `minor` — New Feature

### Test Plan

1. Turn on reduce motion
2. Use minimap / camera features to zoom in / out / etc

- [x] Unit Tests

### Release Notes

- [editor] Add `reduceMotion` user preference
- Add reduce motion option to preferences
2023-05-30 15:22:49 +00:00
..
clipboard [refactor] update record names (#1473) 2023-05-26 13:37:59 +00:00
useTranslation [feature] reduce motion (#1485) 2023-05-30 15:22:49 +00:00
menuHelpers.ts [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. (#1432) 2023-05-23 12:32:42 +00:00
useActions.tsx [feature] reduce motion (#1485) 2023-05-30 15:22:49 +00:00
useActionsMenuSchema.tsx
useAppEvents.ts
useAppIsFocused.ts
useAssetUrls.tsx
useBreakpoint.tsx
useCanRedo.ts
useCanUndo.ts
useClipboardEvents.ts Add playwright tests (#1484) 2023-05-30 15:28:56 +01:00
useContextMenuSchema.tsx remove safari special-casing for paste (#1470) 2023-05-26 08:24:21 +00:00
useCopyAs.ts Don't allow `g` keyboard shortcut in readonly mode, show laser tool in the toolbar (#1459) 2023-05-25 19:08:52 +00:00
useDialogsProvider.tsx
useEventsProvider.tsx [feature] reduce motion (#1485) 2023-05-30 15:22:49 +00:00
useExportAs.ts [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. (#1432) 2023-05-23 12:32:42 +00:00
useHasLinkShapeSelected.ts
useHelpMenuSchema.tsx
useHighDpiCanvas.ts
useInsertMedia.ts
useKeyboardShortcuts.ts Don't allow `g` keyboard shortcut in readonly mode, show laser tool in the toolbar (#1459) 2023-05-25 19:08:52 +00:00
useKeyboardShortcutsSchema.tsx Add laser keyboard shortcut. (#1467) 2023-05-25 15:33:40 +00:00
useLocalStorageState.ts
useMenuIsOpen.ts open menus refactor (#1400) 2023-05-17 14:30:28 +00:00
useMenuSchema.tsx [feature] reduce motion (#1485) 2023-05-30 15:22:49 +00:00
useOnlyFlippableShape.ts
usePreloadIcons.ts
usePrint.ts
useReadonly.ts
useShowAutoSizeToggle.ts [refactor] Remove `TLShapeDef`, `getShapeUtilByType`. (#1432) 2023-05-23 12:32:42 +00:00
useToastsProvider.tsx
useToolbarSchema.tsx [feature] Add checkbox to toolbar (#1423) 2023-05-19 13:01:42 +00:00
useTools.tsx [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00