// npm 패키지
@antv/component
Visualization components for AntV, based on G.
버전
193
메인테이너
52
라이선스
MIT
최초 publish
2018-09-19
publisher
moayuisuda
tarball
3,199,021 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2025-11-21
// publisher 캠페인by moayuisuda
이 계정에서 catch된 패키지 2건고립된 catch가 아닙니다. 동일 publisher가 1개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @2.1.11· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 3 known-vendor host(s).
- @2.1.11··AUTO-PUBLISHED·publisher: moayuisudaheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3863child-process-spawn
→ 의심 전송지 없음, 원격 실행 형태 없음 — 3 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- install scripts --- ### prepare husky install ### prepublishOnly npm run ci --- package/src/util/svg2marker.ts (excerpt) --- /** * from: https://github.com/zqlu/svg2marker * translate svg string to G.Marker */ import svgPathParser from 'svg-path-parser'; type IPointPair = [number | undefined, number | undefined]; type ISVGPathCmd = { code: string; command: string; relative?: boolean; x?: number; y?: number; x1?: number; y1?: number; x2?: number; y2?: number; }; /** * Return function to register a Marker Symbol for give SVG Path * * @param svgPath SVG Path string * @param viewBoxWidth SVG view box width, default to 1024 * @param viewBoxHeight SVG view box height, default to 1024 */ export function path2marker( svgPath: string, viewBoxWidth: number = 1024, viewBoxHeight: number = 1014 ): (x: number, y: number, r: number) => (string | number)[][] { return (x: number, y: number, r: number): (string | number)[][] => { // @ts-ignore const paths: ISVGPathCmd[] = svgPathParser(svgPath); return paths.map((path: ISVGPathCmd) => { const arr: (string | number)[] = []; arr.push(path.relative === true ? path.code.toLowerCase() : path.code.toUpperCase()); const pairs: IPointPair[] = [ [path.x1, path.y1], [path.x2, path.y2], [path.x, path.y], ]; pairs.forEach((pair: IPointPair) => { const [px, py] = pair; if (px !== undefined) { arr.push(path.relative === true ? (px / viewBoxWidth) * 2 * r : x - r + r * 2 * (px / viewBoxWidth)); } if (py !== undefined) { arr.
