// npm package
@antv/g-mobile-svg
A renderer implemented by SVG in mobile environment
versions
221
maintainers
51
license
MIT
first publish
2022-04-15
publisher
wang1212
tarball
337,788 B
AUTO-PUBLISHED·1 version indexed·latest published 2025-12-24
// publisher campaignby wang1212
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.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).
- @1.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamamature-packageosv-flagged:MAL-2026-3927public-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-mobile-svg", "version": "1.1.1", "description": "A renderer implemented by SVG 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": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0", "@antv/g-plugin-dragndrop": "2.1.1", "@antv/g-plugin-gesture": "2.1.1", "@antv/g-svg": "2.1.1" }, "devDependencies": { "@types/gl-matrix": "^2.4.5" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && rollup -c", "build:types": "rimraf types && tsc --emitDeclarationOnly --noCheck", "build": "npm run build:js && npm run build:types", "sync": "tnpm sync", "watch": "rollup -c -w" } } --- package.json (entry) --- { "name": "@antv/g-mobile-svg", "version": "1.1.1", "description": "A renderer implemented by SVG 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": { "@antv/util": "^3.3.5", "@babel/runtime": "^7.25.6", "tslib": "^2.5.3", "@antv/g-lite": "2.7.0", "@antv/g-plugin-dragndrop": "2.1.1", "@antv/g-plugin-gesture": "2.1.1", "@antv/g-svg": "2.1.1" }, "devDependencies": { "@types/gl-matrix": "^2.4.5" }, "publishConfig": { "access": "public" }, "scripts": { "build:js": "rimraf dist && ro --- index.js (entry) --- /*! * @antv/g-mobile-svg * @description A renderer implemented by SVG in mobile environment * @version 1.1.1 * @date 12/24/2025, 11:57:33 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _createClass = require('@babel/runtime/helpers/createClass'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var DragDropEvent = require('@antv/g-plugin-dragndrop'); var gSvg = require('@antv/g-svg'); var GesturePlugin = require('@antv/g-plugin-gesture'); var util = require('@antv/util'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-mobile-svg * @description A renderer implemented by SVG in mobile environment * @version 1.1.1 * @date 12/24/2025, 11:57:33 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _createClass from '@babel/runtime/helpers/createClass'; import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _callSuper from '@babel/runtime/helpers/callSuper'; import _inherits from '@babel/runtime/helpers/inherits'; import { AbstractRendererPlugin, AbstractRenderer, MobileInteraction } from '@antv/g-lite'; export { MobileInteraction } from '@antv/g-lite'; import * as DragDropEvent from '@antv/g-plugin-dragndrop'; import { createSVGElement, SVGRenderer, SVGPicker } from '@antv/g-svg'; export { SVGPicker, SVGRenderer } from '@antv/g-svg'; import * as GesturePlugin from '@antv/g-plugin-gesture'; import { isString, isNil } from '@antv/util'; import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime'; import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; var SVGContextService = /*#__PURE__*/function () { function SVGContextService(context) { _classCallCheck(this, SVGContextService); this.canvasConfig = context.config; } return _createClass(SVGContextService, [{ key: "init", value: function init() { var _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, dpr = _this$canvasConfig.devicePixelRatio; // create container this.$container = isString(container) ? (doc || document).getElementById(container) : container; if (this.$container) { if (!this.$container.style.position) { this.$container.style.position = 'relative'; } var $namespace = createSVGElement('svg', doc); $namespace.setAttribute('width', "".concat(this.canvasConfig.width)); $namespace.setAttribute('height', "".concat(this.canvasConfig.height)); this.$con --- dist/index.js (bundled) --- /*! * @antv/g-mobile-svg * @description A renderer implemented by SVG in mobile environment * @version 1.1.1 * @date 12/24/2025, 11:57:33 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _createClass = require('@babel/runtime/helpers/createClass'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _callSuper = require('@babel/runtime/helpers/callSuper'); var _inherits = require('@babel/runtime/helpers/inherits'); var gLite = require('@antv/g-lite'); var DragDropEvent = require('@antv/g-plugin-dragndrop'); var gSvg = require('@antv/g-svg'); var GesturePlugin = require('@antv/g-plugin-gesture'); var util = require('@antv/util'); var _regeneratorRuntime = require('@babel/runtime/helpers/regeneratorRuntime'); var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var DragDropEvent__namespace = /*#__PURE__*/_interopNamespaceDefault(DragDropEvent); var GesturePlugin__namespace = /*#__PURE__*/_interopNamespaceDefault(GesturePlugin); var SVGContextService = /*#__PURE__*/function () { function SVGContextService(context) { _classCallCheck(this, SVGContextService); this.canvasConfig = context.config; } return _createClass(SVGContextService, [{ key: "init", value: function init() { var _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, dpr = _this$canvasConfig.devicePixelRatio; // create container this.$container = util.isString(container) ? (doc || document).getEl --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-mobile-svg * @description A renderer implemented by SVG in mobile environment * @version 1.1.1 * @date 12/24/2025, 11:57:33 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g-lite")):"function"==typeof define&&define.amd?define(["exports","@antv/g-lite"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.MobileSVG={}),t.window.G)}(this,function(t,e){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function i(t,e){for(var n=0;e.length>n;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function s(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)
