Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "devkit-core",
"author": "Game Closure",
"description": "devkit engine",
"version": "v5.0.7",
"version": "v5.0.8",
"repository": {
"type": "git",
"url": "http://github.com/hashcube/devkit-core.git"
Expand All @@ -11,7 +11,7 @@
"archiver": "^0.14.4",
"bluebird": "^2.9.34",
"chalk": "^1.1.1",
"devkit-spriter": "0.0.9",
"devkit-spriter": "git+https://github.com/hashcube/devkit-spriter.git#v0.1.0",
"fs-extra": "^0.23.1",
"glob": "^5.0.2",
"graceful-fs": "^4.1.2",
Expand Down
3 changes: 3 additions & 0 deletions src/build/streams/spriter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var SPRITABLE_EXTS = {
};

var CACHE_FILENAME = "devkit-spriter";
var DEFAULT_MAX_SIZE = 1024;

/**
* Removes spritable image files from a file stream, sprites them, and inserts
Expand Down Expand Up @@ -89,6 +90,7 @@ var Group = Class(function () {
var isJPG = compressOpts && compressOpts.format == 'jpg';
this.ext = isJPG ? '.jpg' : '.png';
this.mime = isJPG ? 'image/jpeg' : 'image/png';
this.maxSize = DEFAULT_MAX_SIZE;
};

this.addFile = function (file) {
Expand Down Expand Up @@ -311,6 +313,7 @@ var DevKitSpriter = Class(function () {
name: group.sheetName,
spritesheetsDirectory: this._spritesheetsDirectory,
powerOfTwoSheets: group.powerOfTwoSheets,
maxSize: group.maxSize,
filenames: group.filenames,
compress: group.compress,
scale: group.scale,
Expand Down