// npm package
@antv/g-lottie-player
A lottie player for G
weekly
1,067
monthly
2,595
versions
132
maintainers
51
license
MIT
first publish
2022-09-19
publisher
wang1212
tarball
775,861 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 — 2 known-vendor host(s).
- @1.1.1··AUTO-PUBLISHED·publisher: wang1212heuristic 75/100static flags 1llm benign (0.85) via ollamapopularity:highmature-packageosv-flagged:MAL-2026-3922public-github-push
→ No suspicious destination, no remote-exec shape — 2 known-vendor host(s).
// offending code· 1 file flaggedpatterns: 1
--- package/package.json (excerpt) --- { "name": "@antv/g-lottie-player", "version": "1.1.1", "description": "A lottie player for G", "keywords": [ "antv", "g", "lottie player" ], "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" }, "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-lottie-player", "version": "1.1.1", "description": "A lottie player for G", "keywords": [ "antv", "g", "lottie player" ], "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" }, "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 --- index.js (entry) --- /*! * @antv/g-lottie-player * @description A lottie player for G * @version 1.1.1 * @date 12/24/2025, 11:56:01 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var gLite = require('@antv/g-lite'); var util = require('@antv/util'); var _excluded = ["offset", "easing"], _excluded2 = ["ignore", "easing", "offset"]; // import { mat4, quat, vec3 } from 'gl-matrix'; var eps = 0.0001; /** * Provides some control methods like: * - play * - pause * - stop * - goToAndStop * - goToAndPlay * @see https://github.com/airbnb/lottie-web/blob/master/player/js/animation/AnimationItem.js */ var LottieAnimation = /*#__PURE__*/function () { function LottieAnimation(width, height, elements, context) { var _this = th --- bundled output (OSV-MAL flagged — LLM scope expansion) --- --- dist/index.esm.js (bundled) --- /*! * @antv/g-lottie-player * @description A lottie player for G * @version 1.1.1 * @date 12/24/2025, 11:56:01 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ import _objectSpread from '@babel/runtime/helpers/objectSpread2'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray'; import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; import _createClass from '@babel/runtime/helpers/createClass'; import { Shape, Group, Ellipse, Path, Rect, Image, isCanvas, isDisplayObject, definedProps, rad2deg } from '@antv/g-lite'; import { path2String, isNil, isNumber, getTotalLength, distanceSquareRoot } from '@antv/util'; var _excluded = ["offset", "easing"], _excluded2 = ["ignore", "easing", "offset"]; // import { mat4, quat, vec3 } from 'gl-matrix'; var eps = 0.0001; /** * Provides some control methods like: * - play * - pause * - stop * - goToAndStop * - goToAndPlay * @see https://github.com/airbnb/lottie-web/blob/master/player/js/animation/AnimationItem.js */ var LottieAnimation = /*#__PURE__*/function () { function LottieAnimation(width, height, elements, context) { var _this = this; _classCallCheck(this, LottieAnimation); this.keyframeAnimationMap = new WeakMap(); this.displayObjectElementMap = new WeakMap(); this.animations = []; this.isPaused = false; this.direction = 1; this.width = width; this.height = height; this.elements = elements; this.context = context; this.displayObjects = elements.map(function (element) { return _this.buildHierachy(element); }); // TODO: preload images // TODO: preload fonts } return _createClass(LottieAnimation, [{ key: "generateTransform", value: function generateTransform(tx, ty, scaleX, scaleY, rotation) { var transformStr = ''; if ( --- dist/index.js (bundled) --- /*! * @antv/g-lottie-player * @description A lottie player for G * @version 1.1.1 * @date 12/24/2025, 11:56:01 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */ 'use strict'; var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties'); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var _classCallCheck = require('@babel/runtime/helpers/classCallCheck'); var _createClass = require('@babel/runtime/helpers/createClass'); var gLite = require('@antv/g-lite'); var util = require('@antv/util'); var _excluded = ["offset", "easing"], _excluded2 = ["ignore", "easing", "offset"]; // import { mat4, quat, vec3 } from 'gl-matrix'; var eps = 0.0001; /** * Provides some control methods like: * - play * - pause * - stop * - goToAndStop * - goToAndPlay * @see https://github.com/airbnb/lottie-web/blob/master/player/js/animation/AnimationItem.js */ var LottieAnimation = /*#__PURE__*/function () { function LottieAnimation(width, height, elements, context) { var _this = this; _classCallCheck(this, LottieAnimation); this.keyframeAnimationMap = new WeakMap(); this.displayObjectElementMap = new WeakMap(); this.animations = []; this.isPaused = false; this.direction = 1; this.width = width; this.height = height; this.elements = elements; this.context = context; this.displayObjects = elements.map(function (element) { return _this.buildHierachy(element); }); // TODO: preload images // TODO: preload fonts } return _createClass(LottieAnimation, [{ key: "generateTransform", value: function generateTransform(tx, ty, scaleX, scaleY, rotation) { var transformStr = ''; if (tx !== 0 || ty !== 0) { transformStr += "translate(".concat(tx, ", ").concat(ty, ")"); } if (s --- dist/index.umd.min.js (bundled) --- /*! * @antv/g-lottie-player * @description A lottie player for G * @version 1.1.1 * @date 12/24/2025, 11:56:01 AM * @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.LottiePlayer={}),e.window.G)}(this,function(e,t){"use strict";function n(e){return n="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},n(e)}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function r(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function o(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;i.leng
