// npm package
@antv/g-plugin-annotation
A G plugin for annotation
versions
172
maintainers
51
license
MIT
first publish
2022-08-04
publisher
wang1212
tarball
1,452,193 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· @1.2.0· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s), 1 other host(s).
- @1.2.0··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3933public-github-push
→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-annotation", "version": "1.2.0", "description": "A G plugin for annotation", "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", "eventemitter3": "^5.0.1", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0" }, "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-annotation", "version": "1.2.0", "description": "A G plugin for annotation", "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", "eventemitter3": "^5.0.1", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0" }, "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 --- index.js (entry) --- /*! * @antv/g-plugin-annotation * @description A G plugin for annotation * @version 1.2.0 * @date 12/24/2025, 11:56:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); 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 EventEmitter = require('eventemitter3'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var glMatrix = require('gl-matrix'); var DrawerTool = /*#__PURE__*/function (DrawerTool) { DrawerTool["Circle"] = "circle"; DrawerTool["Rect"] = "rect"; DrawerTool["Polygon"] = "polygon"; DrawerTool["Polyline"] = "polyline"; return DrawerTool; }({}); var DrawerEvent = /* --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-annotation * @description A G plugin for annotation * @version 1.2.0 * @date 12/24/2025, 11:56:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _objectSpread from '@babel/runtime/helpers/objectSpread2'; 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 { Circle, Polyline, definedProps, Polygon, CustomElement, CustomEvent, Shape, Rect, rad2deg, ElementEvent, Group, CSS, PropertySyntax, AbstractRendererPlugin } from '@antv/g-lite'; import EventEmitter from 'eventemitter3'; import _superPropGet from '@babel/runtime/helpers/superPropGet'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import { vec3, vec2, mat4, quat } from 'gl-matrix'; var DrawerTool = /*#__PURE__*/function (DrawerTool) { DrawerTool["Circle"] = "circle"; DrawerTool["Rect"] = "rect"; DrawerTool["Polygon"] = "polygon"; DrawerTool["Polyline"] = "polyline"; return DrawerTool; }({}); var DrawerEvent = /*#__PURE__*/function (DrawerEvent) { DrawerEvent["START"] = "draw:start"; DrawerEvent["MOVE"] = "draw:move"; DrawerEvent["MODIFIED"] = "draw:modify"; DrawerEvent["COMPLETE"] = "draw:complete"; DrawerEvent["CANCEL"] = "draw:cancel"; return DrawerEvent; }({}); /** * fire custom event on target * @see http://fabricjs.com/docs/fabric.Object.html */ var SelectableEvent = /*#__PURE__*/function (SelectableEvent) { SelectableEvent["SELECTED"] = "selected"; SelectableEvent["DESELECTED"] = "deselected"; /** * resized or definition changed */ SelectableEvent["MODIFIED"] = "modified"; /** * dragend */ SelectableEvent["MOVED"] = "moved"; /** --- dist/index.js (bundled) --- /*! * @antv/g-plugin-annotation * @description A G plugin for annotation * @version 1.2.0 * @date 12/24/2025, 11:56:10 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); 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 EventEmitter = require('eventemitter3'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var glMatrix = require('gl-matrix'); var DrawerTool = /*#__PURE__*/function (DrawerTool) { DrawerTool["Circle"] = "circle"; DrawerTool["Rect"] = "rect"; DrawerTool["Polygon"] = "polygon"; DrawerTool["Polyline"] = "polyline"; return DrawerTool; }({}); var DrawerEvent = /*#__PURE__*/function (DrawerEvent) { DrawerEvent["START"] = "draw:start"; DrawerEvent["MOVE"] = "draw:move"; DrawerEvent["MODIFIED"] = "draw:modify"; DrawerEvent["COMPLETE"] = "draw:complete"; DrawerEvent["CANCEL"] = "draw:cancel"; return DrawerEvent; }({}); /** * fire custom event on target * @see http://fabricjs.com/docs/fabric.Object.html */ var SelectableEvent = /*#__PURE__*/function (SelectableEvent) { SelectableEvent["SELECTED"] = "selected"; SelectableEvent["DESELECTED"] = "deselected"; /** * resized or definition changed */ SelectableEvent["MODIFIED"] = "modified"; /** * dragend */ SelectableEvent["MOVED"] = "moved"; /** * dragging */ SelectableEvent["MOVING"] = "moving"; /** * deleted */ SelectableEvent["DELETED"] = "delet --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-annotation * @description A G plugin for annotation * @version 1.2.0 * @date 12/24/2025, 11:56: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")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.Annotation={}),t.window.G)}(this,function(t,e){"use strict";function n(t){return n="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},n(t)}function i(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}functio
