// npm package
@antv/g-lite
A core module for rendering engine implements DOM API.
versions
184
maintainers
51
license
MIT
first publish
2022-08-22
publisher
wang1212
tarball
6,063,593 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.7.0· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 3 known-vendor host(s), 2 other host(s).
- @2.7.0··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3921public-github-push
→ No suspicious destination, no remote-exec shape — 3 known-vendor host(s), 2 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-lite", "version": "2.7.0", "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", "directory": "packages/g-lite" }, "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", "@antv/vendor": "^1.0.3", "@babel/runtime": "^7.25.6", "eventemitter3": "^5.0.1", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-math": "3.1.0" }, "devDependencies": { "@types/d3-color": "^3.0.2", "@types/gl-matrix": "^2.4.5", "@types/offscreencanvas": "^2019.6.4", "@types/webxr": "0.5.5" }, "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:typ --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-lite * @description A core module for rendering engine implements DOM API. * @version 2.7.0 * @date 12/24/2025, 11:55:20 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 _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _callSuper from '@babel/runtime/helpers/callSuper'; import _inherits from '@babel/runtime/helpers/inherits'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import EventEmitter from 'eventemitter3'; import { vec3, vec4, mat4, mat3, quat as quat$1, vec2 } from 'gl-matrix'; import '@babel/runtime/helpers/readOnlyError'; import { isNumber, distanceSquareRoot, isString, isNil, clamp, getTotalLength, min, max, isNumberEqual, mod, normalizePath, path2Curve, equalizeSegments, getDrawDirection, reverseCurve, clonePath, getRotatedCurve, isUndefined, isArray, isBoolean, isFunction, isObject, getPointAtLength } from '@antv/util'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; import _superPropGet from '@babel/runtime/helpers/superPropGet'; import _arrayLikeToArray from '@babel/runtime/helpers/arrayLikeToArray'; import { polylineLength, arcBox, cubicBox, quadBox, linePointAt, lineLength } from '@antv/g-math'; import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; import _createForOfIteratorHelper from '@babel/runtime/helpers/createForOfIteratorHelper'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; /// <reference types="webxr" /> var Shape = /*#__PURE__*/function (Shape) { Shape["GROUP"] = "g"; Shape["FRAGMENT"] = "fragment"; Shape["CIRCLE"] = "circle"; Shape["ELLIPSE"] = "ellipse"; Shape["IMAGE"] = "image"; Shape["REC --- dist/index.js (bundled) --- /*! * @antv/g-lite * @description A core module for rendering engine implements DOM API. * @version 2.7.0 * @date 12/24/2025, 11:55:20 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 _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var EventEmitter = require('eventemitter3'); var glMatrix = require('gl-matrix'); require('@babel/runtime/helpers/readOnlyError'); var util = require('@antv/util'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var _superPropGet = require('@babel/runtime/helpers/superPropGet'); var _arrayLikeToArray = require('@babel/runtime/helpers/arrayLikeToArray'); var gMath = require('@antv/g-math'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); var _createForOfIteratorHelper = require('@babel/runtime/helpers/createForOfIteratorHelper'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); /// <reference types="webxr" /> var Shape = /*#__PURE__*/function (Shape) { Shape["GROUP"] = "g"; Shape["FRAGMENT"] = "fragment"; Shape["CIRCLE"] = "circle"; Shape["ELLIPSE"] = "ellipse"; Shape["IMAGE"] = "image"; Shape["RECT"] = "rect"; Shape["LINE"] = "line"; Shape["POLYLINE"] = "polyline"; Shape["POLYGON"] = "polygon"; Shape["TEXT"] = "text"; Shape["PATH"] = "path"; Shape["HTML"] = "html"; Shape["MESH"] = "mesh"; return Shape; }({}); // prettier-ignore // prettier-ignore // Cursor style // See: https://deve --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-lite * @description A core module for rendering engine implements DOM API. * @version 2.7.0 * @date 12/24/2025, 11:55:20 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).G={})}(this,function(t){"use strict";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 n(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function r(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 i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return 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 u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.define
