Comparing version 2.0.7-beta.1 to 2.0.7-beta.2
@@ -374,4 +374,2 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var pathTocurve = function pathTocurve(path, path2) { | ||
var pcoms1 = []; // path commands of original path p | ||
var pcoms2 = []; // path commands of original path p2 | ||
var p = pathToAbsolute(path); | ||
@@ -399,5 +397,10 @@ var p2 = path2 && pathToAbsolute(path2); | ||
}; | ||
var pcoms1 = []; // path commands of original path p | ||
var pcoms2 = []; // path commands of original path p2 | ||
var pfirst = ''; // temporary holder for original path command | ||
var pcom = ''; // holder for previous path command of original path | ||
var ii = void 0; | ||
var processPath = function processPath(path, d, pcom) { | ||
var nx = void 0; | ||
var ny = void 0; | ||
var nx = void 0, | ||
ny = void 0; | ||
if (!path) { | ||
@@ -459,3 +462,3 @@ return ['C', d.x, d.y, d.x, d.y, d.x, d.y]; | ||
default: | ||
path = []; // for lint | ||
break; | ||
} | ||
@@ -474,3 +477,3 @@ return path; | ||
pp.splice(i, 1); | ||
// ii = Math.max(p.length, p2 && p2.length || 0); | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
} | ||
@@ -485,8 +488,8 @@ }; | ||
a1.y = path1[i][2]; | ||
// ii = Math.max(p.length, p2 && p2.length || 0); | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
} | ||
}; | ||
var pfirst = ''; // temporary holder for original path command | ||
var pcom = ''; // holder for previous path command of original path | ||
for (var i = 0, ii = Math.max(p.length, p2 && p2.length || 0); i < ii; i++) { | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
for (var i = 0; i < ii; i++) { | ||
p[i] && (pfirst = p[i][0]); // save current path command | ||
@@ -493,0 +496,0 @@ |
{ | ||
"name": "@antv/g", | ||
"version": "2.0.7-beta.1", | ||
"version": "2.0.7-beta.2", | ||
"description": "A canvas library which providing 2d draw for G2.", | ||
@@ -37,2 +37,3 @@ "keywords": [ | ||
"jquery": "~3.3.1", | ||
"lebab": "^2.7.7", | ||
"pre-commit": "~1.2.2", | ||
@@ -59,3 +60,3 @@ "shelljs": "~0.7.8", | ||
"test": "torch --compile --renderer --recursive ./test/unit", | ||
"test-live": "torch --compile --renderer --interactive --recursive ./test/unit" | ||
"test-live": "torch --compile --renderer --interactive --recursive ./test/" | ||
}, | ||
@@ -62,0 +63,0 @@ "pre-commit": { |
@@ -401,4 +401,2 @@ const Util = require('./common'); | ||
const pathTocurve = function(path, path2) { | ||
const pcoms1 = []; // path commands of original path p | ||
const pcoms2 = []; // path commands of original path p2 | ||
const p = pathToAbsolute(path); | ||
@@ -426,5 +424,10 @@ const p2 = path2 && pathToAbsolute(path2); | ||
}; | ||
const pcoms1 = []; // path commands of original path p | ||
const pcoms2 = []; // path commands of original path p2 | ||
let pfirst = ''; // temporary holder for original path command | ||
let pcom = ''; // holder for previous path command of original path | ||
let ii; | ||
const processPath = function(path, d, pcom) { | ||
let nx; | ||
let ny; | ||
let nx, | ||
ny; | ||
if (!path) { | ||
@@ -482,3 +485,3 @@ return [ 'C', d.x, d.y, d.x, d.y, d.x, d.y ]; | ||
default: | ||
path = []; // for lint | ||
break; | ||
} | ||
@@ -497,3 +500,3 @@ return path; | ||
pp.splice(i, 1); | ||
// ii = Math.max(p.length, p2 && p2.length || 0); | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
} | ||
@@ -508,8 +511,8 @@ }; | ||
a1.y = path1[i][2]; | ||
// ii = Math.max(p.length, p2 && p2.length || 0); | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
} | ||
}; | ||
let pfirst = ''; // temporary holder for original path command | ||
let pcom = ''; // holder for previous path command of original path | ||
for (let i = 0, ii = Math.max(p.length, p2 && p2.length || 0); i < ii; i++) { | ||
ii = Math.max(p.length, p2 && p2.length || 0); | ||
for (let i = 0; i < ii; i++) { | ||
p[i] && (pfirst = p[i][0]); // save current path command | ||
@@ -516,0 +519,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1580144
102
21
27133