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

@antv/g-base

Package Overview
Dependencies
Maintainers
36
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-base - npm Package Compare versions

Comparing version 0.5.6-beta.1 to 0.5.6

4

esm/bbox/index.d.ts

@@ -1,2 +0,2 @@

import { register, getMethod } from './register';
export { getMethod as getBBoxMethod, register as registerBBox };
import { getMethod } from './register';
export { getMethod as getBBoxMethod };

@@ -20,3 +20,3 @@ import { register, getMethod } from './register';

register('ellipse', ellipse);
export { getMethod as getBBoxMethod, register as registerBBox };
export { getMethod as getBBoxMethod };
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ /**

export { PathUtil };
export { getBBoxMethod, registerBBox } from './bbox';
export { getBBoxMethod } from './bbox';
export { getTextHeight, assembleFont } from './util/text';

@@ -20,2 +20,2 @@ export { isAllowCapture } from './util/util';

export { getOffScreenContext } from './util/offscreen';
export declare const version = "0.5.6-beta.1";
export declare const version = "0.5.6";

@@ -6,2 +6,4 @@ /**

import * as PathUtil from './util/path';
export * from './types';
export * from './interfaces';
export { default as Event } from './event/graph-event';

@@ -13,3 +15,3 @@ export { default as Base } from './abstract/base';

export { PathUtil };
export { getBBoxMethod, registerBBox } from './bbox';
export { getBBoxMethod } from './bbox';
export { getTextHeight, assembleFont } from './util/text';

@@ -19,3 +21,3 @@ export { isAllowCapture } from './util/util';

export { getOffScreenContext } from './util/offscreen';
export var version = '0.5.6-beta.1';
export var version = '0.5.6';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { register, getMethod } from './register';
export { getMethod as getBBoxMethod, register as registerBBox };
import { getMethod } from './register';
export { getMethod as getBBoxMethod };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBBoxMethod = void 0;
var register_1 = require("./register");
exports.registerBBox = register_1.register;
exports.getBBoxMethod = register_1.getMethod;
Object.defineProperty(exports, "getBBoxMethod", { enumerable: true, get: function () { return register_1.getMethod; } });
var rect_1 = require("./rect");

@@ -7,0 +7,0 @@ var circle_1 = require("./circle");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMethod = exports.register = void 0;
var cache = new Map();

@@ -4,0 +5,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mergeArrowBBox = exports.mergeBBox = void 0;
// 合并包围盒

@@ -4,0 +5,0 @@ function mergeBBox(bbox1, bbox2) {

@@ -14,3 +14,3 @@ /**

export { PathUtil };
export { getBBoxMethod, registerBBox } from './bbox';
export { getBBoxMethod } from './bbox';
export { getTextHeight, assembleFont } from './util/text';

@@ -20,2 +20,2 @@ export { isAllowCapture } from './util/util';

export { getOffScreenContext } from './util/offscreen';
export declare const version = "0.5.6-beta.1";
export declare const version = "0.5.6";

@@ -7,28 +7,31 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.version = exports.PathUtil = void 0;
var tslib_1 = require("tslib");
var PathUtil = require("./util/path");
exports.PathUtil = PathUtil;
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./interfaces"), exports);
var graph_event_1 = require("./event/graph-event");
exports.Event = graph_event_1.default;
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return graph_event_1.default; } });
var base_1 = require("./abstract/base");
exports.Base = base_1.default;
Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return base_1.default; } });
var canvas_1 = require("./abstract/canvas");
exports.AbstractCanvas = canvas_1.default;
Object.defineProperty(exports, "AbstractCanvas", { enumerable: true, get: function () { return canvas_1.default; } });
var group_1 = require("./abstract/group");
exports.AbstractGroup = group_1.default;
Object.defineProperty(exports, "AbstractGroup", { enumerable: true, get: function () { return group_1.default; } });
var shape_1 = require("./abstract/shape");
exports.AbstractShape = shape_1.default;
Object.defineProperty(exports, "AbstractShape", { enumerable: true, get: function () { return shape_1.default; } });
var bbox_1 = require("./bbox");
exports.getBBoxMethod = bbox_1.getBBoxMethod;
exports.registerBBox = bbox_1.registerBBox;
Object.defineProperty(exports, "getBBoxMethod", { enumerable: true, get: function () { return bbox_1.getBBoxMethod; } });
var text_1 = require("./util/text");
exports.getTextHeight = text_1.getTextHeight;
exports.assembleFont = text_1.assembleFont;
Object.defineProperty(exports, "getTextHeight", { enumerable: true, get: function () { return text_1.getTextHeight; } });
Object.defineProperty(exports, "assembleFont", { enumerable: true, get: function () { return text_1.assembleFont; } });
var util_1 = require("./util/util");
exports.isAllowCapture = util_1.isAllowCapture;
Object.defineProperty(exports, "isAllowCapture", { enumerable: true, get: function () { return util_1.isAllowCapture; } });
var matrix_1 = require("./util/matrix");
exports.multiplyVec2 = matrix_1.multiplyVec2;
exports.invert = matrix_1.invert;
Object.defineProperty(exports, "multiplyVec2", { enumerable: true, get: function () { return matrix_1.multiplyVec2; } });
Object.defineProperty(exports, "invert", { enumerable: true, get: function () { return matrix_1.invert; } });
var offscreen_1 = require("./util/offscreen");
exports.getOffScreenContext = offscreen_1.getOffScreenContext;
exports.version = '0.5.6-beta.1';
Object.defineProperty(exports, "getOffScreenContext", { enumerable: true, get: function () { return offscreen_1.getOffScreenContext; } });
exports.version = '0.5.6';
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.intersectBBox = exports.createBBox = void 0;
function createBBox(x, y, width, height) {

@@ -4,0 +5,0 @@ return {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isGradientColor = exports.isColorProp = void 0;
exports.isColorProp = function (prop) { return ['fill', 'stroke', 'fillStyle', 'strokeStyle'].includes(prop); };
exports.isGradientColor = function (val) { return /^[r,R,L,l]{1}[\s]*\(/.test(val); };
//# sourceMappingURL=color.js.map

@@ -8,2 +8,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.invert = exports.multiplyVec2 = exports.multiplyMatrix = void 0;
/**

@@ -10,0 +11,0 @@ * 3阶矩阵相乘

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOffScreenContext = void 0;
// 全局设置一个唯一离屏的 ctx,用于计算 isPointInPath

@@ -4,0 +5,0 @@ var offScreenCtx = null;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rectPath = exports.pathToCurve = exports.pathToAbsolute = exports.parsePathString = exports.parsePathArray = exports.intersection = exports.formatPath = exports.fillPathByDiff = exports.fillPath = exports.catmullRomToBezier = void 0;
var util_1 = require("@antv/util");

@@ -4,0 +5,0 @@ var SPACES = '\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assembleFont = exports.getTextWidth = exports.getLineSpaceing = exports.getTextHeight = void 0;
var util_1 = require("./util");

@@ -4,0 +5,0 @@ var offscreen_1 = require("./offscreen");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAllowCapture = exports.isParent = exports.isBrowser = exports.removeFromArray = void 0;
function removeFromArray(arr, obj) {

@@ -12,10 +13,10 @@ var index = arr.indexOf(obj);

var util_1 = require("@antv/util");
exports.isNil = util_1.isNil;
exports.isFunction = util_1.isFunction;
exports.isString = util_1.isString;
exports.isObject = util_1.isObject;
exports.isArray = util_1.isArray;
exports.mix = util_1.mix;
exports.each = util_1.each;
exports.upperFirst = util_1.upperFirst;
Object.defineProperty(exports, "isNil", { enumerable: true, get: function () { return util_1.isNil; } });
Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return util_1.isFunction; } });
Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return util_1.isString; } });
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return util_1.isObject; } });
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return util_1.isArray; } });
Object.defineProperty(exports, "mix", { enumerable: true, get: function () { return util_1.mix; } });
Object.defineProperty(exports, "each", { enumerable: true, get: function () { return util_1.each; } });
Object.defineProperty(exports, "upperFirst", { enumerable: true, get: function () { return util_1.upperFirst; } });
// 是否元素的父容器

@@ -22,0 +23,0 @@ function isParent(container, shape) {

{
"name": "@antv/g-base",
"version": "0.5.6-beta.1",
"version": "0.5.6",
"description": "A common util collection for antv projects",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -22,2 +22,2 @@ import { register, getMethod } from './register';

export { getMethod as getBBoxMethod, register as registerBBox };
export { getMethod as getBBoxMethod };

@@ -17,3 +17,3 @@ /**

export { getBBoxMethod, registerBBox } from './bbox';
export { getBBoxMethod } from './bbox';
export { getTextHeight, assembleFont } from './util/text';

@@ -24,2 +24,2 @@ export { isAllowCapture } from './util/util';

export const version = '0.5.6-beta.1';
export const version = '0.5.6';

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

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

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

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

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

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

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

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

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

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

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

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

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

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