// npm package
@antv/g-plugin-mobile-interaction
A G plugin listening events in mobile environment
versions
198
maintainers
51
license
MIT
first publish
2022-03-21
publisher
alex_zjt
tarball
48,550 B
AUTO-PUBLISHED·1 version indexed·latest published 2025-12-15
// publisher campaignby alex_zjt
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· @1.0.39-beta.0· 1 file flagged
llm: benign · 0.85→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
- @1.0.39-beta.0··AUTO-PUBLISHED·publisher: alex_zjtheuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3949public-github-push
→ No suspicious destination, no remote-exec shape — 1 known-vendor host(s), 1 other host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-plugin-mobile-interaction", "version": "1.0.39-beta.0", "description": "A G plugin listening events in mobile environment", "keywords": [ "antv", "g" ], "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": "./types/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": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-lite": "2.3.3-beta.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-plugin-mobile-interaction", "version": "1.0.39-beta.0", "description": "A G plugin listening events in mobile environment", "keywords": [ "antv", "g" ], "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": "./types/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": "types/index.d.ts", "files": [ "package.json", "dist", "types", "LICENSE", "README.md" ], "dependencies": { "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-lite": "2.3.3-beta.2" }, "publishConfig": { "access": "public" }, "scripts": { "build:types": "tsc --emitDeclarationOnly --noCheck", "build": "npm run clean && npm run build:types && rollup -c", "clean": "rimraf dist", "sync": "tnpm sync", "watch": "rollup -c -w --- index.js (entry) --- /*! * @antv/g-plugin-mobile-interaction * @description A G plugin listening events in mobile environment * @version 1.0.39-beta.0 * @date 12/12/2025, 2:49:49 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); /** * listen to mouse/touch/pointer events on DOM wrapper, trigger pointer events */ var MobileInteractionPlugin = /*#__PURE__*/function () { function MobileInteractionPlugin() { _classCallCheck(this, MobileInteractionPlugin); } return _createClass(MobileInteractionPlugin, [{ key: "apply", value: function apply(context) { var renderingService = context.renderingService, contextService = context.contextService, config = context.config; // 获取小程序上下文 var canvasEl = contextService.getDomElement(); var onPointerDown = function onPointerDown(ev) { renderingService.hooks.pointerDown.call(ev); --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-plugin-mobile-interaction * @description A G plugin listening events in mobile environment * @version 1.0.39-beta.0 * @date 12/12/2025, 2:49:49 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _createClass from '@babel/runtime/helpers/createClass'; import _callSuper from '@babel/runtime/helpers/callSuper'; import _inherits from '@babel/runtime/helpers/inherits'; import { AbstractRendererPlugin } from '@antv/g-lite'; /** * listen to mouse/touch/pointer events on DOM wrapper, trigger pointer events */ var MobileInteractionPlugin = /*#__PURE__*/function () { function MobileInteractionPlugin() { _classCallCheck(this, MobileInteractionPlugin); } return _createClass(MobileInteractionPlugin, [{ key: "apply", value: function apply(context) { var renderingService = context.renderingService, contextService = context.contextService, config = context.config; // 获取小程序上下文 var canvasEl = contextService.getDomElement(); var onPointerDown = function onPointerDown(ev) { renderingService.hooks.pointerDown.call(ev); }; var onPointerUp = function onPointerUp(ev) { renderingService.hooks.pointerUp.call(ev); }; var onPointerMove = function onPointerMove(ev) { // 触发 G 定义的标准 pointerMove 事件 renderingService.hooks.pointerMove.call(ev); }; var onPointerOver = function onPointerOver(ev) { renderingService.hooks.pointerOver.call(ev); }; var onPointerOut = function onPointerOut(ev) { renderingService.hooks.pointerOut.call(ev); }; var onClick = function onClick(ev) { renderingService.hooks.click.call(ev); }; var onPointerCancel = function onPointerCancel(ev) { renderingService.hooks.pointerCancel.call(ev); }; renderingService.hooks.init.tap(MobileInteractionPlugin.tag, function () { --- dist/index.js (bundled) --- /*! * @antv/g-plugin-mobile-interaction * @description A G plugin listening events in mobile environment * @version 1.0.39-beta.0 * @date 12/12/2025, 2:49:49 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); /** * listen to mouse/touch/pointer events on DOM wrapper, trigger pointer events */ var MobileInteractionPlugin = /*#__PURE__*/function () { function MobileInteractionPlugin() { _classCallCheck(this, MobileInteractionPlugin); } return _createClass(MobileInteractionPlugin, [{ key: "apply", value: function apply(context) { var renderingService = context.renderingService, contextService = context.contextService, config = context.config; // 获取小程序上下文 var canvasEl = contextService.getDomElement(); var onPointerDown = function onPointerDown(ev) { renderingService.hooks.pointerDown.call(ev); }; var onPointerUp = function onPointerUp(ev) { renderingService.hooks.pointerUp.call(ev); }; var onPointerMove = function onPointerMove(ev) { // 触发 G 定义的标准 pointerMove 事件 renderingService.hooks.pointerMove.call(ev); }; var onPointerOver = function onPointerOver(ev) { renderingService.hooks.pointerOver.call(ev); }; var onPointerOut = function onPointerOut(ev) { renderingService.hooks.pointerOut.call(ev); }; var onClick = function onClick(ev) { renderingService.hooks.click.call(ev); }; var onPointerCancel = function onPointerCancel(ev) { renderingService.hooks.pointerCancel.call(ev); }; renderingService.hooks.init.tap(MobileInteractionPlugin.tag, function --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-plugin-mobile-interaction * @description A G plugin listening events in mobile environment * @version 1.0.39-beta.0 * @date 12/12/2025, 2:49:49 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).G=e.G||{},e.G.MobileInteraction={}),e.window.G)}(this,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function i(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function c(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}function f(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn'
