// npm package
@antv/g-plugin-zdog-svg-renderer
A G plugin of renderer implementation with Zdog
versions
121
maintainers
51
license
MIT
first publish
2023-01-12
publisher
wang1212
tarball
202,314 B
AUTO-PUBLISHED·1 version indexed·latest published 2025-12-24
// publisher campaignby wang1212
9 caught packages from this accountThis is not an isolated catch. The same publisher has shipped 8 other packages that our pipeline flagged — the shape of a coordinated campaign, not a one-off. Each link below opens that sibling's analysis.
// offending code· @2.1.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
- @2.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3960public-github-push
→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-zdog-svg-renderer", "version": "2.1.1", "description": "A G plugin of renderer implementation with Zdog", "keywords": [ "antv", "g" ], "homepage": "https://github.com/antvis/g#readme", "bugs": { "url": "https://github.com/antvis/g/issues" }, "repository": { "type": "git", "url": "git+https://github.com/antvis/g.git" }, "license": "MIT", "author": "https://github.com/orgs/antvis/people", "exports": { "types": "./types/index.d.ts", "import": "./dist/index.esm.js", "default": "./dist/index.js" }, "main": "dist/index.js", "unpkg": "dist/index.umd.min.js", "module": "dist/index.esm.js", "types": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "zdog": "^1.1.3", "@antv/g-lite": "2.7.0", "@antv/g-svg": "2.1.1" }, "devDependencies": { "@types/zdog": "^1.1.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && tsc --emitDeclarationOnly --noCheck", "build": "npm run build:js && npm run build:types", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-plugin-zdog-svg-renderer", "version": "2.1.1", "description": "A G plugin of renderer implementation with Zdog", "keywords": [ "antv", "g" ], "homepage": "https://github.com/antvis/g#readme", "bugs": { "url": "https://github.com/antvis/g/issues" }, "repository": { "type": "git", "url": "git+https://github.com/antvis/g.git" }, "license": "MIT", "author": "https://github.com/orgs/antvis/people", "exports": { "types": "./types/index.d.ts", "import": "./dist/index.esm.js", "default": "./dist/index.js" }, "main": "dist/index.js", "unpkg": "dist/index.umd.min.js", "module": "dist/index.esm.js", "types": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "zdog": "^1.1.3", "@antv/g-lite": "2.7.0", "@antv/g-svg": "2.1.1" }, "devDependencies": { "@types/zdog": "^1.1.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && tsc --e --- index.js (entry) --- /*! * @antv/g-plugin-zdog-svg-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var gSvg = require('@antv/g-svg'); var zdog = require('zdog'); var ZdogElementLifeCycleContribution = /*#__PURE__*/function () { function ZdogElementLifeCycleContribution(context, runtime) { _classCallCheck(this, ZdogElementLifeCycleContribution); this.context = context; this.runtime = runtime; } return _createClass(ZdogElementLifeCycleContribution, [{ key: "createElement", value: function createElement(object) { var nodeName = object.nodeName; switch (nodeName) { case gLite.Shape.CIRCLE: case gLite.Shape.ELLIPSE: case gLite.S --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-zdog-svg-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _createClass from '@babel/runtime/helpers/createClass'; import _callSuper from '@babel/runtime/helpers/callSuper'; import _inherits from '@babel/runtime/helpers/inherits'; import { Shape, ElementEvent, AbstractRendererPlugin } from '@antv/g-lite'; import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import { SVGRenderer, G_SVG_PREFIX } from '@antv/g-svg'; import { Anchor, Ellipse, Group } from 'zdog'; var ZdogElementLifeCycleContribution = /*#__PURE__*/function () { function ZdogElementLifeCycleContribution(context, runtime) { _classCallCheck(this, ZdogElementLifeCycleContribution); this.context = context; this.runtime = runtime; } return _createClass(ZdogElementLifeCycleContribution, [{ key: "createElement", value: function createElement(object) { var nodeName = object.nodeName; switch (nodeName) { case Shape.CIRCLE: case Shape.ELLIPSE: case Shape.RECT: case Shape.LINE: case Shape.POLYGON: case Shape.POLYLINE: case Shape.PATH: // this.generateSVGElement(object); // return null; case Shape.GROUP: case Shape.IMAGE: case Shape.TEXT: case Shape.HTML: // const { document: doc } = this.context.config; // const type = SVGRenderer.SHAPE2TAGS[nodeName] || 'g'; // return SVGRenderer.createSVGElement(type, doc || document); } return null; } }, { key: "destroyElement", value: function destroyElement(object, $el) {} }, { key: "shouldUpdateElementAttribute", value: function shouldUpdateElementAttribute(object, attributeName) { var nodeName = object.nodeName; re --- dist/index.js (bundled) --- /*! * @antv/g-plugin-zdog-svg-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var gSvg = require('@antv/g-svg'); var zdog = require('zdog'); var ZdogElementLifeCycleContribution = /*#__PURE__*/function () { function ZdogElementLifeCycleContribution(context, runtime) { _classCallCheck(this, ZdogElementLifeCycleContribution); this.context = context; this.runtime = runtime; } return _createClass(ZdogElementLifeCycleContribution, [{ key: "createElement", value: function createElement(object) { var nodeName = object.nodeName; switch (nodeName) { case gLite.Shape.CIRCLE: case gLite.Shape.ELLIPSE: case gLite.Shape.RECT: case gLite.Shape.LINE: case gLite.Shape.POLYGON: case gLite.Shape.POLYLINE: case gLite.Shape.PATH: // this.generateSVGElement(object); // return null; case gLite.Shape.GROUP: case gLite.Shape.IMAGE: case gLite.Shape.TEXT: case gLite.Shape.HTML: // const { document: doc } = this.context.config; // const type = SVGRenderer.SHAPE2TAGS[nodeName] || 'g'; // return SVGRenderer.createSVGElement(type, doc || document); } return null; } }, { key: "destroyElement", value: function destroyElement(object, $el) {} }, { key: "shouldUpdateElementAttribute", value: function shouldUpdateElementAttribute(object, attributeName) { var nodeName = object.no --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-zdog-svg-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite"),require("@antv/g-svg")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite","@antv/g-svg"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.ZdogSvgRenderer={}),t.window.G,t.window.G.SVG)}(this,function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function s(t,e){for(var r=0;e.length>r;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function a(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function u(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("th
