// npm 패키지
@antv/g-plugin-svg-picker
A G plugin for picking in SVG
버전
254
메인테이너
51
라이선스
MIT
최초 publish
2021-06-02
publisher
alex_zjt
tarball
71,675 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2025-12-15
// publisher 캠페인by alex_zjt
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.0.43-beta.0· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @2.0.43-beta.0··AUTO-PUBLISHED·publisher: alex_zjtheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3953public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-svg-picker", "version": "2.0.43-beta.0", "description": "A G plugin for picking in SVG", "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": { "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-plugin-svg-renderer": "2.2.25-beta.0", "@antv/g-lite": "2.3.3-beta.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-plugin-svg-picker", "version": "2.0.43-beta.0", "description": "A G plugin for picking in SVG", "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": { "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-plugin-svg-renderer": "2.2.25-beta.0", "@antv/g-lite": "2.3.3-beta.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", --- index.js (entry) --- /*! * @antv/g-plugin-svg-picker * @description A G plugin for picking in SVG * @version 2.0.43-beta.0 * @date 12/12/2025, 2:50:17 PM * @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 _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); /** * pick shape(s) with Mouse/Touch event * * 1. find AABB with r-tree * 2. use elementFromPoint */ var SVGPickerPlugin = /*#__PURE__*/function () { function SVGPickerPlugin() { _classCallCheck(this, SVGPickerPlugin); } return _createClass(SVGPickerPlugin, [{ key: "apply", value: function apply(context, runtime) { var _this = this; var doc = context.config.document, renderingService = context. --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-svg-picker * @description A G plugin for picking in SVG * @version 2.0.43-beta.0 * @date 12/12/2025, 2:50:17 PM * @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 { AbstractRendererPlugin } from '@antv/g-lite'; import _createForOfIteratorHelper from '@babel/runtime/helpers/createForOfIteratorHelper'; import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; /** * pick shape(s) with Mouse/Touch event * * 1. find AABB with r-tree * 2. use elementFromPoint */ var SVGPickerPlugin = /*#__PURE__*/function () { function SVGPickerPlugin() { _classCallCheck(this, SVGPickerPlugin); } return _createClass(SVGPickerPlugin, [{ key: "apply", value: function apply(context, runtime) { var _this = this; var doc = context.config.document, renderingService = context.renderingService, svgElementMap = context.svgElementMap; renderingService.hooks.pick.tapPromise(SVGPickerPlugin.tag, /*#__PURE__*/function () { var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) { return _regeneratorRuntime().wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: return _context.abrupt("return", _this.pick(svgElementMap, doc, result)); case 1: case "end": return _context.stop(); } }, _callee); })); return function (_x) { return _ref.apply(this, arguments); }; }()); renderingService.hooks.pickSync.tap(SVGPickerPlugin.tag, function (resu --- dist/index.js (bundled) --- /*! * @antv/g-plugin-svg-picker * @description A G plugin for picking in SVG * @version 2.0.43-beta.0 * @date 12/12/2025, 2:50:17 PM * @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 _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); /** * pick shape(s) with Mouse/Touch event * * 1. find AABB with r-tree * 2. use elementFromPoint */ var SVGPickerPlugin = /*#__PURE__*/function () { function SVGPickerPlugin() { _classCallCheck(this, SVGPickerPlugin); } return _createClass(SVGPickerPlugin, [{ key: "apply", value: function apply(context, runtime) { var _this = this; var doc = context.config.document, renderingService = context.renderingService, svgElementMap = context.svgElementMap; renderingService.hooks.pick.tapPromise(SVGPickerPlugin.tag, /*#__PURE__*/function () { var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(result) { return _regeneratorRuntime().wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: return _context.abrupt("return", _this.pick(svgElementMap, doc, result)); case 1: case "end": return _context.stop(); } }, _callee); })); return function (_x) { return _ref.apply(this, arguments); }; }()); renderingService.hooks.pickSync.tap(SVGPickerPlugin.t --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-svg-picker * @description A G plugin for picking in SVG * @version 2.0.43-beta.0 * @date 12/12/2025, 2:50:17 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],n):n(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVGPicker={}),t.window.G)}(this,function(t,n){"use strict";function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t){return e="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},e(t)}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function i(t,n){for(var r=0;n.length>r;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,o(e.key),e)}}function u(t,n,r){return n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function f(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}functio
