上下行方向调整
This commit is contained in:
parent
5e8f423ae8
commit
12b41f932d
@ -52,7 +52,7 @@ export class SectionLink extends JlGraphic implements ILineGraphic {
|
||||
lineGraphic: Graphics;
|
||||
labelGraphic: VectorText;
|
||||
divisionGraphic: Graphics = new Graphics();
|
||||
_linkLength = 0;
|
||||
_linkLength = 0; // link长度
|
||||
|
||||
constructor() {
|
||||
super(SectionLink.Type);
|
||||
@ -152,6 +152,7 @@ export class SectionLink extends JlGraphic implements ILineGraphic {
|
||||
this.updateData(old);
|
||||
}
|
||||
get linkLength(): number {
|
||||
// 根据aSimRef和bSimRef获取link两侧公里标,计算link长度
|
||||
if (!this._linkLength) {
|
||||
const queryStore = this.getGraphicApp().queryStore;
|
||||
const aSimDevice = queryStore.queryById(this.datas.aSimRef.id);
|
||||
|
@ -9,9 +9,7 @@ import {
|
||||
calculateMirrorPoint,
|
||||
distance,
|
||||
} from 'src/jl-graphic';
|
||||
import { AxleCounting } from '../axleCounting/AxleCounting';
|
||||
import { SectionLink } from '../sectionLink/SectionLink';
|
||||
import { Turnout } from '../turnout/Turnout';
|
||||
|
||||
export interface ITrainData extends GraphicData {
|
||||
get code(): string; // 车号
|
||||
@ -106,9 +104,9 @@ export class TrainHead extends Container {
|
||||
this.pause.clear();
|
||||
}
|
||||
doRepaint(states: ITrainState, bodyWH?: bodyWH) {
|
||||
let direction = 'right';
|
||||
let direction = 'left';
|
||||
if (states.up) {
|
||||
direction = 'left';
|
||||
direction = 'right';
|
||||
}
|
||||
this.clear();
|
||||
if (!direction) {
|
||||
|
Loading…
Reference in New Issue
Block a user