forked from asciidisco/grunt-imagine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrote most of it.. to accomplish asciidisco#52
(also the old code been a lil dirty imo :)) Returns now a "meta" field instead of two - height and maxheight - fields. The meta object contains these fields: ``` { maxHeight: int, maxWidth: int, images: [{ height: int, offsetY: int, totalHeight: int, width: int },...] } ```
- Loading branch information
Showing
1 changed file
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@asciidisco
This is so we can drop the second loop. Don't know about performance, but the cache canvas isn't even added to the dom, is it? I have a guess it will just copy/move ImageData references behind the scene. Have tried a bunch of sprites without any noticeable impact. If you feel any doubts about it guess we have to stick with the two loop tactic..