道岔公里标

This commit is contained in:
joylink_zhaoerwei 2023-09-21 15:49:17 +08:00
parent 7dcd8cac17
commit 4eb6f82f33

View File

@ -316,16 +316,10 @@ export class TurnoutData extends GraphicDataBase implements ITurnoutData {
get kilometerSystem(): KilometerSystem[] { get kilometerSystem(): KilometerSystem[] {
return this.data.kilometerSystem.length > 0 return this.data.kilometerSystem.length > 0
? this.data.kilometerSystem ? this.data.kilometerSystem
: [ : (this.data.kilometerSystem = [
new graphicData.KilometerSystem({ new graphicData.KilometerSystem(),
coordinateSystem: '', new graphicData.KilometerSystem(),
kilometer: 0, ]);
}),
new graphicData.KilometerSystem({
coordinateSystem: '',
kilometer: 0,
}),
];
} }
set kilometerSystem(value: KilometerSystem[]) { set kilometerSystem(value: KilometerSystem[]) {
this.data.kilometerSystem = value.map( this.data.kilometerSystem = value.map(