// npm 패키지
@antv/x6-plugin-scroller
scroller plugin for X6
버전
27
메인테이너
51
라이선스
MIT
최초 publish
2022-08-31
publisher
newbyvector
tarball
294,460 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2023-07-11
// publisher 캠페인by newbyvector
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.0.10· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @2.0.10··AUTO-PUBLISHED·publisher: newbyvectorheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-4107public-github-push
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/x6-plugin-scroller", "version": "2.0.10", "description": "scroller plugin for X6", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/index.js", "jsdelivr": "dist/index.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib", "src" ], "keywords": [ "plugin", "scroller", "x6", "antv" ], "peerDependencies": { "@antv/x6": "^2.x" }, "devDependencies": { "@antv/x6": "^2.x" }, "author": { "name": "bubkoo", "email": "bubkoo.wy@gmail.com" }, "license": "MIT", "homepage": "https://x6.antv.antgroup.com/tutorial/plugins/scroller", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "repository": { "type": "git", "url": "https://github.com/antvis/x6.git", "directory": "packages/x6-plugin-scroller" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "scripts": { "clean:turbo": "rss", "clean:build": "rss", "clean:coverage": "rss", "clean": "rss", "build:esm": "rss", "build:cjs": "rss", "build:umd": "rss", "build:dev": "rss", "build:less": "rss", "build:watch": "rss", "build:watch:esm": "rss", "build:watch:cjs": "rss", "build": "rss", "prebuild": "rss", "test": "rss", "coveralls": "rss", "pretest": "rss" } } --- package.json (entry) --- { "name": "@antv/x6-plugin-scroller", "version": "2.0.10", "description": "scroller plugin for X6", "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/index.js", "jsdelivr": "dist/index.js", "types": "lib/index.d.ts", "files": [ "dist", "es", "lib", "src" ], "keywords": [ "plugin", "scroller", "x6", "antv" ], "peerDependencies": { "@antv/x6": "^2.x" }, "devDependencies": { "@antv/x6": "^2.x" }, "author": { "name": "bubkoo", "email": "bubkoo.wy@gmail.com" }, "license": "MIT", "homepage": "https://x6.antv.antgroup.com/tutorial/plugins/scroller", "bugs": { "url": "https://github.com/antvis/x6/issues" }, "repository": { "type": "git", "url": "https://github.com/antvis/x6.git", "directory": "packages/x6-plugin-scroller" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "scripts": { "clean:turbo": "rss", "clean:build": "rss", "clean:coverage": "rss", "clean": "rss", "build:esm": "rss", "build:cjs": "rss", "build:umd": "rss", "build:dev": "rss", "build:less": "rss", "build:watc --- index.js (entry) --- "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Scroller = void 0; const x6_1 = require("@antv/x6"); const scroller_1 = require("./scroller"); const raw_1 = require("./style/raw"); require("./api"); class Scroller extends x6_1.Basecoat { get pannable() { if (this.options) { if (typeof this.options.pannable === 'object') { return this.options.pannable.enabled; } return !!this.options.pannable; } return false; } get container() { return this.scrollerImpl.container; } constructor(optio --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.js (bundled) --- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/x6")):"function"==typeof define&&define.amd?define(["exports","@antv/x6"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).X6PluginScroller={},t.X6)}(this,(function(t,e){"use strict";function i(t,e,i,n){var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}class n extends e.View{get graph(){return this.options.graph}get model(){return this.graph.model}constructor(t){super(),this.padding={left:0,top:0,right:0,bottom:0},this.options=n.getOptions(t),this.onUpdate=e.FunctionExt.debounce(this.onUpdate,200);const i=this.graph.transform.getScale();this.sx=i.sx,this.sy=i.sy;const o=this.options.width||this.graph.options.width,s=this.options.height||this.graph.options.height;this.container=document.createElement("div"),e.Dom.addClass(this.container,this.prefixClassName(n.containerClass)),e.Dom.css(this.container,{width:o,height:s}),this.options.pageVisible&&e.Dom.addClass(this.container,this.prefixClassName(n.pagedClass)),this.options.className&&e.Dom.addClass(this.container,this.options.className);const r=this.graph.container;r.parentNode&&e.Dom.before(r,this.container),this.content=document.createElement("div"),e.Dom.addClass(this.content,this.prefixClassName(n.contentClass)),e.Dom.css(this.content,{width:this.graph.options.width,height:this.graph.options.height}),this.background=document.createElement("div"),e.Dom.addClass(this.background,this.prefixClassName(n.backgroundClass)),e.Dom.append(this.content,this.background),this.options.pageVisible||e.Dom.append(this.content,this.graph.view.grid),e.Dom.append(this.content,r),e.Dom.appendTo(this.content,this.container),this.startListening(),this.options.pageVisible||this.graph.g
