代码调整

This commit is contained in:
dong 2024-01-04 16:25:55 +08:00
parent 02059fe2a8
commit b7b9da32eb
4 changed files with 18 additions and 54 deletions

View File

@ -23,7 +23,7 @@
"echarts": "^5.4.3",
"google-protobuf": "^3.21.2",
"jl-graphic": "git+https://git.code.tencent.com/jl-framework/graphic-pixi.git#v0.1.3",
"rt-graphic-component": "git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#v0.0.9",
"rt-graphic-component": "git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#v0.0.10",
"js-base64": "^3.7.5",
"pinia": "^2.0.11",
"quasar": "^2.6.0",

View File

@ -1,21 +1,8 @@
import { GraphicData } from 'jl-graphic';
import { Separator as BjSeparator } from 'rt-graphic-component/components/packages/Separator/Separator';
import { Separator } from 'rt-graphic-component/components/packages/Separator/Separator';
import {
ISeparatorData,
separatorTypeEnum,
} from 'rt-graphic-component/components/packages/Separator/SeparatorConfig';
export interface ISeparatorData extends GraphicData {
get code(): string; // 编号
set code(v: string);
get separatorType(): string; // 类型
set separatorType(v: string);
clone(): ISeparatorData;
copyFrom(data: ISeparatorData): void;
eq(other: ISeparatorData): boolean;
}
export enum separatorTypeEnum {
turnout = 'turnout', // 道岔分隔符
endA = 'endA', // A端尽头分隔符
endB = 'endB', // B端尽头分隔符
section = 'section', // 区段分隔符
}
export class Separator extends BjSeparator {}
export { Separator, separatorTypeEnum };
export type { ISeparatorData };

View File

@ -1,11 +1,6 @@
import { Point } from 'pixi.js';
import { GraphicData, GraphicRelationParam, linePoint } from 'jl-graphic';
import { KilometerSystem } from '../signal/Signal';
import {
IRelatedRefData,
createRelatedRefProto,
protoPort2Data,
} from '../CommonGraphics';
import { GraphicRelationParam, linePoint } from 'jl-graphic';
import { createRelatedRefProto, protoPort2Data } from '../CommonGraphics';
import {
Section,
SectionConsts,
@ -14,32 +9,14 @@ import {
} from '../section/Section';
import { Turnout, TurnoutConsts } from '../turnout/Turnout';
import { Transponder as BjTransponder } from 'rt-graphic-component/components/packages/Transponder/Transponder';
import {
ITransponderData,
TransponderTypeEnum,
} from 'rt-graphic-component/components/packages/Transponder/TransponderConfig';
export interface ITransponderData extends GraphicData {
get code(): string; // 编号
set code(v: string);
get kilometerSystem(): KilometerSystem;
set kilometerSystem(v: KilometerSystem);
get TransponderRef(): IRelatedRefData;
set TransponderRef(v: IRelatedRefData);
get centralizedStations(): number[];
set centralizedStations(v: number[]);
get fixedTelegram(): Uint8Array; // 无源应答器固定报文
set fixedTelegram(v: Uint8Array);
get type(): TransponderTypeEnum; // 应答器类型
set type(v: TransponderTypeEnum);
clone(): ITransponderData;
copyFrom(data: ITransponderData): void;
eq(other: ITransponderData): boolean;
}
export type { ITransponderData };
export enum TransponderTypeEnum {
FB, // 固定应答器
WB, // 轮径校正应答器
DB, // 休眠唤醒应答器
VB, // 主信号应答器
IB, // 预告应答器
}
export { TransponderTypeEnum };
export class Transponder extends BjTransponder {
get datas(): ITransponderData {

View File

@ -3174,9 +3174,9 @@ rollup-plugin-visualizer@^5.5.4:
optionalDependencies:
fsevents "~2.3.2"
"rt-graphic-component@git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#v0.0.9":
"rt-graphic-component@git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#v0.0.10":
version "0.0.1"
resolved "git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#3d104163f67ebe6d598882c87e565cf060bf835c"
resolved "git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#1a6376096f8fca13523a5936695bbea661349feb"
dependencies:
jl-graphic "git+https://git.code.tencent.com/jl-framework/graphic-pixi.git#v0.1.3"