// npm 패키지
@antv/g6-extension-3d
3D extension for G6
버전
24
메인테이너
51
라이선스
MIT
최초 publish
2024-05-16
publisher
iaaron
tarball
2,050,662 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2026-03-30
// publisher 캠페인by iaaron
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.1.23· no static-pattern hits
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 10 known-vendor host(s).
- @0.1.23··AUTO-PUBLISHED·publisher: iaaronheuristic 75/100static flags 0llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3988
→ 의심 전송지 없음, 원격 실행 형태 없음 — 10 known-vendor host(s).
// offending code· no static-pattern hits
--- package.json (entry) --- { "name": "@antv/g6-extension-3d", "version": "0.1.23", "description": "3D extension for G6", "keywords": [ "antv", "g6", "extension", "3d" ], "license": "MIT", "author": "Aarebecca", "main": "lib/index.js", "module": "esm/index.js", "types": "lib/index.d.ts", "files": [ "src", "esm", "lib", "dist", "README" ], "dependencies": { "@antv/g-device-api": "^1.6.13", "@antv/g-plugin-3d": "^2.0.45", "@antv/g-plugin-device-renderer": "^2.2.22", "@antv/g-plugin-dragndrop": "^2.0.35", "@antv/g-webgl": "^2.0.47", "@antv/layout": "1.2.14-beta.8", "@antv/util": "^3.3.10" }, "devDependencies": { "@antv/g": "^6.1.24", "@antv/g-canvas": "^2.0.43", "@antv/g6": "^5.1.0" }, "peerDependencies": { "@antv/g": "^6.1.2", "@antv/g-canvas": "^2.0.18", "@antv/g6": "^5.1.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "scripts": { "build": "run-p build:*", "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib -p tsconfig.build.json", "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm -p tsconfig.bu --- index.js (entry) --- "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("./exports"), exports); //# sourceMappingURL=index.js.map --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/g6-extension-3d.min.js (bundled) --- !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).G6Extension3D={})}(this,function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function o(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}A((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(A){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[ --- dist/lib/exports.d.ts (bundled) --- export { D3Force3DLayout } from '@antv/layout'; export { DragCanvas3D, ObserveCanvas3D, RollCanvas3D, ZoomCanvas3D } from './behaviors'; export { BaseNode3D, Capsule, Cone, Cube, Cylinder, Line3D, Plane, Sphere, Torus } from './elements'; export { Light } from './plugins'; export { renderer } from './renderer'; export type { DragCanvas3DOptions, ObserveCanvas3DOptions, RollCanvas3DOptions, ZoomCanvas3DOptions, } from './behaviors'; export type { BaseNode3DStyleProps, CapsuleStyleProps, ConeStyleProps, CubeStyleProps, CylinderStyleProps, Line3DStyleProps, PlaneStyleProps, SphereStyleProps, TorusStyleProps, } from './elements'; export type { LightOptions } from './plugins'; --- dist/lib/index.d.ts (bundled) --- export * from './exports'; --- dist/lib/renderer.d.ts (bundled) --- import type { CanvasOptions } from '@antv/g6'; /** * <zh/> 3D 渲染器 * * <en/> 3D renderer * @param layer - <zh/> 图层 | <en/> Layer * @returns <zh/> 渲染器实例 | <en/> Renderer instance */ export declare const renderer: CanvasOptions['renderer']; --- dist/lib/utils/cache.d.ts (bundled) --- /** * <zh/> 生成对象配置的缓存键 * * <en/> Generate cache key of geometry configuration * @param props - <zh/> 对象配置 <en/> geometry configuration * @returns <zh/> 缓存键 <en/> cache key */ export declare function getCacheKey(props: Record<string, any>): symbol; --- dist/lib/utils/geometry.d.ts (bundled) --- import type { Device } from '@antv/g-device-api'; import type { ProceduralGeometry } from '@antv/g-plugin-3d'; /** * <zh/> 创建几何体 * * <en/> Create geometry * @param type - <zh/> 几何体类型 <en/> geometry type * @param device - <zh/> 设备对象 <en/> device object * @param Ctor - <zh/> 几何体构造函数 <en/> geometry constructor * @param style - <zh/> 几何体样式 <en/> geometry style * @returns <zh/> 几何体对象 <en/> geometry object */ export declare function createGeometry<T extends ProceduralGeometry<any>>(type: string, device: Device, Ctor: new (...args: any[]) => T, style: Record<string, unknown>): T; --- dist/lib/utils/map.d.ts (bundled) --- export declare class TupleMap<K1, K2, V> { private map; has(key1: K1, key2: K2): boolean; get(key1: K1, key2: K2): V | undefined; set(key1: K1, key2: K2, value: V): void; clear(): void; } --- dist/lib/utils/material.d.ts (bundled) --- import type { Material as GMaterial } from '@antv/g-plugin-3d'; import type { Plugin } from '@antv/g-plugin-device-renderer'; import type { Material } from '../types'; /** * <zh/> 基于配置创建材质,支持缓存 * * <en/> Create material based on configuration, support cache * @param plugin - <zh/> 插件对象 <en/> plugin * @param options - <zh/> 材质配置 <en/> material configuration * @param texture - <zh/> 纹理 <en/> texture * @returns <zh/> 材质对象 <en/> material object */ export declare function createMaterial(plugin: Plugin, options: Material, texture?: string | TexImageSource): GMaterial; --- dist/lib/utils/texture.d.ts (bundled) --- import type { Texture } from '@antv/g-device-api'; import type { Plugin } from '@antv/g-plugin-device-renderer'; /** * <zh/> 创建纹理,支持缓存 * * <en/> Create texture, support cache * @param plugin - <zh/> 插件对象 <en/> plugin * @param src - <zh/> 纹理路径或者图片对象 <en/> texture path or image object * @returns <zh/> 纹理对象 <en/> texture object */ export declare function createTexture(plugin: Plugin, src?: string | TexImageSource): Texture | undefined; --- dist/lib/types/index.d.ts (bundled) --- export * from './material'; --- dist/lib/types/material.d.ts (bundled) --- import type { IPointMaterial } from '@antv/g-plugin-3d'; import { IMeshBasicMaterial, IMeshLambertMaterial, IMeshPhongMaterial } from '@antv/g-plugin-3d'; export type Material = PointMaterial | BasicMaterial | LambertMaterial | PhongMaterial; export interface PointMaterial extends Partial<Omit<IPointMaterial, 'map'>> { type: 'point'; map?: string | TexImageSource; } interface BasicMaterial extends Partial<Omit<IMeshBasicMaterial, 'map' | 'aoMap'>> { type: 'basic'; map?: string | TexImageSource; } interface LambertMaterial extends Partial<Omit<IMeshLambertMaterial, 'map' | 'aoMap'>> { type: 'lambert'; map?: string | TexImageSource; } interface PhongMaterial extends Partial<Omit<IMeshPhongMaterial, 'map' | 'aoMap'>> { type: 'phong'; map?: string | TexImageSource; } export {}; --- dist/lib/plugins/index.d.ts (bundled) --- export { Light } from './light'; export type { LightOptions } from './light'; --- dist/lib/plugins/light.d.ts (bundled) --- import type { AmbientLightProps, DirectionalLightProps } from '@antv/g-plugin-3d'; import type { BasePluginOptions, RuntimeContext } from '@antv/g6'; import { BasePlugin } from '@antv/g6'; /** * <zh/> 光照插件配置项 * * <en/> Light plugin options */ export interface LightOptions extends BasePluginOptions { /** * <zh/> 环境光 * * <en/> Ambient light */ ambient?: AmbientLightProps; /** * <zh/> 平行光 * * <en/> Directional light */ directional?: DirectionalLightProps; } /** * <zh/> 光照插件 * * <en/> Light plugin */ export declare class Light extends BasePlugin<LightOptions> { static defaultOptions: Partial<LightOptions>; private ambient?; private directional?; constructor(context: RuntimeContext, options: LightOptions); private bindEvents; private unbindEvents; private setLight; private upsertLight; /** * <zh/> 销毁插件 * * <en/> Destroy the plugin * @internal */ destroy(): void; } --- dist/lib/elements/base-node-3d.d.ts (bundled) --- import type { BaseStyleProps, DisplayObjectConfig, Group } from '@antv/g'; import type { ProceduralGeometry as GGeometry, Material as GMaterial } from '@antv/g-plugin-3d'; import { Mesh } from '@antv/g-plugin-3d'; import type { IMaterial, Plugin } from '@antv/g-plugin-device-renderer'; import type { BaseNodeStyleProps, Prefix } from '@antv/g6'; import { BaseNode } from '@antv/g6'; import { Material } from '../types'; /**
