todo items, and added svgz support

This commit is contained in:
benfry
2010-06-20 15:43:44 +00:00
parent 93d407e17e
commit abdf50550e
2 changed files with 15 additions and 8 deletions
+10
View File
@@ -40,6 +40,7 @@ import javax.swing.JFileChooser;
import javax.swing.SwingUtilities;
import processing.core.PShape;
import processing.xml.XMLElement;
/**
@@ -4047,6 +4048,15 @@ public class PApplet extends Applet
public PShape loadShape(String filename) {
if (filename.toLowerCase().endsWith(".svg")) {
return new PShapeSVG(this, filename);
} else if (filename.toLowerCase().endsWith(".svgz")) {
try {
InputStream input = new GZIPInputStream(createInput(filename));
XMLElement xml = new XMLElement(createReader(input));
return new PShapeSVG(xml);
} catch (IOException e) {
e.printStackTrace();
}
}
return null;
}
+5 -8
View File
@@ -4,6 +4,10 @@ X fix from jdf for PImage(java.awt.Image img) and ARGB images
X large number of beginShape(POINTS) not rendering correctly on first frame
X http://dev.processing.org/bugs/show_bug.cgi?id=1572
X pass actual exceptions from InvocationTargetException in registered methods
o svg issue with implicit path command
o http://dev.processing.org/bugs/show_bug.cgi?id=1561
o http://code.google.com/p/processing/issues/detail?id=257
X appears to be faulty code
shape/svg work
X fix for adobe illustrator-mangled svg id names with hex characters
@@ -20,16 +24,12 @@ X public int getVertexCodeCount()
X public int getVertexCode(int index)
X lots of fixes from PhiLho to better handle transparency changes, many types
X of inkscape files, drawings that use units, and other tweaks
X implement support for svgz files
_ need to wrap mouse/key events for p5
_ need a version that works with both android and desktop
_ also need to interleave events properly (as per report)
all assigned bugs:
http://dev.processing.org/bugs/buglist.cgi?bug_status=ASSIGNED&order=bugs.bug_status%2Cbugs.bug_id
all assigned as csv:
http://dev.processing.org/bugs/buglist.cgi?bug_status=ASSIGNED&order=bugs.bug_status%2Cbugs.bug_id&ctype=csv
_ path for selectXxxxx() functions
_ http://dev.processing.org/bugs/show_bug.cgi?id=1475
_ http://dev.processing.org/bugs/show_bug.cgi?id=1504
@@ -45,9 +45,6 @@ _ only top left 100 x 100 pixels are displayed in presentation mode (Linux 1.1+)
_ also was just crashing in main() for me, check on this later
_ http://dev.processing.org/bugs/show_bug.cgi?id=1560
_ svg issue with implicit path command
_ http://dev.processing.org/bugs/show_bug.cgi?id=1561
_ need to make sure the createFont() reference is up to date for charset
_ change skewX/Y to shearX/Y