Socket
Socket
Sign inDemoInstall

@antv/g

Package Overview
Dependencies
Maintainers
7
Versions
349
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 3.1.1 to 3.1.2

dist/g-3.1.2.min.js

2

lib/index.js

@@ -26,3 +26,3 @@ module.exports = {

// version, etc.
version: '3.1.1'
version: '3.1.2'
};

@@ -16,4 +16,2 @@ var Util = require('../util/index');

lineWidth: 1,
curve: null, // 曲线path
tCache: null,
startArrow: false,

@@ -57,4 +55,4 @@ endArrow: false

self.setSilent('segments', segments);
self.set('tCache', null);
this.setSilent('box', null);
self.setSilent('tCache', null);
self.setSilent('box', null);
},

@@ -109,3 +107,3 @@ calculateBox: function calculateBox() {

var l = void 0;
var curve = this.curve;
var curve = this._cfg.curve;

@@ -137,3 +135,3 @@ if (!curve) {

this.tCache = tCache;
this._cfg.tCache = tCache;
},

@@ -144,3 +142,3 @@ _calculateCurve: function _calculateCurve() {

var path = attrs.path;
this.curve = PathUtil.pathTocurve(path);
this._cfg.curve = PathUtil.pathTocurve(path);
},

@@ -193,3 +191,3 @@ getStartTangent: function getStartTangent() {

getPoint: function getPoint(t) {
var tCache = this.tCache;
var tCache = this._cfg.tCache;
var subt = void 0;

@@ -201,6 +199,6 @@ var index = void 0;

this._setTcache();
tCache = this.tCache;
tCache = this._cfg.tCache;
}
var curve = this.curve;
var curve = this._cfg.curve;

@@ -207,0 +205,0 @@ if (!tCache) {

{
"name": "@antv/g",
"version": "3.1.1",
"version": "3.1.2",
"description": "A canvas library which providing 2d draw for G2.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -26,3 +26,3 @@ module.exports = {

// version, etc.
version: '3.1.1'
version: '3.1.2'
};

@@ -16,4 +16,2 @@ const Util = require('../util/index');

lineWidth: 1,
curve: null, // 曲线path
tCache: null,
startArrow: false,

@@ -61,4 +59,4 @@ endArrow: false

self.setSilent('segments', segments);
self.set('tCache', null);
this.setSilent('box', null);
self.setSilent('tCache', null);
self.setSilent('box', null);
},

@@ -113,3 +111,3 @@ calculateBox() {

let l;
const curve = this.curve;
const curve = this._cfg.curve;

@@ -141,3 +139,3 @@ if (!curve) {

this.tCache = tCache;
this._cfg.tCache = tCache;
},

@@ -148,3 +146,3 @@ _calculateCurve() {

const path = attrs.path;
this.curve = PathUtil.pathTocurve(path);
this._cfg.curve = PathUtil.pathTocurve(path);
},

@@ -197,3 +195,3 @@ getStartTangent() {

getPoint(t) {
let tCache = this.tCache;
let tCache = this._cfg.tCache;
let subt;

@@ -205,6 +203,6 @@ let index;

this._setTcache();
tCache = this.tCache;
tCache = this._cfg.tCache;
}
const curve = this.curve;
const curve = this._cfg.curve;

@@ -211,0 +209,0 @@ if (!tCache) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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