x-runtime-lib 0.8.73 → 0.8.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.73",
4
+ "version": "0.8.75",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "@tresjs/core": "^5.1.0",
28
28
  "axios": "^1.13.2",
29
29
  "echarts": "^6.0.0",
30
- "js-interpreter": "^6.0.1",
31
30
  "lodash-es": "^4.17.21",
32
31
  "mitt": "^3.0.1",
32
+ "quickjs-emscripten": "^0.31.0",
33
33
  "three": "^0.181.0",
34
34
  "vue": "^3.5.23",
35
35
  "vue-i18n": "^11.1.12",
@@ -1 +0,0 @@
1
- export declare const base = "\nvar __env__ = 'dev'\nvar __mode__ = 'editor'\n\nfunction __getEnvV1__() {\n return __env__\n}\n";
@@ -1 +0,0 @@
1
- export declare const event = "\nvar __events__ = {}\n\nfunction __onEventV1__(id, callback) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (typeof(callback) !== 'function') {\n return\n }\n if (!__events__[id]) {\n __events__[id] = []\n }\n var callbacks = __events__[id]\n for (var i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback) {\n return\n }\n }\n callbacks.push(callback)\n}\n\nfunction __triggerEventInner__(id, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (!__events__[id]) {\n return\n }\n var callbacks = __events__[id]\n if (!callbacks) {\n return\n }\n for (var i = 0; i < callbacks.length; i++) {\n callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)\n }\n}\n";
@@ -1 +0,0 @@
1
- export declare const runtime: string;
@@ -1 +0,0 @@
1
- export declare const timer = "\nvar __timers__ = {}\nvar __currTimerId__ = 0\n\nfunction __createTimerV1__(interval, loop, count, immediate, callback) {\n if (!loop && count <= 0) {\n return\n }\n __currTimerId__ = __currTimerId__ + 1\n var timer = {}\n timer.id = __currTimerId__\n timer.interval = interval\n timer.loop = loop\n timer.count = count\n timer.immediate = immediate\n timer.callback = callback\n __timers__[timer.id] = timer\n if (timer.immediate) {\n __timeoutCallbackV1__(timer.id)\n } else {\n __timeoutV1__(timer.id, timer.interval)\n }\n}\n\nfunction __timeoutCallbackV1__(timerId) {\n var timer = __timers__[timerId]\n if (timer) {\n timer.callback()\n // \u4FEE\u6539\u8BA1\u6570\n if (!timer.loop) {\n timer.count = timer.count - 1\n }\n // \u89E6\u53D1\u8D85\u65F6\n if (timer.loop || timer.count > 0) {\n __timeoutV1__(timer.id, timer.interval)\n }\n // \u56DE\u6536\n if (!timer.loop && timer.count <= 0) {\n delete __timers__[timer.id]\n }\n }\n}\n";