Commit graph

2257 commits

Author SHA1 Message Date
adroitwhiz
c95f882d7e Fix color button turning white when it shouldn't
If you select a group with "mixed" gradient types, then color and color2
will both be MIXED. If you then select a shape with a solid color, it
won't reset color2, which will remain MIXED. We only want the background
to appear white if color2 is MIXED *and* the gradient type actually uses
color2. This is already done in the component itself, which only shows
the "mixed" icon if the gradient type is non-solid, but
colorToBackground left out this gradient type check.
2020-06-12 02:59:35 -04:00
DD Liu
10ce12d322
Merge pull request #1117 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20200609210443
Bump scratch-svg-renderer from 0.2.0-prerelease.20200604203226 to 0.2.0-prerelease.20200609210443
2020-06-10 18:14:56 -04:00
DD Liu
8013fdd707 Update svg renderer version 2020-06-10 18:13:22 -04:00
dependabot-preview[bot]
b4e2bdfb1d
Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20200604203226 to 0.2.0-prerelease.20200609210443.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 14:34:06 +00:00
DD Liu
dd3220ff01
Merge pull request #1113 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20200604203226
Bump scratch-svg-renderer from 0.2.0-prerelease.20200507183648 to 0.2.0-prerelease.20200604203226
2020-06-09 17:26:55 -04:00
DD Liu
13902dda0e
Update Contributing.md 2020-06-09 16:53:46 -04:00
adroitwhiz
2a1eaa8926
Merge pull request #997 from adroitwhiz/adjust-reshape-tolerance
Adjust reshape mode handle tolerance
2020-06-09 13:19:00 -04:00
adroitwhiz
e22295b68c Add handle padding and radius 2020-06-08 16:49:49 -04:00
dependabot-preview[bot]
15a4e6f0ea
Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20200507183648 to 0.2.0-prerelease.20200604203226.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-05 12:38:25 +00:00
adroitwhiz
3dac1b6adc
Merge pull request #1097 from adroitwhiz/scrollbar-padding
Make the room between canvas edges and scrollbars count as draggable
2020-06-04 15:23:12 -04:00
adroitwhiz
32e80364c1
Merge pull request #1000 from adroitwhiz/addpoint-divideat
Use divideAt in PointTool.addPoint so that adding new points doesn't affect curves' shape
2020-06-04 15:22:29 -04:00
adroitwhiz
b8c2ba79a9 Stop setting item.data.origRot 2020-06-04 11:28:38 -04:00
DD Liu
ff3c82d03c
Merge pull request #1104 from fsih/updateReactIntl
Bump react-intl to the same version GUI uses
2020-06-03 21:32:20 -04:00
DD Liu
b16ec8d6d9 Bump react-intl to the same version GUI uses 2020-06-03 17:09:37 -04:00
adroitwhiz
dc40eea771 Extend scrollbar hitbox to canvas edges 2020-06-03 12:48:47 -04:00
adroitwhiz
d02fe5fcf0
Merge pull request #1100 from adroitwhiz/delete-origpos
Delete item.data.origPos instead of setting it to null
2020-06-03 11:37:51 -04:00
adroitwhiz
813b34c981 Delete item.data.origPos instead of nulling it 2020-06-03 11:19:40 -04:00
DD Liu
cfe04ae548
Merge pull request #1083 from fsih/bumpGridOpacity
Bump grid opacity
2020-06-02 11:45:10 -04:00
DD Liu
7dd437415c
Merge pull request #1077 from fsih/filePlayground
Add upload and download image buttons to the playground
2020-06-01 20:21:30 -04:00
DD Liu
0e3b79e143
Merge pull request #1079 from fsih/addRotationCenter
Add default rotation center for bitmap images
2020-06-01 20:21:12 -04:00
DD Liu
73554f66fe
Merge pull request #1081 from fsih/fixBitmapsPlayground
Set the width and height on the canvas used to convert imageData to dataURL
2020-06-01 20:21:00 -04:00
adroitwhiz
e4017aa658 Use divideAt for PointTool.addPoint 2020-05-31 16:14:14 -04:00
DD Liu
db0a0a2b9b Change to a grayer shade 2020-05-29 18:15:38 -04:00
DD Liu
b0de79c4df
Merge pull request #1098 from LLK/dependabot/npm_and_yarn/scratch/paper-0.11.20200529164227
Bump @scratch/paper from 0.11.20200506204754 to 0.11.20200529164227
2020-05-29 14:40:19 -04:00
dependabot-preview[bot]
f518b8ca15
Bump @scratch/paper from 0.11.20200506204754 to 0.11.20200529164227
Bumps [@scratch/paper](https://github.com/paperjs/paper.js) from 0.11.20200506204754 to 0.11.20200529164227.
- [Release notes](https://github.com/paperjs/paper.js/releases)
- [Changelog](https://github.com/paperjs/paper.js/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/paperjs/paper.js/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-29 18:17:29 +00:00
adroitwhiz
690efcb39f Use proper mouse delta in onBroadMouseUp
The given event.delta is the difference between the mouse down coords
and the mouse up coords, but we want the difference
between the last mouse drag coords and the mouse up coords.
2020-05-27 13:06:12 -04:00
adroitwhiz
baa95edc47 Set broad brush stroke angle to vertex normal 2020-05-27 13:06:12 -04:00
DD Liu
323c9f634e Bump grid opacity 2020-05-24 22:59:43 -04:00
DD Liu
5a35dd8614 Set the width and height on the canvas used to convert imageData to data URL 2020-05-24 22:35:59 -04:00
DD Liu
eebdc37991 Update readme to explain what rotation center does when missing 2020-05-24 22:26:43 -04:00
DD Liu
8b03c5af54 Set the rotation center of bitmaps with no rotation center to the center of the stage 2020-05-24 22:18:55 -04:00
DD Liu
2e88b6d070 Add upload and download image buttons to the playground 2020-05-24 18:34:02 -04:00
adroitwhiz
ec3348dc75 Increase reshape tool tolerance to match handle size
This causes the new dynamically-sized reshape handles to match their
previous size.
2020-05-22 20:07:45 -04:00
adroitwhiz
e110a04093 Set reshape handle size to match hit tolerance 2020-05-22 20:06:37 -04:00
adroitwhiz
55bc3dc4b6 Don't double-add points to broad brush path 2020-05-21 12:29:36 -04:00
adroitwhiz
a9a8789af6 Clear lastVec in onBroadMouseDown 2020-05-21 12:29:36 -04:00
adroitwhiz
87e01639c0
Merge pull request #991 from adroitwhiz/tight-bitmap-selection-bounds
Tighten bitmap selection bounds
2020-05-19 15:42:45 -04:00
adroitwhiz
d7888fd2d1
Merge pull request #1050 from adroitwhiz/recalibratesize-rounding
Move canvas dimension rounding to recalibrateSize
2020-05-18 20:14:28 -04:00
adroitwhiz
f76a399b83 Add comment on early return if !paper.view 2020-05-18 15:51:58 -04:00
adroitwhiz
3946cdc5f8 Move canvas dimension rounding to recalibrateSize 2020-05-16 03:56:22 -04:00
adroitwhiz
aff7dc88f7 Remove redundant if (selectionRect) 2020-05-16 03:42:06 -04:00
adroitwhiz
de502d6843 Tighten bitmap selection bounds 2020-05-16 03:41:39 -04:00
adroitwhiz
b0164e7783
Merge pull request #922 from adroitwhiz/swapcolorsinselection-continue
Skip processing of child paths in swapColorsInSelection
2020-05-15 20:23:43 -04:00
DD Liu
9e70c96044
Merge pull request #984 from adroitwhiz/fix-empty-svg-center
Set rotation center of empty SVGs to (0, 0)
2020-05-15 14:57:39 -04:00
DD Liu
902b599cfa
Merge pull request #919 from adroitwhiz/handle-null-color
Handle `null` colors in bitmap shape tools
2020-05-15 14:56:42 -04:00
adroitwhiz
66b376b98d Fix rotation center of empty SVGs 2020-05-14 14:57:54 -04:00
DD Liu
616ed9b4d9
Merge pull request #975 from fsih/fillSpace
Stretch to fill available space
2020-05-14 14:25:12 -04:00
DD Liu
2cb1f1a62d Merge branch 'develop' into fillSpace 2020-05-14 14:21:35 -04:00
DD Liu
62e39c2f29
Merge pull request #1022 from apple502j/paint-swap-stage
Update sprite when gradient colors are swapped
2020-05-12 15:39:24 -04:00
DD Liu
0e20cd0234 fix that zooming from .5 to .333 by scroll wheel is not smooth 2020-05-11 18:42:52 -04:00