diff --git a/debug/index.ts b/debug/index.ts index 6cb9433..24a3f54 100644 --- a/debug/index.ts +++ b/debug/index.ts @@ -47,6 +47,7 @@ const editStartHandler = () => { const editEndHandler = (geometryPoints: any) => { console.error('editEnd', geometryPoints); }; + const buttonGroup = document.getElementById('button-group') as HTMLElement; buttonGroup.onclick = (evt) => { const targetElement = evt.target as HTMLElement; @@ -160,6 +161,12 @@ buttonGroup.onclick = (evt) => { geometry.off('editEnd', editEndHandler); } break; + + case 'startGrowthAnimation': + if (geometry) { + geometry.startGrowthAnimation(); + } + break; default: break; } diff --git a/index.html b/index.html index db3caff..81e4d85 100644 --- a/index.html +++ b/index.html @@ -68,6 +68,7 @@ +