Skip to content

Commit

Permalink
svg-canvas:
Browse files Browse the repository at this point in the history
- Fixed regression in toScreenCoords.
  • Loading branch information
mauvilsa committed Jul 3, 2020
1 parent 27f9440 commit 1e5ad31
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions js/svg-canvas.js
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* @copyright Copyright(c) 2015-present, Mauricio Villegas <[email protected]>
* @license MIT License
Expand All @@ -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 )
Expand Down Expand Up @@ -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());
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions web-app/common.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* @copyright Copyright(c) 2017-present, Mauricio Villegas <[email protected]>
* @license MIT License
*/

$version = str_replace('Version: ','',"Version: 2020.06.25");
$version = str_replace('Version: ','',"Version: 2020.07.03");
$v = '?v='.$version;

/// User authentication ///
Expand Down

0 comments on commit 1e5ad31

Please sign in to comment.