Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/g-svg

Package Overview
Dependencies
Maintainers
23
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-svg - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

10

esm/shape/polyline.d.ts

@@ -26,3 +26,13 @@ /**

_setTcache(): void;
/**
* Get start tangent vector
* @return {Array}
*/
getStartTangent(): number[][];
/**
* Get end tangent vector
* @return {Array}
*/
getEndTangent(): number[][];
}
export default Polyline;

@@ -101,2 +101,25 @@ import { __extends } from "tslib";

};
/**
* Get start tangent vector
* @return {Array}
*/
Polyline.prototype.getStartTangent = function () {
var points = this.attr().points;
var result = [];
result.push([points[1][0], points[1][1]]);
result.push([points[0][0], points[0][1]]);
return result;
};
/**
* Get end tangent vector
* @return {Array}
*/
Polyline.prototype.getEndTangent = function () {
var points = this.attr().points;
var l = points.length - 1;
var result = [];
result.push([points[l - 1][0], points[l - 1][1]]);
result.push([points[l][0], points[l][1]]);
return result;
};
return Polyline;

@@ -103,0 +126,0 @@ }(ShapeBase));

@@ -26,3 +26,13 @@ /**

_setTcache(): void;
/**
* Get start tangent vector
* @return {Array}
*/
getStartTangent(): number[][];
/**
* Get end tangent vector
* @return {Array}
*/
getEndTangent(): number[][];
}
export default Polyline;

@@ -103,2 +103,25 @@ "use strict";

};
/**
* Get start tangent vector
* @return {Array}
*/
Polyline.prototype.getStartTangent = function () {
var points = this.attr().points;
var result = [];
result.push([points[1][0], points[1][1]]);
result.push([points[0][0], points[0][1]]);
return result;
};
/**
* Get end tangent vector
* @return {Array}
*/
Polyline.prototype.getEndTangent = function () {
var points = this.attr().points;
var l = points.length - 1;
var result = [];
result.push([points[l - 1][0], points[l - 1][1]]);
result.push([points[l][0], points[l][1]]);
return result;
};
return Polyline;

@@ -105,0 +128,0 @@ }(base_1.default));

8

package.json
{
"name": "@antv/g-svg",
"version": "0.3.2",
"version": "0.3.3",
"description": "A canvas library which providing 2d",

@@ -57,4 +57,4 @@ "main": "lib/index.js",

"dependencies": {
"@antv/g-base": "^0.3.2",
"@antv/g-math": "^0.1.0",
"@antv/g-base": "^0.3.3",
"@antv/g-math": "^0.1.1",
"@antv/util": "~2.0.0",

@@ -64,3 +64,3 @@ "detect-browser": "^4.6.0"

"__npminstall_done": false,
"gitHead": "fc50f934c810a79dd364a9bad34df90ec26a8e10"
"gitHead": "949297a2bb04fc59f267fdbc17f924113c7df124"
}

Sorry, the diff of this file is too big to display

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 not supported yet

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