Skip to content

Commit

Permalink
Merge pull request Wizcorp#1 from Wizcorp/master
Browse files Browse the repository at this point in the history
Updating fork
  • Loading branch information
cainmartin authored Jan 9, 2017
2 parents 4f38618 + 12b2afc commit 4e0094b
Show file tree
Hide file tree
Showing 46 changed files with 230 additions and 366 deletions.
6 changes: 4 additions & 2 deletions bin/jeff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

var jeff = require('../lib/index.js');
var jeff = require('../src/index.js');
var program = require('commander');

// So many options!
Expand All @@ -23,7 +23,7 @@ program
.option('-q, --imageQuality <quality>', 'Image quality. From 0 to 100', '100')
.option('-a, --createAtlas <boolean>', 'To extract all the images of an animation into a single atlas', 'false')
.option('-p, --powerOf2Images <boolean>', 'To set the dimensions of output images to powers of 2', 'false')
.option('-M, --maxImageDim <dimension>', 'Maximum image dimension', '2048')
.option('-M, --maxImageDim <number>', 'Maximum image dimension', '2048')
.option('-m, --simplify <boolean>', 'To simplify animations (reduce number of symbols)', 'false')
.option('-b, --beautify <boolean>', 'To beautify JSON output', 'false')
.option('-n, --flatten <boolean>', 'To extract a flat animation structure rather than a hierarchical structure', 'false')
Expand All @@ -34,6 +34,7 @@ program
.option('-C, --splitClasses <boolean>', 'To split the different classes of the animation into several outputs', 'false')
.option('-d, --ignoreData <boolean>', 'Not to export JSON meta-data', 'false')
.option('-I, --ignoreImages <boolean>', 'Not to export images', 'false')
.option('-F, --filtering <filtering method>', 'Filtering that should be used when rendering the animation', 'linear')
.option('-e, --outlineEmphasis <coefficient>', 'Emphasis of outlines when rendering Flash vectorial drawings', '1')

.parse(process.argv);
Expand Down Expand Up @@ -66,6 +67,7 @@ var exportParams = {
exportAtRoot: JSON.parse(program.exportAtRoot),
ignoreData: JSON.parse(program.ignoreData),
ignoreImages: JSON.parse(program.ignoreImages),
filtering: program.filtering,
outlineEmphasis: JSON.parse(program.outlineEmphasis)
};

Expand Down
115 changes: 0 additions & 115 deletions lib/CanvasRenderer/SwfImgRenderer/PngWriter.js

This file was deleted.

174 changes: 0 additions & 174 deletions lib/CanvasRenderer/SwfImgRenderer/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jeff",
"description": "Extracts Json meta-data and images from a SWF Flash file.",
"version": "0.2.0",
"version": "0.2.1",
"private": false,
"author": {
"name": "Brice Chevalier",
Expand All @@ -10,7 +10,7 @@
"bin": {
"jeff": "./bin/jeff"
},
"main": "./lib/index.js",
"main": "./src/index.js",
"dependencies": {
"async": "0.2.10",
"buffer-crc32": "^0.2.5",
Expand Down
Loading

0 comments on commit 4e0094b

Please sign in to comment.