Skip to content

Commit e22ab73

Browse files
committed
chore: rebuild examples
1 parent a554c92 commit e22ab73

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

examples/assets/fragmentsModels.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/helloWorldSchema.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/ifcImporter.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/fragments/src/FragmentsModels/example.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ const [panel, updatePanel] = BUI.Component.create<BUI.PanelSection, any>(
147147
if (ids.includes(id)) {
148148
await disposeModels([id]);
149149
} else {
150-
await loadFragmentFile(`/resources/frags/${id}.frag`, id);
150+
await loadFragmentFile(
151+
`https://thatopen.github.io/engine_fragment/resources/frags/${id}.frag`,
152+
id,
153+
);
151154
}
152155
target.loading = false;
153156
};

packages/fragments/src/Importers/IfcImporter/example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ let fragmentBytes: ArrayBuffer | null = null;
6060
let onConversionFinish = () => {};
6161

6262
const convertIFC = async () => {
63-
const url = "/resources/ifc/school_str.ifc";
63+
const url =
64+
"https://thatopen.github.io/engine_fragment/resources/ifc/school_str.ifc";
6465
const ifcFile = await fetch(url);
6566
const ifcBuffer = await ifcFile.arrayBuffer();
6667
const ifcBytes = new Uint8Array(ifcBuffer);

packages/fragments/src/Importers/IfcImporter/examples/HelloWorldSchema/example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ loadFileBtn.addEventListener("click", () => {
156156
});
157157

158158
loadWallBtn.addEventListener("click", () => {
159-
const url = "/resources/ifc/just_wall.ifc";
159+
const url =
160+
"https://thatopen.github.io/engine_fragment/resources/ifc/just_wall.ifc";
160161
loadIfcFile(url, true);
161162
});
162163

0 commit comments

Comments
 (0)