visual-song 0.12.7 → 0.12.9
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ function _define_property(obj, key, value) {
|
|
|
14
14
|
}
|
|
15
15
|
return obj;
|
|
16
16
|
}
|
|
17
|
-
var
|
|
17
|
+
var VSModule = (()=>{
|
|
18
18
|
var _scriptName = import.meta.url;
|
|
19
19
|
return function(moduleArg = {}) {
|
|
20
20
|
var moduleRtn;
|
|
@@ -3677,7 +3677,7 @@ const VisualSong = /*#__PURE__*/ forwardRef(function VisualSong({ style, mainLoo
|
|
|
3677
3677
|
}
|
|
3678
3678
|
}
|
|
3679
3679
|
async function _init() {
|
|
3680
|
-
await
|
|
3680
|
+
await VSModule().then((tempModule)=>{
|
|
3681
3681
|
module.current = tempModule;
|
|
3682
3682
|
module.current.initialize(canvasRef.current.width, canvasRef.current.height, `#${canvasRef.current.id}`);
|
|
3683
3683
|
glContextRef.current = canvasRef.current.getContext('webgl2');
|