diff --git a/ShadowEditor.Web/locales/zh-CN.json b/ShadowEditor.Web/locales/zh-CN.json index 99107147..715c8202 100644 --- a/ShadowEditor.Web/locales/zh-CN.json +++ b/ShadowEditor.Web/locales/zh-CN.json @@ -1005,5 +1005,6 @@ "Upload Sky Ball": "上传天空球", "Please click the sky ball in the MapPanel.": "请点击贴图面板中的天空球。", "Sky Ball": "天空球", - "The map you clicked is not sky ball.": "你点击的贴图不是天空球。" + "The map you clicked is not sky ball.": "你点击的贴图不是天空球。", + "Clear Tools": "清空工具" } \ No newline at end of file diff --git a/ShadowEditor.Web/src/editor/toolbar/MeasureTools.jsx b/ShadowEditor.Web/src/editor/toolbar/MeasureTools.jsx index 403b3826..b51fc971 100644 --- a/ShadowEditor.Web/src/editor/toolbar/MeasureTools.jsx +++ b/ShadowEditor.Web/src/editor/toolbar/MeasureTools.jsx @@ -21,6 +21,7 @@ class MeasureTools extends React.Component { this.handleMeasureArea = this.handleMeasureArea.bind(this); this.handleEndMeasureArea = this.handleEndMeasureArea.bind(this); this.handleMeasureAngle = this.handleMeasureAngle.bind(this); + this.handleClearTools = this.handleClearTools.bind(this); } render() { @@ -46,6 +47,12 @@ class MeasureTools extends React.Component { onClick={this.handleMeasureAngle} /> + + ; } @@ -94,6 +101,12 @@ class MeasureTools extends React.Component { handleMeasureAngle() { } + + // --------------------------- 清空工具 --------------------------------------- + + handleClearTools() { + + } } export default MeasureTools; \ No newline at end of file