From 7cd049697fc1910b4296d460369768cfc85891d0 Mon Sep 17 00:00:00 2001 From: zouyaoji <370681295@qq.com> Date: Thu, 8 Jun 2023 00:47:46 +0800 Subject: [PATCH] docs(docs): :memo: updated docs --- website/docs/en-US/analyses/vc-analyses.md | 8 ++++---- website/docs/en-US/analyses/vc-drawings.md | 2 +- website/docs/en-US/analyses/vc-measurements.md | 2 +- website/docs/zh-CN/analyses/vc-analyses.md | 8 ++++---- website/docs/zh-CN/analyses/vc-drawings.md | 2 +- website/docs/zh-CN/analyses/vc-measurements.md | 6 +++++- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/website/docs/en-US/analyses/vc-analyses.md b/website/docs/en-US/analyses/vc-analyses.md index 66956481..476ec3d4 100644 --- a/website/docs/en-US/analyses/vc-analyses.md +++ b/website/docs/en-US/analyses/vc-analyses.md @@ -1,10 +1,10 @@ ## VcAnalyses @@ -200,7 +200,7 @@ The parameter configuration of each drawing result is too long to list here. If | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | Triggers when the editor button is clicked. | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | Triggers when the mouse is mouse over or mouse out on the drawing point. | | fabUpdated | (value: boolean) | Triggers when the floating button is expanded or collapsed. | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | ### Methods diff --git a/website/docs/en-US/analyses/vc-drawings.md b/website/docs/en-US/analyses/vc-drawings.md index 6509e5fe..8a0fcd09 100644 --- a/website/docs/en-US/analyses/vc-drawings.md +++ b/website/docs/en-US/analyses/vc-drawings.md @@ -339,7 +339,7 @@ The parameter configuration of each drawing result is too long to list here. If | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | Triggers when the edit button is clicked. | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | Triggers when the mouse is mouse over or mouse out on the drawing point. | | fabUpdated | (value: boolean) | Triggers when the floating button is expanded or collapsed. | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | ### Methods diff --git a/website/docs/en-US/analyses/vc-measurements.md b/website/docs/en-US/analyses/vc-measurements.md index 8932e327..31d20d6d 100644 --- a/website/docs/en-US/analyses/vc-measurements.md +++ b/website/docs/en-US/analyses/vc-measurements.md @@ -381,7 +381,7 @@ The parameter configuration of each drawing result is too long to list here. If | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | Triggers when the edit button is clicked. | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | Triggers when the mouse is mouse over or mouse out on the drawing point. | | fabUpdated | (value: boolean) | Triggers when the floating button is expanded or collapsed. | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | Triggers when the clear button is clicked. | ### Methods diff --git a/website/docs/zh-CN/analyses/vc-analyses.md b/website/docs/zh-CN/analyses/vc-analyses.md index 8f646340..7f2a62b7 100644 --- a/website/docs/zh-CN/analyses/vc-analyses.md +++ b/website/docs/zh-CN/analyses/vc-analyses.md @@ -1,10 +1,10 @@ ## VcAnalyses @@ -196,7 +196,7 @@ | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | 点击编辑按钮时触发。 | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | 鼠标移进、移出绘制点时触发。 | | fabUpdated | (value: boolean) | 浮动按钮展开、收拢时触发。 | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | ### 方法 diff --git a/website/docs/zh-CN/analyses/vc-drawings.md b/website/docs/zh-CN/analyses/vc-drawings.md index bc397c11..9ac3a668 100644 --- a/website/docs/zh-CN/analyses/vc-drawings.md +++ b/website/docs/zh-CN/analyses/vc-drawings.md @@ -368,7 +368,7 @@ ctrl + 右键取消绘制。 | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | 点击编辑按钮时触发。 | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | 鼠标移进、移除绘制点时触发。 | | fabUpdated | (value: boolean) | 浮动按钮展开、收拢时触发。 | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | ### 方法 diff --git a/website/docs/zh-CN/analyses/vc-measurements.md b/website/docs/zh-CN/analyses/vc-measurements.md index efa1ae15..78fedb10 100644 --- a/website/docs/zh-CN/analyses/vc-measurements.md +++ b/website/docs/zh-CN/analyses/vc-measurements.md @@ -38,6 +38,7 @@ ctrl + 右键取消绘制。 @ready="drawingsReadyDefault" :point-measurement-opts="pointMeasurementOpts" :area-measurement-opts="areaMeasurementOpts" + @clear-evt="clearEvt" > @@ -247,6 +248,9 @@ ctrl + 右键取消绘制。 } } }, + clearEvt(e, viewer) { + console.log(e, viewer) + }, unload() { this.$refs.measurementsRef.unload() }, @@ -381,7 +385,7 @@ ctrl + 右键取消绘制。 | editorEvt | (evt: VcDrawingEditorEvt, viewer: Cesium.Viewer) | 点击编辑按钮时触发。 | | mouseEvt | (evt: VcDrawingMouseEvt, viewer: Cesium.Viewer) | 鼠标移进、移除绘制点时触发。 | | fabUpdated | (value: boolean) | 浮动按钮展开、收拢时触发。 | -| onClearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | +| clearEvt | (evt: object, viewer: Cesium.Viewer) | 清除绘制时触发。 | ### 方法