@galacean/cli 2.0.0-alpha.23 → 2.0.0-alpha.24
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/cli.bundle.cjs +74 -12
- package/dist/preview-client/_static/{Accordion-75b7b34e.js → Accordion-f938dadf.js} +1 -1
- package/dist/preview-client/_static/{AmbientLightAsset-02786385.js → AmbientLightAsset-e34de607.js} +1 -1
- package/dist/preview-client/_static/{AnimationClipAsset-f96e0e56.js → AnimationClipAsset-b084da2a.js} +1 -1
- package/dist/preview-client/_static/{AnimatorControllerAsset-23cceb12.js → AnimatorControllerAsset-6cc04274.js} +1 -1
- package/dist/preview-client/_static/{AnimatorStore-48d2c14c.js → AnimatorStore-0bc90c37.js} +1 -1
- package/dist/preview-client/_static/{AssetViewer-1073ddb5.js → AssetViewer-d2c63b00.js} +1 -1
- package/dist/preview-client/_static/{AudioAsset-6218f2bb.js → AudioAsset-9c715952.js} +1 -1
- package/dist/preview-client/_static/{AudioComponent-16766db8.js → AudioComponent-80d06ef4.js} +1 -1
- package/dist/preview-client/_static/{Callout-312ada1c.js → Callout-48e71f13.js} +1 -1
- package/dist/preview-client/_static/{CameraComponent-c919c2dd.js → CameraComponent-9c9db3fb.js} +1 -1
- package/dist/preview-client/_static/{Component-6d1e73e5.js → Component-b95aa2af.js} +1 -1
- package/dist/preview-client/_static/{DirectLight-166a628d.js → DirectLight-b0490ef7.js} +1 -1
- package/dist/preview-client/_static/{FontAsset-8367aad9.js → FontAsset-6e9c0549.js} +1 -1
- package/dist/preview-client/_static/{FormItemArray-53c58844.js → FormItemArray-b2a3d249.js} +1 -1
- package/dist/preview-client/_static/{GlTFAsset-5c8e7813.js → GlTFAsset-83e8190e.js} +1 -1
- package/dist/preview-client/_static/{IconPlus-5fbc029e.js → IconPlus-172c6c17.js} +1 -1
- package/dist/preview-client/_static/{IconPointFilled-dbf63b5c.js → IconPointFilled-bad94cf1.js} +1 -1
- package/dist/preview-client/_static/{LightBaseComponent-545c5ee8.js → LightBaseComponent-b4854e8a.js} +1 -1
- package/dist/preview-client/_static/{LottieAnimationComponent-4db5a6c2.js → LottieAnimationComponent-efd5da2b.js} +1 -1
- package/dist/preview-client/_static/{MarkdownAsset-58491579.js → MarkdownAsset-b42846c0.js} +1 -1
- package/dist/preview-client/_static/{MaterialAsset-c83c7d3d.js → MaterialAsset-0b9d7eba.js} +1 -1
- package/dist/preview-client/_static/{MaterialInspector-237b6a5e.js → MaterialInspector-23ea0240.js} +1 -1
- package/dist/preview-client/_static/{Menu-a427d272.js → Menu-05c1f0a4.js} +1 -1
- package/dist/preview-client/_static/{MeshAsset-1c11d7ab.js → MeshAsset-85e99837.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererBaseComponent-8fd1f0df.js → MeshRendererBaseComponent-5621d663.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererComponent-082c1a1a.js → MeshRendererComponent-c3c3c683.js} +1 -1
- package/dist/preview-client/_static/{MeshThumbnail-d8ee2674.js → MeshThumbnail-b1283749.js} +1 -1
- package/dist/preview-client/_static/{ParticleRendererComponent-ff12cdb1.js → ParticleRendererComponent-94656239.js} +1 -1
- package/dist/preview-client/_static/{PhysicsMaterialAsset-7e86c718.js → PhysicsMaterialAsset-cb9afb6e.js} +1 -1
- package/dist/preview-client/_static/{PhysicsStore-66a9a461.js → PhysicsStore-0a751fa0.js} +1 -1
- package/dist/preview-client/_static/{PointLight-a9992e50.js → PointLight-a2bfed75.js} +1 -1
- package/dist/preview-client/_static/{PostProcessComponent-c17ac553.js → PostProcessComponent-040cf521.js} +1 -1
- package/dist/preview-client/_static/{PrefabAsset-a6750aec.js → PrefabAsset-265f6f48.js} +1 -1
- package/dist/preview-client/_static/{PrimitiveMesh-388f3f36.js → PrimitiveMesh-70c93e7e.js} +1 -1
- package/dist/preview-client/_static/{ReferencedMaterial-f7ea80fb.js → ReferencedMaterial-831d0583.js} +1 -1
- package/dist/preview-client/_static/{RenderTargetAsset-c48990a4.js → RenderTargetAsset-b810caf3.js} +1 -1
- package/dist/preview-client/_static/{SceneAsset-1e802e29.js → SceneAsset-d05b1a79.js} +1 -1
- package/dist/preview-client/_static/{ShaderAsset-256afb00.js → ShaderAsset-370b6f1c.js} +1 -1
- package/dist/preview-client/_static/{ShaderChunkAsset-a42443fc.js → ShaderChunkAsset-e3487bd1.js} +1 -1
- package/dist/preview-client/_static/{ShaderUIScriptAsset-5acb02f5.js → ShaderUIScriptAsset-ebf57ceb.js} +1 -1
- package/dist/preview-client/_static/{SkinnedMeshRendererComponent-934c055b.js → SkinnedMeshRendererComponent-ee33da25.js} +1 -1
- package/dist/preview-client/_static/{SpineAnimationComponent-b04ba1ee.js → SpineAnimationComponent-12e694e8.js} +1 -1
- package/dist/preview-client/_static/{SpineSkeletonDataAsset-fff17383.js → SpineSkeletonDataAsset-0dffbb4d.js} +1 -1
- package/dist/preview-client/_static/{SpotLight-617d8957.js → SpotLight-ada565f2.js} +1 -1
- package/dist/preview-client/_static/{SpriteBaseComponent-062cb4f8.js → SpriteBaseComponent-3156cb3b.js} +1 -1
- package/dist/preview-client/_static/{SpriteMaskComponent-43ae2b1f.js → SpriteMaskComponent-a32024e1.js} +1 -1
- package/dist/preview-client/_static/{SpriteRendererComponent-4f52910c.js → SpriteRendererComponent-489486e0.js} +1 -1
- package/dist/preview-client/_static/{TextBaseComponent-bd7ed8ee.js → TextBaseComponent-520dea39.js} +1 -1
- package/dist/preview-client/_static/{TextRendererComponent-8db74598.js → TextRendererComponent-6be5f80c.js} +1 -1
- package/dist/preview-client/_static/{TextureAsset-d88af413.js → TextureAsset-9cd94531.js} +1 -1
- package/dist/preview-client/_static/{Tooltip-3bc02b10.js → Tooltip-71e5a4e7.js} +1 -1
- package/dist/preview-client/_static/{TrailRendererComponent-42a58f1d.js → TrailRendererComponent-74bf88c0.js} +1 -1
- package/dist/preview-client/_static/{TransformBaseComponent-77478ccb.js → TransformBaseComponent-0d241199.js} +1 -1
- package/dist/preview-client/_static/{TransformComponent-0f395b08.js → TransformComponent-49d279f5.js} +1 -1
- package/dist/preview-client/_static/{XRReferenceImageAsset-d6d8e59c.js → XRReferenceImageAsset-79e78558.js} +1 -1
- package/dist/preview-client/_static/{audio-d14900e2.js → audio-5d0ddf55.js} +1 -1
- package/dist/preview-client/_static/{createOnModelChange-c010a049.js → createOnModelChange-e65da908.js} +1 -1
- package/dist/preview-client/_static/{createReactComponent-d9f8b1af.js → createReactComponent-cb70ea50.js} +1 -1
- package/dist/preview-client/_static/index-0fef73f8.js +1 -0
- package/dist/preview-client/_static/index-1e036622.js +1 -0
- package/dist/preview-client/_static/index-1fd4207a.js +1 -0
- package/dist/preview-client/_static/{index-9feced3c.js → index-46c87b46.js} +1 -1
- package/dist/preview-client/_static/index-6649d404.js +1 -0
- package/dist/preview-client/_static/{index-f165015e.js → index-788e8750.js} +1 -1
- package/dist/preview-client/_static/{index-75e7d483.js → index-7e414715.js} +1 -1
- package/dist/preview-client/_static/index-87ef1c72.js +1 -0
- package/dist/preview-client/_static/{index-f4d91eb4.js → index-b13216a9.js} +1 -1
- package/dist/preview-client/_static/{index-4e7bb453.js → index-b4bde36a.js} +1 -1
- package/dist/preview-client/_static/{index-071c0532.js → index-d00c8bc3.js} +1 -1
- package/dist/preview-client/_static/index-d9ee84ce.js +1 -0
- package/dist/preview-client/_static/{index-365736f7.js → index-debbe073.js} +1 -1
- package/dist/preview-client/_static/{index-3660a664.js → index-e44b357e.js} +4 -4
- package/dist/preview-client/_static/{index-eb74362c.js → index-ea7fe254.js} +1 -1
- package/dist/preview-client/_static/{index-8e169cc2.js → index-f7bd6fef.js} +1 -1
- package/dist/preview-client/_static/{ktx2-encoder-e9b1c83a.js → ktx2-encoder-522fc017.js} +1 -1
- package/dist/preview-client/_static/{module-4a37a616.js → module-5547be1c.js} +1 -1
- package/dist/preview-client/_static/{module-81a206c0.js → module-57b6e417.js} +1 -1
- package/dist/preview-client/_static/{module-1c91b4e1.js → module-5906e0d4.js} +1 -1
- package/dist/preview-client/_static/{postmen-c7605b45.js → postmen-443b3e5f.js} +1 -1
- package/dist/preview-client/_static/{shader-data-utils-6ef12596.js → shader-data-utils-000170ae.js} +1 -1
- package/dist/preview-client/index.html +1 -1
- package/package.json +1 -1
- package/dist/preview-client/_static/index-1c260f88.js +0 -1
- package/dist/preview-client/_static/index-44137d7e.js +0 -1
- package/dist/preview-client/_static/index-5ae70b23.js +0 -1
- package/dist/preview-client/_static/index-be42fc1e.js +0 -1
- package/dist/preview-client/_static/index-cfa0dccc.js +0 -1
- package/dist/preview-client/_static/index-f3d42be3.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var vt=Object.defineProperty;var yt=(t,e,r)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var D=(t,e,r)=>(yt(t,typeof e!="symbol"?e+"":e,r),r);import{gr as gt,gs as S,f5 as St,e as bt,bX as H,gt as wt,gu as Rt,c_ as Ct,C as Et,j as At,gv as Ae,dL as xt}from"./index-
|
|
1
|
+
var vt=Object.defineProperty;var yt=(t,e,r)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var D=(t,e,r)=>(yt(t,typeof e!="symbol"?e+"":e,r),r);import{gr as gt,gs as S,f5 as St,e as bt,bX as H,gt as wt,gu as Rt,c_ as Ct,C as Et,j as At,gv as Ae,dL as xt}from"./index-e44b357e.js";import{r as h}from"./index-debbe073.js";const xe="https://editor-local-redirect.invalid";function Ot(t){const e=t.hostname,r=e.split(".").filter(Boolean);return r.length>=2?r.slice(-2).join("."):e}function Pt(t,e="/editor"){if(t.startsWith("/")&&!t.startsWith("//"))try{if(new URL(t,xe).origin===xe)return t}catch{}try{const r=new URL(t.startsWith("http")?t:`https://${t}`),s=Ot(r);if(gt.some(a=>s===a))return t}catch{console.warn("Invalid redirect URL format:",t)}return e}function et(){const t=window.location.host;return t.includes("local.dev.alipay.net")?S.local_test:t.includes("local.alipay.net")||t.includes("localhost")?S.local:/dev\.alipay\.net/.test(t)||/site-dev-\w+\.alipay\.net/.test(t)?S.dev:/test\.alipay\.net/.test(t)?S.test:/oasiseditorshell-pre/.test(t)||t.includes("local.alipay.com")?S.pre:S.prod}function It(t=""){t.startsWith("?")?window.location.href=`/editor/signin${t}`:window.location.href=`/editor/signin${t?`?${t}`:""}`}var ye={exports:{}},tt=function(e,r){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(r,n)}},qt=tt,T=Object.prototype.toString;function ge(t){return Array.isArray(t)}function he(t){return typeof t>"u"}function Tt(t){return t!==null&&!he(t)&&t.constructor!==null&&!he(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function rt(t){return T.call(t)==="[object ArrayBuffer]"}function Ut(t){return T.call(t)==="[object FormData]"}function Dt(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rt(t.buffer),e}function Nt(t){return typeof t=="string"}function kt(t){return typeof t=="number"}function nt(t){return t!==null&&typeof t=="object"}function J(t){if(T.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Lt(t){return T.call(t)==="[object Date]"}function $t(t){return T.call(t)==="[object File]"}function Bt(t){return T.call(t)==="[object Blob]"}function st(t){return T.call(t)==="[object Function]"}function Ft(t){return nt(t)&&st(t.pipe)}function jt(t){return T.call(t)==="[object URLSearchParams]"}function _t(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Mt(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Se(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ge(t))for(var r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function me(){var t={};function e(n,a){J(t[a])&&J(n)?t[a]=me(t[a],n):J(n)?t[a]=me({},n):ge(n)?t[a]=n.slice():t[a]=n}for(var r=0,s=arguments.length;r<s;r++)Se(arguments[r],e);return t}function Ht(t,e,r){return Se(e,function(n,a){r&&typeof n=="function"?t[a]=qt(n,r):t[a]=n}),t}function Jt(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var b={isArray:ge,isArrayBuffer:rt,isBuffer:Tt,isFormData:Ut,isArrayBufferView:Dt,isString:Nt,isNumber:kt,isObject:nt,isPlainObject:J,isUndefined:he,isDate:Lt,isFile:$t,isBlob:Bt,isFunction:st,isStream:Ft,isURLSearchParams:jt,isStandardBrowserEnv:Mt,forEach:Se,merge:me,extend:Ht,trim:_t,stripBOM:Jt},k=b;function Oe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var at=function(e,r,s){if(!r)return e;var n;if(s)n=s(r);else if(k.isURLSearchParams(r))n=r.toString();else{var a=[];k.forEach(r,function(c,f){c===null||typeof c>"u"||(k.isArray(c)?f=f+"[]":c=[c],k.forEach(c,function(u){k.isDate(u)?u=u.toISOString():k.isObject(u)&&(u=JSON.stringify(u)),a.push(Oe(f)+"="+Oe(u))}))}),n=a.join("&")}if(n){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e},Vt=b;function z(){this.handlers=[]}z.prototype.use=function(e,r,s){return this.handlers.push({fulfilled:e,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};z.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};z.prototype.forEach=function(e){Vt.forEach(this.handlers,function(s){s!==null&&e(s)})};var zt=z,Xt=b,Wt=function(e,r){Xt.forEach(e,function(n,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[a])})},ot=function(e,r,s,n,a){return e.config=r,s&&(e.code=s),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y,Pe;function ut(){if(Pe)return Y;Pe=1;var t=ot;return Y=function(r,s,n,a,o){var i=new Error(r);return t(i,s,n,a,o)},Y}var Z,Ie;function Gt(){if(Ie)return Z;Ie=1;var t=ut();return Z=function(r,s,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):s(t("Request failed with status code "+n.status,n.config,null,n.request,n))},Z}var Q,qe;function Kt(){if(qe)return Q;qe=1;var t=b;return Q=t.isStandardBrowserEnv()?function(){return{write:function(s,n,a,o,i,c){var f=[];f.push(s+"="+encodeURIComponent(n)),t.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),t.isString(o)&&f.push("path="+o),t.isString(i)&&f.push("domain="+i),c===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(s){var n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Q}var ee,Te;function Yt(){return Te||(Te=1,ee=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),ee}var te,Ue;function Zt(){return Ue||(Ue=1,te=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),te}var re,De;function Qt(){if(De)return re;De=1;var t=Yt(),e=Zt();return re=function(s,n){return s&&!t(n)?e(s,n):n},re}var ne,Ne;function er(){if(Ne)return ne;Ne=1;var t=b,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return ne=function(s){var n={},a,o,i;return s&&t.forEach(s.split(`
|
|
2
2
|
`),function(f){if(i=f.indexOf(":"),a=t.trim(f.substr(0,i)).toLowerCase(),o=t.trim(f.substr(i+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([o]):n[a]=n[a]?n[a]+", "+o:o}}),n},ne}var se,ke;function tr(){if(ke)return se;ke=1;var t=b;return se=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),n;function a(o){var i=o;return r&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=a(window.location.href),function(i){var c=t.isString(i)?a(i):i;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}(),se}var ae,Le;function X(){if(Le)return ae;Le=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,ae=t,ae}var oe,$e;function Be(){if($e)return oe;$e=1;var t=b,e=Gt(),r=Kt(),s=at,n=Qt(),a=er(),o=tr(),i=ut(),c=it,f=X();return oe=function(u){return new Promise(function(v,m){var y=u.data,C=u.headers,P=u.responseType,x;function B(){u.cancelToken&&u.cancelToken.unsubscribe(x),u.signal&&u.signal.removeEventListener("abort",x)}t.isFormData(y)&&delete C["Content-Type"];var d=new XMLHttpRequest;if(u.auth){var j=u.auth.username||"",I=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";C.Authorization="Basic "+btoa(j+":"+I)}var Re=n(u.baseURL,u.url);d.open(u.method.toUpperCase(),s(Re,u.params,u.paramsSerializer),!0),d.timeout=u.timeout;function Ce(){if(d){var E="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,N=!P||P==="text"||P==="json"?d.responseText:d.response,U={data:N,status:d.status,statusText:d.statusText,headers:E,config:u,request:d};e(function(K){v(K),B()},function(K){m(K),B()},U),d=null}}if("onloadend"in d?d.onloadend=Ce:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(Ce)},d.onabort=function(){d&&(m(i("Request aborted",u,"ECONNABORTED",d)),d=null)},d.onerror=function(){m(i("Network Error",u,null,d)),d=null},d.ontimeout=function(){var N=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",U=u.transitional||c;u.timeoutErrorMessage&&(N=u.timeoutErrorMessage),m(i(N,u,U.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},t.isStandardBrowserEnv()){var Ee=(u.withCredentials||o(Re))&&u.xsrfCookieName?r.read(u.xsrfCookieName):void 0;Ee&&(C[u.xsrfHeaderName]=Ee)}"setRequestHeader"in d&&t.forEach(C,function(N,U){typeof y>"u"&&U.toLowerCase()==="content-type"?delete C[U]:d.setRequestHeader(U,N)}),t.isUndefined(u.withCredentials)||(d.withCredentials=!!u.withCredentials),P&&P!=="json"&&(d.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&d.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(x=function(E){d&&(m(!E||E&&E.type?new f("canceled"):E),d.abort(),d=null)},u.cancelToken&&u.cancelToken.subscribe(x),u.signal&&(u.signal.aborted?x():u.signal.addEventListener("abort",x))),y||(y=null),d.send(y)})},oe}var g=b,Fe=Wt,rr=ot,nr=it,sr={"Content-Type":"application/x-www-form-urlencoded"};function je(t,e){!g.isUndefined(t)&&g.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function ar(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Be()),t}function or(t,e,r){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}var W={transitional:nr,adapter:ar(),transformRequest:[function(e,r){return Fe(r,"Accept"),Fe(r,"Content-Type"),g.isFormData(e)||g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)?e:g.isArrayBufferView(e)?e.buffer:g.isURLSearchParams(e)?(je(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):g.isObject(e)||r&&r["Content-Type"]==="application/json"?(je(r,"application/json"),or(e)):e}],transformResponse:[function(e){var r=this.transitional||W.transitional,s=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,a=!s&&this.responseType==="json";if(a||n&&g.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?rr(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};g.forEach(["delete","get","head"],function(e){W.headers[e]={}});g.forEach(["post","put","patch"],function(e){W.headers[e]=g.merge(sr)});var be=W,ir=b,ur=be,cr=function(e,r,s){var n=this||ur;return ir.forEach(s,function(o){e=o.call(n,e,r)}),e},ie,_e;function ct(){return _e||(_e=1,ie=function(e){return!!(e&&e.__CANCEL__)}),ie}var Me=b,ue=cr,lr=ct(),dr=be,fr=X();function ce(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fr("canceled")}var pr=function(e){ce(e),e.headers=e.headers||{},e.data=ue.call(e,e.data,e.headers,e.transformRequest),e.headers=Me.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Me.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||dr.adapter;return r(e).then(function(n){return ce(e),n.data=ue.call(e,n.data,n.headers,e.transformResponse),n},function(n){return lr(n)||(ce(e),n&&n.response&&(n.response.data=ue.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},w=b,lt=function(e,r){r=r||{};var s={};function n(l,u){return w.isPlainObject(l)&&w.isPlainObject(u)?w.merge(l,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function a(l){if(w.isUndefined(r[l])){if(!w.isUndefined(e[l]))return n(void 0,e[l])}else return n(e[l],r[l])}function o(l){if(!w.isUndefined(r[l]))return n(void 0,r[l])}function i(l){if(w.isUndefined(r[l])){if(!w.isUndefined(e[l]))return n(void 0,e[l])}else return n(void 0,r[l])}function c(l){if(l in r)return n(e[l],r[l]);if(l in e)return n(void 0,e[l])}var f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return w.forEach(Object.keys(e).concat(Object.keys(r)),function(u){var p=f[u]||a,v=p(u);w.isUndefined(v)&&p!==c||(s[u]=v)}),s},le,He;function dt(){return He||(He=1,le={version:"0.26.1"}),le}var hr=dt().version,we={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){we[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});var Je={};we.transitional=function(e,r,s){function n(a,o){return"[Axios v"+hr+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return function(a,o,i){if(e===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!Je[o]&&(Je[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,i):!0}};function mr(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var s=Object.keys(t),n=s.length;n-- >0;){var a=s[n],o=e[a];if(o){var i=t[a],c=i===void 0||o(i,a,t);if(c!==!0)throw new TypeError("option "+a+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+a)}}var vr={assertOptions:mr,validators:we},ft=b,yr=at,Ve=zt,ze=pr,G=lt,pt=vr,L=pt.validators;function F(t){this.defaults=t,this.interceptors={request:new Ve,response:new Ve}}F.prototype.request=function(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=G(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var s=r.transitional;s!==void 0&&pt.assertOptions(s,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(a=a&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var i;if(!a){var c=[ze,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(r);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=r;n.length;){var l=n.shift(),u=n.shift();try{f=l(f)}catch(p){u(p);break}}try{i=ze(f)}catch(p){return Promise.reject(p)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};F.prototype.getUri=function(e){return e=G(this.defaults,e),yr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};ft.forEach(["delete","get","head","options"],function(e){F.prototype[e]=function(r,s){return this.request(G(s||{},{method:e,url:r,data:(s||{}).data}))}});ft.forEach(["post","put","patch"],function(e){F.prototype[e]=function(r,s,n){return this.request(G(n||{},{method:e,url:r,data:s}))}});var gr=F,de,Xe;function Sr(){if(Xe)return de;Xe=1;var t=X();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(o){s=o});var n=this;this.promise.then(function(a){if(n._listeners){var o,i=n._listeners.length;for(o=0;o<i;o++)n._listeners[o](a);n._listeners=null}}),this.promise.then=function(a){var o,i=new Promise(function(c){n.subscribe(c),o=c}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},r(function(o){n.reason||(n.reason=new t(o),s(n.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]},e.prototype.unsubscribe=function(s){if(this._listeners){var n=this._listeners.indexOf(s);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var s,n=new e(function(o){s=o});return{token:n,cancel:s}},de=e,de}var fe,We;function br(){return We||(We=1,fe=function(e){return function(s){return e.apply(null,s)}}),fe}var pe,Ge;function wr(){if(Ge)return pe;Ge=1;var t=b;return pe=function(r){return t.isObject(r)&&r.isAxiosError===!0},pe}var Ke=b,Rr=tt,V=gr,Cr=lt,Er=be;function ht(t){var e=new V(t),r=Rr(V.prototype.request,e);return Ke.extend(r,V.prototype,e),Ke.extend(r,e),r.create=function(n){return ht(Cr(t,n))},r}var A=ht(Er);A.Axios=V;A.Cancel=X();A.CancelToken=Sr();A.isCancel=ct();A.VERSION=dt().version;A.all=function(e){return Promise.all(e)};A.spread=br();A.isAxiosError=wr();ye.exports=A;ye.exports.default=A;var Ar=ye.exports,xr=Ar;const Or=St(xr);/*! js-cookie v3.0.1 | MIT */function _(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)t[s]=r[s]}return t}var Pr={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ve(t,e){function r(n,a,o){if(!(typeof document>"u")){o=_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,o[c]!==!0&&(i+="="+o[c].split(";")[0]));return document.cookie=n+"="+t.write(a,n)+i}}function s(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var a=document.cookie?document.cookie.split("; "):[],o={},i=0;i<a.length;i++){var c=a[i].split("="),f=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(o[l]=t.read(f,l),n===l)break}catch{}}return n?o[n]:o}}return Object.create({set:r,get:s,remove:function(n,a){r(n,"",_({},a,{expires:-1}))},withAttributes:function(n){return ve(this.converter,_({},this.attributes,n))},withConverter:function(n){return ve(_({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Ye=ve(Pr,{path:"/"});const Ir="https://oasisbe.test.alipay.net",qr="https://local.dev.alipay.net:8443";let O;function Tr(){if(O!==void 0)return O;switch(et()){case S.local:case S.dev:O=qr;break;case S.local_test:case S.test:O=Ir;break;case S.pre:O="https://oasisbe-pre.alipay.com";break;default:{const e=location.host;/alipay\.com/.test(e)?O="https://oasisbe.alipay.com":/antgroup-inc\.cn/.test(e)?O="https://oasisbe.antgroup-inc.cn":O="https://oasisbe.antgroup.com";break}}return O}const Ur=["/api/postmen/createAuthToken"],Dr=()=>{let t=0;const e=Or.create({baseURL:Tr(),withCredentials:!0,headers:{"x-client-platform":"web-editor","x-csrf-token":Ye.get("ctoken")}});return e.interceptors.response.use(r=>r.data,async r=>{var a,o,i,c,f,l,u,p,v,m,y,C,P,x,B,d,j;if(r.message==="canceled"||(console.error("err response: ",r.response),!r.response))throw r;if(!((i=(o=(a=r.response)==null?void 0:a.config)==null?void 0:o.headers)!=null&&i["x-csrf-token"])&&r.response.status===403&&t++<3){console.warn("retry: ",t);const I=r.response.config;return I.headers=I.headers||{},I.headers["x-csrf-token"]=Ye.get("ctoken"),await e.request(I)}const s=(f=(c=r.response)==null?void 0:c.data)!=null&&f.errCode?bt(`service.error.${(u=(l=r.response)==null?void 0:l.data)==null?void 0:u.errCode}`):((v=(p=r.response)==null?void 0:p.data)==null?void 0:v.errMsg)||((y=(m=r.response)==null?void 0:m.data)==null?void 0:y.message);Ur.includes((P=(C=r.response)==null?void 0:C.config)==null?void 0:P.url)||H.error(`${s}`);const n=`${location.pathname}${location.search}`;if(n==="/signin")throw r;if(((B=(x=r.response)==null?void 0:x.data)==null?void 0:B.errCode)===10001||((j=(d=r.response)==null?void 0:d.data)==null?void 0:j.errCode)===10004){const I=Pt(n,"/editor");It(`?${wt.LOGIN_BACK}=${encodeURIComponent(I)}`);return}throw r}),e};async function Nr(t,e={},r){return r&&(e.onUploadProgress=n=>{const a=n.loaded/n.total*100;r(a)}),e.url=t,Dr().request(e)}const Ze=window.PostmenClient,Qe=xt("postmen"),$=Rt.createPublisher(),M=new Set(["Scene","Prefab","script","Shader","ShaderChunk","StateMachineScript"]),R=class R{static collectAssetPickerReferences(e,r){const s=[],n=Ct(e);for(const a in n){const o=n[a];if(!o||o.type!==Et.AssetPicker)continue;const i=e[a];i&&typeof i=="object"&&"refId"in i&&i.refId===r&&s.push({target:e,key:a})}return s}static enqueuePendingRefresh(e){var n;const s=`${((n=e.target)==null?void 0:n.id)??""}::${e.key}`;this.pendingDedup.has(s)||(this.pendingDedup.add(s),this.pendingRefreshes.push(e))}static flushPendingSceneReferenceRefreshes(){if(this.rafScheduled=!1,h.sceneStore!==this.pendingSceneRef){this.pendingRefreshes.length=0,this.pendingDedup.clear(),this.pendingSceneRef=null;return}const e=this.pendingRefreshes;this.pendingRefreshes=[],this.pendingDedup.clear(),this.pendingSceneRef=null;for(const{target:r,key:s}of e)try{r.triggerPropertyChange(s,!1)}catch(n){console.warn("[postmen] Failed to refresh asset reference:",n,{key:s})}}static refreshSceneEntityComponentReferences(e){const r=h.sceneStore;if(r){r!==this.pendingSceneRef&&(this.pendingRefreshes.length=0,this.pendingDedup.clear(),this.pendingSceneRef=r);for(const s of this.collectAssetPickerReferences(r,e))this.enqueuePendingRefresh(s);for(const[,s]of r.iterateEntityModels())for(const n of s.components)for(const a of this.collectAssetPickerReferences(n,e))this.enqueuePendingRefresh(a);for(const s of r.strippedEntities.values())for(const n of s.components)for(const a of this.collectAssetPickerReferences(n,e))this.enqueuePendingRefresh(a);!this.rafScheduled&&this.pendingRefreshes.length>0&&(this.rafScheduled=!0,requestAnimationFrame(()=>{this.flushPendingSceneReferenceRefreshes()}))}}static create(e){Ze.initialize(R.getOpts(e.toString()),R.stateListener,()=>R.getAuthToken(e.toString())),Ze.register(R.BIZ_TYPE,r=>{const s=r.msgs;for(const n of s){Qe.info(n);let a;try{a=JSON.parse(n.payload)}catch(o){console.warn("[postmen] Ignore malformed payload:",o,n);continue}switch(n.bizId){case"AssetCreate":this.applyAssetCreate(a);break;case"AssetUpdate":this.applyAssetUpdate(a);break;case"AssetDelete":this.applyAssetDelete(a);break}}})}static getOpts(e){let r="prod";switch(et()){case S.local:case S.dev:r="stable";break;case S.test:r="test";break;case S.pre:case S.prod:r="prod";break}return{env:r,appName:R.APP_NAME,userId:`${e}-web-editor`}}static async getAuthToken(e){return(await Nr("/api/postmen/createAuthToken",{method:"POST",data:{projectId:e}})).data}static stateListener(e){Qe.info("[state]",e)}static safeParseJsonObject(e){if(e&&typeof e=="object")return e;if(typeof e!="string")return{};try{const r=JSON.parse(e);if(r&&typeof r=="object")return r}catch{}return{}}static async applyAssetCreate(e){var u;const r=e.uuid,s=h.assetStore,n=typeof e.name=="string"?e.name:((u=s.assets[r])==null?void 0:u.name)??"Unknown",a=e.parentId?String(e.parentId):null,o=e.url?String(e.url):void 0,i=typeof e.meta=="string"?e.meta:JSON.stringify(e.meta??{}),c=this.safeParseJsonObject(i),f=typeof c.type=="string"?c.type:"Unknown";typeof e.type=="number"?e.type:typeof e.type=="string"&&e.type.length>0&&parseInt(e.type,10);let l;if(o&&f!=="Folder")if(!M.has(f))l="";else try{const p=await fetch(o);p.ok?l=await p.text():l=""}catch(p){l="",console.warn("[postmen] Failed to preload created asset content:",p,e)}try{const p={id:r,name:n,type:f,parentFolderId:a,meta:c,status:"ready",serverId:String(e.id)};o&&(p.url=o);const v=h.domainStore.state.assets[r]?{op:"replace",path:`/assets/${r}`,value:p}:{op:"add",path:`/assets/${r}`,value:p};h.domainStore.applyRemote([v])}catch(p){console.error("[postmen] failed to apply asset create to DomainStore:",p,e)}if(o&&f!=="Folder"){const p=s.assets[r];if(p&&!p.isInitCompleted){const v=M.has(f)&&typeof l=="string"&&l.length>0?{blob:new Blob([l],{type:f==="Scene"||f==="Prefab"?"application/json":"text/plain"}),url:o}:void 0;p.loadMainFile(v).catch(m=>{console.warn("[postmen] Failed to load created asset main file:",m,e)})}}$.publish("asset-change",{type:"add",assetId:r,name:n,parentId:a,meta:c,main:l,url:o}),H(`Asset ${n} created by ${e.operator}`,{icon:"⚠"})}static async applyAssetUpdate(e){const r=e.uuid,s=h.assetStore.assets[r];if(!s){console.warn("[postmen] AssetUpdate for missing asset:",e);return}H(`Asset ${s.name} updated by ${e.operator}`,{icon:"⚠"}),await At.runWithGlobalAutoSaveSuspended(async()=>{await h.domainStore.runAsRemote(async()=>{var p,v;const n=e.url?String(e.url):void 0,a=s.meta.type==="Scene"&&((p=h.sceneStore)==null?void 0:p.refId)===r,o=a?JSON.stringify(h.sceneStore.toJSON()):void 0,i=a?h.domainStore.state.assets:void 0,c=a?h.domainStore.state.version:void 0,f=a?s.url:void 0;let l,u;if(n){try{const m=await fetch(n);m.ok?(l=await m.blob(),M.has(s.meta.type)&&(u=await l.text())):console.warn("[postmen] Failed to fetch updated asset:",m.statusText,e)}catch(m){console.warn("[postmen] Failed to fetch updated asset:",m,e)}if(l){s.setUrl(n);try{await s.reloadMainFileFromRemote({blob:l,url:n}),s.meta.type==="ShaderChunk"&&typeof u=="string"&&typeof s.updateCode=="function"&&s.updateCode(u)}catch(y){console.warn("[postmen] Failed to apply updated asset main file:",y,e)}try{const y=h.domainStore.state.assets[r];if(y){const C={op:"url"in y?"replace":"add",path:`/assets/${r}/url`,value:n};h.domainStore.applyRemote([C])}}catch(y){console.error("[postmen] failed to apply asset update to DomainStore:",y,e)}const m=M.has(s.meta.type)?u:l;if(s.meta.type==="Scene"&&((v=h.sceneStore)==null?void 0:v.refId)===r&&typeof u=="string"&&a)try{await Ae({sceneStore:h.sceneStore,sceneFacade:h.sceneFacade,domainStore:h.domainStore,sceneAsset:s,preserveAssets:h.domainStore.state.assets,preserveVersion:h.domainStore.state.version}),$.publish("asset-change",{type:"modify",assetId:r,main:m})}catch(y){if(console.error("[postmen] Failed to reload current scene from updated Scene asset:",y,e),typeof o=="string"&&i&&typeof c=="number"&&typeof f=="string")try{s.setUrl(f),await s.reloadMainFileFromRemote({blob:new Blob([o],{type:"application/json"}),url:f}),await Ae({sceneStore:h.sceneStore,sceneFacade:h.sceneFacade,domainStore:h.domainStore,sceneAsset:s,preserveAssets:i,preserveVersion:c})}catch(C){console.error("[postmen] Failed to rollback current scene after Scene init failure:",C,e)}}else m!==void 0&&$.publish("asset-change",{type:"modify",assetId:r,main:m})}}if(e.name&&s.name!==e.name){try{h.domainStore.applyRemote([{op:"replace",path:`/assets/${r}/name`,value:String(e.name)}])}catch(m){console.error("[postmen] failed to apply asset rename to DomainStore:",m,e)}$.publish("asset-change",{type:"rename",assetId:r,newName:String(e.name)})}if(e.parentId!==void 0){const m=e.parentId?String(e.parentId):null;if(s.parentFolderId!==m){try{h.domainStore.applyRemote([{op:"replace",path:`/assets/${r}/parentFolderId`,value:m}])}catch(y){console.error("[postmen] failed to apply asset move to DomainStore:",y,e)}$.publish("asset-change",{type:"move",assetIds:[r],targeParentId:m})}}})})}static async applyAssetDelete(e){for(const r of e.list){const s=h.assetStore.assets[r.uuid],n=!!h.domainStore.state.assets[r.uuid];if(!s&&!n){console.warn("[postmen] AssetDelete for missing asset:",r);continue}try{h.domainStore.applyRemote([{op:"remove",path:`/assets/${r.uuid}`}])}catch(o){console.error("[postmen] failed to apply asset delete to DomainStore:",o,r)}$.publish("asset-change",{type:"delete",assetIds:[r.uuid]});const a=(s==null?void 0:s.name)??r.uuid;H(`Asset ${a} deleted by ${e.operator}`,{icon:"⚠",style:{color:"red"}})}}};D(R,"APP_NAME","GALACEAN"),D(R,"BIZ_TYPE","P-galacean-msg"),D(R,"pendingRefreshes",[]),D(R,"pendingDedup",new Set),D(R,"rafScheduled",!1),D(R,"pendingSceneRef",null);let q=R;q.applyAssetCreate.bind(q),q.applyAssetUpdate.bind(q),q.applyAssetDelete.bind(q);
|
package/dist/preview-client/_static/{shader-data-utils-6ef12596.js → shader-data-utils-000170ae.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b1 as C,b2 as w,C as c,b3 as k,V as d,ai as F,F as I}from"./index-
|
|
1
|
+
import{b1 as C,b2 as w,C as c,b3 as k,V as d,ai as F,F as I}from"./index-e44b357e.js";var a=(t=>(t.Vector2="Vector2",t.Vector3="Vector3",t.Vector4="Vector4",t.Color="Color",t.Float="Float",t.Texture="Texture",t.Boolean="Boolean",t.Integer="Integer",t))(a||{});async function B(t,V,e,n,i){var S;const s=t.engineObject.shaderData;let r;const o=V.toString(),h=C.getByName(o).type;switch(h===w.Float?(n===a.Integer||n===c.Toggle||n===c.Boolean||n===c.Select)&&(n=a.Float):h===w.Int&&(n===a.Float||n===c.Slider||n===c.Number)&&(n=a.Integer),n){case c.Slider:case c.Number:case a.Float:s.setFloat(o,e);break;case c.Toggle:case c.Boolean:case c.Select:case a.Integer:s.setInt(o,Number(e));break;case c.AssetPicker:case a.Texture:if(e){const l=await t.root.assetStore.getAssetByRef(e);if(l){const b=l.engineObject;s.setTexture(o,b),i&&x(i,t,"enable")}else s.setTexture(o,null),i&&x(i,t,"disable"),console.error(`${o} in ${t.name} is missing.`)}else s.setTexture(o,null),i&&x(i,t,"disable");break;case c.Vector2:case a.Vector2:r=s.getVector2(o),e==null?s.setVector2(o,e):r?(r.x=e.x,r.y=e.y):s.setVector2(o,new I(e.x,e.y));break;case c.Vector3:case a.Vector3:r=s.getVector3(o),e==null?s.setVector3(o,e):r?(r.x=e.x,r.y=e.y,r.z=e.z):s.setVector3(o,new F(e.x,e.y,e.z));break;case c.Vector4:case a.Vector4:r=s.getVector4(o),e==null?s.setVector4(o,e):r?(r.x=e.x,r.y=e.y,r.z=e.z,r.w=e.w):s.setVector4(o,new d(e.x,e.y,e.z,e.w));break;case c.Color:case a.Color:{if(e==null){s.setColor(o,null);break}let{r:l,g:b,b:f}=e;const{a:m,intensity:g=1}=e;l*=g,b*=g,f*=g,r=s.getColor(o),r?(r.r=l,r.g=b,r.b=f,r.a=m):s.setColor(o,new k(l,b,f,m));break}}(S=t.updateThumbnail)==null||S.call(t)}function x(t,V,e){const n=V.engineObject.shaderData;e==="enable"?n.enableMacro(t):n.disableMacro(t)}export{a as E,B as s};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#status { position: fixed; left: 8px; top: 8px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 8px; font: 12px/1.4 monospace; z-index: 10; opacity: 1; transition: opacity 0.5s ease; pointer-events: none; }
|
|
11
11
|
#status[data-state="idle"] { opacity: 0; transition: opacity 0.8s ease 1.5s; }
|
|
12
12
|
</style>
|
|
13
|
-
<script type="module" crossorigin src="/_static/index-
|
|
13
|
+
<script type="module" crossorigin src="/_static/index-e44b357e.js"></script>
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="app">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as d,c as h,b as y,a as T,S as f}from"./ShaderAsset-256afb00.js";import{S as E}from"./ShaderUIScriptAsset-5acb02f5.js";import"./index-3660a664.js";import"./index-365736f7.js";import"./postmen-c7605b45.js";import"./meshopt_simplifier.module-cd99529d.js";import"./shader-data-utils-6ef12596.js";import"./IconPointFilled-dbf63b5c.js";import"./createReactComponent-d9f8b1af.js";import"./index-75e7d483.js";export{d as EShaderPropertyType,h as ShaderAsset,y as ShaderPropertyEnumType,T as ShaderPropertyRangeType,f as ShaderTemplateConfigs,E as ShaderUIScript};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as a}from"./PostProcessComponent-c17ac553.js";import"./index-3660a664.js";import"./index-365736f7.js";import"./Component-6d1e73e5.js";import"./postmen-c7605b45.js";import"./IconPlus-5fbc029e.js";import"./createReactComponent-d9f8b1af.js";import"./Menu-a427d272.js";import"./Accordion-75b7b34e.js";export{a as PostProcessComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A,a as l,b as C}from"./AnimationClipAsset-f96e0e56.js";import"./index-3660a664.js";import"./index-365736f7.js";import"./postmen-c7605b45.js";import"./AssetViewer-1073ddb5.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./module-4a37a616.js";import"./module-81a206c0.js";export{A as AnimationClipAsset,l as AnimationClipInspector,C as AnimationClipViewer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as a,a as n}from"./AnimatorStore-48d2c14c.js";import"./index-3660a664.js";import"./index-365736f7.js";import"./Component-6d1e73e5.js";import"./postmen-c7605b45.js";export{a as AnimatorComponent,n as AnimatorStore};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as a,D as C,F as s,H as l,P as c,a as S,S as d}from"./PhysicsStore-66a9a461.js";import"./index-3660a664.js";import"./index-365736f7.js";import"./Component-6d1e73e5.js";import"./postmen-c7605b45.js";import"./FormItemArray-53c58844.js";import"./Accordion-75b7b34e.js";export{a as CharacterControllerComponent,C as DynamicColliderComponent,s as FixedJointComponent,l as HingeJointComponent,c as PhysicsStore,S as SpringJointComponent,d as StaticColliderComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as E,b as w,T as I,a as R}from"./TextureAsset-d88af413.js";import{G as F,a as G}from"./GlTFAsset-5c8e7813.js";import{M as U,a as V}from"./MaterialAsset-c83c7d3d.js";import{MeshAsset as X}from"./MeshAsset-1c11d7ab.js";import{AnimatorControllerAsset as D}from"./AnimatorControllerAsset-23cceb12.js";import{A as j,a as q,b as z}from"./AnimationClipAsset-f96e0e56.js";import{L as H,c as J,b as N,S as Q,a as W}from"./ShaderChunkAsset-a42443fc.js";import{AmbientLightAsset as Z}from"./AmbientLightAsset-02786385.js";import{S as $}from"./SpineSkeletonDataAsset-fff17383.js";import{FontAsset as te}from"./FontAsset-8367aad9.js";import{SceneAsset as se}from"./SceneAsset-1e802e29.js";import{E as pe,c as ae,b as ie,a as me,S as Ae}from"./ShaderAsset-256afb00.js";import{E as fe,a as ne,S as xe,b as he,t as le}from"./ShaderUIScriptAsset-5acb02f5.js";import{PrimitiveMesh as ce}from"./PrimitiveMesh-388f3f36.js";import{XRReferenceImageAsset as ye}from"./XRReferenceImageAsset-d6d8e59c.js";import{PrefabAsset as Me}from"./PrefabAsset-a6750aec.js";import{PhysicsMaterialAsset as Ce}from"./PhysicsMaterialAsset-7e86c718.js";import{RenderTargetAsset as ge}from"./RenderTargetAsset-c48990a4.js";import{AudioAsset as we}from"./AudioAsset-6218f2bb.js";import{StateMachineScript as Re}from"./index-eb74362c.js";import{MarkdownAsset as Fe}from"./MarkdownAsset-58491579.js";import"./index-3660a664.js";import"./ktx2-encoder-e9b1c83a.js";import"./TaskQueue-05c94a4d.js";import"./ktx-parse.modern-6c9f771f.js";import"./index-365736f7.js";import"./postmen-c7605b45.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./Tooltip-3bc02b10.js";import"./createReactComponent-d9f8b1af.js";import"./AssetViewer-1073ddb5.js";import"./glTFIO-45ff9a17.js";import"./MaterialInspector-237b6a5e.js";import"./IconPointFilled-dbf63b5c.js";import"./shader-data-utils-6ef12596.js";import"./index-75e7d483.js";import"./MeshThumbnail-d8ee2674.js";import"./bundlers-9b0d37fc.js";import"./module-4a37a616.js";import"./module-81a206c0.js";import"./IconPlus-5fbc029e.js";import"./FormItemArray-53c58844.js";import"./Accordion-75b7b34e.js";import"./module-1c91b4e1.js";export{Z as AmbientLightAsset,j as AnimationClipAsset,q as AnimationClipInspector,z as AnimationClipViewer,D as AnimatorControllerAsset,we as AudioAsset,fe as EScriptSubType,pe as EShaderPropertyType,te as FontAsset,F as GlTFAsset,G as GlTFViewer,E as KTX2Options,H as LottieAsset,Fe as MarkdownAsset,U as MaterialAsset,V as MaterialViewer,X as MeshAsset,Ce as PhysicsMaterialAsset,Me as PrefabAsset,ce as PrimitiveMesh,ge as RenderTargetAsset,se as SceneAsset,ne as ScriptAsset,ae as ShaderAsset,J as ShaderChunkAsset,ie as ShaderPropertyEnumType,me as ShaderPropertyRangeType,Ae as ShaderTemplateConfigs,xe as ShaderUIScript,he as ShaderUIScriptAsset,N as SpineAtlasAsset,$ as SpineSkeletonDataAsset,Q as SpriteAsset,W as SpriteAtlasAsset,Re as StateMachineScript,w as TextureAsset,I as TextureShape,R as TextureUseType,ye as XRReferenceImageAsset,le as scriptTemplates};
|