From 1e5ad31bb65b6ac2c75b3a6fbe2613fa9a121649 Mon Sep 17 00:00:00 2001 From: Mauricio Villegas Date: Fri, 3 Jul 2020 19:23:13 +0200 Subject: [PATCH] svg-canvas: - Fixed regression in toScreenCoords. --- README.md | 2 +- js/svg-canvas.js | 6 +++--- package.json | 2 +- web-app/common.inc.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6aefd9d..d3bd2e2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ nw-page-editor - Simple app for visual editing of Page XML files. -Version: 2020.06.25 +Version: 2020.07.03 # Description diff --git a/js/svg-canvas.js b/js/svg-canvas.js index 060f475..7f4611e 100644 --- a/js/svg-canvas.js +++ b/js/svg-canvas.js @@ -1,7 +1,7 @@ /** * Javascript library for viewing and interactive editing of SVGs. * - * @version $Version: 2020.06.25$ + * @version $Version: 2020.07.03$ * @author Mauricio Villegas * @copyright Copyright(c) 2015-present, Mauricio Villegas * @license MIT License @@ -23,7 +23,7 @@ var sns = 'http://www.w3.org/2000/svg', xns = 'http://www.w3.org/1999/xlink', - version = '$Version: 2020.06.25$'.replace(/^\$Version. (.*)\$/,'$1'); + version = '$Version: 2020.07.03$'.replace(/^\$Version. (.*)\$/,'$1'); /// Set SvgCanvas global object /// if ( ! global.SvgCanvas ) @@ -674,7 +674,7 @@ function toScreenCoords( point ) { if ( ! svgRoot ) return false; - point = newSVGPoint(p.x, p.y); + point = newSVGPoint(point.x, point.y); return point.matrixTransform(svgRoot.getScreenCTM()); } diff --git a/package.json b/package.json index b246dae..8b6b622 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nw-page-editor", - "version": "2020.06.25", + "version": "2020.07.03", "description": "Simple app for visual editing of Page XML files", "main": "./html/index.html#1", "author": "Mauricio Villegas ", diff --git a/web-app/common.inc.php b/web-app/common.inc.php index 57a39e1..d727f4e 100644 --- a/web-app/common.inc.php +++ b/web-app/common.inc.php @@ -2,13 +2,13 @@ /** * Common code to be executed by other php scripts. * - * @version $Version: 2020.06.25$ + * @version $Version: 2020.07.03$ * @author Mauricio Villegas * @copyright Copyright(c) 2017-present, Mauricio Villegas * @license MIT License */ -$version = str_replace('Version: ','',"Version: 2020.06.25"); +$version = str_replace('Version: ','',"Version: 2020.07.03"); $v = '?v='.$version; /// User authentication ///