// npm 패키지
@antv/g-plugin-webgl-device
A G plugin implements GPUDevice interface with WebGL API
주간
311
월간
886
버전
105
메인테이너
51
라이선스
MIT
최초 publish
2022-05-12
publisher
panyuqi
tarball
768,322 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2023-09-11
// publisher 캠페인by panyuqi
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @1.9.17· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @1.9.17··AUTO-PUBLISHED·publisher: panyuqiheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3955public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-webgl-device", "version": "1.9.17", "description": "A G plugin implements GPUDevice interface with WebGL API", "keywords": [ "antv", "g", "webgl" ], "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": "./dist/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": "dist/index.d.ts", "files": [ "package.json", "dist", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.4", "eventemitter3": "^5.0.1", "tslib": "^2.5.3", "@antv/g-lite": "1.2.13", "@antv/g-plugin-device-renderer": "1.9.17" }, "publishConfig": { "access": "public" }, "scripts": { "build": "npm run clean && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-plugin-webgl-device", "version": "1.9.17", "description": "A G plugin implements GPUDevice interface with WebGL API", "keywords": [ "antv", "g", "webgl" ], "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": "./dist/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": "dist/index.d.ts", "files": [ "package.json", "dist", "LICENSE", "README.md" ], "dependencies": { "@antv/util": "^3.3.4", "eventemitter3": "^5.0.1", "tslib": "^2.5.3", "@antv/g-lite": "1.2.13", "@antv/g-plugin-device-renderer": "1.9.17" }, "publishConfig": { "access": "public" }, "scripts": { "build": "npm run clean && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- index.js (entry) --- 'use strict'; var tslib = require('tslib'); var gLite = require('@antv/g-lite'); var gPluginDeviceRenderer = require('@antv/g-plugin-device-renderer'); var EventEmitter = require('eventemitter3'); var util = require('@antv/util'); var ResourceBase_GL = /** @class */ (function (_super) { tslib.__extends(ResourceBase_GL, _super); function ResourceBase_GL(_a) { var id = _a.id, device = _a.device; var _this = _super.call(this) || this; _this.id = id; _this.device = device; if (_this.device['resourceCreationTracker'] !== null) { _this.device['resourceCreationTracker'].trackResourceCreated(_this); } return _this; } ResourceBase_GL.prototype.destroy = function () { if (this.device['resourceCreationTracker'] !== null) { this.device['resourceCreationTracker'].trackResourceDestroyed(this); } }; return ResourceBase_GL; }(EventEmitter)); var Bindings_GL = /** @class */ (function (_super) { tslib.__extends(Bindings_GL, _super); function Bindings_GL(_a) { var id = _a.id, device = _a.device, descriptor = _a.descriptor; var _this = _super.call(this, { i --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/WebGLDeviceContribution.d.ts (bundled) --- import type { DeviceContribution } from '@antv/g-plugin-device-renderer'; import type { WebGLRendererPluginOptions } from './interfaces'; import { Device_GL } from './platform/Device'; export declare class WebGLDeviceContribution implements DeviceContribution { private pluginOptions; constructor(pluginOptions: Partial<WebGLRendererPluginOptions>); createSwapChain($canvas: HTMLCanvasElement): Promise<Device_GL>; private handleContextEvents; } --- dist/index.d.ts (bundled) --- import { AbstractRendererPlugin } from '@antv/g-lite'; import type { WebGLRendererPluginOptions } from './interfaces'; import { WebGLDeviceContribution } from './WebGLDeviceContribution'; export { WebGLDeviceContribution }; export declare class Plugin extends AbstractRendererPlugin { private options; name: string; constructor(options: Partial<WebGLRendererPluginOptions>); init(): void; destroy(): void; } --- dist/index.esm.js (bundled) --- import { __extends, __assign, __awaiter, __generator, __values, __spreadArray, __read } from 'tslib'; import { AbstractRendererPlugin } from '@antv/g-lite'; import { ResourceType, assert, getFormatFlags, FormatFlags, getFormatTypeFlags, FormatTypeFlags, BufferFrequencyHint, GL, BufferUsage, PrimitiveTopology, getFormatCompFlags, Format, WrapMode, MipFilterMode, TexFilterMode, QueryPoolType, TextureDimension, FormatCompFlags, BlendMode, BlendFactor, align, getFormatCompByteSize, assertExists, VertexStepMode, getFormatSamplerKind, isPowerOfTwo, getDefines, getAttributeLocations, parseUniformName, getUniformSetter, nArray, getFormatByteSize, copyMegaState, defaultMegaState, defaultBindingLayoutSamplerDescriptor, ViewportOrigin, ClipSpaceNearZ, TextureUsage, SamplerFormatKind, CompareMode, ChannelWriteMask, nullify, preprocessShader_GLSL, prependLineNo, colorEqual, colorCopy, CullMode, CopyProgram, makeDataBuffer, TransparentWhite } from '@antv/g-plugin-device-renderer'; import EventEmitter from 'eventemitter3'; import { isNumber, isNil, clamp } from '@antv/util'; var ResourceBase_GL = /** @class */ (function (_super) { __extends(ResourceBase_GL, _super); function ResourceBase_GL(_a) { var id = _a.id, device = _a.device; var _this = _super.call(this) || this; _this.id = id; _this.device = device; if (_this.device['resourceCreationTracker'] !== null) { _this.device['resourceCreationTracker'].trackResourceCreated(_this); } return _this; } ResourceBase_GL.prototype.destroy = function () { if (this.device['resourceCreationTracker'] !== null) { this.device['resourceCreationTracker'].trackResourceDestroyed(this); } }; return ResourceBase_GL; }(EventEmitter)); var Bindings_GL = /** @class */ (function (_super) { __extends(Bindings_GL, _super); function Bindings_GL(_a) { var id = _a.id, device = _a.device, descriptor = _a.descriptor; --- dist/index.js (bundled) --- 'use strict'; var tslib = require('tslib'); var gLite = require('@antv/g-lite'); var gPluginDeviceRenderer = require('@antv/g-plugin-device-renderer'); var EventEmitter = require('eventemitter3'); var util = require('@antv/util'); var ResourceBase_GL = /** @class */ (function (_super) { tslib.__extends(ResourceBase_GL, _super); function ResourceBase_GL(_a) { var id = _a.id, device = _a.device; var _this = _super.call(this) || this; _this.id = id; _this.device = device; if (_this.device['resourceCreationTracker'] !== null) { _this.device['resourceCreationTracker'].trackResourceCreated(_this); } return _this; } ResourceBase_GL.prototype.destroy = function () { if (this.device['resourceCreationTracker'] !== null) { this.device['resourceCreationTracker'].trackResourceDestroyed(this); } }; return ResourceBase_GL; }(EventEmitter)); var Bindings_GL = /** @class */ (function (_super) { tslib.__extends(Bindings_GL, _super); function Bindings_GL(_a) { var id = _a.id, device = _a.device, descriptor = _a.descriptor; var _this = _super.call(this, { id: id, device: device }) || this; _this.type = gPluginDeviceRenderer.ResourceType.Bindings; var bindingLayout = descriptor.bindingLayout, uniformBufferBindings = descriptor.uniformBufferBindings, samplerBindings = descriptor.samplerBindings; gPluginDeviceRenderer.assert(uniformBufferBindings.length >= bindingLayout.numUniformBuffers); gPluginDeviceRenderer.assert(samplerBindings.length >= bindingLayout.numSamplers); for (var i = 0; i < bindingLayout.numUniformBuffers; i++) { gPluginDeviceRenderer.assert(uniformBufferBindings[i].wordCount > 0); } _this.uniformBufferBindings = descriptor.uniformBufferBindings; _this.samplerBindings = descriptor.samplerBindings; return _this; } return Bindings_GL; }(Re --- dist/index.umd.min.js (bundled) --- !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.WebGLDevice={}),e.window.G,e.window.G.DeviceRenderer)}(this,(function(e,t,r){"use strict";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;n>r;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7 --- dist/interfaces.d.ts (bundled) --- export interface WebGLRendererPluginOptions { targets: ('webgl1' | 'webgl2')[]; onContextCreationError: (e: Event) => void; onContextLost: (e: Event) => void; onContextRestored: (e: Event) => void; } --- dist/platform/Bindings.d.ts (bundled) --- import type { Bindings, BindingsDescriptor, BufferBinding, SamplerBinding } from '@antv/g-plugin-device-renderer'; import { ResourceType } from '@antv/g-plugin-device-renderer'; import type { Device_GL } from './Device'; import { ResourceBase_GL } from './ResourceBase'; export declare class Bindings_GL extends ResourceBase_GL implements Bindings { type: ResourceType.Bindings; uniformBufferBindings: BufferBinding[]; samplerBindings: (SamplerBinding | null)[]; constructor({ id, device, descriptor, }: { id: number; device: Device_GL; descriptor: BindingsDescriptor; })
