You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsetuplang="ts">
import {DxfViewer,DxfViewerToolbarPlugin,AxisGizmoPlugin,ScreenshotPlugin,MeasurementPlugin,StatsPlugin,BottomBarPlugin,DxfViewerConfig,ModelConfig} from "@pattern-x/gemini-viewer-threejs";
const viewerCfg: DxfViewerConfig = {containerId: "dxfViewer",enableSpinner: true,enableLayoutBar: true,};
const modelCfg: ModelConfig = {modelId: "id_0",name: "sample",src: "/public/asd.dxf",}
const fontFiles = ["/public/fonts/hztxt.shx", "/public/fonts/simplex.shx"];
const viewer = new DxfViewer(viewerCfg);
await viewer.setFont(fontFiles);
await viewer.loadModelAsync(modelCfg, (event) =>{constprogress=(event.loaded*100)/event.total;console.log(`${event.type}: ${progress}%`);});
console.log("Loaded");
// viewer.goToHomeView();
new AxisGizmoPlugin(viewer, {ignoreZAxis: true});
new BottomBarPlugin(viewer);
new MeasurementPlugin(viewer);
new StatsPlugin(viewer);
new ScreenshotPlugin(viewer);
new DxfViewerToolbarPlugin(viewer);
</script><template><canvasid="dxfViewer"></canvas></template><stylescoped>
#dxfViewer {width: 1920px;height: 1080px;display: inline-block;}</style>
In Vue 3, I am using this library, and after opening the page, the height attribute of the canvas inside the div with the id "gemini-viewer-container" keeps increasing.
The text was updated successfully, but these errors were encountered:
In Vue 3, I am using this library, and after opening the page, the height attribute of the canvas inside the div with the id "gemini-viewer-container" keeps increasing.
The text was updated successfully, but these errors were encountered: