Skip to content

Commit 5a59789

Browse files
committed
chore: rebuild examples
1 parent a026403 commit 5a59789

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

examples/assets/itemsData.js

Lines changed: 3 additions & 3 deletions
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: 3 additions & 3 deletions
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-Cs86_c16.js";import{a as c,C as d,W as l,S as p,b,c as u,G as g,I as w,F as f,R as C,m as v}from"./index-BgQRAdOj.js";import{b as L}from"./index-NGXf93vL.js";import{e as S}from"./index-E2Xb6mG8.js";c.init();const e=new d,F=e.get(l),t=F.create();t.name="main";const r=new p(e);r.setup();t.scene=r;const o=document.createElement("bim-viewport"),m=new b(e,o);t.renderer=m;const i=new u(e);t.camera=i;o.addEventListener("resize",()=>{m.resize(),i.updateAspect()});const I=e.get(g);I.create(t);e.init();const h=e.get(w);await h.setup();const n=e.get(f);n.init("/node_modules/@thatopen-platform/fragments-beta/dist/Worker/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]=S.modelsList({components:e,metaDataTags:["schema"],actions:{download:!0}}),E=C.create(()=>{const[a]=L.loadFrag({components:e});return v`
1+
import"./lit-html-Cs86_c16.js";import{a as c,C as l,W as d,S as p,b,c as u,G as g,I as w,F as f,R as C,m as v}from"./index-BgQRAdOj.js";import{b as L}from"./index-NGXf93vL.js";import{e as h}from"./index-E2Xb6mG8.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 b(e,o);t.renderer=i;const m=new u(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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ import"./lit-html-Cs86_c16.js";import{d as z,T as C,a as S,m as o,e as X,L 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,Me=T.get(fe),A=Me.create(),se=new ye(T);se.setup();A.scene=se;const ae=new ge(T,q);A.renderer=ae;const W=new $e(T);A.camera=W;W.controls.setLookAt(10,5.5,5,-4,-1,-6.5);q.addEventListener("resize",()=>{ae.resize(),W.updateAspect()});T.init();const Ue=T.get(we);Ue.create(A);const P=T.get(ve);P.init("/node_modules/@thatopen-platform/fragments-beta/dist/Worker/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"),ze=await Ve.arrayBuffer(),qe=new Uint8Array(ze);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(z);_.setup({users:new Set(Object.keys(E)),labels:new Set(["Architecture","Structure","MEP"])});const We=T.get(ee);_.list.onItemSet.add(({value:e})=>{const l=We.create();l.world=A,e.viewpoints.add(l.guid)});const[B]=Se.topicsList({components:T,dataStyles:{users:E}});B.selectableRows=!0;const[Ke,Ge]=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,Me=T.get(fe),A=Me.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 Ue=T.get(we);Ue.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"),ze=await Ve.arrayBuffer(),qe=new Uint8Array(ze);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(z);_.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[B]=Se.topicsList({components:T,dataStyles:{users:E}});B.selectableRows=!0;const[We,Ge]=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;">
234-
${Ke}
234+
${We}
235235
</bim-panel>
236236
</dialog>
237237
`);document.body.append(F);const Qe=I.create(()=>o`
@@ -283,8 +283,8 @@ import"./lit-html-Cs86_c16.js";import{d as z,T as C,a as S,m as o,e as X,L as be
283283
${B}
284284
</bim-panel-section>
285285
</bim-panel>
286-
`),K=document.createElement("bim-grid");K.layouts={main:{template:`
286+
`),W=document.createElement("bim-grid");W.layouts={main:{template:`
287287
"customTopicPanel viewport"
288288
"customTopicPanel bcfPanel" 25rem
289289
/24rem 1fr
290-
`,elements:{bcfPanel:Ne,viewport:q,customTopicPanel:He}}};K.layout="main";document.body.append(K);
290+
`,elements:{bcfPanel:Ne,viewport:q,customTopicPanel:He}}};W.layout="main";document.body.append(W);

examples/assets/world2D.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.

packages/obc/src/components/buttons/load-ifc/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CUI.Manager.init();
99
const components = new OBC.Components();
1010
const fragments = components.get(OBC.FragmentsManager);
1111
fragments.init(
12-
"/node_modules/@thatopen-platform/fragments-beta/dist/Worker/worker.mjs",
12+
"https://thatopen.github.io/engine_fragment/resources/worker.mjs",
1313
);
1414

1515
const worldElementA = document.createElement("bim-world");

packages/obc/src/components/tables/ItemsData/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ await ifcLoader.setup();
8585

8686
const fragments = components.get(OBC.FragmentsManager);
8787
fragments.init(
88-
"/node_modules/@thatopen-platform/fragments-beta/dist/Worker/worker.mjs",
88+
"https://thatopen.github.io/engine_fragment/resources/worker.mjs",
8989
);
9090

9191
world.camera.controls.addEventListener("update", () =>

packages/obc/src/components/tables/ModelsList/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ await ifcLoader.setup();
7676

7777
const fragments = components.get(OBC.FragmentsManager);
7878
fragments.init(
79-
"/node_modules/@thatopen-platform/fragments-beta/dist/Worker/worker.mjs",
79+
"https://thatopen.github.io/engine_fragment/resources/worker.mjs",
8080
);
8181

8282
world.camera.controls.addEventListener("rest", () =>

packages/obc/src/components/tables/SpatialTree/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ highlighter.zoomToSelection = true;
9292

9393
const fragments = components.get(OBC.FragmentsManager);
9494
fragments.init(
95-
"/node_modules/@thatopen-platform/fragments-beta/dist/Worker/worker.mjs",
95+
"https://thatopen.github.io/engine_fragment/resources/worker.mjs",
9696
);
9797

9898
world.camera.controls.addEventListener("rest", () =>

0 commit comments

Comments
 (0)