// npm 패키지
@antv/g-plugin-zdog-canvas-renderer
A G plugin of renderer implementation with Zdog
버전
127
메인테이너
51
라이선스
MIT
최초 publish
2023-01-03
publisher
wang1212
tarball
174,830 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2025-12-24
// publisher 캠페인by wang1212
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.1.1· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 4 known-vendor host(s), 3 other host(s).
- @2.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3959public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 4 known-vendor host(s), 3 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-zdog-canvas-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-canvas": "2.2.0", "@antv/g-lite": "2.7.0" }, "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-canvas-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-canvas": "2.2.0", "@antv/g-lite": "2.7.0" }, "devDependencies": { "@types/zdog": "^1.1.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && t --- index.js (entry) --- /*! * @antv/g-plugin-zdog-canvas-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:06 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _defineProperty = require('@babel/runtime/helpers/defineProperty'); 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 zdog = require('zdog'); var CircleRenderer = /*#__PURE__*/function () { function CircleRenderer() { _classCallCheck(this, CircleRenderer); } return _createClass(CircleRenderer, [{ key: "render", value: function render(context, parsedStyle, object) { var r = parsedStyle.r, lineWidth = parsedStyle.lineWidth, fill = parsedStyle.fill; new zdog.Ellipse({ addTo: context.scene, diameter: 2 * r, stroke: lineWidth, color: fill.toString(), translate: { x: 0, y: 0, z: 40 } --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-zdog-canvas-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:06 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _defineProperty from '@babel/runtime/helpers/defineProperty'; 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, AbstractRendererPlugin } from '@antv/g-lite'; import { Ellipse, Anchor } from 'zdog'; var CircleRenderer = /*#__PURE__*/function () { function CircleRenderer() { _classCallCheck(this, CircleRenderer); } return _createClass(CircleRenderer, [{ key: "render", value: function render(context, parsedStyle, object) { var r = parsedStyle.r, lineWidth = parsedStyle.lineWidth, fill = parsedStyle.fill; new Ellipse({ addTo: context.scene, diameter: 2 * r, stroke: lineWidth, color: fill.toString(), translate: { x: 0, y: 0, z: 40 } }); // @see https://zzz.dog/api#illustration-updaterendergraph context.scene.updateGraph(); } }]); }(); var ZdogRendererPlugin = /*#__PURE__*/function () { function ZdogRendererPlugin() { _classCallCheck(this, ZdogRendererPlugin); } return _createClass(ZdogRendererPlugin, [{ key: "apply", value: /** * @see https://zzz.dog/extras#rendering-without-illustration */ function apply(context) { var _this = this; var config = context.config, contextService = context.contextService, renderingService = context.renderingService; renderingService.hooks.init.tap(ZdogRendererPlugin.tag, function () { /** * disable dirtycheck & dirty rectangle rendering */ config.renderer.get --- dist/index.js (bundled) --- /*! * @antv/g-plugin-zdog-canvas-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:06 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _defineProperty = require('@babel/runtime/helpers/defineProperty'); 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 zdog = require('zdog'); var CircleRenderer = /*#__PURE__*/function () { function CircleRenderer() { _classCallCheck(this, CircleRenderer); } return _createClass(CircleRenderer, [{ key: "render", value: function render(context, parsedStyle, object) { var r = parsedStyle.r, lineWidth = parsedStyle.lineWidth, fill = parsedStyle.fill; new zdog.Ellipse({ addTo: context.scene, diameter: 2 * r, stroke: lineWidth, color: fill.toString(), translate: { x: 0, y: 0, z: 40 } }); // @see https://zzz.dog/api#illustration-updaterendergraph context.scene.updateGraph(); } }]); }(); var ZdogRendererPlugin = /*#__PURE__*/function () { function ZdogRendererPlugin() { _classCallCheck(this, ZdogRendererPlugin); } return _createClass(ZdogRendererPlugin, [{ key: "apply", value: /** * @see https://zzz.dog/extras#rendering-without-illustration */ function apply(context) { var _this = this; var config = context.config, contextService = context.contextService, renderingService = context.renderingService; renderingService.hooks.init.tap(ZdogRendererPlugin.tag, function () { /** * disable dirtycheck & dirty rectangle rendering */ config.renderer.getCo --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-zdog-canvas-renderer * @description A G plugin of renderer implementation with Zdog * @version 2.1.1 * @date 12/24/2025, 11:58:06 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.ZdogCanvasRenderer={}),t.window.G)}(this,function(t,e){"use strict";function r(t){return r="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},r(t)}function n(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function i(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;e.length>r;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,n(i.key),i)}}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"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object
