引入路径修改
This commit is contained in:
parent
b25fee816a
commit
c8eef1fb1c
@ -24,7 +24,7 @@
|
|||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
"google-protobuf": "^3.21.2",
|
"google-protobuf": "^3.21.2",
|
||||||
"jl-graphic": "git+https://git.code.tencent.com/jl-framework/graphic-pixi.git#v0.1.3",
|
"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",
|
"js-base64": "^3.7.5",
|
||||||
"pinia": "^2.0.11",
|
"pinia": "^2.0.11",
|
||||||
"quasar": "^2.6.0",
|
"quasar": "^2.6.0",
|
||||||
|
@ -33,15 +33,19 @@ import { ConcentrationDividingLineDraw } from 'src/graphics/concentrationDividin
|
|||||||
import { Rect, RectTemplate } from 'src/graphics/rect/Rect';
|
import { Rect, RectTemplate } from 'src/graphics/rect/Rect';
|
||||||
import { RectDraw } from 'src/graphics/rect/RectDrawAssistant';
|
import { RectDraw } from 'src/graphics/rect/RectDrawAssistant';
|
||||||
import { RectData } from './graphics/RectInteraction';
|
import { RectData } from './graphics/RectInteraction';
|
||||||
import { Platform } from 'src/graphics/platform/Platform';
|
import {
|
||||||
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
|
Platform,
|
||||||
|
PlatformDraw,
|
||||||
|
PlatformTemplate,
|
||||||
|
} from 'src/graphics/platform/Platform';
|
||||||
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';
|
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';
|
||||||
import { PlatformDraw } from 'rt-graphic-component/components/packages/Platform/PlatformDrawAssistant';
|
import {
|
||||||
import { Station } from 'src/graphics/station/Station';
|
Station,
|
||||||
|
StationDraw,
|
||||||
|
StationTemplate,
|
||||||
|
} from 'src/graphics/station/Station';
|
||||||
import { StationData, StationState } from './graphics/StationInteraction';
|
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 { StyleType } from 'rt-graphic-component/components/common/common';
|
||||||
import { StationDraw } from 'rt-graphic-component/components/packages/Station/StationDrawAssistant';
|
|
||||||
import {
|
import {
|
||||||
StationLine,
|
StationLine,
|
||||||
StationLineTemplate,
|
StationLineTemplate,
|
||||||
@ -192,7 +196,7 @@ function constructMenu(app: IDrawApp): (e: FederatedMouseEvent) => void {
|
|||||||
const jumpStaitonItems: MenuItemOptions[] = [];
|
const jumpStaitonItems: MenuItemOptions[] = [];
|
||||||
stations.forEach((station) => {
|
stations.forEach((station) => {
|
||||||
const item: MenuItemOptions = {
|
const item: MenuItemOptions = {
|
||||||
name: station.datas.name,
|
name: station.datas.name as string,
|
||||||
handler: () => {
|
handler: () => {
|
||||||
app.makeGraphicCenterShow(station);
|
app.makeGraphicCenterShow(station);
|
||||||
},
|
},
|
||||||
|
@ -23,14 +23,13 @@ import {
|
|||||||
PlatformOperateInteraction,
|
PlatformOperateInteraction,
|
||||||
PlatformState,
|
PlatformState,
|
||||||
} from './graphics/PlatformInteraction';
|
} from './graphics/PlatformInteraction';
|
||||||
import { Platform } from 'src/graphics/platform/Platform';
|
import { Platform, PlatformTemplate } from 'src/graphics/platform/Platform';
|
||||||
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
|
|
||||||
import {
|
import {
|
||||||
StationData,
|
StationData,
|
||||||
StationOperateInteraction,
|
StationOperateInteraction,
|
||||||
StationState,
|
StationState,
|
||||||
} from './graphics/StationInteraction';
|
} from './graphics/StationInteraction';
|
||||||
import { Station } from 'src/graphics/station/Station';
|
import { Station, StationTemplate } from 'src/graphics/station/Station';
|
||||||
import {
|
import {
|
||||||
TurnoutData,
|
TurnoutData,
|
||||||
TurnoutOperationPlugin,
|
TurnoutOperationPlugin,
|
||||||
@ -75,7 +74,6 @@ import { Notify, QNotifyUpdateOptions } from 'quasar';
|
|||||||
import { useLineNetStore } from 'src/stores/line-net-store';
|
import { useLineNetStore } from 'src/stores/line-net-store';
|
||||||
import { alert } from 'src/protos/alertInfo';
|
import { alert } from 'src/protos/alertInfo';
|
||||||
import { StyleType } from 'rt-graphic-component/components/common/common';
|
import { StyleType } from 'rt-graphic-component/components/common/common';
|
||||||
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/StationTemplate';
|
|
||||||
|
|
||||||
let lineApp: IGraphicApp | null = null;
|
let lineApp: IGraphicApp | null = null;
|
||||||
|
|
||||||
|
@ -2,12 +2,10 @@ import {
|
|||||||
LogicSection,
|
LogicSection,
|
||||||
LogicSectionTemplate,
|
LogicSectionTemplate,
|
||||||
} from 'src/graphics/logicSection/LogicSection';
|
} from 'src/graphics/logicSection/LogicSection';
|
||||||
import { Platform } from 'src/graphics/platform/Platform';
|
import { Platform, PlatformTemplate } from 'src/graphics/platform/Platform';
|
||||||
import { PlatformTemplate } from 'rt-graphic-component/components/packages/Platform/PlatformTemplate';
|
|
||||||
import { SectionTemplate } from 'src/graphics/section/Section';
|
import { SectionTemplate } from 'src/graphics/section/Section';
|
||||||
import { Signal, SignalTemplate } from 'src/graphics/signal/Signal';
|
import { Signal, SignalTemplate } from 'src/graphics/signal/Signal';
|
||||||
import { Station } from 'src/graphics/station/Station';
|
import { Station, StationTemplate } from 'src/graphics/station/Station';
|
||||||
import { StationTemplate } from 'rt-graphic-component/components/packages/Station/StationTemplate';
|
|
||||||
import { Turnout, TurnoutTemplate } from 'src/graphics/turnout/Turnout';
|
import { Turnout, TurnoutTemplate } from 'src/graphics/turnout/Turnout';
|
||||||
import {
|
import {
|
||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
@ -21,7 +19,7 @@ import {
|
|||||||
LogicSectionData,
|
LogicSectionData,
|
||||||
LogicSectionState,
|
LogicSectionState,
|
||||||
} from './graphics/LogicSectionInteraction';
|
} 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 { AxleCountingTemplate } from 'src/graphics/axleCounting/AxleCounting';
|
||||||
import { SignalData, SignalState } from './graphics/SignalInteraction';
|
import { SignalData, SignalState } from './graphics/SignalInteraction';
|
||||||
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';
|
import { PlatformData, PlatformState } from './graphics/PlatformInteraction';
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import { THPlatform as Platform } from 'rt-graphic-component/components/packages/Platform/THPlatform';
|
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 { 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 };
|
export type { IPlatformState, IPlatformData };
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import { THStation as Station } from 'rt-graphic-component/components/packages/Station/THStation';
|
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 { 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 };
|
export type { IStationState, IStationData };
|
||||||
|
Loading…
Reference in New Issue
Block a user