引入路径修改

This commit is contained in:
joylink_zhaoerwei 2024-01-11 13:54:58 +08:00
parent b25fee816a
commit c8eef1fb1c
6 changed files with 25 additions and 21 deletions

View File

@ -24,7 +24,7 @@
"dotenv": "^16.3.1",
"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#8afd91f",
"rt-graphic-component": "git+https://git.code.tencent.com/jl-framework/rt-graphic-component.git#3c81ca8",
"js-base64": "^3.7.5",
"pinia": "^2.0.11",
"quasar": "^2.6.0",

View File

@ -33,15 +33,19 @@ import { ConcentrationDividingLineDraw } from 'src/graphics/concentrationDividin
import { Rect, RectTemplate } from 'src/graphics/rect/Rect';
import { RectDraw } from 'src/graphics/rect/RectDrawAssistant';
import { RectData } from './graphics/RectInteraction';
import { Platform } from 'src/graphics/platform/Platform';
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
import {
Platform,
PlatformDraw,
PlatformTemplate,
} from 'src/graphics/platform/Platform';
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';
import { PlatformDraw } from 'rt-graphic-component/components/packages/Platform/PlatformDrawAssistant';
import { Station } from 'src/graphics/station/Station';
import {
Station,
StationDraw,
StationTemplate,
} from 'src/graphics/station/Station';
import { StationData, StationState } from './graphics/StationInteraction';
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/StationTemplate';
import { StyleType } from 'rt-graphic-component/components/common/common';
import { StationDraw } from 'rt-graphic-component/components/packages/Station/StationDrawAssistant';
import {
StationLine,
StationLineTemplate,
@ -192,7 +196,7 @@ function constructMenu(app: IDrawApp): (e: FederatedMouseEvent) => void {
const jumpStaitonItems: MenuItemOptions[] = [];
stations.forEach((station) => {
const item: MenuItemOptions = {
name: station.datas.name,
name: station.datas.name as string,
handler: () => {
app.makeGraphicCenterShow(station);
},

View File

@ -23,14 +23,13 @@ import {
PlatformOperateInteraction,
PlatformState,
} from './graphics/PlatformInteraction';
import { Platform } from 'src/graphics/platform/Platform';
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
import { Platform, PlatformTemplate } from 'src/graphics/platform/Platform';
import {
StationData,
StationOperateInteraction,
StationState,
} from './graphics/StationInteraction';
import { Station } from 'src/graphics/station/Station';
import { Station, StationTemplate } from 'src/graphics/station/Station';
import {
TurnoutData,
TurnoutOperationPlugin,
@ -75,7 +74,6 @@ import { Notify, QNotifyUpdateOptions } from 'quasar';
import { useLineNetStore } from 'src/stores/line-net-store';
import { alert } from 'src/protos/alertInfo';
import { StyleType } from 'rt-graphic-component/components/common/common';
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/StationTemplate';
let lineApp: IGraphicApp | null = null;

View File

@ -2,12 +2,10 @@ import {
LogicSection,
LogicSectionTemplate,
} from 'src/graphics/logicSection/LogicSection';
import { Platform } from 'src/graphics/platform/Platform';
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
import { Platform, PlatformTemplate } from 'src/graphics/platform/Platform';
import { SectionTemplate } from 'src/graphics/section/Section';
import { Signal, SignalTemplate } from 'src/graphics/signal/Signal';
import { Station } from 'src/graphics/station/Station';
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/StationTemplate';
import { Station, StationTemplate } from 'src/graphics/station/Station';
import { Turnout, TurnoutTemplate } from 'src/graphics/turnout/Turnout';
import {
IGraphicApp,
@ -21,7 +19,7 @@ import {
LogicSectionData,
LogicSectionState,
} from './graphics/LogicSectionInteraction';
import { SeparatorTemplate } from 'src/graphics/separator/Separator';
import { SeparatorTemplate } from 'rt-graphic-component/components/packages/Separator/Separator';
import { AxleCountingTemplate } from 'src/graphics/axleCounting/AxleCounting';
import { SignalData, SignalState } from './graphics/SignalInteraction';
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';

View File

@ -1,6 +1,8 @@
import { THPlatform as Platform } from 'rt-graphic-component/components/packages/Platform/THPlatform';
import { IPlatformData } from 'rt-graphic-component/components/packages/Platform/PlatformConfig';
import { IPlatformData } from 'rt-graphic-component/components/packages/Platform/common/PlatformConfig';
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/common/PlatformTemplate';
import { ITHPlatformState as IPlatformState } from 'rt-graphic-component/components/packages/Platform/THPlatform';
import { PlatformDraw } from 'rt-graphic-component/components/packages/Platform/common/PlatformDrawAssistant';
export { Platform };
export { Platform, PlatformTemplate, PlatformDraw };
export type { IPlatformState, IPlatformData };

View File

@ -1,6 +1,8 @@
import { THStation as Station } from 'rt-graphic-component/components/packages/Station/THStation';
import { IStationData } from 'rt-graphic-component/components/packages/Station/StationConfig';
import { IStationData } from 'rt-graphic-component/components/packages/Station/common/StationConfig';
import { ITHStationState as IStationState } from 'rt-graphic-component/components/packages/Station/THStation';
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/common/StationTemplate';
import { StationDraw } from 'rt-graphic-component/components/packages/Station/common/StationDrawAssistant';
export { Station };
export { Station, StationTemplate, StationDraw };
export type { IStationState, IStationData };