From 0bb37c4af4edada8d69d54ebab1257324cbccdd4 Mon Sep 17 00:00:00 2001
From: tengge1 <930372551@qq.com>
Date: Fri, 14 Feb 2020 22:25:39 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=B7=A5=E5=85=B7=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ShadowEditor.Web/locales/zh-CN.json | 3 ++-
.../src/editor/toolbar/MeasureTools.jsx | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
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