MorphShapes Canvas export

This commit is contained in:
Jindra Petk
2014-04-26 10:52:52 +02:00
parent 8defb0a11b
commit 824a3d2f96
13 changed files with 481 additions and 25 deletions

View File

@@ -1441,12 +1441,12 @@ public final class SWF implements TreeItem, Timelined {
fos.write(Utf8Helper.getBytes("window.setInterval(function(){nextFrame(ctx)}," + (int) (1000.0 / timeline.swf.frameRate) + ");\r\n"));
}
if (Configuration.packJavaScripts.get()) {
/* if (Configuration.packJavaScripts.get()) {
JPacker.main(new String[]{"-q", "-b", "62", "-o", fmin.getAbsolutePath(), f.getAbsolutePath()});
f.delete();
} else {
} else {*/
f.renameTo(fmin);
}
//}
File fh = new File(foutdir + File.separator + "frames.html");
try (FileOutputStream fos = new FileOutputStream(fh); FileInputStream fis = new FileInputStream(fmin)) {