Commit graph

367 commits

Author SHA1 Message Date
DD Liu
3907fd4f89 Fade drag crosshair if youre far away 2020-02-08 01:07:00 -05:00
DD Liu
23ee224ab1 Manually draw icons 2020-02-08 00:49:48 -05:00
DD Liu
4fe7c0ab8b Revert "Revert "Crosshair""
This reverts commit 999c62ff5c.
2020-02-06 18:11:10 -05:00
Paul Kaplan
999c62ff5c
Revert "Crosshair" 2020-02-06 12:15:59 -05:00
DD Liu
56e0332ed2
Merge pull request #968 from paulkaplan/fix-eyedropper-crash
Fix Safari crash in color picker
2020-02-04 18:49:24 -05:00
Paul Kaplan
3470fd8232 Prevent rounding error when getting image data.
This was causing a crash on Safari. See #966 for more details.
2020-02-04 09:02:21 -05:00
DD Liu
bf2fa3c854 xMerge branch 'develop' into changeAltScale 2020-01-30 15:11:26 -05:00
DD Liu
18fa1e2b61 Fix incorrect crosshair size after zoom to fit 2020-01-29 20:56:43 -05:00
DD Liu
21f2b489d0 fix a crash if you deselect everything 2020-01-29 20:35:17 -05:00
DD Liu
3f46c04f19 Move anchor icon load to mouse down to avoid an issue where the view hasn't loaded yet 2020-01-29 12:01:01 -05:00
DD Liu
231c98da3c Only load anchorIcon if it doesn't exist 2020-01-29 11:59:22 -05:00
DD Liu
9a3a49b88e Altscale edge follows cursor 2020-01-29 11:47:28 -05:00
DD Liu
9e097ea8c8 Revert changes to scale while holding alt 2020-01-29 11:44:03 -05:00
DD Liu
68e53e7c30 Add to all modes besides reshape 2020-01-29 11:18:55 -05:00
DD Liu
e16a85adb1 fix lint 2020-01-28 12:08:27 -05:00
DD Liu
3733fb4148 Style drag crosshair and selection crosshair and add snapping between the two 2020-01-28 12:08:27 -05:00
adroitwhiz
24ec9f76a6 travis ci 2020-01-28 12:08:27 -05:00
adroitwhiz
609fd939d9 Add transparent crosshair above dragged items 2020-01-28 12:08:27 -05:00
adroitwhiz
50172d494c Skip processing of child paths in color swap 2020-01-09 15:02:20 -05:00
adroitwhiz
41e0765657 Skip processing of child paths in mergeEraser 2020-01-09 15:00:12 -05:00
DD Liu
e84b40cc72 Set rotation center of empty bitmaps to (0, 0) 2019-12-06 00:52:16 -05:00
adroitwhiz
46f5db055d Handle null color in bitmap shape tools 2019-11-08 09:23:36 -05:00
adroitwhiz
4e4c02c7b4 Call inlineSvgFonts() on string instead of element 2019-05-16 16:51:36 -04:00
Paul Kaplan
5a3cb1c8de Change fill logic to prevent setting gradients by accident 2019-03-06 13:26:13 -05:00
Paul Kaplan
7f1c0c2a65 Move eyedropper callback into mouseUp to allow dragging the loupe around 2019-01-14 10:19:39 -05:00
Florrie
934b756032 Make mouse cursor react to what it's hovered over (#762) 2018-12-10 17:42:29 -05:00
Florrie
a04f1276f8 Make circle (shift-oval) tool work for any direction dragged (#774) 2018-11-28 13:16:20 -05:00
DD Liu
b3009320d1
Fix issues handling rasters in reshape (#756) 2018-11-05 15:58:42 -05:00
DD Liu
4bc3b5b624
Cut off text2 (#744) 2018-10-29 11:01:53 -04:00
DD Liu
c6fb28a69c
Make stroke width 0 when transparent (#695) 2018-09-26 13:08:47 -04:00
DD Liu
8daea46ad6
Use consistent hit testing (#689) 2018-09-26 11:19:46 -04:00
DD Liu
bcc3af4571
Save after adding points (#696) 2018-09-24 13:47:57 -04:00
DD Liu
c8a5db311b
Don't scale text outlines (#685) 2018-09-18 16:30:56 -04:00
DD Liu
b6ad997ea2
Switch fix aspect ratio to default when resizing by a corner (#681) 2018-09-17 13:43:51 -04:00
DD Liu
4b658c294f
Bitmap select state (#678) 2018-09-17 13:38:16 -04:00
DD Liu
02ea26efe7
Add safety checks to fill and stroke colors (#682) 2018-09-14 16:14:34 -04:00
DD Liu
ca04db7094
Export bit shapes (#662) 2018-09-12 18:17:45 -04:00
DD Liu
a105d967ba
Fence tools to make it less easy to lose work off the sides (#671) 2018-09-12 18:03:19 -04:00
DD Liu
e4883063fe
Handle transparency in bitmap tools (#660) 2018-09-12 13:21:54 -04:00
DD Liu
6f5c47686d
Rtl text tool (#651) 2018-09-05 17:19:40 -04:00
DD Liu
4be60cae49
Copy and delete work on all objects when none are selected (#634) 2018-09-05 15:34:00 -04:00
DD Liu
516f6eb714
Zoom to fit (#629)
Note do not merge without GUI change
2018-08-31 12:07:17 -04:00
DD Liu
20a98db397
Break paint-editor.jsx code out into HOCs (#633) 2018-08-30 17:51:11 -04:00
DD Liu
4474ec3aa1
Keyboard shortcuts (#623) 2018-08-29 15:29:13 -04:00
DD Liu
50de05cee4
Scrollbars (#602) 2018-08-16 16:49:43 -04:00
DD Liu
2791866a9e
Reduce tolerance across the board. Don't accept hit results on helper items unless they are handles. (#597) 2018-08-16 13:09:26 -04:00
DD Liu
8267e11176
Double click in select modes switches to text tool (#583) 2018-08-09 10:55:44 -04:00
Jacco Kulman
8056a788e7 Loupe issues fixed #378 (#382) 2018-08-08 18:27:01 -04:00
DD Liu
6c84cbf76d
Selection limit (#572) 2018-08-03 13:10:45 -04:00
DD Liu
df88d56d1b
Save bitmap selection (#569) 2018-07-25 19:07:35 -04:00
DD Liu
f7ca2c7e43
Leftover selection boxes (#570) 2018-07-25 16:28:55 -04:00
DD Liu
af3c6694d4
Bitmap gradient (#559) 2018-07-17 17:21:02 -04:00
DD Liu
4ba79cacbb
Vector gradient (#558) 2018-07-17 16:37:03 -04:00
DD Liu
4e4bb396a6
Draw oval and rectangle outlines in bitmap (#550) 2018-07-12 15:48:30 -04:00
DD Liu
652a3ca89b
Update image when deleting points (#551) 2018-07-11 14:10:03 -04:00
DD Liu
90bc640dbb Fix reshape 2018-07-06 11:29:06 -04:00
DD Liu
e215b8a9b8 Fix issue with pasting vector into bitmap 2018-06-28 17:52:15 -04:00
DD Liu
e2cc5e46b0 Merge branch 'develop' into bitSelectTool 2018-06-28 02:18:01 -04:00
DD Liu
d7bd6280ed clean up 2018-06-28 02:04:24 -04:00
DD Liu
0483d65413 Fix paste and transform bugs 2018-06-28 01:54:05 -04:00
DD Liu
eed84d8cf2 Handle flip in bitmap 2018-06-28 00:21:01 -04:00
DD Liu
a04088898e keep reference to selection 2018-06-27 23:42:29 -04:00
DD
ddca91a567 Fix the undo bug, but this time it's more real 2018-06-27 15:29:13 -04:00
DD
7aa74d7ffd wip 2018-06-26 16:04:38 -04:00
DD Liu
093c3d03bb
Redo fill logic (#525) 2018-06-26 14:53:03 -04:00
DD
8759a3306f Keep scaled down images from becoming blurry 2018-06-25 19:37:47 -04:00
DD
f4df0e07af Redo fill logic 2018-06-25 16:57:56 -04:00
DD
57e3f3c8cb Handle undo 2018-06-25 11:51:33 -04:00
DD
a0faa1418e Fix flipped resizing 2018-06-21 10:43:41 -04:00
DD Liu
9c73d1a7d9 Add files 2018-06-21 10:22:24 -04:00
DD
644655d25e Bitmap select tool 2018-06-20 21:26:40 -04:00
DD Liu
d7298c0c43
Bit text tool (#515) 2018-06-19 14:54:29 -04:00
DD Liu
a70f8e1f36
Bitmap Oval tool (#516) 2018-06-19 14:20:06 -04:00
Paul Kaplan
512d39e63b Better fix for bit brush on touch, including isEraser fix (#512) 2018-06-14 12:01:01 -04:00
DD Liu
c7e0caaca7
Fill tool (#504) 2018-06-14 11:44:11 -04:00
DD Liu
4cadcb3da3
Bitmap eraser tool (#507) 2018-06-14 10:35:02 -04:00
Paul Kaplan
f785ac0c42 Fix line tool for touch as well 2018-06-13 16:45:11 -04:00
Paul Kaplan
19a0061bdf Make sure tmpCanvas exists before drawing it 2018-06-13 16:29:54 -04:00
DD Liu
389eba6284
Bitmap rectangle tool (#494) 2018-06-11 11:48:35 -04:00
DD Liu
ebed37390d
Move convert to bitmap into bitmap helper (#490) 2018-06-07 11:26:26 -04:00
Paul Kaplan
a9ba5eac9b Protect against drawing zero sized images, fixing Firefox crashes (#495)
* Protect against drawing zero sized images, fixing Firefox crashes

* Remove removing raster

Let the layer.js helper manage the raster object
2018-06-07 10:19:06 -04:00
DD Liu
44f71d9f72
Fix drawing rectangle while holding shift (#493) 2018-06-07 10:01:23 -04:00
DD Liu
63198c05b4
Fix firefox wrap and opaque text selection (#474) 2018-05-24 14:16:00 -04:00
DD Liu
09babb15c5
Safety check cursor preview (#470) 2018-05-23 16:39:18 -04:00
DD Liu
f9e00afdc8
Dont translate fonts and increase default font size (#450)
* Remove internationalization from all font names
* Bump up the default font sizes
2018-05-17 15:34:36 -04:00
DD Liu
0240abcfe3
Font tool (#443)
Add font picker
2018-05-17 10:37:02 -04:00
DD Liu
89133f42e5
Update import and export types (#412)
* Import/export bitmap
* Fix playground and readme
* Use constants instead of changing zoom level for every import/export
2018-05-01 16:18:24 -04:00
DD Liu
3d99044ccf
Import and export bitmaps (#404)
* Rename svg to image

* Import/export bitmap

* Fix playground and readme

* Fix lint

* Assume strings are svgs
2018-04-26 18:45:50 -04:00
DD
ed114bb073 Move getBrushMark to helper 2018-04-26 14:54:44 -04:00
DD Liu
0755df9990 Add line tool 2018-04-25 15:26:48 -04:00
DD
f08c3e140f Fix merge 2018-04-20 11:27:09 -04:00
DD
bec01149ea Fix review comments 2018-04-20 11:20:38 -04:00
DD Liu
8d55265de1 Double resolution on import and halve on export 2018-04-20 11:17:42 -04:00
DD Liu
99534eb24c
Merge pull request #387 from fsih/raster
Bitmap brush
2018-04-20 11:05:44 -04:00
DD
88c9f17998 fix review comments 2018-04-20 10:57:10 -04:00
DD
d6111ed031 Remove unused code 2018-04-17 15:01:10 -04:00
DD
bda357bca6 Delete extra tools 2018-04-17 14:57:50 -04:00
DD
87d9386906 Allow odd numbers for very small brush sizes for detail 2018-04-17 14:51:34 -04:00
DD
ca42dc7735 Double pixel brush drawin working 2018-04-13 11:33:47 -04:00
Jacco Kulman
507047e245 Fix whitespace 2018-04-13 11:33:04 +02:00