xushiting 2 年 前
コミット
28388d1f13
1 ファイル変更5 行追加1 行削除
  1. 5 1
      src/graphic/History/HistoryUtil.js

+ 5 - 1
src/graphic/History/HistoryUtil.js

@@ -75,7 +75,8 @@ export default class HistoryUtil {
   isDifferentForTexts(text1, text2) {
     if (
       mathUtil.equalPoint(text1.center, text2.center) &&
-      text1.value == text2.value
+      text1.value == text2.value &&
+      text1.angle == text2.angle
     ) {
       return false;
     } else {
@@ -317,6 +318,7 @@ export default class HistoryUtil {
     textInfo.vectorId = text1.vectorId;
     textInfo.value = text2.value;
     textInfo.center = JSON.parse(JSON.stringify(text2.center));
+    textInfo.angle = text2.angle;
     this.setTextInfo(textInfo);
   }
 
@@ -552,6 +554,7 @@ export default class HistoryUtil {
     const data = {};
     data.id = text.vectorId;
     data.type = text.geoType;
+    data.angle = text.angle;
     data.center = {};
     mathUtil.clonePoint(data.center, text.center);
     data.value = text.value;
@@ -771,6 +774,7 @@ export default class HistoryUtil {
     text.vectorId = textInfo.vectorId;
     text.center = JSON.parse(JSON.stringify(textInfo.center));
     text.value = textInfo.value;
+    text.angle = textInfo.angle;
   }
 
   setMagnifierInfo(magnifierInfo) {