// npm package
@antv/g-plugin-3d
Provide 3D extension for G
weekly
2,867
monthly
6,734
versions
283
maintainers
51
license
MIT
first publish
2021-06-09
publisher
wang1212
tarball
1,390,186 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.1.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
- @2.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamapopularity:highmature-packageosv-flagged:MAL-2026-3931public-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-plugin-3d", "version": "2.1.1", "description": "Provide 3D extension for G", "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/g-device-api": "^1.6.10", "@babel/runtime": "^7.25.6", "gl-matrix": "^3.4.3", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0", "@antv/g-plugin-device-renderer": "2.6.1", "@antv/g-shader-components": "2.0.0" }, "devDependencies": { "@types/gl-matrix": "^2.4.5", "glslify-import": "3.1.0", "rollup-plugin-glslify": "^1.2.1" }, "publishConfig": { "access": "public" }, "glslify": { "transform": [ "glslify-import" ] }, "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", "w --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-3d * @description Provide 3D extension for G * @version 2.1.1 * @date 12/24/2025, 11:57:48 AM * @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 { AABB, isCSSRGB, parseColor, AbstractRendererPlugin } from '@antv/g-lite'; import { VertexAttributeBufferIndex, VertexAttributeLocation, BufferGeometry, Light, Material } from '@antv/g-plugin-device-renderer'; export { BufferGeometry, Fog, FogType, Light, Material, Mesh, ShaderMaterial, VertexAttributeBufferIndex, VertexAttributeLocation } from '@antv/g-plugin-device-renderer'; import { VertexStepMode, Format, CullMode } from '@antv/g-device-api'; export { AddressMode, BlendFactor, BlendMode, BufferFrequencyHint, ChannelWriteMask, CompareFunction, CullMode, Format, FrontFace, GL, MipmapFilterMode, PrimitiveTopology, SamplerFormatKind, StencilOp, TextureDimension, TextureUsage, VertexStepMode } from '@antv/g-device-api'; import { vec4, mat4, vec3 } from 'gl-matrix'; import _objectSpread from '@babel/runtime/helpers/objectSpread2'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _defineProperty from '@babel/runtime/helpers/defineProperty'; var ProceduralGeometry = /*#__PURE__*/function (_BufferGeometry) { function ProceduralGeometry(device) { var _this; var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; _classCallCheck(this, ProceduralGeometry); _this = _callSuper(this, ProceduralGeometry, [device, props]); /** * flip Y, since +Y is down in G's world coords */ _this.flipYMatrix = mat4.fromScaling(mat4.create(), vec3.fromValues(1, -1, 1)); _this.topol --- dist/index.js (bundled) --- /*! * @antv/g-plugin-3d * @description Provide 3D extension for G * @version 2.1.1 * @date 12/24/2025, 11:57:48 AM * @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 gPluginDeviceRenderer = require('@antv/g-plugin-device-renderer'); var gDeviceApi = require('@antv/g-device-api'); var glMatrix = require('gl-matrix'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _defineProperty = require('@babel/runtime/helpers/defineProperty'); var ProceduralGeometry = /*#__PURE__*/function (_BufferGeometry) { function ProceduralGeometry(device) { var _this; var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; _classCallCheck(this, ProceduralGeometry); _this = _callSuper(this, ProceduralGeometry, [device, props]); /** * flip Y, since +Y is down in G's world coords */ _this.flipYMatrix = glMatrix.mat4.fromScaling(glMatrix.mat4.create(), glMatrix.vec3.fromValues(1, -1, 1)); _this.topology = _this.createTopology(); return _this; } _inherits(ProceduralGeometry, _BufferGeometry); return _createClass(ProceduralGeometry, [{ key: "applyMa4Position", value: function applyMa4Position(mat, positions) { var v = glMatrix.vec4.create(); for (var i = 0; i < positions.byteLength / 4; i += 3) { v[0] = positions[i]; v[1] = positions[i + 1]; v[2] = positions[i + 2]; v[3] = 1; glMatrix.vec4.transformMat4(v, v, mat); positions[i] = v[0]; --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-3d * @description Provide 3D extension for G * @version 2.1.1 * @date 12/24/2025, 11:57:48 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite"),require("@antv/g-plugin-device-renderer")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite","@antv/g-plugin-device-renderer"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G["3D"]={}),e.window.G,e.window.G.WebGL.DeviceRenderer)}(this,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,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(e,o(r.key),r)}}function _(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function l(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new Reference
