From: <ha...@us...> - 2013-09-27 22:07:58
|
Revision: 18724 http://sourceforge.net/p/jmol/code/18724 Author: hansonr Date: 2013-09-27 22:07:55 +0000 (Fri, 27 Sep 2013) Log Message: ----------- ___JmolVersion="13.3.6_dev_2013.09.26" code: careful attention to core functions yields results in 10% reduction in core download size: -- uncompressed(former) gzipped -- JSmol.min.nojq.js 134K 38K -- core.z.js 1586K(1781K) 364K -- corescript.z.js 378K (436K) 95K -- TOTAL 2098K(2217K) 497K (9.5% reduction) -- JmolApplet0.jar 1038K 1005K -- Thus, the "real" transfer size -- based on server-side gzipping -- is half the size of Jmol/Java. Modified Paths: -------------- trunk/Jmol/src/org/jmol/io/JmolOutputChannel.java trunk/Jmol/src/org/jmol/viewer/JC.java Modified: trunk/Jmol/src/org/jmol/io/JmolOutputChannel.java =================================================================== --- trunk/Jmol/src/org/jmol/io/JmolOutputChannel.java 2013-09-27 21:55:39 UTC (rev 18723) +++ trunk/Jmol/src/org/jmol/io/JmolOutputChannel.java 2013-09-27 22:07:55 UTC (rev 18724) @@ -172,25 +172,19 @@ byteCount++; } - /** - * Will break JavaScript if used. - * - * @j2sIgnore - * - * @param b - */ - @Override - @Deprecated - public void write(byte[] b) { - // not used in JavaScript due to overloading problem there - if (os == null) - os = new ByteArrayOutputStream(); - try { - os.write(b); - } catch (IOException e) { - } - byteCount += b.length; - } +// /** +// * Will break if used; no equivalent in JavaScript. +// * +// * @j2sIgnore +// * +// * @param b +// */ +// @Override +// @Deprecated +// public void write(byte[] b) { +// // not used in JavaScript due to overloading problem there +// write(b, 0, b.length); +// } public void cancel() { isCanceled = true; Modified: trunk/Jmol/src/org/jmol/viewer/JC.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/JC.java 2013-09-27 21:55:39 UTC (rev 18723) +++ trunk/Jmol/src/org/jmol/viewer/JC.java 2013-09-27 22:07:55 UTC (rev 18724) @@ -1556,7 +1556,7 @@ public static final String SCRIPT_COMPLETED = "Script completed"; public static final String JPEG_EXTENSIONS = ";jpg;jpeg;jpg64;jpeg64;"; - public final static String IMAGE_TYPES = JPEG_EXTENSIONS + "gif;ppm;png;pngj;pngt;"; + public final static String IMAGE_TYPES = JPEG_EXTENSIONS + "gif;ppm;png;pngj;pngt;pdf;"; public static final String IMAGE_OR_SCENE = IMAGE_TYPES + "scene;"; public final static int getShapeVisibilityFlag(int shapeID) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |