Upgrade gemini-viewer sdk

This commit is contained in:
yanzexuan
2023-06-27 13:12:18 +08:00
parent 3f9466219e
commit 3ba37afe15
6 changed files with 14 additions and 159 deletions

View File

@ -29,7 +29,7 @@ export default class DxfComparePanel {
panelContainer.appendChild(compareDetail);
this.compareDetail = compareDetail;
const changes = this.viewer.getCompareChanges();
const changes = this.viewer.getChanges();
if (!changes) {
return;
}
@ -98,7 +98,7 @@ export default class DxfComparePanel {
lists.forEach((list) => {
list.addEventListener("click", (e) => {
if (e.target.tagName.toUpperCase() === "LI" && e.target.dataset.id) {
this.viewer.zoomToCompareChange(e.target.dataset.id);
this.viewer.zoomToChange(e.target.dataset.id);
}
});
});