0.2.49
Moved some settings to plugins
- enableNavCube, use NavCubePlugin instead
- enableAxisGizmo, use AxisGizmoPlugin instead
- enableStats (for debug), use StatsPlugin instead
- enableBottomBar (for debug), use BottomBarPlugin instead
So, we need to remove these from ViewerConfig, and use plugin instead. You'll get a console warning otherwise. Here is an example for how to replace 'enableAxisGizmo': The old way to use enableAxisGizmo (pseuduecode)
const viewer = new BimViewer({ containerId: "myCanvas", enableAxisGizmo: true, }, project.camera);
viewer.loadModel(modelCfg);
Here is an example of how to use the plugin (pseuduecode)
import { AxisGizmoPlugin} from "./demo/libs/gemini-viewer.esm.min.js";
const viewer = new BimViewer({ containerId: "myCanvas",}, project.camera);
new AxisGizmoPlugin(viewer);
viewer.loadModel(modelCfg);
Move some features to plugins
- GroundShadowPlugin
- MeasurementPlugin
- SectionPlugin
- Fixed some bugs
- Fixed an issue that section cannot be used in mobile device.
- Double click doesn't work well sometimes in BimViewer.
Please take a look at this PR for more details.