Closed mlankamp closed 10 months ago
Describe the bug Configure the treeview plugin to not load the model automatically, and add the model to the treeview manually
To Reproduce
const treeview = new TreeViewPlugin(viewer, { containerElement: document.getElementById("treeViewContainer"), hierarchy: "types", autoExpandDepth: 1, autoAddModels: false }); const sceneModel = xktLoader.load({ id: "myModel", src: "../../assets/models/xkt/v8/ifc/IfcOpenHouse4.ifc.xkt" }); sceneModel.on("loaded", ()=>{ treeview.addModel(sceneModel.id, {rootName: "testing"}); });
Expected behavior The root node of the treeview should have the name of the specified rootName (in the example above testing)
@xeolabs any idea when this fixed? I can try to fix it
Describe the bug Configure the treeview plugin to not load the model automatically, and add the model to the treeview manually
To Reproduce
Expected behavior The root node of the treeview should have the name of the specified rootName (in the example above testing)