Matthew Taylor
7df3d69fc6
small styling updates
...
make the swatches aligned in gui, and make sure the cursor shows when not eye dropping. Also moves eye dropper initialization into the helper. Thanks @paulkaplan!
2017-12-15 10:37:31 -05:00
Matthew Taylor
73dce6ca50
add comment to colorInfo shape
2017-12-15 10:10:55 -05:00
Matthew Taylor
8c2fc475f6
updates from @paulkaplan’s feedback
...
1. Removes the cursour over loupe, and fills the loupe center’s color correctly
2. Fixes a console error and loupe initialization issue
3. Increases the size of the swatches
Thanks @paulkaplan!
2017-12-15 10:09:19 -05:00
DD
ac6914afc4
Show bounding box when moving and scaling in the select tool
2017-12-14 19:17:06 -05:00
Matthew Taylor
54e1e34127
don’t close popover on eye dropper click
...
and also update the hsv states from an eye dropper color change.
2017-12-14 14:45:26 -05:00
Matthew Taylor
0209e65ac0
accommodate zoom in eye dropper
2017-12-14 12:58:25 -05:00
Matthew Taylor
5caf6b7157
remove unused reference
2017-12-14 12:57:41 -05:00
Matthew Taylor
b49810a56d
remove empty box css file
2017-12-14 08:54:02 -05:00
Matthew Taylor
d87adbeac5
remove shouldComponentUpdate
...
also do proper validation of `previousTool`
2017-12-13 17:18:53 -05:00
DD Liu
29cc3b72a0
Merge pull request #214 from fsih/selectionBoxHandles
...
Selection box handles
2017-12-13 16:04:31 -05:00
Matthew Taylor
ae0358079e
use pixelRatio
instead of scale constant
...
Turns out that the width/height paper sets on the canvas is tracked at scale to the width/height we set in the `pixelRatio` value, so use that to handle grabbing pixel color rather than a constant we set.
2017-12-13 13:13:43 -05:00
Matthew Taylor
c8094af69e
don’t change modes when activate eye dropper
...
It works well to keep track of the previously active tool in redux, and reactivate that tool when the eye dropper is finished. This takes `eye-dropper` out of the mode tool reducer too, which is nice.
2017-12-13 13:12:33 -05:00
DD
e9392d4b2b
Remove template
2017-12-12 12:23:02 -05:00
DD
accdbb0fc3
Selection box handle design
2017-12-12 11:42:19 -05:00
Paul Kaplan
6a7daa83a5
Merge pull request #213 from paulkaplan/strip-svg-namespace
...
Remove "svg:" namespace from svg before importing.
2017-12-12 10:55:53 -05:00
Paul Kaplan
0e74afc631
Remove "svg:" namespace from svg before importing.
...
The namespace on tags causes paperjs to fail to import.
2017-12-12 10:25:59 -05:00
Matthew Taylor
4accabbc69
Changes from PR feedback
...
fixes lint and gui compatibility issues shown by @paulkaplan, and also does some cleanup to references and structure as requested by @fsih. Thanks to both of you for the reviews!
FYI – part of the canvas reference change made it so that the `PaintEditor` presentation component could become a classless declaration.
2017-12-11 13:24:57 -05:00
Matthew Taylor
2183dc759f
Implement eye dropper for paint editor
2017-12-08 16:52:37 -05:00
DD Liu
38437c65bc
Merge pull request #210 from fsih/fixBoundingBox
...
Show the bounding box after switching to select tool and transforming
2017-12-05 20:33:48 -05:00
DD
54f8abacfc
Show the bounding box after switching to select tool and transforming
2017-12-05 12:13:31 -05:00
DD Liu
3d2a29244a
Merge pull request #208 from fsih/watermelon
...
Handle null items
2017-12-01 10:35:50 -05:00
DD
5fe8369b1e
Handle null items
2017-11-30 17:56:10 -05:00
Matthew Taylor
5ffdd14ff0
Merge pull request #194 from mewtaylor/issue/gh-41
...
Implement GH-41: Add minimum width gui
2017-11-21 11:06:05 -05:00
Matthew Taylor
27c0684e1c
fine-tune the responsive design
...
squish some things together a bit more, including in desktop mode (in order to fit the coming “rotation point” button). Also turn canvas into 480x360, as it is in the mocks
2017-11-13 15:13:20 -05:00
DD Liu
eb73b6453e
Merge pull request #199 from fsih/canvasDep3
...
Add canvas prebuilt
2017-11-13 10:26:32 -05:00
Matthew Taylor
b48da92b9d
squish buttons together a bit more on tablet
2017-11-13 07:45:22 -05:00
DD
599d4b1320
add canvas prebuilt dep to fix local tests that cant find canvas 2D context
2017-11-09 16:27:24 -05:00
Matthew Taylor
351b3bb6e7
Add font family to menu items
...
popovers need explicit font family set
2017-11-09 16:03:57 -05:00
DD Liu
4924caec89
Merge pull request #185 from fsih/betterCursorPreview
...
Improve cursor preview efficiency
2017-11-09 15:53:38 -05:00
DD
420db40145
Improve cursor preview, don't redraw the circle every frame it changes
2017-11-08 15:36:21 -05:00
DD Liu
25c92e23a5
Merge pull request #186 from fsih/selectionBoxShapeToools
...
Clean up selection state
2017-11-08 15:35:10 -05:00
Matthew Taylor
6930da0644
fix linting
...
thanks @fsih!
2017-11-08 15:30:32 -05:00
Matthew Taylor
58355ea4c7
Add back in missing props
...
Whoops! Thanks @fsih
2017-11-08 15:05:30 -05:00
DD
d918fc0bda
Clean up selection state
2017-11-08 13:33:57 -05:00
DD Liu
406a212053
Merge pull request #195 from fsih/strokeWidthFix
...
Clean up the scale tool
2017-11-08 13:31:50 -05:00
Paul Kaplan
8730c28a79
Merge pull request #196 from paulkaplan/fix-object-values
...
Do not use Object.values
2017-11-08 13:18:06 -05:00
Matthew Taylor
e384c07e3d
fix linting, tests
2017-11-08 10:13:17 -05:00
Matthew Taylor
533e007ac9
pin react-responsive type
...
thanks @rschamp!
2017-11-08 09:55:44 -05:00
DD Liu
ba6de5accc
Merge pull request #191 from mewtaylor/issue/gh-131-again
...
GH-131 Again: remove `small` from live inputs
2017-11-08 08:32:55 -05:00
Paul Kaplan
b9398d2f22
Do not use Object.values
...
This is almost silly because the "keymirror" used to create Modes
actually ensures that the keys and the values of the object are the
same. So replace object.values with object.keys which has complete
browser support.
2017-11-08 08:32:43 -05:00
DD
f854a296a2
Clean up
2017-11-07 17:49:30 -05:00
Matthew Taylor
018f9b28a6
add min width layout for tablet
2017-11-07 14:08:26 -05:00
Matthew Taylor
250e3ea089
fix validation
2017-11-07 14:04:54 -05:00
Matthew Taylor
95099d6e90
move modes to lib
2017-11-07 14:02:39 -05:00
DD Liu
13693e7fc0
Merge pull request #190 from fsih/NaNaNaNaNaNaNaNaN
...
Indicate gradients as mixed for now
2017-11-07 11:29:08 -05:00
DD Liu
9f2dd1dcf0
Merge pull request #184 from fsih/activeTools
...
Tools keep track of when they are 'active' (the mouse is down)
2017-11-07 11:18:09 -05:00
DD
5e1fcc66ea
Tools keep track of when they are 'active' (mouse down has occured on them)'
2017-11-07 11:17:11 -05:00
DD Liu
078ab56583
Merge pull request #187 from fsih/fixCanvasDep
...
Fix canvas dep
2017-11-07 10:39:32 -05:00
DD
88a6b6e14e
revert eslint change
2017-11-07 10:31:28 -05:00
Matthew Taylor
c347460034
remove small
from live inputs
...
Fixes #131 by instead of changing the small width, simply just removing the small tag from things that don’t need it.
2017-11-07 09:37:12 -05:00