-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images measurements support #54
Conversation
(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 },...] } ```
the spriter script. See asciidisco#52 Also did some cleanup to the output string building.
### 0.3.4 + Added width and height properties to the spriter output [@alpadev] (https://github.com/alpadev) - 85a04f5 Updates the generator functions to adopt the changes introduced to the spriter script. See asciidisco#52 [@alpadev] - 6416c26 Rewrote most of it.. to accomplish asciidisco#52 (also the old code been a lil dirty imo :)) [@alpadev]
Just pushed an update to make the output optional - defaults to false. |
Just checked it, seems fine for me. |
@alpadev @LaurentGoderre |
Sorry just got home phew.
|
## Utilize an object FileMeta to contain everything needed for each file. It keeps the original path and supplies helper functions to do everything necessary with each file. ## Use functional style to filter the file list * `filterOnlyImage` Filter out fonts as well as CSS files * `filterOnlyExists` Filter out files that don’t exist * `filterOnlySmall` Filter away large files if IE8 mode activated ## Other fixes * Verify that `fs.exists` instead of opening and using `try…catch` * The path verification didn’t work in my project. I added a method of detecting the path (asciidisco#52) but kept both the other methods (asciidisco#50, asciidisco#54) so as not to break any earlier functionality.
Version bump to 0.3.4
Adds width and height to the spriter output. Also some code cleanup.
See #52