Commit Graph
35 Commits
Author SHA1 Message Date
d315e3dc4d Update TypeScript to 3.9.3 (#1640)
Co-authored-by: tk338g <tkhazamov@wayfair.com>
2020-05-24 21:17:25 +02:00
4228c2e094 [POC] use serviceWorker from create-react-app (#1286)
* Service worker with toast notifications

* Update CSP to allow fetches from now.sh

* Fixed clearing timers

* rounded icon for pwa (#1301)

* rounded icon for pwa

* cirle pwa app icon

* fix fonts caching

* fix app

* fix css import

* Updated csp tp inlcude worker-src: self

* add worker CSP rule

* use square icon

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
Co-authored-by: kbariotis <konmpar@gmail.com>
2020-04-13 16:08:39 +02:00
ed378170b7 Use woff2 instead ttf (#1307)
* Use woff2 instead ttf

* Update font in svg-exported files to use woff2

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
2020-04-07 15:28:44 -07:00
ad72946131 Shortcuts to zoom in/out and to reset zoom (#770)
* Shortcuts to zoom in/out and to reset zoom

* add support for numerical keys

* Fixed Firefox compatibility

Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-02-16 17:00:45 +01:00
Timur KhazamovandGitHub eee961d65f Use meta key + wheel to zoom in/out (#769) 2020-02-16 14:38:53 +01:00
Timur KhazamovandDavid Luzar 362cd74a9b Render only visible elements (#415)
* Render only visible elements

* Fixed exporting as PNG

* Moved isVisibleElement to module scope

* rerun-ci

Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-22 15:14:19 +01:00
Timur KhazamovandGitHub d603921234 Revert "Set scale for export images (#416)" (#420)
This reverts commit 82f559f826.
2020-01-17 15:55:17 +03:00
Timur KhazamovandGitHub 82f559f826 Set scale for export images (#416) 2020-01-17 15:19:56 +03:00
Timur KhazamovandChristopher Chedeau 79aee53ff6 Redesign idea (#343)
* Redisign idea

* Code cleanup

* Fixed to right container

* Reoredered layout

* Reordering panels

* Export dialog

* Removed redunant code

* Fixed not removing temp canvas

* Fixed preview not using only selected elements

* Returned file name on export

* Toggle export selected/all elements

* Hide copy to clipboard button if no support of clipboard

* Added border to swatches

* Fixed modal flickering
2020-01-15 07:42:02 -08:00
Timur KhazamovandChristopher Chedeau bc2bae2a9a Shift drag to add to selection (#355)
* Shift drag to add to selection

* Inlined variable
2020-01-12 15:32:25 -08:00
Timur KhazamovandChristopher Chedeau ce467f7b65 Shift drag to add to selection (#350) 2020-01-12 11:56:10 -08:00
Timur KhazamovandChristopher Chedeau 8f28c59deb Removed SceneState from renderElement (#301) 2020-01-11 14:38:41 -08:00
Timur KhazamovandDavid Luzar c253c0b635 Command clicking should "xor" selection (#300)
* Command clicking should "xor" selection

* Only shift key should play a role

* Get rid of `isDraggingElements`

* Renamed someElementIsDragged to draggingOccured
2020-01-10 22:45:58 +01:00
Timur KhazamovandGitHub e38f65dea7 Contenteditable wysiwyg (#274)
* Contenteditable wysiwyg

* Added comment about pasting multiline text
2020-01-09 02:04:53 +05:00
Timur KhazamovandGitHub 1739540f00 Creating a text near the center of a shape should put it in the center (#270)
* Snap to element center

* Fixed typo

* Added comment

* Reduced threshold to 30

* Skip snapping if alt key is pressed

* Fixed creating text with shape tool
2020-01-09 01:09:09 +05:00
Timur KhazamovandGitHub 37934c0f8b Fixes text jumping on creation (#266)
* Fixes text jumping on creation

* Do not remove node on ESC

* Fixed typo
2020-01-09 00:06:25 +05:00
Timur KhazamovandChristopher Chedeau 2f9aa0e3ca Async loading of TwitterPicker (#246) 2020-01-07 10:37:22 -08:00
Timur KhazamovandDavid Luzar 2d66616e3f Fixed: Copy + Paste moves text inside rectangle #229 (#245) 2020-01-07 19:02:15 +01:00
Timur KhazamovandChristopher Chedeau 10955f8bb0 Wysiwyg text 2.0 (#238)
* Fixed cleaning handlers after cleanup

* Double click to edit text

* Preserve text styles on change
2020-01-07 09:21:05 -08:00
Timur KhazamovandChristopher Chedeau ae982e9298 Revert "Save scene in URL (#220)" (#234)
This reverts commit db973c61e8.
2020-01-07 07:18:20 -08:00
Timur KhazamovandChristopher Chedeau db973c61e8 Save scene in URL (#220)
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
2020-01-06 19:08:23 -08:00
Timur KhazamovandChristopher Chedeau abbc04df0e Wysiwyg text (#200) 2020-01-06 19:03:05 -08:00
Timur KhazamovandChristopher Chedeau 257f697a98 Context menu with some commands (#217) 2020-01-06 18:50:59 -08:00
Timur KhazamovandGitHub 7bf0184499 Fixed ellipse hit test if sizes are negative (#205) 2020-01-06 23:06:54 +05:00
Timur KhazamovandGitHub 7201198f23 Better scrollbars (#177)
* Better scrollbars

* Get rid of all unused options
2020-01-06 02:26:01 +05:00
Timur KhazamovandGitHub e7e676e1eb Merge pull request #171 from nanot1m/arrows-start-end-points
Adjust arrow start/end points
2020-01-06 00:30:57 +05:00
Timur KhazamovandGitHub 91bc9df37a Merge pull request #170 from jaredpalmer/titles
Add titles to shape buttons with key shortcuts
2020-01-05 23:57:57 +05:00
Timur KhazamovandChristopher Chedeau 910b30a08a Dragging scrollbars (#161) 2020-01-05 10:06:21 -08:00
Timur KhazamovandChristopher Chedeau 79959cab34 Removed lodash (#135) 2020-01-04 12:53:45 -08:00
Timur KhazamovandChristopher Chedeau aa01be2dbe Fixed Unable to preventDefault errors in Chrome (#130)
* Fixed Unable to preventDefault errors in Chrome

* Cleanup wheel event listener
2020-01-04 12:11:23 -08:00
Timur KhazamovandChristopher Chedeau 34b8883739 Added outlines to focused buttons (#129) 2020-01-04 12:08:27 -08:00
Timur KhazamovandGitHub 5877aabb86 Merge pull request #74 from nanot1m/scroll
[WIP] Scroll with mouse wheel
2020-01-04 03:06:54 +05:00
Timur KhazamovandGitHub c11b3aa684 Merge pull request #69 from nanot1m/website-ci
Deploy static to gh-pages
2020-01-04 01:53:36 +05:00
Timur KhazamovandChristopher Chedeau 1383758aa7 TS, Prettier, Eslint (#39)
* TS, Prettier, Eslint

* Used rough ts definitions
2020-01-02 11:03:48 -08:00
Timur KhazamovandChristopher Chedeau bb151d83bc Drag to move selection (#28) 2020-01-02 05:58:25 -08:00