Comparing version 2.0.0-beta.27 to 2.0.0-beta.28
{ | ||
"name": "@antv/g", | ||
"version": "2.0.0-beta.27", | ||
"version": "2.0.0-beta.28", | ||
"description": "A canvas library which providing 2d draw for G2.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,7 +32,6 @@ const Util = require('../util/index'); | ||
triangle(x, y, r, ctx) { | ||
const diffX = r / 0.966; | ||
const diffY = r; | ||
ctx.moveTo(x, y - r); | ||
ctx.lineTo(x + diffX, y + diffY); | ||
ctx.lineTo(x - diffX, y + diffY); | ||
const diffY = r * Math.sin((1 / 3) * Math.PI); | ||
ctx.moveTo(x - r, y + diffY); | ||
ctx.lineTo(x, y - diffY); | ||
ctx.lineTo(x + r, y + diffY); | ||
ctx.closePath(); | ||
@@ -42,7 +41,6 @@ }, | ||
'triangle-down': function(x, y, r, ctx) { | ||
const diffX = r / 0.966; | ||
const diffY = r; | ||
ctx.moveTo(x, y + r); | ||
ctx.lineTo(x + diffX, y - diffY); | ||
ctx.lineTo(x - diffX, y - diffY); | ||
const diffY = r * Math.sin((1 / 3) * Math.PI); | ||
ctx.moveTo(x - r, y - diffY); | ||
ctx.lineTo(x + r, y - diffY); | ||
ctx.lineTo(x, y + diffY); | ||
ctx.closePath(); | ||
@@ -105,5 +103,5 @@ } | ||
method(x, y, r, context, this); | ||
}/**/ | ||
} | ||
}); | ||
module.exports = Marker; |
Sorry, the diff of this file is too big to display
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
811322
61
21098
1