坡度删除bug修复
This commit is contained in:
parent
344443ca51
commit
4fe2578704
@ -65,11 +65,17 @@ export class SlopeDraw extends GraphicDrawAssistant<SlopeTemplate, ISlopeData> {
|
||||
const slopes = this.app.queryStore
|
||||
.queryByType<Slope>(Slope.Type)
|
||||
.filter((g) => {
|
||||
const refSlopeKiloMarker = this.app.queryStore.queryById(
|
||||
let refSlopeKiloMarker;
|
||||
try {
|
||||
refSlopeKiloMarker = this.app.queryStore.queryById(
|
||||
g.datas.refDeviceId[0]
|
||||
) as SlopeKiloMarker;
|
||||
} catch (error) {
|
||||
this.app.deleteGraphics(g);
|
||||
}
|
||||
|
||||
return (
|
||||
refSlopeKiloMarker.datas.kilometerSystem[0].direction == dirSlop
|
||||
refSlopeKiloMarker?.datas.kilometerSystem[0].direction == dirSlop
|
||||
);
|
||||
});
|
||||
const slopeKiloMarkers = this.app.queryStore
|
||||
|
Loading…
Reference in New Issue
Block a user