Socket
Socket
Sign inDemoInstall

@antv/g

Package Overview
Dependencies
Maintainers
3
Versions
350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g - npm Package Compare versions

Comparing version 2.0.0-beta.27 to 2.0.0-beta.28

dist/g-2.0.0-beta.28.min.js

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc