@midscene/visualizer 1.5.2 → 1.5.3-beta-20260305031416.0
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/dist/es/component/blackboard/index.css +82 -4
- package/dist/es/component/blackboard/index.mjs +73 -301
- package/dist/es/component/player/index.css +144 -119
- package/dist/es/component/player/index.mjs +468 -830
- package/dist/es/component/player/remotion/StepScene.mjs +190 -0
- package/dist/es/component/player/remotion/derive-frame-state.mjs +207 -0
- package/dist/es/component/player/remotion/export-branded-video.mjs +210 -0
- package/dist/es/component/player/remotion/frame-calculator.mjs +149 -0
- package/dist/es/component/player/use-frame-player.mjs +88 -0
- package/dist/es/component/universal-playground/index.mjs +14 -1
- package/dist/es/hooks/usePlaygroundExecution.mjs +11 -7
- package/dist/es/index.mjs +2 -2
- package/dist/es/store/store.mjs +9 -0
- package/dist/es/utils/replay-scripts.mjs +78 -59
- package/dist/lib/component/blackboard/index.css +82 -4
- package/dist/lib/component/blackboard/index.js +73 -307
- package/dist/lib/component/player/index.css +144 -119
- package/dist/lib/component/player/index.js +466 -828
- package/dist/lib/component/player/remotion/StepScene.js +224 -0
- package/dist/lib/component/player/remotion/derive-frame-state.js +241 -0
- package/dist/lib/component/player/remotion/export-branded-video.js +244 -0
- package/dist/lib/component/player/remotion/frame-calculator.js +186 -0
- package/dist/lib/component/player/use-frame-player.js +122 -0
- package/dist/lib/component/universal-playground/index.js +14 -1
- package/dist/lib/hooks/usePlaygroundExecution.js +11 -7
- package/dist/lib/index.js +3 -0
- package/dist/lib/store/store.js +9 -0
- package/dist/lib/utils/replay-scripts.js +80 -58
- package/dist/types/component/blackboard/index.d.ts +0 -4
- package/dist/types/component/player/index.d.ts +0 -1
- package/dist/types/component/player/remotion/StepScene.d.ts +9 -0
- package/dist/types/component/player/remotion/derive-frame-state.d.ts +38 -0
- package/dist/types/component/player/remotion/export-branded-video.d.ts +2 -0
- package/dist/types/component/player/remotion/frame-calculator.d.ts +35 -0
- package/dist/types/component/player/use-frame-player.d.ts +17 -0
- package/dist/types/hooks/usePlaygroundExecution.d.ts +15 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/store.d.ts +2 -0
- package/dist/types/utils/replay-scripts.d.ts +16 -1
- package/package.json +5 -8
- package/dist/es/utils/pixi-loader.mjs +0 -42
- package/dist/lib/utils/pixi-loader.js +0 -82
- package/dist/types/utils/pixi-loader.d.ts +0 -5
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
loadTexture: ()=>loadTexture,
|
|
28
|
-
getTexture: ()=>getTexture,
|
|
29
|
-
getTextureFromCache: ()=>getTextureFromCache
|
|
30
|
-
});
|
|
31
|
-
require("pixi.js/unsafe-eval");
|
|
32
|
-
const external_pixi_js_namespaceObject = require("pixi.js");
|
|
33
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
34
|
-
try {
|
|
35
|
-
var info = gen[key](arg);
|
|
36
|
-
var value = info.value;
|
|
37
|
-
} catch (error) {
|
|
38
|
-
reject(error);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (info.done) resolve(value);
|
|
42
|
-
else Promise.resolve(value).then(_next, _throw);
|
|
43
|
-
}
|
|
44
|
-
function _async_to_generator(fn) {
|
|
45
|
-
return function() {
|
|
46
|
-
var self = this, args = arguments;
|
|
47
|
-
return new Promise(function(resolve, reject) {
|
|
48
|
-
var gen = fn.apply(self, args);
|
|
49
|
-
function _next(value) {
|
|
50
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
51
|
-
}
|
|
52
|
-
function _throw(err) {
|
|
53
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
54
|
-
}
|
|
55
|
-
_next(void 0);
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
const globalTextureMap = new Map();
|
|
60
|
-
const loadTexture = (img)=>_async_to_generator(function*() {
|
|
61
|
-
if (globalTextureMap.has(img)) return;
|
|
62
|
-
return external_pixi_js_namespaceObject.Assets.load(img).then((texture)=>{
|
|
63
|
-
globalTextureMap.set(img, texture);
|
|
64
|
-
});
|
|
65
|
-
})();
|
|
66
|
-
const getTextureFromCache = (name)=>globalTextureMap.get(name);
|
|
67
|
-
const getTexture = (name)=>_async_to_generator(function*() {
|
|
68
|
-
if (globalTextureMap.has(name)) return globalTextureMap.get(name);
|
|
69
|
-
yield loadTexture(name);
|
|
70
|
-
return globalTextureMap.get(name);
|
|
71
|
-
})();
|
|
72
|
-
exports.getTexture = __webpack_exports__.getTexture;
|
|
73
|
-
exports.getTextureFromCache = __webpack_exports__.getTextureFromCache;
|
|
74
|
-
exports.loadTexture = __webpack_exports__.loadTexture;
|
|
75
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
76
|
-
"getTexture",
|
|
77
|
-
"getTextureFromCache",
|
|
78
|
-
"loadTexture"
|
|
79
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
80
|
-
Object.defineProperty(exports, '__esModule', {
|
|
81
|
-
value: true
|
|
82
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import 'pixi.js/unsafe-eval';
|
|
2
|
-
import * as PIXI from 'pixi.js';
|
|
3
|
-
export declare const loadTexture: (img: string) => Promise<void>;
|
|
4
|
-
export declare const getTextureFromCache: (name: string) => PIXI.Texture | undefined;
|
|
5
|
-
export declare const getTexture: (name: string) => Promise<PIXI.Texture | undefined>;
|