595 Commits

Author SHA1 Message Date
DD
26f2039f39 We decided that it should not be the renderers responsibility to know a detail about how the paint editor works, and have the bitmap resolution passed in instead 2018-04-26 17:58:48 -04:00
DD Liu
d9c5b595a2
Merge pull request #264 from fsih/updateBitmap
Add updateBitmapSkin to renderer
2018-04-25 14:11:57 -04:00
DD
a49c455d9b Update bitmap 2018-04-24 17:01:59 -04:00
kchadha
54ce1528a0
Merge pull request #262 from kchadha/travis-config
Update travis config and update to node 8
2018-04-23 17:17:50 -04:00
Karishma Chadha
b3ad2b2064 Correct the scripts in .travis.yml 2018-04-23 16:57:56 -04:00
Karishma Chadha
094d8b0a5d Update travis config and update to node 8 2018-04-23 16:50:24 -04:00
kchadha
393b5daf35
Merge pull request #260 from kchadha/get-rotation-center
getSkinRotationCenter API and support for new scratch-svg-renderer
2018-04-23 15:55:10 -04:00
Karishma Chadha
e2a1865a93 Update scratch-svg-renderer version 2018-04-23 15:43:04 -04:00
Karishma Chadha
ac1f5564a3 Bitmap (+ double resolution) support. 2018-04-22 21:30:28 -04:00
Karishma Chadha
1f574d6ee3 Provide an api to get the calulated rotation center from the rendered costume 2018-04-20 00:01:41 -04:00
Paul Kaplan
4d1aed64a7
Merge pull request #254 from paulkaplan/skin-size
Add method for getting the size of a skin by skin id.
2018-04-11 09:30:23 -04:00
Paul Kaplan
bbcf6f73d3 Add method for getting the size of a skin by skin id.
Renamed the `getSkinSize` method to `getCurrentSkinSize`, since it was
using the drawables current skin. Added a new `getSkinSize` method that
works by skin id.
2018-04-10 10:00:54 -04:00
Paul Kaplan
8545474160
Merge pull request #252 from paulkaplan/new-svg-version
Update scratch-svg-renderer version
2018-03-29 14:03:02 -04:00
Paul Kaplan
097e2d3fe9 Update scratch-svg-renderer version 2018-03-29 14:01:48 -04:00
Paul Kaplan
e02cc5ae03
Merge pull request #248 from paulkaplan/fix-bubble-bounds
Add "get bounds for bubble" method.
2018-03-23 14:35:52 -04:00
Paul Kaplan
0b731b92a6 Add "get bounds for bubble" method.
Note there was an inconsequential coordinate flip in the original
transformation code, which was fixed in order for the sliced bounds to
work. The change is at line 388
2018-03-23 10:58:21 -04:00
Chris Willis-Ford
57d834c42e
Merge pull request #235 from mzgoddard/calc-transform-cache
Drawable _calculateTransform cache and inline work
2018-01-24 15:41:31 -08:00
Chris Willis-Ford
f8c781c163
Merge pull request #227 from cwillisf/use-browser-field
Update packaging to use UMD and the browser field
2018-01-24 15:21:16 -08:00
Christopher Willis-Ford
28e35f64a9 Update to latest scratch-svg-renderer (again)
Now with actual uglify support
2018-01-23 21:42:40 -08:00
Christopher Willis-Ford
90bd7c2841 Update to latest scratch-svg-renderer
This should fix UglifyJS errors when other modules include this one.
2018-01-23 20:37:31 -08:00
Michael "Z" Goddard
b59b5a3075
Put Drawable skin scale updating behind dirty flag
- Clean out "showing your work" in calculate transform
- Add comments on inline math blocks from twgl
2018-01-23 14:15:59 -05:00
Michael "Z" Goddard
46bc30e4ee
Inline most calculateTransform math 2018-01-23 14:14:38 -05:00
Michael "Z" Goddard
40ab1bd59d
Cache drawable's rotation matrix and rotation center vector
Building a rotation matrix needs to call trigonometry functions. Cache the
resulting matrix to save future time on non-rotation motion.
2018-01-23 14:14:01 -05:00
DD Liu
b3418e0887
Merge pull request #234 from fsih/pull231
Extract svg-renderer out into a separate module
2018-01-22 20:15:48 -05:00
DD
d46cc4fec7 Merge branch 'develop' into pull231 2018-01-19 17:33:17 -05:00
DD
008abed073 correct case 2018-01-19 17:19:58 -05:00
DD
34340e4ce6 use npm module 2018-01-19 17:19:28 -05:00
Ray Schamp
96d0fc03ed
Merge pull request #232 from cwillisf/rasterize-scaled-svg
Re-rasterize SVGs when scaled up
2018-01-17 10:07:13 -05:00
Paul Kaplan
8a04fcd541 Cache image element in the SVG renderer. 2018-01-17 09:46:07 -05:00
Christopher Willis-Ford
89b5ed32d0 First pass at re-rasterizing SVGs when scaled 2018-01-17 01:05:44 -05:00
Christopher Willis-Ford
bc423cef46 Use require, not import, for SVG renderer 2018-01-12 13:12:55 -08:00
Christopher Willis-Ford
f45442f879 Merge branch 'develop' into extract-svg-renderer 2018-01-12 10:59:46 -08:00
Christopher Willis-Ford
413c1d8027 Extract svg-renderer out into a separate module 2018-01-12 10:56:28 -08:00
Chris Willis-Ford
89d09e9b98
Merge pull request #226 from cwillisf/check-for-webgl-support
Check & report if browser supports this renderer
2018-01-11 11:38:57 -08:00
Christopher Willis-Ford
7dd707db17 Revert getWebGLContext => getContext change
This change allowed TWGL to create a WebGL 2 context when available and
fall back to WebGL 1 when that's the only option. This should in theory
be harmless, but deserves more extensive testing before rolling it out.
2018-01-11 10:07:42 -08:00
Chris Willis-Ford
0eeba9345e
Merge pull request #229 from LLK/greenkeeper/babel-eslint-8.2.1
chore(package): update babel-eslint to version 8.2.1
2018-01-10 20:33:32 -08:00
Chris Willis-Ford
28983666fd
Merge pull request #228 from LLK/greenkeeper/twgl.js-4.4.0
chore(package): update twgl.js to version 4.4.0
2018-01-10 20:06:08 -08:00
Christopher Willis-Ford
a38c74c2c1 Fix Drawable's use of m4 for TWGL 4.x
The `create` method of `m4` has disappeared; call `identity` instead.
2018-01-10 18:22:57 -08:00
Christopher Willis-Ford
e958e4bfff Fix playground, plus misc. cleanup
The playground was trying to build with a now-missing entry point.
Also, I fixed some JSDoc comments, added HTML labels, etc. until IDEA
had no meaningful complaints about `playground/index.html`.
2018-01-10 17:42:38 -08:00
Christopher Willis-Ford
63fc1c6f64 Update packaging to use UMD and the browser field
The web build is now packaged as UMD, and the `browser` field in
`package.json` now points to the web build output.
2018-01-10 12:58:10 -08:00
Christopher Willis-Ford
07a6ae57be Check & report if browser supports this renderer
`RenderWebGL`'s constructor will now throw if TWGL init fails. There's
also a new static method to check whether or not we expect TWGL init to
succeed.
2018-01-10 12:28:54 -08:00
Paul Kaplan
ab05c9aa32
Merge pull request #225 from paulkaplan/fix-edge
Fix working on Edge
2018-01-10 14:52:35 -05:00
Chris Willis-Ford
d7c7a56e25
Merge pull request #178 from LLK/greenkeeper/eslint-config-scratch-5.0.0
Update eslint-config-scratch to the latest version 🚀
2018-01-10 11:30:53 -08:00
Chris Willis-Ford
7571be21f0
Merge pull request #203 from LLK/greenkeeper/tap-11.0.0
Update tap to the latest version 🚀
2018-01-10 11:23:09 -08:00
Paul Kaplan
4ce8b8f655 Do not change properties on bbox directly it throws errors in edge. 2018-01-10 13:56:49 -05:00
Paul Kaplan
f5a638367f
Merge pull request #223 from paulkaplan/fix-broken-say-xml
Escape xml before putting user text into text bubble
2018-01-10 09:20:06 -05:00
Paul Kaplan
140bab5965 Escape xml before putting user text into svg 2018-01-09 11:23:04 -05:00
greenkeeper[bot]
861308c9f1 chore(package): update babel-eslint to version 8.2.1 2018-01-09 01:53:15 +00:00
greenkeeper[bot]
bf042c2362 chore(package): update twgl.js to version 4.4.0
Closes #180
2018-01-06 14:18:53 +00:00
Andrew Sliwinski
38057dd884
Merge pull request #219 from LLK/greenkeeper/webpack-3.10.0
chore(package): update webpack to version 3.10.0
2017-12-20 17:01:46 -05:00