Commit graph

223 commits

Author SHA1 Message Date
Chris Willis-Ford
1063f68572 Merge pull request #122 from cwillisf/remove-url-handling
Remove `createSkinFromURL` and related code
2017-03-23 22:18:02 -07:00
Christopher Willis-Ford
53147d7e39 Remove createSkinFromURL and related code
Changes:
- Removed the `createSkinFromURL` method.
- Removed `skin` property handling from `updateDrawableProperties`.
- Removed the URL-to-skin mapping cache.
- Removed `RenderConstants` items related to choosing a default skin.
- Removed `xhr` package dependency.
- `Drawable` now starts with a `null` skin instead of a default skin.
- `DrawThese` now skips any item with a `null` skin.
2017-03-09 09:59:16 -08:00
Chris Willis-Ford
bbffee7bfd Merge pull request #121 from cwillisf/webpack-fixups
Webpack fixups
2017-03-09 09:56:10 -08:00
Christopher Willis-Ford
7068b201fb Fix dev server port number 2017-03-08 16:16:20 -08:00
Christopher Willis-Ford
10db85594f Generate /playground from /src/playground
The playground now must be loaded with a URL that ends in "/playground/"
or "/playground/index.html"; loading at "/" will no longer work.

The /playground folder is now purely an output of the build process,
rather than being a mix of build output and static content. The static
content that was previously there (namely, index.html) has been moved
into /src/playground. The `contentBase` has been set to `false` to avoid
confusion between current, in-memory build output and stale, on-disk
build output.
2017-03-08 14:48:57 -08:00
Christopher Willis-Ford
f8c45d8552 Update to webpack-dev-server 2.4.1 2017-03-08 14:46:43 -08:00
Christopher Willis-Ford
7db54d9066 Explicitly specify raw-loader for shader files
This helps standardize our Webpack config
2017-03-08 14:23:28 -08:00
Chris Willis-Ford
9b59601b98 Merge pull request #108 from LLK/greenkeeper/twgl.js-3.2.0
Update twgl.js to the latest version 🚀
2017-03-08 13:58:25 -08:00
Chris Willis-Ford
ded99a233f Merge branch 'develop' into greenkeeper/twgl.js-3.2.0 2017-03-08 13:56:03 -08:00
Paul Kaplan
57ba7a5075 Merge pull request #119 from LLK/stamp-hidden
Add stamping flag to make draw ignore visibility
2017-03-07 13:56:45 -05:00
Paul Kaplan
76886ad92b Add JSDoc for isStamping opt flag 2017-03-07 12:21:30 -05:00
Paul Kaplan
983c704761 Add stamping flag to make draw ignore visibility 2017-03-07 11:19:39 -05:00
Ray Schamp
03d9eed8d0 Merge pull request #113 from rschamp/dnd
Add scratchOffset data to extractDrawable
2017-03-03 09:32:21 -05:00
Ray Schamp
2de55f0474 Add scratchOffset data to extractDrawable
Makes it easier to translate between canvas coordinates and scratch coordinates
2017-03-03 09:18:20 -05:00
Andrew Sliwinski
e67d8a2126 Merge pull request #94 from CSnap/getBounds
Fix getBounds for Hidden Sprites
2017-03-02 11:31:45 -05:00
Andrew Sliwinski
363759e927 Merge pull request #111 from LLK/greenkeeper/tap-10.3.0
Update tap to the latest version 🚀
2017-03-02 08:53:38 -05:00
Andrew Sliwinski
530ab4ac81 Use ^ for all dev dependencies 2017-03-02 08:53:18 -05:00
Andrew Sliwinski
fc7610716e Merge pull request #96 from CSnap/fix_getConvexHullPointsForDrawable
Round pixelBase
2017-03-02 08:47:00 -05:00
greenkeeper[bot]
7470bebfbe chore(package): update tap to version 10.3.0
https://greenkeeper.io/
2017-03-02 03:50:15 +00:00
Andrew Sliwinski
4e45b2fe51 Merge pull request #104 from LLK/greenkeeper/eslint-3.16.1
Update eslint to the latest version 🚀
2017-03-01 15:49:05 -05:00
Andrew Sliwinski
f7ec23122b Merge branch 'develop' into greenkeeper/eslint-3.16.1 2017-03-01 15:48:53 -05:00
Andrew Sliwinski
370b0ece9d Merge pull request #109 from LLK/greenkeeper/tap-10.2.2
Update tap to the latest version 🚀
2017-03-01 15:48:09 -05:00
greenkeeper[bot]
2d97d21beb chore(package): update tap to version 10.2.2
https://greenkeeper.io/
2017-02-27 08:02:14 +00:00
greenkeeper[bot]
2116500ae1 chore(package): update twgl.js to version 3.2.0
https://greenkeeper.io/
2017-02-26 16:18:26 +00:00
Ray Schamp
b6008078ed Merge pull request #93 from griffpatch/feature/FenceAgain
Feature fenceagain
2017-02-23 09:25:53 -05:00
griffpatch
04f7e2ac24 Add const for FENCE_WIDTH
Pull out the 15 pixels into a const
2017-02-23 14:09:00 +00:00
Ray Schamp
05a70bcf41 Merge pull request #106 from LLK/greenkeeper/tap-10.2.1
Update tap to the latest version 🚀
2017-02-23 08:59:44 -05:00
Ray Schamp
9824d109b0 Merge pull request #102 from rschamp/jsdoc
Generate docs from src, publish to gh-pages
2017-02-23 08:42:10 -05:00
greenkeeper[bot]
293653bc4d chore(package): update babel-loader to version 6.3.2
Closes #91

https://greenkeeper.io/
2017-02-22 21:26:14 -08:00
Chris Willis-Ford
71135236f2 Merge pull request #107 from LLK/greenkeeper/twgl.js-3.0.2
chore(package): update twgl.js to version 3.0.2
2017-02-22 21:15:52 -08:00
Christopher Willis-Ford
58801fab14 Fix drawBufferInfo call for twgl API change 2017-02-22 21:07:47 -08:00
greenkeeper[bot]
383838c921 chore(package): update tap to version 10.2.1
https://greenkeeper.io/
2017-02-23 04:07:48 +00:00
Chris Willis-Ford
dd74f5b6d2 Merge pull request #86 from LLK/greenkeeper/babel-core-6.23.1
Update babel-core to the latest version 🚀
2017-02-22 16:03:51 -08:00
greenkeeper[bot]
005786ad36 chore(package): update eslint to version 3.16.1
https://greenkeeper.io/
2017-02-22 22:28:56 +00:00
Chris Willis-Ford
ed0c39c2ac Merge pull request #100 from TheBrokenRail/patch-1
Fix IE/Edge Support (#85 and LLK/scratch-vm#367)
2017-02-22 11:45:26 -08:00
TheBrokenRail
1113149363 Fix 2017-02-21 15:43:39 -05:00
Ray Schamp
3c6511d94e Generate docs from src, publish to gh-pages
Fix any broken JSDoc syntax. Unfortunately there is no way to document tuples like `{[int, int]}` for a `[width, height]` array. We could possibly fix this and make the code more readable with `{width: number, height: number}` instead of tuples.

Remove single `@fileoverview` from Rectangle.js, since it was the only file with one and was weird to have that one module show up on the docs home page.

Add a `docs` script to `package.json`, run it from `npm test`, so invalid docs will cause tests to fail (eventually we may want to start using eslint-plugin-jsdoc to catch these errors with the linter alone).
2017-02-21 14:46:24 -05:00
Ray Schamp
b7d5610b23 Merge pull request #97 from rschamp/dnd
Add method to retrieve drawable pixel data
2017-02-21 14:45:17 -05:00
Andrew Sliwinski
9f11d79bfd Merge pull request #98 from LLK/greenkeeper/xhr-2.4.0
Update xhr to the latest version 🚀
2017-02-20 17:52:38 -05:00
Andrew Sliwinski
7045005296 Merge pull request #99 from LLK/greenkeeper/tap-10.1.2
Update tap to the latest version 🚀
2017-02-20 17:52:13 -05:00
Ray Schamp
f279a26958 Merge pull request #103 from LLK/greenkeeper/eslint-3.16.0
Update eslint to the latest version 🚀
2017-02-20 17:17:42 -05:00
greenkeeper[bot]
a221d37e98 chore(package): update eslint to version 3.16.0
https://greenkeeper.io/
2017-02-20 16:38:19 +00:00
TheBrokenRail
ec2361cf91 Fix IE/Edge Support (#85) 2017-02-18 14:06:45 -05:00
Ray Schamp
68600e794d Return null for invalid drawableIDs 2017-02-18 12:18:04 -05:00
greenkeeper[bot]
b1401a1910 chore(package): update tap to version 10.1.2
https://greenkeeper.io/
2017-02-18 02:13:51 +00:00
Ray Schamp
6dd3c0ed81 Don't clip drawables to stage when extracting 2017-02-17 17:37:05 -05:00
Ray Schamp
e035cadb04 Don't apply ghost when extracting drawables 2017-02-17 17:36:47 -05:00
Ray Schamp
3bc00176ed Refactor _drawThese to take options
So the number of arguments doesn't get out of hand
2017-02-17 17:35:45 -05:00
greenkeeper[bot]
331009ccb4 chore(package): update xhr to version 2.4.0
https://greenkeeper.io/
2017-02-17 20:56:13 +00:00
Ray Schamp
a65ea3daed Add method to retrieve drawable pixel data
Towards LLK/scratch-gui#66
2017-02-17 14:51:04 -05:00