// npm package
@antv/g
A core module for rendering engine implements DOM API.
versions
387
maintainers
52
license
MIT
first publish
2017-10-18
publisher
wang1212
tarball
3,085,940 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· @6.3.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
- @6.3.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3908public-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", "version": "6.3.1", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", "g", "rendering engine" ], "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", "sideEffects": true, "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", "html2canvas": "^1.4.1", "gl-matrix": "^3.4.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", "version": "6.3.1", "description": "A core module for rendering engine implements DOM API.", "keywords": [ "antv", "g", "rendering engine" ], "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", "sideEffects": true, "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", "html2canvas": "^1.4.1", "gl-matrix": "^3.4.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": --- index.js (entry) --- /*! * @antv/g * @description A core module for rendering engine implements DOM API. * @version 6.3.1 * @date 12/24/2025, 11:55:39 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var gLite = require('@antv/g-lite'); 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 _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); var html2canvas = require('html2canvas'); var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _defineProperty = --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g * @description A core module for rendering engine implements DOM API. * @version 6.3.1 * @date 12/24/2025, 11:55:39 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import { FederatedEvent, ERROR_MSG_METHOD_NOT_IMPLEMENTED, propertyMetadataCache, runtime, getAngle, CameraType, deg2rad, createVec3, Camera, Rectangle, isBrowser, Rect, Circle, Path, CustomElement, ElementEvent, Shape, PropertySyntax, CSS } from '@antv/g-lite'; export * from '@antv/g-lite'; 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 _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import { clamp, isNumber, isNil, isString, isNumberEqual } from '@antv/util'; import { quat, mat4, vec3 } from 'gl-matrix'; import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; import html2canvas from 'html2canvas'; import _createForOfIteratorHelper from '@babel/runtime/helpers/createForOfIteratorHelper'; import _objectSpread from '@babel/runtime/helpers/objectSpread2'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import _superPropGet from '@babel/runtime/helpers/superPropGet'; /** * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent */ // @ts-ignore var AnimationEvent = /*#__PURE__*/function (_FederatedEvent) { function AnimationEvent(manager, target, currentTime, timelineTime) { var _this; _classCallCheck(this, AnimationEvent); _this = _callSuper(this, AnimationEvent, [manager]); // @ts-ignore _this.currentTime = currentTime; _this.timelineTi --- dist/index.js (bundled) --- /*! * @antv/g * @description A core module for rendering engine implements DOM API. * @version 6.3.1 * @date 12/24/2025, 11:55:39 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var gLite = require('@antv/g-lite'); 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 _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var util = require('@antv/util'); var glMatrix = require('gl-matrix'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); var html2canvas = require('html2canvas'); var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); /** * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent */ // @ts-ignore var AnimationEvent = /*#__PURE__*/function (_FederatedEvent) { function AnimationEvent(manager, target, currentTime, timelineTime) { var _this; _classCallCheck(this, AnimationEvent); _this = _callSuper(this, AnimationEvent, [manager]); // @ts-ignore _this.currentTime = currentTime; _this.timelineTime = timelineTime; _this.target = target; _this.type = 'finish'; _this.bubbles = false; // @ts-ignore _this.currentTarget = target; _this.defaultPrevented = false; _this.eventPhase = _this.AT_TARGET; _this.timeStamp = Da --- dist/index.umd.min.js (bundled) --- /*! * @antv/g * @description A core module for rendering engine implements DOM API. * @version 6.3.1 * @date 12/24/2025, 11:55:39 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(A,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((A="undefined"!=typeof globalThis?globalThis:A||self).G={})}(this,function(A){"use strict";function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}function e(A){var e=function(A,e){if("object"!=t(A)||!A)return A;var n=A[Symbol.toPrimitive];if(void 0!==n){var r=n.call(A,e||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(A)}(A,"string");return"symbol"==t(e)?e:e+""}function n(A,t,n){return(t=e(t))in A?Object.defineProperty(A,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):A[t]=n,A}function r(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable})),e.push.apply(e,n)}return e}function i(A){for(var t=1;arguments.length>t;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?r(Object(e),!0).forEach(function(t){n(A,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach(function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))})}return A}function a(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function o(A,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,e(r.key),r)}}function s(A,t,e){return t&&o(A.prototype,t),e&&o(A,e),Object.definePrope
