// npm package
@antv/my-f2-pc
F2 for alipay mini-program
versions
2
maintainers
51
license
MIT
first publish
2020-03-28
publisher
zengyue
tarball
6,601 B
AUTO-PUBLISHED·1 version indexed·latest published 2020-04-08
// publisher campaignby zengyue
9 caught packages from this accountThis is not an isolated catch. The same publisher has shipped 8 other packages that our pipeline flagged — the shape of a coordinated campaign, not a one-off. Each link below opens that sibling's analysis.
// offending code· @0.1.1· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 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
→ No suspicious destination, no remote-exec shape — 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
