From c2c63c58ebe8745b6c8f438935f90826d46423fb Mon Sep 17 00:00:00 2001 From: yanzexuan Date: Tue, 15 Nov 2022 19:47:52 +0800 Subject: [PATCH] Update example pages --- public/demo/dxf_0.html | 2 +- public/demo/dxf_5.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/demo/dxf_0.html b/public/demo/dxf_0.html index 0976e30..6fc694d 100644 --- a/public/demo/dxf_0.html +++ b/public/demo/dxf_0.html @@ -139,7 +139,7 @@ viewer.setMarkups(markupData); viewer.addEventListener(ViewerEvent.MarkupClicked, (data) => { - if (data.drawableData) { + if (data.markup) { console.log("[Demo] Clicked on markup:", data); } }); diff --git a/public/demo/dxf_5.html b/public/demo/dxf_5.html index a04b3fc..3e5ec53 100644 --- a/public/demo/dxf_5.html +++ b/public/demo/dxf_5.html @@ -139,7 +139,7 @@ registerClickEvent("ClearMarkups"); viewer.addEventListener(ViewerEvent.MarkupClicked, (data) => { - if (data.drawableData) { + if (data.markup) { console.log("[Demo] Clicked on markup:", data); } });