From aed96ad7e115f8e10dc574e902fa5d78165f2386 Mon Sep 17 00:00:00 2001 From: Max Ziebell <1752114+worldoptimizer@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:22:29 +0200 Subject: [PATCH] v1.4.2 --- HypeDocumentLoader.min.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/HypeDocumentLoader.min.js b/HypeDocumentLoader.min.js index 4c84c54..7aa796e 100644 --- a/HypeDocumentLoader.min.js +++ b/HypeDocumentLoader.min.js @@ -1,8 +1,9 @@ /* - Hype DocumentLoader 1.4.1 -copyright (c) 2021 Max Ziebell, (https://maxziebell.de). MIT-license + Hype DocumentLoader 1.4.2 +copyright (c) 2024 Max Ziebell, (https://maxziebell.de). MIT-license */ -!1==="HypeDocumentLoader"in window&&(window.HypeDocumentLoader=function(){function q(b,h,a){b.documentLoaderInfo=function(){return n[this.documentName()]};b.notifyEvent=function(c,d){return l(c,null,d,this)};b.notifyEventAdditivum=function(c,d,e){return l(c,e,d,this)}}function l(b,h,a,c){var d=window.HYPE_eventListeners;if(null!=d){for(var e,f=0;f=d;d++)d!=b&&(delete window["HYPE_"+d+"T"],delete window["HYPE_"+d+"F"]);n=!1}}function u(b,d){if(b){var k=function(){var a=arguments;a.length&&t(d);var c={documentName:a[0],mainContainerID:a[1],resources:a[2],resourcesFolderName:a[3],headAdditions:a[4],functions:a[5],sceneContainers:a[6],scenes:a[7],persistentSymbolDescendants:a[8],javascriptMapping:a[9],timingFunctions:a[10],loadingScreenFunction:a[11],hasPhysics:a[12], +drawSceneBackgrounds:a[13],initialSceneIndex:a[14],useGraphicsAcceleration:a[15],useCSSReset:a[16],useCSSPositioning:a[17],useWebAudioAPI:a[18],useTouchEvents:a[19]},f=JSON.parse(JSON.stringify(c));for(g in a[5])f.functions[g]=a[5][g];f.loadingScreenFunction=a[11];var e=l({type:"HypeDocumentData",data:f},"data");if("object"===typeof e){a=["hasPhysics","documentName","mainContainerID"];for(g in a)delete e[a[g]];a=Object.keys(c).map(function(h){return e[h]?(c[h]=e[h],e[h]):c[h]})}var m=new (Function.prototype.bind.apply(p[b], +[null].concat(Array.from(a))));v(m.API);var g={type:"HypeDocumentRender",render:function(){window.HYPE.documents[c.documentName]=m.API;m.z_o()},name:c.documentName,id:c.mainContainerID,data:c};q[a[0]]=c;return 0!=l(g)?m:{API:{},z_o:function(){}}};Object.defineProperty(window,b,{enumerable:!0,configurable:!0,get:function(){return p[b]?k:void 0},set:function(a){p[b]=a}})}else console.log("Hype DocumentLoader: Please provide a build")}let p={},q={},n=!0;(function(){if(n)for(let b=750;800>=b;b++)r(b, +!0)})();!1==="HYPE_eventListeners"in window&&(window.HYPE_eventListeners=[]);return{version:"1.4.2",setBuild:r}}());