// npm 패키지
@antv/my-f2-pc
F2 for alipay mini-program
버전
2
메인테이너
51
라이선스
MIT
최초 publish
2020-03-28
publisher
zengyue
tarball
6,601 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2020-04-08
// publisher 캠페인by zengyue
이 계정에서 catch된 패키지 9건고립된 catch가 아닙니다. 동일 publisher가 8개의 다른 패키지를 추가로 발행했고, 모두 파이프라인이 catch했습니다 — 일회성이 아닌 조직적 캠페인의 형태. 아래 링크는 각 형제 catch의 분석으로 이동합니다.
// offending code· @0.1.1· 1 file flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @0.1.1··AUTO-PUBLISHED·publisher: zengyueheuristic 75/100static flags 1llm benign (0.85) via ollamaosv-flagged:MAL-2026-4071child-process-spawn
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/es/index.js (excerpt) --- import F2 from '@antv/f2'; import { my as my$1 } from '@antv/f2-context'; function convertTouches(eventDetail) { if (!eventDetail) { return []; } const { relativeX: x, relativeY: y } = eventDetail; return [{ x, y}]; } function convertEvent(mouseEvent) { const touches = convertTouches(mouseEvent.detail); const changedTouches = touches; return { preventDefault: function() {}, touches, changedTouches, } } Component({ props: { onInit: () => {} }, didMount() { const id = `f2-canvas-${this.$id}`; const myCtx = my.createCanvasContext(id); const context = my$1(myCtx); const query = my.createSelectorQuery(); query .select(`#${id}`) .boundingClientRect() .exec(res => { // 获取画布实际宽高 const { width, height } = res[0]; const pixelRatio = my.getSystemInfoSync().pixelRatio; // 高清解决方案 this.setData({ id, width: width * pixelRatio, height: height * pixelRatio }); const chart = this.props.onInit(F2, { context, width, height, pixelRatio }); if (chart) { this.chart = chart; this.canvasEl = chart.get('el'); } }); }, methods: { mouseDown(e) { const canvasEl = this.canvasEl; if (!canvasEl) { return; } canvasEl.dispatchEvent('touchstart', convertEvent(e)); }, mouseMove(e) { const canvasEl = this.canvasEl; if (!canvasEl) { retur
