|
@@ -28,9 +28,9 @@ export default class HistoryUtil {
|
|
line1.startId == line2.startId &&
|
|
line1.startId == line2.startId &&
|
|
line1.endId == line2.endId &&
|
|
line1.endId == line2.endId &&
|
|
line1.category == line2.category &&
|
|
line1.category == line2.category &&
|
|
- line1.locationMode == line2.locationMode &&
|
|
|
|
- line1.style == line2.style &&
|
|
|
|
- line1.weight == line2.weight
|
|
|
|
|
|
+ line1.locationMode == line2.locationMode &&
|
|
|
|
+ line1.style == line2.style &&
|
|
|
|
+ line1.weight == line2.weight
|
|
) {
|
|
) {
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
@@ -80,9 +80,9 @@ export default class HistoryUtil {
|
|
if (
|
|
if (
|
|
mathUtil.equalPoint(text1.center, text2.center) &&
|
|
mathUtil.equalPoint(text1.center, text2.center) &&
|
|
text1.value == text2.value &&
|
|
text1.value == text2.value &&
|
|
- text1.angle == text2.angle &&
|
|
|
|
- text1.fontSize == text2.fontSize &&
|
|
|
|
- text1.color == text2.color
|
|
|
|
|
|
+ text1.angle == text2.angle &&
|
|
|
|
+ text1.fontSize == text2.fontSize &&
|
|
|
|
+ text1.color == text2.color
|
|
) {
|
|
) {
|
|
return false;
|
|
return false;
|
|
} else {
|
|
} else {
|
|
@@ -643,8 +643,8 @@ export default class HistoryUtil {
|
|
data.center = {};
|
|
data.center = {};
|
|
mathUtil.clonePoint(data.center, text.center);
|
|
mathUtil.clonePoint(data.center, text.center);
|
|
data.value = text.value;
|
|
data.value = text.value;
|
|
- data.fontSize = text.fontSize
|
|
|
|
- data.color = text.color
|
|
|
|
|
|
+ data.fontSize = text.fontSize;
|
|
|
|
+ data.color = text.color;
|
|
return data;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -700,6 +700,7 @@ export default class HistoryUtil {
|
|
data.start = JSON.parse(JSON.stringify(roadEdge.start));
|
|
data.start = JSON.parse(JSON.stringify(roadEdge.start));
|
|
data.end = {};
|
|
data.end = {};
|
|
data.end = JSON.parse(JSON.stringify(roadEdge.end));
|
|
data.end = JSON.parse(JSON.stringify(roadEdge.end));
|
|
|
|
+ data.style = roadEdge.style;
|
|
return data;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
|