From c86465c01db1dd9259f5c26c1d76216036bc23cf Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 10 May 2014 17:31:08 -0400 Subject: [PATCH] cursor fix (#2358) and svg fix (#2377) --- core/src/processing/core/PApplet.java | 2 ++ core/src/processing/core/PShapeSVG.java | 2 ++ core/todo.txt | 14 ++++++++++---- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index b1f18d223..4c99df70a 100755 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -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; } diff --git a/core/src/processing/core/PShapeSVG.java b/core/src/processing/core/PShapeSVG.java index 1be0b30d6..7bac4fb62 100644 --- a/core/src/processing/core/PShapeSVG.java +++ b/core/src/processing/core/PShapeSVG.java @@ -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; diff --git a/core/todo.txt b/core/todo.txt index 755126314..250f9003d 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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