David Luzar
8542c95a7a
fix: move utility types out of .d.ts
file to fix exported declaration files ( #6315 )
2023-03-04 19:21:57 +01:00
David Luzar
f9d2d537a2
feat: add element.updated
( #4070 )
2021-11-24 18:38:33 +01:00
David Luzar
163ad1f4c4
feat: image support ( #4011 )
...
Co-authored-by: Emil Atanasov <heitara@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2021-10-21 22:05:48 +02:00
David Luzar
097362662d
feat: pass localElements to restore and restoreElement API's and bump versions of duplicate elements on import ( #3797 )
2021-07-04 22:23:35 +02:00
David Luzar
4ef7cb7365
feat: bump element version on z-index change ( #3483 )
...
* feat: bump element version on z-index change
* update snaps
* update changelog
2021-04-25 14:09:38 +02:00
David Luzar
9a13dd8836
fix: bail on noop updates for newElementWith ( #3279 )
2021-03-20 13:29:53 +01:00
Lipis
b21fd49412
chore: Minor refactoring for consistency ( #2425 )
2020-11-29 17:32:51 +01:00
David Luzar
fea257765d
regenerate seed on change of sloppiness ( #1986 )
2020-07-30 20:14:38 +02:00
Aakansha Doshi
20500b7822
remove shared global scene and attach it to every instance ( #1706 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-07-30 11:20:59 +02:00
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
David Luzar
f413bab3de
Fix group element removing ( #1676 )
2020-05-30 13:48:57 -07:00
David Luzar
4f3bf79708
skip element mutation on noop updates ( #1667 )
2020-05-28 00:50:56 -07:00
David Luzar
35049e3de7
History tweaks ( #1641 )
...
Co-authored-by: Pete Hunt <phunt@twitter.com>
2020-05-24 15:17:14 -07:00
Lipis
c427aa3cce
Prefer arrow functions and callbacks ( #1210 )
2020-05-20 15:21:37 +02:00
Pete Hunt
bd7856adf3
Much more thorough tests! ( #1053 )
2020-03-23 16:38:41 -07:00
David Luzar
fda06e4fc3
Fix history - the 2nd installment ( #1014 )
...
* don't regenerate versionNonce on pushEntry
* fix history handling around multi-point arrows
* remove filtering from getElementMap helper
2020-03-19 11:41:32 -07:00
David Luzar
373d16abe6
improve & granularize ExcalidrawElement types ( #991 )
...
* improve & granularize ExcalidrawElement types
* fix incorrectly passing type
* fix tests
* fix more tests
* fix unnecessary spreads & refactor
* add comments
2020-03-17 20:55:40 +01:00
Pete Hunt
b603337c3f
Fix multielements ( #987 )
2020-03-17 11:01:11 -07:00
Pete Hunt
e9f5175f51
Fix performance bug ( #984 )
2020-03-16 19:07:47 -07:00
Pete Hunt
35ce1729cc
remove most setState({}) ( #959 )
2020-03-15 10:06:41 -07:00
Pete Hunt
e1e2249f57
Abstract away or eliminate most of the mutation of the Elements array ( #955 )
2020-03-14 21:48:51 -07:00
Pete Hunt
3f8144ef85
Fix many syncing issues ( #952 )
2020-03-14 20:46:57 -07:00
Pete Hunt
83a2f5de28
remove closures from mutateElement, get rid of the element spreading ( #902 )
2020-03-10 20:11:02 -07:00
idlewinn
a0669f874e
add comments
2020-03-09 23:37:42 -07:00
idlewinn
1419f17175
enable version bumping for collaboration
2020-03-09 22:34:50 -07:00