|
@@ -78,7 +78,9 @@ export default class HistoryUtil {
|
|
|
if (
|
|
|
mathUtil.equalPoint(text1.center, text2.center) &&
|
|
|
text1.value == text2.value &&
|
|
|
- text1.angle == text2.angle
|
|
|
+ text1.angle == text2.angle &&
|
|
|
+ text1.fontSize == text2.fontSize &&
|
|
|
+ text1.color == text2.color
|
|
|
) {
|
|
|
return false;
|
|
|
} else {
|
|
@@ -387,6 +389,8 @@ export default class HistoryUtil {
|
|
|
textInfo.value = text2.value;
|
|
|
textInfo.center = JSON.parse(JSON.stringify(text2.center));
|
|
|
textInfo.angle = text2.angle;
|
|
|
+ textInfo.color = text2.color;
|
|
|
+ textInfo.fontSize = text2.fontSize;
|
|
|
this.setTextInfo(textInfo);
|
|
|
}
|
|
|
|
|
@@ -633,6 +637,8 @@ export default class HistoryUtil {
|
|
|
data.center = {};
|
|
|
mathUtil.clonePoint(data.center, text.center);
|
|
|
data.value = text.value;
|
|
|
+ data.fontSize = text.fontSize
|
|
|
+ data.color = text.color
|
|
|
return data;
|
|
|
}
|
|
|
|
|
@@ -856,6 +862,8 @@ export default class HistoryUtil {
|
|
|
text.center = JSON.parse(JSON.stringify(textInfo.center));
|
|
|
text.value = textInfo.value;
|
|
|
text.angle = textInfo.angle;
|
|
|
+ text.fontSize = textInfo.fontSize;
|
|
|
+ text.color = textInfo.color;
|
|
|
}
|
|
|
|
|
|
setMagnifierInfo(magnifierInfo) {
|