From ebcd177bf5817b516e129de066d777f149e2a899 Mon Sep 17 00:00:00 2001 From: ethan Date: Fri, 1 Sep 2023 18:27:01 +0800 Subject: [PATCH] add curve --- examples/index.ts | 3 ++ index.html | 20 +----------- src/index.ts | 2 ++ src/line/curve.ts | 80 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 19 deletions(-) create mode 100644 src/line/curve.ts diff --git a/examples/index.ts b/examples/index.ts index 0fa4c75..8d50bf1 100644 --- a/examples/index.ts +++ b/examples/index.ts @@ -120,6 +120,9 @@ buttonGroup.onclick = (evt) => { case 'drawFreehandLine': geometry = new CesiumPlot.FreehandLine(Cesium, viewer); break; + case 'drawCurve': + geometry = new CesiumPlot.Curve(Cesium, viewer); + break; case 'drawFreehandPolygon': geometry = new CesiumPlot.FreehandPolygon(Cesium, viewer, { material: Cesium.Color.GREEN, diff --git a/index.html b/index.html index 167459e..5a3907b 100644 --- a/index.html +++ b/index.html @@ -56,30 +56,12 @@ + - - - - - - - - - - - - - - - - - - -