From 7d4302d4e5ab106710ed0dfd3477c7f40e0dc81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E6=9D=8E=E4=BB=95=E8=93=AC=E2=80=9D?= Date: Mon, 15 May 2023 20:05:21 +0800 Subject: [PATCH] fix --- public/demo/bim_1.html | 2 +- public/demo/bim_2_overlay_with_dxf.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/demo/bim_1.html b/public/demo/bim_1.html index 5eabafa..2912b42 100644 --- a/public/demo/bim_1.html +++ b/public/demo/bim_1.html @@ -53,7 +53,7 @@ ); // draco decoder path is needed to load draco encoded models. // gemini-viewer js sdk user maintains draco decoder code somewhere, and provides the path here. - const decoderPath = "demo/three/js/libs/draco/gltf/"; + const decoderPath = "./demo/three/js/libs/draco/gltf/"; viewer.setDracoDecoderPath(decoderPath); // loadProjectModel diff --git a/public/demo/bim_2_overlay_with_dxf.html b/public/demo/bim_2_overlay_with_dxf.html index f6d63db..f81c34a 100644 --- a/public/demo/bim_2_overlay_with_dxf.html +++ b/public/demo/bim_2_overlay_with_dxf.html @@ -55,7 +55,7 @@ // font file is needed for loading dxf // const fontFiles = ["three/fonts/Microsoft_YaHei_Regular.typeface.json"]; - const fontFiles = ["three/fonts/hztxt.shx", "three/fonts/simplex.shx"]; + const fontFiles = ["./demo/three/fonts/hztxt.shx", "./demo/three/fonts/simplex.shx"]; await viewer.setFont(fontFiles); // draco decoder path is needed to load draco encoded models.