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

@antv/g-plugin-html-renderer

Package Overview
Dependencies
Maintainers
57
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-html-renderer - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

2

dist/index.umd.min.js

@@ -15,2 +15,2 @@ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@antv/g"),require("mana-syringe")):"function"==typeof define&&define.amd?define(["@antv/g","mana-syringe"],t):"object"==typeof exports?exports.HTMLRenderer=t(require("@antv/g"),require("mana-syringe")):(e.G=e.G||{},e.G.HTMLRenderer=t(e.G,e.G.ManaSyringe))}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"Plugin",(function(){return O}));var r=n(1);

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function o(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}Object.create;Object.create;var a=n(0),c={}.toString,u=function(e,t){return c.call(e)==="[object "+t+"]"},f=function(e){return u(e,"Function")},p=function(e){return Array.isArray?Array.isArray(e):u(e,"Array")},l=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t};var d=function(e,t){if(e)if(p(e))for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);else if(l(e))for(var o in e)if(e.hasOwnProperty(o)&&!1===t(e[o],o))break};Object.keys;var s=Array.prototype,y=(s.splice,s.indexOf,Array.prototype.splice,function(e){return u(e,"String")});Object.prototype.hasOwnProperty;var v=function(e){return u(e,"Number")};Number.isInteger&&Number.isInteger;Math.PI,parseInt,Math.PI;var g=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return d(e,(function(n,r){f(e)&&"prototype"===r||t.push(n)})),t};Object.prototype;Object.prototype.hasOwnProperty;var m;Object.prototype.hasOwnProperty;(function(e,t){if(!f(e))throw new TypeError("Expected a function");var n=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var c=e.apply(this,r);return a.set(i,c),c};n.cache=new Map})((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,o=t.fontWeight,i=t.fontStyle,a=t.fontVariant;return m||(m=document.createElement("canvas").getContext("2d")),m.font=[i,a,o,n+"px",r].join(" "),m.measureText(y(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}([e],g(t)).join("")})),function(){function e(){this.map={}}e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var n=this.map[e];return void 0===n?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length}}();var b=function(){function e(){}var t;return t=e,e.prototype.apply=function(e){var n=this,r=function(e){var t=e.target;if(t.nodeName===a.SHAPE.HTML){var r=t.parsedStyle.innerHTML,o="g-html-"+t.entity,i=n.contextService.getDomElement().parentNode;if(i)if(!i.querySelector("#"+o)){var c=document.createElement("div");t.parsedStyle.$el=c,c.id=o,y(r)?c.innerHTML=r:c.appendChild(r),i.appendChild(c)}}},o=function(e){var t=e.target;if(t.nodeName===a.SHAPE.HTML){var r="g-html-"+t.entity,o=n.contextService.getDomElement().parentNode;if(o){var i=o.querySelector("#"+r);i&&o.removeChild(i)}}};e.hooks.init.tap(t.tag,(function(){n.renderingContext.root.addEventListener(a.ElementEvent.MOUNTED,r),n.renderingContext.root.addEventListener(a.ElementEvent.UNMOUNTED,o)})),e.hooks.destroy.tap(t.tag,(function(){n.renderingContext.root.removeEventListener(a.ElementEvent.MOUNTED,r),n.renderingContext.root.removeEventListener(a.ElementEvent.UNMOUNTED,o)})),e.hooks.render.tap(t.tag,(function(e){if(e.nodeName===a.SHAPE.HTML){var t="g-html-"+e.entity,r=n.contextService.getDomElement().parentNode;if(r){var o=r.querySelector("#"+t);n.updateCSSStyle(o,e.parsedStyle,e)}}}))},e.prototype.updateCSSStyle=function(e,t,n){var r=t.zIndex,o=void 0===r?0:r,i=t.visibility,c=void 0===i?"visible":i,u=t.opacity,f=void 0===u?1:u,p=t.fill,l=t.lineWidth,d=void 0===l?0:l,s=t.lineDash,y=t.stroke,v=t.anchor,g=t.width,m=void 0===g?0:g,b=t.height,h=void 0===b?0:b,O=t.style,j=void 0===O?"":O,E=t.className,S=void 0===E?"":E,x={position:"absolute",top:0,left:0};if(x.width=m+"px",x.height=h+"px",x.transform="matrix3d("+n.getWorldTransform().join(",")+")",v&&(x.transform+=" translate("+100*v[0]+"%, "+100*v[0]+"%)"),n.style.transformOrigin&&(x["transform-origin"]=n.style.transformOrigin),x["z-index"]=o,x.visibility=c,x.opacity=f,p){var P="";if(p.type===a.PARSED_COLOR_TYPE.Constant)P=p.formatted;else if(p.type===a.PARSED_COLOR_TYPE.LinearGradient){P="linear-gradient(to right, "+p.value.steps.map((function(e){return e[1]+" "+100*Number(e[0])+"%"})).join(",")+");"}else p.type===a.PARSED_COLOR_TYPE.RadialGradient||(p.type,a.PARSED_COLOR_TYPE.Pattern);x.background=P}x["border-width"]=d+"px",y&&y.type===a.PARSED_COLOR_TYPE.Constant&&(x["border-color"]=y.formatted,x["border-style"]="solid"),s&&(x["border-style"]="dashed"),n.style.filter&&(x.filter=n.style.filter),S&&(Array.isArray(S)?S.forEach((function(t){e.classList.add(t)})):e.classList.add(S)),e.setAttribute("style",Object.keys(x).map((function(e){return e+":"+x[e]})).join(";")+j)},e.tag="HTMLRenderingPlugin",o([Object(r.inject)(a.ContextService),i("design:type",Object)],e.prototype,"contextService",void 0),o([Object(r.inject)(a.RenderingContext),i("design:type",Object)],e.prototype,"renderingContext",void 0),e=t=o([Object(r.singleton)({contrib:a.RenderingPluginContribution})],e)}(),h=Object(r.Module)((function(e){e(b)})),O=function(){function e(){}return e.prototype.init=function(e){e.load(h,!0)},e.prototype.destroy=function(e){e.remove(b)},e}()}])}));
***************************************************************************** */function o(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}Object.create;Object.create;var a=n(0),c={}.toString,u=function(e,t){return c.call(e)==="[object "+t+"]"},f=function(e){return u(e,"Function")},p=function(e){return Array.isArray?Array.isArray(e):u(e,"Array")},l=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t};var d=function(e,t){if(e)if(p(e))for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);else if(l(e))for(var o in e)if(e.hasOwnProperty(o)&&!1===t(e[o],o))break};Object.keys;var s=Array.prototype,y=(s.splice,s.indexOf,Array.prototype.splice,function(e){return u(e,"String")});Object.prototype.hasOwnProperty;var v=function(e){return u(e,"Number")};Number.isInteger&&Number.isInteger;Math.PI,parseInt,Math.PI;var g=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return d(e,(function(n,r){f(e)&&"prototype"===r||t.push(n)})),t};Object.prototype;Object.prototype.hasOwnProperty;var m;Object.prototype.hasOwnProperty;(function(e,t){if(!f(e))throw new TypeError("Expected a function");var n=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var c=e.apply(this,r);return a.set(i,c),c};n.cache=new Map})((function(e,t){void 0===t&&(t={});var n=t.fontSize,r=t.fontFamily,o=t.fontWeight,i=t.fontStyle,a=t.fontVariant;return m||(m=document.createElement("canvas").getContext("2d")),m.font=[i,a,o,n+"px",r].join(" "),m.measureText(y(e)?e:"").width}),(function(e,t){return void 0===t&&(t={}),function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r}([e],g(t)).join("")})),function(){function e(){this.map={}}e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var n=this.map[e];return void 0===n?t:n},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length}}();var b=function(){function e(){}var t;return t=e,e.prototype.apply=function(e){var n=this,r=function(e){var t=e.target;if(t.nodeName===a.SHAPE.HTML){var r=t.parsedStyle.innerHTML,o="g-html-"+t.entity,i=n.contextService.getDomElement().parentNode;if(i)if(!i.querySelector("#"+o)){var c=document.createElement("div");t.parsedStyle.$el=c,c.id=o,y(r)?c.innerHTML=r:c.appendChild(r),i.appendChild(c)}}},o=function(e){var t=e.target;if(t.nodeName===a.SHAPE.HTML){var r="g-html-"+t.entity,o=n.contextService.getDomElement().parentNode;if(o){var i=o.querySelector("#"+r);i&&o.removeChild(i)}}};e.hooks.init.tap(t.tag,(function(){n.renderingContext.root.addEventListener(a.ElementEvent.MOUNTED,r),n.renderingContext.root.addEventListener(a.ElementEvent.UNMOUNTED,o)})),e.hooks.destroy.tap(t.tag,(function(){n.renderingContext.root.removeEventListener(a.ElementEvent.MOUNTED,r),n.renderingContext.root.removeEventListener(a.ElementEvent.UNMOUNTED,o)})),e.hooks.render.tap(t.tag,(function(e){if(e.nodeName===a.SHAPE.HTML){var t="g-html-"+e.entity,r=n.contextService.getDomElement().parentNode;if(r){var o=r.querySelector("#"+t);n.updateCSSStyle(o,e.parsedStyle,e)}}}))},e.prototype.updateCSSStyle=function(e,t,n){var r=t.zIndex,o=void 0===r?0:r,i=t.visibility,c=void 0===i?"visible":i,u=t.opacity,f=void 0===u?1:u,p=t.fill,l=t.lineWidth,d=void 0===l?0:l,s=t.lineDash,y=t.stroke,v=t.anchor,g=t.width,m=t.height,b=t.style,h=void 0===b?"":b,O=t.className,j=void 0===O?"":O,E=0,x=0,S=g.unit,P=g.value,R=m.unit,T=m.value;""!==S&&"px"!==S||(E=P),""!==R&&"px"!==R||(x=T);var C={position:"absolute",top:0,left:0};if(C.width=E+"px",C.height=x+"px",C.transform="matrix3d("+n.getWorldTransform().join(",")+")",v&&(C.transform+=" translate("+100*v[0]+"%, "+100*v[0]+"%)"),n.style.transformOrigin&&(C["transform-origin"]=n.style.transformOrigin),C["z-index"]=o,C.visibility=c,C.opacity=f,p){var M="";if(p.type===a.PARSED_COLOR_TYPE.Constant)M=p.formatted;else if(p.type===a.PARSED_COLOR_TYPE.LinearGradient){M="linear-gradient(to right, "+p.value.steps.map((function(e){return e[1]+" "+100*Number(e[0])+"%"})).join(",")+");"}else p.type===a.PARSED_COLOR_TYPE.RadialGradient||(p.type,a.PARSED_COLOR_TYPE.Pattern);C.background=M}C["border-width"]=d+"px",y&&y.type===a.PARSED_COLOR_TYPE.Constant&&(C["border-color"]=y.formatted,C["border-style"]="solid"),s&&(C["border-style"]="dashed"),n.style.filter&&(C.filter=n.style.filter),j&&(Array.isArray(j)?j.forEach((function(t){e.classList.add(t)})):e.classList.add(j)),e.setAttribute("style",Object.keys(C).map((function(e){return e+":"+C[e]})).join(";")+h)},e.tag="HTMLRenderingPlugin",o([Object(r.inject)(a.ContextService),i("design:type",Object)],e.prototype,"contextService",void 0),o([Object(r.inject)(a.RenderingContext),i("design:type",Object)],e.prototype,"renderingContext",void 0),e=t=o([Object(r.singleton)({contrib:a.RenderingPluginContribution})],e)}(),h=Object(r.Module)((function(e){e(b)})),O=function(){function e(){}return e.prototype.init=function(e){e.load(h,!0)},e.prototype.destroy=function(e){e.unload(h)},e}()}])}));

@@ -102,10 +102,23 @@ import { __decorate, __metadata } from "tslib";

anchor = parsedStyle.anchor,
_e = parsedStyle.width,
width = _e === void 0 ? 0 : _e,
_f = parsedStyle.height,
height = _f === void 0 ? 0 : _f,
_g = parsedStyle.style,
initialStyle = _g === void 0 ? '' : _g,
_h = parsedStyle.className,
className = _h === void 0 ? '' : _h;
width = parsedStyle.width,
height = parsedStyle.height,
_e = parsedStyle.style,
initialStyle = _e === void 0 ? '' : _e,
_f = parsedStyle.className,
className = _f === void 0 ? '' : _f;
var contentWidth = 0;
var contentHeight = 0;
var widthUnit = width.unit,
widthValue = width.value;
var heightUnit = height.unit,
heightValue = height.value;
if (widthUnit === '' || widthUnit === 'px') {
contentWidth = widthValue;
}
if (heightUnit === '' || heightUnit === 'px') {
contentHeight = heightValue;
}
var style = {}; // use absolute position

@@ -116,4 +129,4 @@

style.left = 0;
style.width = width + "px";
style.height = height + "px"; // use transform
style.width = contentWidth + "px";
style.height = contentHeight + "px"; // use transform

@@ -120,0 +133,0 @@ style.transform = "matrix3d(" + object.getWorldTransform().join(',') + ")";

@@ -17,6 +17,3 @@ import { Module } from 'mana-syringe';

Plugin.prototype.destroy = function (container) {
// @ts-ignore
// container.container.unload(containerModule);
// // container.unload(containerModule);
container.remove(HTMLRenderingPlugin);
container.unload(containerModule);
};

@@ -23,0 +20,0 @@

@@ -12,3 +12,3 @@ "use strict";

var _g2 = require("@antv/g");
var _g = require("@antv/g");

@@ -32,3 +32,3 @@ var _util = require("@antv/util");

if (object.nodeName === _g2.SHAPE.HTML) {
if (object.nodeName === _g.SHAPE.HTML) {
var innerHTML = object.parsedStyle.innerHTML;

@@ -62,3 +62,3 @@ var existedId = HTML_PREFIX + object.entity;

if (object.nodeName === _g2.SHAPE.HTML) {
if (object.nodeName === _g.SHAPE.HTML) {
var existedId = HTML_PREFIX + object.entity;

@@ -79,13 +79,13 @@

renderingService.hooks.init.tap(HTMLRenderingPlugin_1.tag, function () {
_this.renderingContext.root.addEventListener(_g2.ElementEvent.MOUNTED, handleMounted);
_this.renderingContext.root.addEventListener(_g.ElementEvent.MOUNTED, handleMounted);
_this.renderingContext.root.addEventListener(_g2.ElementEvent.UNMOUNTED, handleUnmounted);
_this.renderingContext.root.addEventListener(_g.ElementEvent.UNMOUNTED, handleUnmounted);
});
renderingService.hooks.destroy.tap(HTMLRenderingPlugin_1.tag, function () {
_this.renderingContext.root.removeEventListener(_g2.ElementEvent.MOUNTED, handleMounted);
_this.renderingContext.root.removeEventListener(_g.ElementEvent.MOUNTED, handleMounted);
_this.renderingContext.root.removeEventListener(_g2.ElementEvent.UNMOUNTED, handleUnmounted);
_this.renderingContext.root.removeEventListener(_g.ElementEvent.UNMOUNTED, handleUnmounted);
});
renderingService.hooks.render.tap(HTMLRenderingPlugin_1.tag, function (object) {
if (object.nodeName === _g2.SHAPE.HTML) {
if (object.nodeName === _g.SHAPE.HTML) {
var existedId = HTML_PREFIX + object.entity;

@@ -117,10 +117,23 @@

anchor = parsedStyle.anchor,
_e = parsedStyle.width,
width = _e === void 0 ? 0 : _e,
_f = parsedStyle.height,
height = _f === void 0 ? 0 : _f,
_g = parsedStyle.style,
initialStyle = _g === void 0 ? '' : _g,
_h = parsedStyle.className,
className = _h === void 0 ? '' : _h;
width = parsedStyle.width,
height = parsedStyle.height,
_e = parsedStyle.style,
initialStyle = _e === void 0 ? '' : _e,
_f = parsedStyle.className,
className = _f === void 0 ? '' : _f;
var contentWidth = 0;
var contentHeight = 0;
var widthUnit = width.unit,
widthValue = width.value;
var heightUnit = height.unit,
heightValue = height.value;
if (widthUnit === '' || widthUnit === 'px') {
contentWidth = widthValue;
}
if (heightUnit === '' || heightUnit === 'px') {
contentHeight = heightValue;
}
var style = {}; // use absolute position

@@ -131,4 +144,4 @@

style.left = 0;
style.width = width + "px";
style.height = height + "px"; // use transform
style.width = contentWidth + "px";
style.height = contentHeight + "px"; // use transform

@@ -156,5 +169,5 @@ style.transform = "matrix3d(" + object.getWorldTransform().join(',') + ")";

if (fill.type === _g2.PARSED_COLOR_TYPE.Constant) {
if (fill.type === _g.PARSED_COLOR_TYPE.Constant) {
color = fill.formatted;
} else if (fill.type === _g2.PARSED_COLOR_TYPE.LinearGradient) {
} else if (fill.type === _g.PARSED_COLOR_TYPE.LinearGradient) {
var steps = fill.value.steps.map(function (cur) {

@@ -166,3 +179,3 @@ // ['0', '#ffffff'],

color = "linear-gradient(to right, " + steps + ");";
} else if (fill.type === _g2.PARSED_COLOR_TYPE.RadialGradient) {} else if (fill.type === _g2.PARSED_COLOR_TYPE.Pattern) {}
} else if (fill.type === _g.PARSED_COLOR_TYPE.RadialGradient) {} else if (fill.type === _g.PARSED_COLOR_TYPE.Pattern) {}

@@ -175,3 +188,3 @@ style.background = color;

if (stroke && stroke.type === _g2.PARSED_COLOR_TYPE.Constant) {
if (stroke && stroke.type === _g.PARSED_COLOR_TYPE.Constant) {
style['border-color'] = stroke.formatted;

@@ -208,6 +221,6 @@ style['border-style'] = 'solid';

HTMLRenderingPlugin.tag = 'HTMLRenderingPlugin';
(0, _tslib.__decorate)([(0, _manaSyringe.inject)(_g2.ContextService), (0, _tslib.__metadata)("design:type", Object)], HTMLRenderingPlugin.prototype, "contextService", void 0);
(0, _tslib.__decorate)([(0, _manaSyringe.inject)(_g2.RenderingContext), (0, _tslib.__metadata)("design:type", Object)], HTMLRenderingPlugin.prototype, "renderingContext", void 0);
(0, _tslib.__decorate)([(0, _manaSyringe.inject)(_g.ContextService), (0, _tslib.__metadata)("design:type", Object)], HTMLRenderingPlugin.prototype, "contextService", void 0);
(0, _tslib.__decorate)([(0, _manaSyringe.inject)(_g.RenderingContext), (0, _tslib.__metadata)("design:type", Object)], HTMLRenderingPlugin.prototype, "renderingContext", void 0);
HTMLRenderingPlugin = HTMLRenderingPlugin_1 = (0, _tslib.__decorate)([(0, _manaSyringe.singleton)({
contrib: _g2.RenderingPluginContribution
contrib: _g.RenderingPluginContribution
})], HTMLRenderingPlugin);

@@ -214,0 +227,0 @@ return HTMLRenderingPlugin;

@@ -26,6 +26,3 @@ "use strict";

Plugin.prototype.destroy = function (container) {
// @ts-ignore
// container.container.unload(containerModule);
// // container.unload(containerModule);
container.remove(_HTMLRenderingPlugin.HTMLRenderingPlugin);
container.unload(containerModule);
};

@@ -32,0 +29,0 @@

{
"name": "@antv/g-plugin-html-renderer",
"version": "1.0.12",
"version": "1.0.13",
"description": "A G plugin for rendering HTML",

@@ -42,3 +42,3 @@ "main": "lib/index.js",

"@antv/g": "^5.0.1",
"mana-syringe": "^0.2.2"
"mana-syringe": "^0.3.0"
},

@@ -49,3 +49,3 @@ "scripts": {

"homepage": "https://github.com/antvis/g#readme",
"gitHead": "688274a67997224971b11c806a0e363ea1326240"
"gitHead": "d16e3247e33491b76e38a6deb6cc1ee4f737ab1d"
}
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