Commit Graph

960 Commits

Author SHA1 Message Date
DD Liu
df4fb26094 Remove redundant test 2021-06-29 16:53:00 -04:00
DD Liu
b6ed521b16 Update svg renderer dependency 2021-06-29 16:34:36 -04:00
Christopher Willis-Ford
9d64e582ea Merge pull request #745 from adroitwhiz/remove-svgrenderer-dependency
Move SVG renderer logic back into SVGSkin
0.1.0-prerelease.20210629203142
2021-06-29 13:27:48 -07:00
Christopher Willis-Ford
3b21ee98b6 add comment explaining onload choice 2021-06-29 13:25:20 -07:00
adroitwhiz
7af5b3e207 Use one SVG image and track loaded state w/ flag
Instead of creating a new image every time `setSVG` is called and
checking whether that image is complete with `loaded`, reuse the same
image, override its `src`, & use `onload` instead of `addEventListener`
to replace the previous event listener. This is necessary to avoid race
conditions with the `_svgImageLoaded` flag.
2021-06-10 08:56:15 -04:00
DD Liu
c92e9f5a4d Merge pull request #815 from adroitwhiz/fix-resetmips-jsdoc
Fix JSDoc for resetMIPs and setSVG
0.1.0-prerelease.20210325231800
2021-03-25 19:13:48 -04:00
dependabot-preview[bot]
cfaa033568 Merge pull request #845 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20210317184701 2021-03-17 19:38:39 +00:00
dependabot-preview[bot]
2dd6850c19 Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20210225205629 to 0.2.0-prerelease.20210317184701.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/compare/0.2.0-prerelease.20210225205629...0.2.0-prerelease.20210317184701)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-17 18:55:58 +00:00
adroitwhiz
801b0dab1f Move SVG renderer logic back into SVGSkin
This will allow for fancier stuff to be done with the SVG viewbox in the
future to avoid subpixel jitter.
2021-03-04 11:50:07 -05:00
adroitwhiz
c6e51c2662 Fix JSDoc for resetMIPs and setSVG 2021-03-04 11:00:57 -05:00
DD Liu
9560de4d75 Merge pull request #776 from adroitwhiz/test-color-conversions
Add unit tests for color conversion functions
0.1.0-prerelease.20210302210916
2021-03-02 15:40:46 -05:00
adroitwhiz
a930503793 Update colors-almost-equal threshold 2021-02-25 20:58:12 -05:00
dependabot-preview[bot]
da21131f49 Merge pull request #804 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20210225205629 0.1.0-prerelease.20210225211601 2021-02-25 21:11:14 +00:00
dependabot-preview[bot]
8873170d2a Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20210225202240 to 0.2.0-prerelease.20210225205629.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/compare/0.2.0-prerelease.20210225202240...0.2.0-prerelease.20210225205629)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 21:00:54 +00:00
dependabot-preview[bot]
6a486d7cb4 Merge pull request #803 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20210225202240 2021-02-25 20:38:15 +00:00
dependabot-preview[bot]
3105dd5fbe Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20210219193204 to 0.2.0-prerelease.20210225202240.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits/0.2.0-prerelease.20210225202240)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-25 20:27:26 +00:00
dependabot-preview[bot]
20e5aed5a5 Merge pull request #787 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20210219193204 2021-02-19 20:50:26 +00:00
dependabot-preview[bot]
821868947f Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20210114214521 to 0.2.0-prerelease.20210219193204.
- [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>
2021-02-19 19:37:03 +00:00
adroitwhiz
e075e5f5eb Add unit tests for color conversion functions 2021-02-11 18:41:20 -05:00
dependabot-preview[bot]
f1d8ba34d9 Merge pull request #747 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20210114214521 2021-01-15 00:07:07 +00:00
dependabot-preview[bot]
c795bc53d6 Merge pull request #739 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20201125065300 2021-01-15 00:06:47 +00:00
dependabot-preview[bot]
30bee7febd Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20201019174008 to 0.2.0-prerelease.20210114214521.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/compare/0.2.0-prerelease.20201019174008...0.2.0-prerelease.20210114214521)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-14 22:00:33 +00:00
dependabot-preview[bot]
8c06ddaa3d Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200924195620 to 0.2.0-prerelease.20201125065300.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits/0.2.0-prerelease.20201125065300)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-25 09:06:25 +00:00
Chris Willis-Ford
c19971b219 Merge pull request #566 from adroitwhiz/usenearest-skin
Move useNearest from Drawable to Skin
2020-11-13 13:03:35 -08:00
Sarah Otts
50b4ccd42a Merge pull request #723 from seotts/update-eslint
Update eslint, babel-eslint, and eslint-scratch-config and fix resulting errors
2020-11-10 14:16:57 -05:00
Sarah Otts
00710f3347 Fix spacing in 'You clicked on' console log 2020-11-10 09:28:26 -05:00
seotts
1e5ce914a2 replace .apply() with spread 2020-11-09 17:05:56 -05:00
seotts
c855e8d143 use eslint-scratch-config version 6.0.0 2020-11-09 17:05:56 -05:00
seotts
aa704383b4 Remove built-in global variables in comments 2020-11-09 17:05:56 -05:00
seotts
261dfb7536 update eslint, babel-eslint, and eslint-config-scratch 2020-11-09 17:05:56 -05:00
seotts
65fca3e3c7 fix lint errors in playground 2020-11-09 17:05:56 -05:00
seotts
ad1831ebfa Don’t call hasOwnProperty directly on object 2020-11-09 17:05:56 -05:00
dependabot-preview[bot]
527733c249 Merge pull request #699 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200924195620 2020-11-09 18:51:11 +00:00
DD Liu
96f36ff50f Merge pull request #624 from adroitwhiz/update-silhouette-differently
Move `updateCPURenderAttributes` calls to where they're actually needed
2020-10-29 15:49:33 -04:00
DD Liu
98caee67c3 Merge pull request #557 from adroitwhiz/penskin-cleanup
Clean up PenSkin code
2020-10-29 15:25:58 -04:00
picklesrus
2bc1528dac Merge pull request #712 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20201019174008
Bump scratch-svg-renderer from 0.2.0-prerelease.20201016121710 to 0.2.0-prerelease.20201019174008
0.1.0-prerelease.20201020104037
2020-10-20 06:37:09 -04:00
dependabot-preview[bot]
59d66f562c Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20201016121710 to 0.2.0-prerelease.20201019174008.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits/0.2.0-prerelease.20201019174008)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-20 02:34:34 +00:00
picklesrus
ec053748cd Merge pull request #710 from LLK/picklesrus-patch-1-1
Bump scratch-svg-renderer
2020-10-16 13:36:56 -04:00
picklesrus
bf2820aeda Bump scratch-svg-renderer 2020-10-16 13:05:13 -04:00
Ray Schamp
0120a77b8e Merge pull request #703 from LLK/hotfix/enable-hotfixing
add hotfix capability to .travis.yml
2020-10-16 08:09:56 -04:00
picklesrus
e8d6f957fa Merge pull request #709 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20201015194358
Bump scratch-svg-renderer from 0.2.0-prerelease.20200610220938 to 0.2.0-prerelease.20201015194358
2020-10-16 06:36:49 -04:00
dependabot-preview[bot]
c0f1afe104 Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20200610220938 to 0.2.0-prerelease.20201015194358.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits/0.2.0-prerelease.20201015194358)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-15 21:44:55 +00:00
Christopher Willis-Ford
c2714bdb48 add hotfix capability to .travis.yml 0.1.0-prerelease.20201009205745 0.1.0-prerelease.20201015130335 2020-10-09 13:42:27 -07:00
Chris Willis-Ford
4ebea93adf Merge pull request #445 from adroitwhiz/optimize-transformed-hull
Cache and don't re-create transformed hull points
2020-10-08 12:46:53 -07:00
adroitwhiz
205a8c9131 Use draw region for accessing pen framebuffer 2020-09-30 17:20:39 -04:00
adroitwhiz
8ac7ed20da Clean up PenSkin code 2020-09-30 17:09:49 -04:00
adroitwhiz
26d2677409 Also pass in drawable to useNearest
This makes the code messier but I'm not sure what else to do since the
texture filtering method to be used depends on the drawable's properties
(e.g. transform, enabled effects). We still need to pass in the scale
separately because in the main rendering path, we multiply it by the
screen-space scale factor.
2020-09-30 17:05:17 -04:00
adroitwhiz
f4d5e52a8f Clarify SVGSkin.useNearest comments 2020-09-30 17:04:08 -04:00
adroitwhiz
97605f9e55 Move useNearest to skin classes 2020-09-30 17:04:06 -04:00
dependabot-preview[bot]
9d02a016e1 [Security] Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200622143012 to 0.2.0-prerelease.20200924195620. **This update includes a security fix.**
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-25 09:51:21 +00:00