excalidraw/src/components
David Luzar 14a66956d7
Implement line editing (#1616)
* implement line editing

* line editing with rotation

* ensure adding new points is disabled on point dragging

* fix hotkey replacement

* don't paint bounding box when creating new multipoint

* tweak points style, account for zoom and z-index

* don't persist editingLinearElement to localStorage

* don't mutate on noop points updates

* account for rotation when adding new point

* ensure clicking on points doesn't deselect element

* tweak history handling around editingline element

* update snapshots

* refactor pointerMove handling

* factor out point dragging

* factor out pointerDown

* improve positioning with rotation

* revert to use roughjs for calculating points bounds

* migrate from storing editingLinearElement.element to id

* make GlobalScene.getElement into O(1)

* use Alt for adding new points

* fix adding and deleting a point with rotation

* disable resize handlers & bounding box on line edit

Co-authored-by: daishi <daishi@axlight.com>
2020-06-01 11:35:44 +02:00
..
Actions.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
App.tsx Implement line editing (#1616) 2020-06-01 11:35:44 +02:00
ButtonSelect.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ColorPicker.scss Use open-color directly (#1371) 2020-04-11 01:09:29 +03:00
ColorPicker.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ContextMenu.scss Use open-color directly (#1371) 2020-04-11 01:09:29 +03:00
ContextMenu.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Dialog.scss [POC] use serviceWorker from create-react-app (#1286) 2020-04-13 16:08:39 +02:00
Dialog.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ErrorDialog.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ExportDialog.scss [POC] use serviceWorker from create-react-app (#1286) 2020-04-13 16:08:39 +02:00
ExportDialog.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
FixedSideContainer.css Add Zen mode for distraction free drawing (#1450) 2020-04-25 15:13:02 +02:00
FixedSideContainer.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
GitHubCorner.tsx Use open-color directly (#1371) 2020-04-11 01:09:29 +03:00
HelpIcon.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
HintViewer.scss resize elements from center point (#1225) 2020-04-22 17:57:17 +02:00
HintViewer.tsx Implement line editing (#1616) 2020-06-01 11:35:44 +02:00
icons.tsx add always visible lock icon on top right to show info about e… (#1403) 2020-04-17 22:39:15 +02:00
Island.scss Add Zen mode for distraction free drawing (#1450) 2020-04-25 15:13:02 +02:00
Island.tsx Add Zen mode for distraction free drawing (#1450) 2020-04-25 15:13:02 +02:00
LanguageList.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
LayerUI.scss show reset icon with zoom percentage during zen mode (#1540) 2020-05-09 14:47:22 +02:00
LayerUI.tsx scroll the closest element to center (#1670) 2020-05-30 14:02:32 +02:00
LoadingMessage.tsx Add rule banning literal text in JSX (#1367) 2020-04-10 12:58:46 -04:00
LockIcon.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
MobileMenu.tsx scroll the closest element to center (#1670) 2020-05-30 14:02:32 +02:00
Modal.scss tweak blurry bg for legibility & remove from modals (#1436) 2020-04-15 21:20:35 +02:00
Modal.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Popover.css Redesign idea (#343) 2020-01-15 07:42:02 -08:00
Popover.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Portal.tsx Syncing optimizations (#1554) 2020-05-07 14:13:18 -07:00
ProjectName.tsx Use open-color directly (#1371) 2020-04-11 01:09:29 +03:00
RoomDialog.scss [POC] use serviceWorker from create-react-app (#1286) 2020-04-13 16:08:39 +02:00
RoomDialog.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Section.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ShortcutsDialog.tsx Group/ungroup (#1648) 2020-05-26 13:07:46 -07:00
Stack.css Redesign idea (#343) 2020-01-15 07:42:02 -08:00
Stack.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
TextInput.scss [POC] use serviceWorker from create-react-app (#1286) 2020-04-13 16:08:39 +02:00
ToolButton.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
ToolIcon.scss show reset icon with zoom percentage during zen mode (#1540) 2020-05-09 14:47:22 +02:00
TopErrorBoundary.tsx Wrap localStorage API Access in try-catch (#1241) 2020-04-07 13:09:37 +03:00