cursor fix (#2358) and svg fix (#2377)

This commit is contained in:
Ben Fry
2014-05-10 17:31:08 -04:00
parent c0b4f28cfe
commit c86465c01d
3 changed files with 14 additions and 4 deletions
+2
View File
@@ -4324,6 +4324,8 @@ public class PApplet extends Applet
* @param kind either ARROW, CROSS, HAND, MOVE, TEXT, or WAIT
*/
public void cursor(int kind) {
// Swap the HAND cursor because MOVE doesn't seem to be available on OS X
// https://github.com/processing/processing/issues/2358
if (platform == MACOSX && kind == MOVE) {
kind = HAND;
}
+2
View File
@@ -586,6 +586,8 @@ public class PShapeSVG extends PShape {
case 'm': // m - move to (relative)
cx = cx + PApplet.parseFloat(pathTokens[i + 1]);
cy = cy + PApplet.parseFloat(pathTokens[i + 2]);
movetoX = cx;
movetoY = cy;
parsePathMoveto(cx, cy);
implicitCommand = 'l';
i += 3;
+10 -4
View File
@@ -11,6 +11,11 @@ X need to sort out with docs what's happening here
X just a reference issue
X substitute MOVE cursor with HAND on OS X
X https://github.com/processing/processing/issues/2358
X Allow textWidth() with the default font
X https://github.com/processing/processing/issues/2331
X https://github.com/processing/processing/pull/2338
X bug in relative moveto commands for SVG
X https://github.com/processing/processing/issues/2377
cleaning
o how much of com.benfry.* should go in?
@@ -56,14 +61,13 @@ _ modernize Client/Server code to use synchronized lists
_ do we let people use the public vars in Server and Client?
_ are they documented?
_ make join() work with Iterable?
_ will this collide with the current String[] version?
high
_ Sketch runs with default size if size() is followed by large memory allocation
_ https://github.com/processing/processing/issues/2039
_ some sort of threading issue happening here
_ https://github.com/processing/processing/issues/1672
_ https://github.com/processing/processing/issues/2039 (dupe)
_ https://github.com/processing/processing/issues/2294 (dupe)
_ point() rendering differently in 2.0.3 and 2.1
_ https://github.com/processing/processing/issues/2278
_ internally, we probably have to call set() if it's a 1 pixel point
@@ -127,6 +131,8 @@ _ save the constructor for the version that actually copies data
_ the table pointer version will be speedy and allow chaining
decisions/misc
_ make join() work with Iterable?
_ will this collide with the current String[] version?
_ add options for image.save() (or saveImage?)
_ add quality=[0,1] for jpeg images
_ add dpi=[0,n] for for png images