Commit graph

1860 commits

Author SHA1 Message Date
DD
b93ce53694 Add an undo stack size limit to paint 2018-02-27 10:59:30 -05:00
Ray Schamp
9fca8dc514 Restrict exported SVG to content bounds
Previously we were exporting empty space to the right and bottom of the artwork, which was reflected in sprite thumbnails as a tiny version of the sprite.
2018-02-27 09:20:34 -05:00
greenkeeper[bot]
92e43feab0 chore(package): update webpack-dev-server to version 3.0.0 2018-02-25 12:24:53 +00:00
DD Liu
c39c495f8f
Merge pull request #296 from LLK/greenkeeper/css-loader-0.28.10
Update css-loader to the latest version 🚀
2018-02-22 14:23:25 -05:00
greenkeeper[bot]
5464e6b1b1 chore(package): update css-loader to version 0.28.10 2018-02-22 18:25:37 +00:00
greenkeeper[bot]
d255528372 chore(package): update react-redux to version 5.0.7 2018-02-16 22:24:14 +00:00
DD Liu
198e276a99
Merge pull request #291 from LLK/greenkeeper/initial
Update dependencies to enable Greenkeeper 🌴
2018-02-15 18:03:01 -05:00
Paul Kaplan
d92cf90435
Merge pull request #292 from paulkaplan/bump-version
Bump to 0.2.0 to try to fix greenkeeper
2018-02-09 16:16:55 -05:00
Paul Kaplan
1d6de32008 Bump to 0.2.0 to try to fix greenkeeper 2018-02-09 16:15:41 -05:00
greenkeeper[bot]
724b4ab3ec docs(readme): add Greenkeeper badge 2018-02-09 21:04:48 +00:00
greenkeeper[bot]
c976818679 chore(package): update dependencies 2018-02-09 21:04:45 +00:00
Paul Kaplan
b193ad72c6
Merge pull request #290 from paulkaplan/fix-draggable-images
Mark all clickable images as not draggable.
2018-02-09 11:35:55 -05:00
Paul Kaplan
2bae8ed71a Mark all clickable images as not draggable.
When using images as clickable elements (within buttons or alone) you
need to mark them as not draggable. They are draggable by default and
starting a drag prevents the onClick from being handled, messing up the
clickable behavior.
2018-02-09 09:32:00 -05:00
Paul Kaplan
13d0f13170
Merge pull request #289 from paulkaplan/fix-zoom-bounds
Change pan/zoom bounds to 360/480 to match the real bounds.
2018-02-08 11:10:14 -05:00
Paul Kaplan
b4b93a4982 Change pan/zoom bounds to 360/480 to match the real bounds. 2018-02-08 08:49:52 -05:00
Paul Kaplan
c87e3e021a
Merge pull request #283 from paulkaplan/fix-chrome-eyedropper-bug
Temporary fix for eyedropper issue in Chrome 64
2018-02-07 12:37:58 -05:00
Paul Kaplan
d648fef0ee
Merge pull request #285 from paulkaplan/fix-input-nudging
Don't nudge selection when input is focused
2018-02-07 12:32:44 -05:00
Paul Kaplan
7f83411653 Use the same syntax as the delete key 2018-02-07 11:35:59 -05:00
Paul Kaplan
edb4acbb50
Merge pull request #284 from paulkaplan/fix-shift-bounds
Fix bounding box issue when using shift+drag
2018-02-07 11:32:54 -05:00
Paul Kaplan
09145a3bf1 Bail if input is target of nudge 2018-02-06 20:14:58 -05:00
Paul Kaplan
3a1e88eb5e Only update the selection bounds if a nudge actually occurs
This was causing the problem where holding shift while dragging would
trigger the selection box to be shown, interrupting the drag.
2018-02-06 19:15:25 -05:00
Paul Kaplan
270c92a849 Buffer the paper canvas offscreen for picking to ensure safe access.
This gets around the bug #276 where chrome cannot handle getImageData
off a canvas on HDPI screens. In the interest of having a single
code-path, and because does not impose a large performance burden, I
think we should just use it for all platforms until chrome is really
fixed.

Also it is important to note that because this bug has to do with how
they handle accelerated 2d canvas contexts, it does not impact the stage
color picking, so that does not need to be changed.
2018-02-06 18:56:26 -05:00
DD Liu
0a308e8e44
Merge pull request #268 from fsih/flipAll
Flip all
2018-01-30 15:57:30 -05:00
DD
7a4822298b Remove special case flip around center when nothing is selected 2018-01-29 15:03:05 -05:00
DD Liu
0f25c65217
Merge pull request #271 from fsih/nudge
Nudge
2018-01-29 11:29:11 -05:00
DD Liu
28ac7eaa7d
Merge pull request #269 from fsih/shiftLineTool
Hold shift to lock line tool to 45 degree angles
2018-01-26 17:37:15 -05:00
DD Liu
02e7d96e23
Merge pull request #267 from fsih/updateCenter
Fix point rotation point is relative to, which is not viewBox upper left
2018-01-26 17:30:40 -05:00
DD
c9165b0b4c Revert "Don't enable if there is nothing in the editor"
This reverts commit e4ca0482b8.
2018-01-26 17:21:47 -05:00
DD
e4ca0482b8 Don't enable if there is nothing in the editor 2018-01-25 18:32:43 -05:00
DD
53927bf615 Move key handlers into their own file, and add to oval and rect tools 2018-01-25 16:39:38 -05:00
DD
f3dcc54bf3 nudge 2018-01-25 16:00:50 -05:00
DD
385574fd46 Hold shift to lock line tool to 45 degree angles 2018-01-25 14:45:36 -05:00
DD
3ab1067c65 flip all 2018-01-25 11:33:43 -05:00
DD
ed04f4652c Fix point rotation point is relative to, which is not viewBox upper left 2018-01-24 19:40:19 -05:00
DD Liu
1ff5fdff38
Merge pull request #266 from fsih/centering
Use translate instead of position for costume centering
2018-01-24 18:53:13 -05:00
DD Liu
35baf315a1
Merge pull request #263 from towerofnix/shift-scroll
Add holding shift to force horizontal scrolling
2018-01-23 19:03:59 -05:00
DD
6a8803b9e7 liiiiiiint 2018-01-23 14:59:57 -05:00
DD
86c9cb1e27 Use translate instead of position for costume centering. 2018-01-23 14:35:08 -05:00
DD Liu
d3dd6416b7
Merge pull request #265 from fsih/readme
Update the readme
2018-01-23 11:57:08 -05:00
Florrie
3341470cf0 Only use deltaY-horizontal-scrolling if deltaX is unset 2018-01-22 22:21:52 -04:00
DD
35ca4ea58e Update the readme 2018-01-22 18:38:49 -05:00
Paul Kaplan
efe30ec50d
Merge pull request #261 from paulkaplan/touch-sliders
Make color pick touch accessible and jump on click
2018-01-22 09:17:29 -05:00
alex
1cd68892c8 Use sans-serif font in playground
Caused some cascade issues where you'd see default fonts in components (i.e. serif). This is only for the playground as, I imagine, in scratch-3.0 this font style would be inherited.
2018-01-21 10:52:34 +00:00
Florrie
bffcf4dd96 Add holding shift to force horizontal scrolling 2018-01-20 22:17:17 -04:00
Paul Kaplan
7aff96c3ff Only update the full color state after eyedropper changes.
This prevents the sliders from changing when other sliders change (i.e.
bringing brightness down to 0). I needed to reorder the callback before
deactivate so the color picker can know that the update is coming from
the eyedropper. Also updated the comment to reflect what is really going
on.
2018-01-19 09:58:47 -05:00
Paul Kaplan
0279ba095c Enforce state update before propogating change through props. 2018-01-19 09:43:25 -05:00
Paul Kaplan
243b8ccbb6 Add touch support for sliders include click-to-change on slider BG 2018-01-19 09:32:59 -05:00
DD Liu
7f1e3d7e28
Merge pull request #252 from fsih/updateReact
Update react dependencies to match gui
2018-01-17 11:33:20 -05:00
DD Liu
bd06cd4e24
Merge pull request #254 from fsih/backgroundUndo
Add an initial undo state when importing a blank costume
2018-01-12 15:34:53 -05:00
DD
379ecf85fc Add an initial undo state when importing a blank costume 2018-01-12 11:22:26 -05:00