From 3c31c0e48292350ef1a015d0d8e0a425494045d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Fri, 2 Jan 2015 14:19:17 +0100 Subject: [PATCH] Have SVGImport respect the current PaperScope's applyMatrix setting. --- examples/Paperjs.org/InteractiveTiger.html | 2 +- examples/Paperjs.org/PathIntersections.html | 15 ++++++--------- src/basic/Matrix.js | 11 ++++++----- src/item/Item.js | 17 +++++++++++------ src/svg/SVGImport.js | 11 ++++++++--- 5 files changed, 32 insertions(+), 24 deletions(-) diff --git a/examples/Paperjs.org/InteractiveTiger.html b/examples/Paperjs.org/InteractiveTiger.html index 170ccd90..f50ebeb5 100644 --- a/examples/Paperjs.org/InteractiveTiger.html +++ b/examples/Paperjs.org/InteractiveTiger.html @@ -11,7 +11,7 @@ svg.visible = true; // Turn off display: none; // Resize the tiger to fit within the window: - project.activeLayer.fitBounds(view.bounds); + svg.fitBounds(view.bounds); var items = project.activeLayer.firstChild.children; var mouseIsDown = false; diff --git a/examples/Paperjs.org/PathIntersections.html b/examples/Paperjs.org/PathIntersections.html index 5d4dce6f..d322cc9f 100644 --- a/examples/Paperjs.org/PathIntersections.html +++ b/examples/Paperjs.org/PathIntersections.html @@ -6,22 +6,19 @@