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