Skip to content

Commit 1d441a2

Browse files
committed
chore: fix broken worker paths
1 parent 113e344 commit 1d441a2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/assets/itemsData.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/assets/load-ifc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/assets/modelsList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import"./lit-html-BUQgm8fs.js";import{u as c,C as l,W as d,S as p,a as u,b,G as g,I as w,F as f,V as C,f as v}from"./index-DAd_Xb3m.js";import{b as L}from"./index-ChzsFr2R.js";import{e as h}from"./index-BnaeDa9G.js";c.init();const e=new l,S=e.get(d),t=S.create();t.name="main";const r=new p(e);r.setup();t.scene=r;const o=document.createElement("bim-viewport"),i=new u(e,o);t.renderer=i;const m=new b(e);t.camera=m;o.addEventListener("resize",()=>{i.resize(),m.updateAspect()});const F=e.get(g);F.create(t);e.init();const I=e.get(w);await I.setup();const n=e.get(f);n.init("https://thatopen.github.io/engine_fragment/resources/worker.mjs/worker.mjs");t.camera.controls.addEventListener("rest",()=>n.core.update(!0));n.list.onItemSet.add(async({value:a})=>{a.useCamera(t.camera.three),t.scene.three.add(a.object),await n.core.update(!0)});const[y]=h.modelsList({components:e,metaDataTags:["schema"],actions:{download:!0}}),E=C.create(()=>{const[a]=L.loadFrag({components:e});return v`
1+
import"./lit-html-BUQgm8fs.js";import{u as c,C as l,W as d,S as p,a as u,b,G as g,I as w,F as f,V as C,f as v}from"./index-DAd_Xb3m.js";import{b as L}from"./index-ChzsFr2R.js";import{e as h}from"./index-BnaeDa9G.js";c.init();const e=new l,S=e.get(d),t=S.create();t.name="main";const r=new p(e);r.setup();t.scene=r;const o=document.createElement("bim-viewport"),i=new u(e,o);t.renderer=i;const m=new b(e);t.camera=m;o.addEventListener("resize",()=>{i.resize(),m.updateAspect()});const F=e.get(g);F.create(t);e.init();const I=e.get(w);await I.setup();const n=e.get(f);n.init("https://thatopen.github.io/engine_fragment/resources/worker.mjs");t.camera.controls.addEventListener("rest",()=>n.core.update(!0));n.list.onItemSet.add(async({value:a})=>{a.useCamera(t.camera.three),t.scene.three.add(a.object),await n.core.update(!0)});const[y]=h.modelsList({components:e,metaDataTags:["schema"],actions:{download:!0}}),E=C.create(()=>{const[a]=L.loadFrag({components:e});return v`
22
<bim-panel label="IFC Models">
33
<bim-panel-section label="Importing">
44
${a}

examples/assets/spatialTree.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/assets/topicsList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ import"./lit-html-BUQgm8fs.js";import{B as U,T as C,u as S,J as X,f as o,z as be
228228
<bim-panel-section fixed label="New Topic" name="topic">
229229
${te(e)}
230230
</bim-panel-section>
231-
`,Fe=e=>I.create(Pe,e),Ee=Object.freeze(Object.defineProperty({__proto__:null,topic:Fe},Symbol.toStringTag,{value:"Module"})),Oe={...Ee};S.init();const q=document.createElement("bim-viewport"),T=new ue,ze=T.get(fe),A=ze.create(),se=new ye(T);se.setup();A.scene=se;const ae=new ge(T,q);A.renderer=ae;const K=new $e(T);A.camera=K;K.controls.setLookAt(10,5.5,5,-4,-1,-6.5);q.addEventListener("resize",()=>{ae.resize(),K.updateAspect()});T.init();const Me=T.get(we);Me.create(A);const P=T.get(ve);P.init("https://thatopen.github.io/engine_fragment/resources/worker.mjs/worker.mjs");A.camera.controls.addEventListener("rest",()=>P.core.update(!0));P.list.onItemSet.add(async({value:e})=>{e.useCamera(A.camera.three),A.scene.three.add(e.object),await P.core.update(!0)});const re=T.get(he);await re.setup({autoSetWasm:!1,wasm:{path:"https://unpkg.com/[email protected]/",absolute:!0}});const Ve=await fetch("https://thatopen.github.io/engine_ui-components/resources/small.ifc"),Ue=await Ve.arrayBuffer(),qe=new Uint8Array(Ue);await re.load(qe,!0,"small");const E={"[email protected]":{name:"Jhon Doe",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/Profile-Image-AI.jpg"},"[email protected]":{name:"User A",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/Portrait-Photography.jpg"},"[email protected]":{name:"User B",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/AI-Portrait.jpg"}},_=T.get(U);_.setup({users:new Set(Object.keys(E)),labels:new Set(["Architecture","Structure","MEP"])});const Ke=T.get(ee);_.list.onItemSet.add(({value:e})=>{const l=Ke.create();l.world=A,e.viewpoints.add(l.guid)});const[L]=Se.topicsList({components:T,dataStyles:{users:E}});L.selectableRows=!0;const[Ne,We]=Oe.topic({components:T,styles:{users:E}}),F=I.create(()=>o`
231+
`,Fe=e=>I.create(Pe,e),Ee=Object.freeze(Object.defineProperty({__proto__:null,topic:Fe},Symbol.toStringTag,{value:"Module"})),Oe={...Ee};S.init();const q=document.createElement("bim-viewport"),T=new ue,ze=T.get(fe),A=ze.create(),se=new ye(T);se.setup();A.scene=se;const ae=new ge(T,q);A.renderer=ae;const K=new $e(T);A.camera=K;K.controls.setLookAt(10,5.5,5,-4,-1,-6.5);q.addEventListener("resize",()=>{ae.resize(),K.updateAspect()});T.init();const Me=T.get(we);Me.create(A);const P=T.get(ve);P.init("https://thatopen.github.io/engine_fragment/resources/worker.mjs");A.camera.controls.addEventListener("rest",()=>P.core.update(!0));P.list.onItemSet.add(async({value:e})=>{e.useCamera(A.camera.three),A.scene.three.add(e.object),await P.core.update(!0)});const re=T.get(he);await re.setup({autoSetWasm:!1,wasm:{path:"https://unpkg.com/[email protected]/",absolute:!0}});const Ve=await fetch("https://thatopen.github.io/engine_ui-components/resources/small.ifc"),Ue=await Ve.arrayBuffer(),qe=new Uint8Array(Ue);await re.load(qe,!0,"small");const E={"[email protected]":{name:"Jhon Doe",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/Profile-Image-AI.jpg"},"[email protected]":{name:"User A",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/Portrait-Photography.jpg"},"[email protected]":{name:"User B",picture:"https://www.profilebakery.com/wp-content/uploads/2023/04/AI-Portrait.jpg"}},_=T.get(U);_.setup({users:new Set(Object.keys(E)),labels:new Set(["Architecture","Structure","MEP"])});const Ke=T.get(ee);_.list.onItemSet.add(({value:e})=>{const l=Ke.create();l.world=A,e.viewpoints.add(l.guid)});const[L]=Se.topicsList({components:T,dataStyles:{users:E}});L.selectableRows=!0;const[Ne,We]=Oe.topic({components:T,styles:{users:E}}),F=I.create(()=>o`
232232
<dialog class="form-dialog">
233233
<bim-panel style="border-radius: var(--bim-ui_size-base); width: 22rem;">
234234
${Ne}

0 commit comments

Comments
 (0)