Lipis
097c5dfad7
Refactor: e -> event or error, err -> error, p -> pointer ( #831 )
...
* Refactor: e -> event or error, err -> error, p -> pointer
* simplify
2020-02-28 23:03:53 +01:00
Christopher Chedeau
5256096d76
Fast & Furious ( #655 )
...
* [WIP] Fast & Furious
* ensure we translate before scaling
* implement canvas caching for rest of elements
* remove unnecessary ts-ignore
* fix for devicePixelRatio
* initialize missing element props on restore
* factor out canvas padding
* remove unnecessary filtering
* simplify renderElement
* regenerate canvas on prop changes
* revert swapping shape resetting with canvas
* fix blurry rendering
* apply devicePixelRatio when clearing canvas
* improve blurriness; fix arrow canvas offset
* revert canvas clearing changes in anticipation of merge
* normalize scrollX/Y on update
* fix getDerivedStateFromProps
* swap derivedState for type brands
* tweak types
* remove renderScene offsets
* move selection element translations to renderElement
* dry out canvas zoom transformations
* fix padding offset
* Render cached canvas based on the zoom level
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: Preet <833927+pshihn@users.noreply.github.com>
2020-02-19 17:25:01 +01:00
Enzo Ferey
6ebd41734f
Resize handler detection should not be active when moving multip… ( #767 )
...
* Fix bug.
* Implement `getSelectedElements`.
* Explicit condition.
* Respect variable naming.
* Keep state consistent.
* Use `isSomeElementSelected` abstraction.
* Missing ones.
2020-02-16 22:54:50 +01:00
David Luzar
88eacc9da7
Improve pasting ( #723 )
...
* switch to selection tool on paste
* align pasting via contextMenu with pasting from event
* ensure only plaintext can be pasted
* fix findShapeByKey regression
* simplify wysiwyg pasting
* improve wysiwyg blurriness
2020-02-07 18:42:24 +01:00
David Luzar
b7a6ceba68
Eslint tweaks ( #696 )
...
* make eslint styleguide into warnings & drop no-else-return
* reintroduce max-warnings=0
* remove unnecessary eslint line disable
* reintroduce no-else-return rule
2020-02-05 17:41:14 +01:00
David Luzar
954d805cb3
rewrite clipboard handling ( #689 )
2020-02-04 11:50:18 +01:00