框架更新
This commit is contained in:
parent
40387363ba
commit
57ed5d9ffe
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,7 +1,3 @@
|
|||||||
[submodule "bj-rtss-message"]
|
[submodule "bj-rtss-message"]
|
||||||
path = bj-rtss-message
|
path = bj-rtss-message
|
||||||
url = ../bj-rtss-message.git
|
url = ../bj-rtss-message.git
|
||||||
[submodule "graphic-pixi"]
|
|
||||||
path = graphic-pixi
|
|
||||||
url = ../../jl-framework/graphic-pixi.git
|
|
||||||
branch = bj-rtss
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 9c1d8889e2b0fdcc3f931259a8d2ebc2952285a4
|
Subproject commit b68103fcf0d9a505a605675b8cebb6ca1bf5c533
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 1db512545467327f783f5e05bd3a1da654355ba2
|
|
@ -17,19 +17,14 @@
|
|||||||
"sync": "node scripts/sync.cjs"
|
"sync": "node scripts/sync.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pixi/filter-outline": "^5.2.0",
|
|
||||||
"@pixi/graphics-extras": "^7.2.4",
|
|
||||||
"@quasar/extras": "^1.0.0",
|
"@quasar/extras": "^1.0.0",
|
||||||
"@stomp/stompjs": "^7.0.0",
|
|
||||||
"axios": "^1.2.1",
|
"axios": "^1.2.1",
|
||||||
"default-passive-events": "^2.0.0",
|
"default-passive-events": "^2.0.0",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.4.3",
|
||||||
"google-protobuf": "^3.21.2",
|
"google-protobuf": "^3.21.2",
|
||||||
|
"jl-graphic": "git+ssh://git.code.tencent.com:jl-framework/graphic-pixi.git",
|
||||||
"js-base64": "^3.7.5",
|
"js-base64": "^3.7.5",
|
||||||
"mqtt": "^5.2.1",
|
|
||||||
"pinia": "^2.0.11",
|
"pinia": "^2.0.11",
|
||||||
"pixi-viewport": "^5.0.1",
|
|
||||||
"pixi.js": "^7.2.4",
|
|
||||||
"quasar": "^2.6.0",
|
"quasar": "^2.6.0",
|
||||||
"vue": "^3.0.0",
|
"vue": "^3.0.0",
|
||||||
"vue-router": "^4.0.0"
|
"vue-router": "^4.0.0"
|
||||||
|
@ -1,70 +0,0 @@
|
|||||||
/**
|
|
||||||
* 同步图形框架文件到 src/jl-graphic/
|
|
||||||
*/
|
|
||||||
const {
|
|
||||||
readdirSync,
|
|
||||||
existsSync,
|
|
||||||
copyFileSync,
|
|
||||||
mkdirSync,
|
|
||||||
rmSync,
|
|
||||||
} = require('fs');
|
|
||||||
const { resolve } = require('path');
|
|
||||||
|
|
||||||
const jlGraphicSrcPath = resolve(__dirname, '../graphic-pixi/src/jlgraphic');
|
|
||||||
const jlGraphicLibPath = resolve(__dirname, '../src/jl-graphic');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 检查并初始化当前项目引入的jl-graphic库
|
|
||||||
*/
|
|
||||||
function checkAndInitJlGraphicLib() {
|
|
||||||
const exist = existsSync(jlGraphicLibPath);
|
|
||||||
if (exist) {
|
|
||||||
console.log('jl-graphic文件夹已存在,清空');
|
|
||||||
readdirSync(jlGraphicLibPath, {
|
|
||||||
withFileTypes: true,
|
|
||||||
}).forEach((file) => {
|
|
||||||
if (file.isDirectory()) {
|
|
||||||
rmSync(resolve(jlGraphicLibPath, file.name), { recursive: true });
|
|
||||||
} else {
|
|
||||||
rmSync(resolve(jlGraphicLibPath, file.name));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
console.log('jl-graphic文件夹不存在,创建');
|
|
||||||
// 文件夹不存在,创建
|
|
||||||
mkdirSync(jlGraphicLibPath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function copyJlGraphicFiles() {
|
|
||||||
readdirSync(jlGraphicSrcPath, {
|
|
||||||
withFileTypes: true,
|
|
||||||
}).forEach((file) => {
|
|
||||||
recursiveCopyFiles(file);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function recursiveCopyFiles(file, path = []) {
|
|
||||||
if (file.isFile()) {
|
|
||||||
const fileSrcPath = resolve(jlGraphicSrcPath, ...path, file.name);
|
|
||||||
const fileDestPath = resolve(jlGraphicLibPath, ...path, file.name);
|
|
||||||
console.log(`copy file ${fileSrcPath} -> ${fileDestPath}`);
|
|
||||||
copyFileSync(fileSrcPath, fileDestPath);
|
|
||||||
} else if (file.isDirectory()) {
|
|
||||||
const srcDir = resolve(jlGraphicSrcPath, ...path, file.name);
|
|
||||||
const dirPath = resolve(jlGraphicLibPath, ...path, file.name);
|
|
||||||
mkdirSync(dirPath);
|
|
||||||
readdirSync(srcDir, {
|
|
||||||
withFileTypes: true,
|
|
||||||
}).forEach((subFile) => {
|
|
||||||
recursiveCopyFiles(subFile, [...path, file.name]);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function main() {
|
|
||||||
checkAndInitJlGraphicLib();
|
|
||||||
copyJlGraphicFiles();
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
@ -1,5 +1,5 @@
|
|||||||
import { type GraphicDataBase } from 'src/drawApp/graphics/GraphicDataBase';
|
import { type GraphicDataBase } from 'src/drawApp/graphics/GraphicDataBase';
|
||||||
import { IDrawApp } from 'src/jl-graphic';
|
import { IDrawApp } from 'jl-graphic';
|
||||||
import { onMounted, onUnmounted, reactive, toRaw } from 'vue';
|
import { onMounted, onUnmounted, reactive, toRaw } from 'vue';
|
||||||
|
|
||||||
export function useFormData<T extends GraphicDataBase>(
|
export function useFormData<T extends GraphicDataBase>(
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { inject, ref, watch } from 'vue';
|
import { inject, ref, watch } from 'vue';
|
||||||
import { IDrawApp, JlGraphic } from 'src/jl-graphic';
|
import { IDrawApp, JlGraphic } from 'jl-graphic';
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
@ -83,8 +83,7 @@
|
|||||||
import { computed, onMounted, ref, watch } from 'vue';
|
import { computed, onMounted, ref, watch } from 'vue';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import DraggableDialog from 'src/components/common/DraggableDialog.vue';
|
import DraggableDialog from 'src/components/common/DraggableDialog.vue';
|
||||||
import { JlDrawApp } from 'src/jl-graphic/app/JlDrawApp';
|
import { IDrawApp, IGraphicApp } from 'jl-graphic';
|
||||||
import { GraphicApp } from 'src/jl-graphic/app/JlGraphicApp';
|
|
||||||
|
|
||||||
interface ItemData {
|
interface ItemData {
|
||||||
label: string;
|
label: string;
|
||||||
@ -101,7 +100,7 @@ const props = defineProps<{
|
|||||||
showDialog: boolean;
|
showDialog: boolean;
|
||||||
layerList: ItemData[];
|
layerList: ItemData[];
|
||||||
showLayer: string[];
|
showLayer: string[];
|
||||||
app: JlDrawApp | GraphicApp;
|
app: IDrawApp | IGraphicApp;
|
||||||
noSelect?: boolean; // 没有选择tab
|
noSelect?: boolean; // 没有选择tab
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, provide } from 'vue';
|
import { onMounted, ref, provide } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
|
@ -115,7 +115,7 @@ import { AxleCountingData } from 'src/drawApp/graphics/AxleCountingInteraction';
|
|||||||
import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting';
|
import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting';
|
||||||
import { Section } from 'src/graphics/section/Section';
|
import { Section } from 'src/graphics/section/Section';
|
||||||
import { Turnout } from 'src/graphics/turnout/Turnout';
|
import { Turnout } from 'src/graphics/turnout/Turnout';
|
||||||
import { getRectangleCenter, GraphicIdGenerator } from 'src/jl-graphic';
|
import { getRectangleCenter, GraphicIdGenerator } from 'jl-graphic';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
CiCjConfigCeil,
|
CiCjConfigCeil,
|
||||||
useRelayCabinetStore,
|
useRelayCabinetStore,
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
CiCjConfigCeil,
|
CiCjConfigCeil,
|
||||||
useRelayCabinetStore,
|
useRelayCabinetStore,
|
||||||
|
@ -71,7 +71,7 @@ import {
|
|||||||
loadOtherLineList,
|
loadOtherLineList,
|
||||||
} from 'src/drawApp/commonApp';
|
} from 'src/drawApp/commonApp';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { GraphicData, JlGraphic } from 'src/jl-graphic';
|
import { GraphicData, JlGraphic } from 'jl-graphic';
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const showRangeConfig = ref(true);
|
const showRangeConfig = ref(true);
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import { usePslDrawStore } from 'src/stores/psl-draw-store';
|
import { usePslDrawStore } from 'src/stores/psl-draw-store';
|
||||||
import { PslKey } from 'src/graphics/pslKey/pslKey';
|
import { PslKey } from 'src/graphics/pslKey/pslKey';
|
||||||
import { PslButton } from 'src/graphics/pslButton/pslButton';
|
import { PslButton } from 'src/graphics/pslButton/pslButton';
|
||||||
@ -100,7 +100,7 @@ watch(
|
|||||||
pslDrawStore.getDrawApp().updateSelected(...selectGraphic);
|
pslDrawStore.getDrawApp().updateSelected(...selectGraphic);
|
||||||
relateDeviceConfig.value.refDevicesCode = selectGraphic.map((g) =>
|
relateDeviceConfig.value.refDevicesCode = selectGraphic.map((g) =>
|
||||||
(g as PslKey | PslButton | PslLight).datas.code == ''
|
(g as PslKey | PslButton | PslLight).datas.code == ''
|
||||||
? g.id+''
|
? g.id + ''
|
||||||
: (g as PslKey | PslButton | PslLight).datas.code
|
: (g as PslKey | PslButton | PslLight).datas.code
|
||||||
);
|
);
|
||||||
relateDeviceConfig.value.refDevices = selectGraphic.map(
|
relateDeviceConfig.value.refDevices = selectGraphic.map(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import { useIBPDrawStore } from 'src/stores/ibp-draw-store';
|
import { useIBPDrawStore } from 'src/stores/ibp-draw-store';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { IbpAlarm } from 'src/graphics/ibpAlarm/IbpAlarm';
|
import { IbpAlarm } from 'src/graphics/ibpAlarm/IbpAlarm';
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, provide, ref } from 'vue';
|
import { onMounted, provide, ref } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import { useRelayCabinetStore } from 'src/stores/relayCabinet-store';
|
import { useRelayCabinetStore } from 'src/stores/relayCabinet-store';
|
||||||
import { Relay } from 'src/graphics/relay/Relay';
|
import { Relay } from 'src/graphics/relay/Relay';
|
||||||
import { relayCabinetGraphicData } from 'src/protos/relayCabinetLayoutGraphics';
|
import { relayCabinetGraphicData } from 'src/protos/relayCabinetLayoutGraphics';
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, provide, ref } from 'vue';
|
import { onMounted, provide, ref } from 'vue';
|
||||||
import { QForm, useQuasar } from 'quasar';
|
import { QForm, useQuasar } from 'quasar';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { EsbButton } from 'src/graphics/esbButton/EsbButton';
|
import { EsbButton } from 'src/graphics/esbButton/EsbButton';
|
||||||
import {
|
import {
|
||||||
|
@ -150,7 +150,7 @@ import { ScreenDoor } from 'src/graphics/screenDoor/ScreenDoor';
|
|||||||
import { ScreenDoorData } from 'src/drawApp/graphics/ScreenDoorInteraction';
|
import { ScreenDoorData } from 'src/drawApp/graphics/ScreenDoorInteraction';
|
||||||
import { Platform } from 'src/graphics/platform/Platform';
|
import { Platform } from 'src/graphics/platform/Platform';
|
||||||
import { PlatformData } from 'src/drawApp/graphics/PlatformInteraction';
|
import { PlatformData } from 'src/drawApp/graphics/PlatformInteraction';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
findCommonElements,
|
findCommonElements,
|
||||||
handleCentralizedStationsData,
|
handleCentralizedStationsData,
|
||||||
|
@ -212,7 +212,7 @@ import { useQuasar } from 'quasar';
|
|||||||
import { ApiError } from 'src/boot/axios';
|
import { ApiError } from 'src/boot/axios';
|
||||||
import { request } from 'src/protos/request';
|
import { request } from 'src/protos/request';
|
||||||
import { TurnoutStates } from 'src/drawApp/graphics/TurnoutInteraction';
|
import { TurnoutStates } from 'src/drawApp/graphics/TurnoutInteraction';
|
||||||
import { JlGraphic } from 'src/jl-graphic';
|
import { JlGraphic } from 'jl-graphic';
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const lineStore = useLineStore();
|
const lineStore = useLineStore();
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
||||||
import { useIbpStore } from 'src/stores/ibp-store';
|
import { useIbpStore } from 'src/stores/ibp-store';
|
||||||
import { IbpLightData, IbpLightState } from './graphics/IbpLightInteraction';
|
import { IbpLightData, IbpLightState } from './graphics/IbpLightInteraction';
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
import { TrainTemplate } from 'src/graphics/train/Train';
|
import { TrainTemplate } from 'src/graphics/train/Train';
|
||||||
import { TrainDraw } from 'src/graphics/train/TrainDrawAssistant';
|
import { TrainDraw } from 'src/graphics/train/TrainDrawAssistant';
|
||||||
import { Signal, SignalTemplate } from 'src/graphics/signal/Signal';
|
import { Signal, SignalTemplate } from 'src/graphics/signal/Signal';
|
||||||
import { GraphicData, IDrawApp } from 'src/jl-graphic';
|
import { GraphicData, IDrawApp, ContextMenu, MenuItemOptions } from 'jl-graphic';
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { TrainState } from './graphics/TrainInteraction';
|
import { TrainState } from './graphics/TrainInteraction';
|
||||||
import {
|
import {
|
||||||
SignalData,
|
SignalData,
|
||||||
|
@ -5,10 +5,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
@ -21,8 +20,7 @@ import {
|
|||||||
|
|
||||||
export class AutoReturnBoxData
|
export class AutoReturnBoxData
|
||||||
extends GraphicDataBase
|
extends GraphicDataBase
|
||||||
implements IAutoReturnBoxData
|
implements IAutoReturnBoxData {
|
||||||
{
|
|
||||||
constructor(data?: graphicData.AutoReturnBox) {
|
constructor(data?: graphicData.AutoReturnBox) {
|
||||||
let autoReturnBox;
|
let autoReturnBox;
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@ -69,8 +67,7 @@ export class AutoReturnBoxData
|
|||||||
|
|
||||||
export class AutoReturnBoxState
|
export class AutoReturnBoxState
|
||||||
extends GraphicStateBase
|
extends GraphicStateBase
|
||||||
implements IAutoReturnBoxState
|
implements IAutoReturnBoxState {
|
||||||
{
|
|
||||||
constructor(data?: state.ButtonState) {
|
constructor(data?: state.ButtonState) {
|
||||||
let ibpButtonState;
|
let ibpButtonState;
|
||||||
if (data) {
|
if (data) {
|
||||||
|
@ -5,9 +5,9 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase } from './GraphicDataBase';
|
import { GraphicDataBase } from './GraphicDataBase';
|
||||||
|
@ -10,9 +10,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
||||||
@ -66,8 +66,7 @@ export class EsbButtonData extends GraphicDataBase implements IEsbButtonData {
|
|||||||
|
|
||||||
export class EsbButtonState
|
export class EsbButtonState
|
||||||
extends GraphicStateBase
|
extends GraphicStateBase
|
||||||
implements IEsbButtonState
|
implements IEsbButtonState {
|
||||||
{
|
|
||||||
constructor(data?: state.ButtonState) {
|
constructor(data?: state.ButtonState) {
|
||||||
let ibpButtonState;
|
let ibpButtonState;
|
||||||
if (data) {
|
if (data) {
|
||||||
|
@ -6,9 +6,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase } from './GraphicDataBase';
|
import { GraphicDataBase } from './GraphicDataBase';
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
GraphicTransform,
|
GraphicTransform,
|
||||||
IChildTransform,
|
IChildTransform,
|
||||||
IGraphicTransform,
|
IGraphicTransform,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
// import { toStorageTransform } from '..';
|
// import { toStorageTransform } from '..';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { IPointData, Point } from 'pixi.js';
|
import { IPointData, Point } from 'pixi.js';
|
||||||
|
@ -10,7 +10,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { FederatedMouseEvent } from 'pixi.js';
|
import { FederatedMouseEvent } from 'pixi.js';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
import { useIbpStore } from 'src/stores/ibp-store';
|
import { useIbpStore } from 'src/stores/ibp-store';
|
||||||
@ -67,8 +67,7 @@ export class IBPButtonData extends GraphicDataBase implements IIBPButtonData {
|
|||||||
|
|
||||||
export class IbpButtonState
|
export class IbpButtonState
|
||||||
extends GraphicStateBase
|
extends GraphicStateBase
|
||||||
implements IIbpButtonState
|
implements IIbpButtonState {
|
||||||
{
|
|
||||||
constructor(data?: state.ButtonState) {
|
constructor(data?: state.ButtonState) {
|
||||||
let ibpButtonState;
|
let ibpButtonState;
|
||||||
if (data) {
|
if (data) {
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { type FederatedMouseEvent } from 'pixi.js';
|
import { type FederatedMouseEvent } from 'pixi.js';
|
||||||
import { useIbpStore } from 'src/stores/ibp-store';
|
import { useIbpStore } from 'src/stores/ibp-store';
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
|
|
||||||
export class PlatformData extends GraphicDataBase implements IPlatformData {
|
export class PlatformData extends GraphicDataBase implements IPlatformData {
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { pslGraphicData } from 'src/protos/pslGraphics';
|
import { pslGraphicData } from 'src/protos/pslGraphics';
|
||||||
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
||||||
import { pslOperate } from 'src/api/Simulation';
|
import { pslOperate } from 'src/api/Simulation';
|
||||||
@ -65,8 +65,7 @@ export class PslButtonData extends GraphicDataBase implements IPslButtonData {
|
|||||||
}
|
}
|
||||||
export class PslButtonState
|
export class PslButtonState
|
||||||
extends GraphicStateBase
|
extends GraphicStateBase
|
||||||
implements IPslButtonState
|
implements IPslButtonState {
|
||||||
{
|
|
||||||
constructor(proto?: state.ButtonState) {
|
constructor(proto?: state.ButtonState) {
|
||||||
let states;
|
let states;
|
||||||
if (proto) {
|
if (proto) {
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { loadScreenDoorConfig } from '../commonApp';
|
import { loadScreenDoorConfig } from '../commonApp';
|
||||||
|
|
||||||
export class ScreenDoorData extends GraphicDataBase implements IScreenDoorData {
|
export class ScreenDoorData extends GraphicDataBase implements IScreenDoorData {
|
||||||
@ -60,8 +60,7 @@ export class ScreenDoorData extends GraphicDataBase implements IScreenDoorData {
|
|||||||
|
|
||||||
export class ScreenDoorState
|
export class ScreenDoorState
|
||||||
extends GraphicStateBase
|
extends GraphicStateBase
|
||||||
implements IScreenDoorState
|
implements IScreenDoorState {
|
||||||
{
|
|
||||||
constructor(proto?: state.PsdState) {
|
constructor(proto?: state.PsdState) {
|
||||||
let states;
|
let states;
|
||||||
if (proto) {
|
if (proto) {
|
||||||
|
@ -12,15 +12,15 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu,
|
||||||
|
} from 'jl-graphic';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import { SectionGraphicHitArea } from 'src/graphics/section/SectionDrawAssistant';
|
import { SectionGraphicHitArea } from 'src/graphics/section/SectionDrawAssistant';
|
||||||
import { Dialog, Notify } from 'quasar';
|
import { Dialog, Notify } from 'quasar';
|
||||||
import AddTrainDialog from '../../components/draw-app/dialogs/AddTrainDialog.vue';
|
import AddTrainDialog from '../../components/draw-app/dialogs/AddTrainDialog.vue';
|
||||||
import { addTrain } from 'src/api/Simulation';
|
import { addTrain } from 'src/api/Simulation';
|
||||||
import { successNotify } from '../../utils/CommonNotify';
|
import { successNotify } from '../../utils/CommonNotify';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting';
|
import { AxleCounting } from 'src/graphics/axleCounting/AxleCounting';
|
||||||
import { ApiError } from 'src/boot/axios';
|
import { ApiError } from 'src/boot/axios';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
|
@ -10,13 +10,12 @@ import {
|
|||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import { SectionLinkGraphicHitArea } from 'src/graphics/sectionLink/SectionLinkDrawAssistant';
|
import { SectionLinkGraphicHitArea } from 'src/graphics/sectionLink/SectionLinkDrawAssistant';
|
||||||
export class SectionLinkData
|
export class SectionLinkData
|
||||||
extends GraphicDataBase
|
extends GraphicDataBase
|
||||||
implements ISectionLinkData
|
implements ISectionLinkData {
|
||||||
{
|
|
||||||
constructor(data?: graphicData.SectionLink) {
|
constructor(data?: graphicData.SectionLink) {
|
||||||
let sectionLink;
|
let sectionLink;
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
@ -11,9 +11,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
import { FederatedMouseEvent, DisplayObject } from 'pixi.js';
|
import { FederatedMouseEvent, DisplayObject } from 'pixi.js';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
|
@ -9,9 +9,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase } from './GraphicDataBase';
|
import { GraphicDataBase } from './GraphicDataBase';
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { KilometerSystem } from 'src/graphics/signal/Signal';
|
import { KilometerSystem } from 'src/graphics/signal/Signal';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase } from './GraphicDataBase';
|
import { GraphicDataBase } from './GraphicDataBase';
|
||||||
|
@ -2,13 +2,13 @@ import * as pb_1 from 'google-protobuf';
|
|||||||
import { ITrainState, Train } from 'src/graphics/train/Train';
|
import { ITrainState, Train } from 'src/graphics/train/Train';
|
||||||
import { GraphicStateBase } from './GraphicDataBase';
|
import { GraphicStateBase } from './GraphicDataBase';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import {
|
import {
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu,
|
||||||
|
} from 'jl-graphic';
|
||||||
import { DisplayObject, FederatedMouseEvent } from 'pixi.js';
|
import { DisplayObject, FederatedMouseEvent } from 'pixi.js';
|
||||||
import { removeTrain, updateTrain } from 'src/api/Simulation';
|
import { removeTrain, updateTrain } from 'src/api/Simulation';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
|
@ -14,13 +14,13 @@ import {
|
|||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu,
|
||||||
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
ForkHitArea,
|
ForkHitArea,
|
||||||
TurnoutSectionHitArea,
|
TurnoutSectionHitArea,
|
||||||
} from 'src/graphics/turnout/TurnoutDrawAssistant';
|
} from 'src/graphics/turnout/TurnoutDrawAssistant';
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import { setSwitchPosition } from 'src/api/Simulation';
|
import { setSwitchPosition } from 'src/api/Simulation';
|
||||||
import { Dialog, Notify } from 'quasar';
|
import { Dialog, Notify } from 'quasar';
|
||||||
|
@ -10,9 +10,9 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
|
||||||
|
@ -5,8 +5,8 @@ import {
|
|||||||
GraphicData,
|
GraphicData,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp, MenuItemOptions, ContextMenu
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
||||||
import { useIBPDrawStore } from 'src/stores/ibp-draw-store';
|
import { useIBPDrawStore } from 'src/stores/ibp-draw-store';
|
||||||
import { IBPButtonData, IbpButtonState } from './graphics/IBPButtonInteraction';
|
import { IBPButtonData, IbpButtonState } from './graphics/IBPButtonInteraction';
|
||||||
@ -30,8 +30,6 @@ import { ArrowDraw } from 'src/graphics/arrow/ArrowDrawAssistant';
|
|||||||
import { ArrowData } from './graphics/ArrowInteraction';
|
import { ArrowData } from './graphics/ArrowInteraction';
|
||||||
import { TextContentDraw } from 'src/graphics/textContent/TextContentDrawAssistant';
|
import { TextContentDraw } from 'src/graphics/textContent/TextContentDrawAssistant';
|
||||||
import { IbpTextData } from './graphics/IbpTextInteraction';
|
import { IbpTextData } from './graphics/IbpTextInteraction';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { IbpLightDraw } from 'src/graphics/ibpLight/IbpLightDrawAssistant';
|
import { IbpLightDraw } from 'src/graphics/ibpLight/IbpLightDrawAssistant';
|
||||||
import { IbpLightTempalte } from 'src/graphics/ibpLight/IbpLight';
|
import { IbpLightTempalte } from 'src/graphics/ibpLight/IbpLight';
|
||||||
import { IbpLightData, IbpLightState } from './graphics/IbpLightInteraction';
|
import { IbpLightData, IbpLightState } from './graphics/IbpLightInteraction';
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { getDraft } from 'src/api/DraftApi';
|
import { getDraft } from 'src/api/DraftApi';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ClientEngine, IGraphicApp, newGraphicApp } from 'src/jl-graphic';
|
import { ClientEngine, IGraphicApp, newGraphicApp } from 'jl-graphic';
|
||||||
import { initRelayScene } from './relayScene';
|
import { initRelayScene } from './relayScene';
|
||||||
import { initLineScene } from './lineScene';
|
import { initLineScene } from './lineScene';
|
||||||
import { initPslScene } from './pslScene';
|
import { initPslScene } from './pslScene';
|
||||||
|
@ -4,7 +4,10 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
GraphicQueryStore,
|
GraphicQueryStore,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu,
|
||||||
|
IGraphicScene,
|
||||||
|
} from 'jl-graphic';
|
||||||
import { TrainState } from './graphics/TrainInteraction';
|
import { TrainState } from './graphics/TrainInteraction';
|
||||||
import { Train, TrainTemplate } from 'src/graphics/train/Train';
|
import { Train, TrainTemplate } from 'src/graphics/train/Train';
|
||||||
import { TrainOperateInteraction } from './graphics/TrainInteraction';
|
import { TrainOperateInteraction } from './graphics/TrainInteraction';
|
||||||
@ -66,8 +69,6 @@ import {
|
|||||||
TrainWindowTemplate,
|
TrainWindowTemplate,
|
||||||
} from 'src/graphics/trainWindow/TrainWindow';
|
} from 'src/graphics/trainWindow/TrainWindow';
|
||||||
import { TrainWindowData } from './graphics/TrainWindowInteraction';
|
import { TrainWindowData } from './graphics/TrainWindowInteraction';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import {
|
import {
|
||||||
AxleCountingSection,
|
AxleCountingSection,
|
||||||
AxleCountingSectionTemplate,
|
AxleCountingSectionTemplate,
|
||||||
@ -131,10 +132,6 @@ import { Curvature, CurvatureTemplate } from 'src/graphics/curvature/Curvature';
|
|||||||
import { SlopeData } from './graphics/SlopeInteraction';
|
import { SlopeData } from './graphics/SlopeInteraction';
|
||||||
import { CurvatureKiloMarkerData } from './graphics/CurvatureKiloMarkerInteraction';
|
import { CurvatureKiloMarkerData } from './graphics/CurvatureKiloMarkerInteraction';
|
||||||
import { CurvatureData } from './graphics/CurvatureInteraction';
|
import { CurvatureData } from './graphics/CurvatureInteraction';
|
||||||
import {
|
|
||||||
GraphicAppOptions,
|
|
||||||
IGraphicScene,
|
|
||||||
} from 'src/jl-graphic/app/JlGraphicApp';
|
|
||||||
import {
|
import {
|
||||||
TrackSection,
|
TrackSection,
|
||||||
TrackSectionTemplate,
|
TrackSectionTemplate,
|
||||||
@ -208,7 +205,7 @@ export function getLineScene() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function initLineScene(lineApp: IGraphicApp, sceneName: string) {
|
export function initLineScene(lineApp: IGraphicApp, sceneName: string) {
|
||||||
const options: GraphicAppOptions = {
|
const options = {
|
||||||
dataLoader: loadLineDatas,
|
dataLoader: loadLineDatas,
|
||||||
};
|
};
|
||||||
lineScene = lineApp.initScene(sceneName, options);
|
lineScene = lineApp.initScene(sceneName, options);
|
||||||
|
@ -5,10 +5,8 @@ import {
|
|||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp,
|
||||||
GraphicData,
|
GraphicData, ContextMenu, MenuItemOptions
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { pslGraphicData } from 'src/protos/pslGraphics';
|
import { pslGraphicData } from 'src/protos/pslGraphics';
|
||||||
import { saveDraft, getDraft } from 'src/api/DraftApi';
|
import { saveDraft, getDraft } from 'src/api/DraftApi';
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { getPublishMapInfoByName } from 'src/api/PublishApi';
|
import { getPublishMapInfoByName } from 'src/api/PublishApi';
|
||||||
import { usePslStore } from 'src/stores/psl-store';
|
import { usePslStore } from 'src/stores/psl-store';
|
||||||
import { toUint8Array } from 'js-base64';
|
import { toUint8Array } from 'js-base64';
|
||||||
|
@ -4,13 +4,13 @@ import { relayCabinetGraphicData } from 'src/protos/relayCabinetLayoutGraphics';
|
|||||||
import { GraphicDataBase, GraphicStateBase } from '../graphics/GraphicDataBase';
|
import { GraphicDataBase, GraphicStateBase } from '../graphics/GraphicDataBase';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import {
|
import {
|
||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu,
|
||||||
|
} from 'jl-graphic';
|
||||||
import { DisplayObject, FederatedMouseEvent } from 'pixi.js';
|
import { DisplayObject, FederatedMouseEvent } from 'pixi.js';
|
||||||
import { setRelayState } from 'src/api/Simulation';
|
import { setRelayState } from 'src/api/Simulation';
|
||||||
import { ApiError } from 'src/boot/axios';
|
import { ApiError } from 'src/boot/axios';
|
||||||
|
@ -7,9 +7,9 @@ import {
|
|||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
ContextMenu,
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
} from 'jl-graphic';
|
||||||
import { successNotify, errorNotify } from '../utils/CommonNotify';
|
import { successNotify, errorNotify } from '../utils/CommonNotify';
|
||||||
import { Dialog } from 'quasar';
|
import { Dialog } from 'quasar';
|
||||||
import { saveDraft, getDraft } from 'src/api/DraftApi';
|
import { saveDraft, getDraft } from 'src/api/DraftApi';
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
IGraphicApp,
|
IGraphicApp,
|
||||||
IGraphicScene,
|
IGraphicScene,
|
||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { getPublishMapInfoByLineId } from 'src/api/PublishApi';
|
import { getPublishMapInfoByLineId } from 'src/api/PublishApi';
|
||||||
import { useLineStore } from 'src/stores/line-store';
|
import { useLineStore } from 'src/stores/line-store';
|
||||||
import { toUint8Array } from 'js-base64';
|
import { toUint8Array } from 'js-base64';
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { getDraft } from 'src/api/DraftApi';
|
import { getDraft } from 'src/api/DraftApi';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
IGraphicStorage,
|
IGraphicStorage,
|
||||||
KeyListener,
|
KeyListener,
|
||||||
newDrawApp,
|
newDrawApp,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { getDraft } from 'src/api/DraftApi';
|
import { getDraft } from 'src/api/DraftApi';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Graphics } from 'pixi.js';
|
import { Graphics } from 'pixi.js';
|
||||||
import { calculateMirrorPoint } from 'src/jl-graphic';
|
import { calculateMirrorPoint } from 'jl-graphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { Turnout } from './turnout/Turnout';
|
import { Turnout } from './turnout/Turnout';
|
||||||
import { Section, DevicePort } from './section/Section';
|
import { Section, DevicePort } from './section/Section';
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GraphicState,
|
GraphicState,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
||||||
import IPBButtonAssets from './ibpButton.png';
|
import IPBButtonAssets from './ibpButton.png';
|
||||||
import IBPButtonJSON from './ibpButton.json';
|
import IBPButtonJSON from './ibpButton.json';
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IBPButton, IBPButtonTemplate, IIBPButtonData } from './IBPButton';
|
import { IBPButton, IBPButtonTemplate, IIBPButtonData } from './IBPButton';
|
||||||
import { FederatedMouseEvent, Point } from 'pixi.js';
|
import { FederatedMouseEvent, Point } from 'pixi.js';
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Graphics, IPointData } from 'pixi.js';
|
import { Graphics, IPointData } from 'pixi.js';
|
||||||
import { GraphicData, JlGraphic, JlGraphicTemplate } from 'src/jl-graphic';
|
import { GraphicData, JlGraphic, JlGraphicTemplate, ILineGraphic } from 'jl-graphic';
|
||||||
import { ILineGraphic } from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
|
|
||||||
export interface IArrowData extends GraphicData {
|
export interface IArrowData extends GraphicData {
|
||||||
get code(): string; // 编号
|
get code(): string; // 编号
|
||||||
|
@ -9,7 +9,9 @@ import {
|
|||||||
linePoint,
|
linePoint,
|
||||||
AbsorbablePosition,
|
AbsorbablePosition,
|
||||||
AbsorbableLine,
|
AbsorbableLine,
|
||||||
} from 'src/jl-graphic';
|
ILineGraphic,
|
||||||
|
PolylineEditPlugin,
|
||||||
|
} from 'jl-graphic';
|
||||||
import { IArrowData, Arrow, ArrowConsts, ArrowTemplate } from './Arrow';
|
import { IArrowData, Arrow, ArrowConsts, ArrowTemplate } from './Arrow';
|
||||||
import {
|
import {
|
||||||
DisplayObject,
|
DisplayObject,
|
||||||
@ -18,10 +20,6 @@ import {
|
|||||||
IHitArea,
|
IHitArea,
|
||||||
Point,
|
Point,
|
||||||
} from 'pixi.js';
|
} from 'pixi.js';
|
||||||
import {
|
|
||||||
ILineGraphic,
|
|
||||||
PolylineEditPlugin,
|
|
||||||
} from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
|
|
||||||
export class ArrowDraw extends GraphicDrawAssistant<ArrowTemplate, IArrowData> {
|
export class ArrowDraw extends GraphicDrawAssistant<ArrowTemplate, IArrowData> {
|
||||||
points: Point[] = [];
|
points: Point[] = [];
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IAutoReturnBoxData extends GraphicData {
|
export interface IAutoReturnBoxData extends GraphicData {
|
||||||
get code(): string;
|
get code(): string;
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
pointBox,
|
pointBox,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
AutoReturnBox,
|
AutoReturnBox,
|
||||||
AutoReturnBoxTemplate,
|
AutoReturnBoxTemplate,
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IRelatedRefData, protoPort2Data } from '../CommonGraphics';
|
import { IRelatedRefData, protoPort2Data } from '../CommonGraphics';
|
||||||
import { KilometerSystem } from '../signal/Signal';
|
import { KilometerSystem } from '../signal/Signal';
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
distance2,
|
distance2,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IAxleCountingData,
|
IAxleCountingData,
|
||||||
@ -175,8 +175,7 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
|||||||
});
|
});
|
||||||
axleCountingRefs.forEach((axleCountingRef) => {
|
axleCountingRefs.forEach((axleCountingRef) => {
|
||||||
map.set(
|
map.set(
|
||||||
`${axleCountingRef.id}-${
|
`${axleCountingRef.id}-${graphicData.RelatedRef.DevicePort[axleCountingRef.devicePort]
|
||||||
graphicData.RelatedRef.DevicePort[axleCountingRef.devicePort]
|
|
||||||
}`,
|
}`,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
calculateLineMidpoint,
|
calculateLineMidpoint,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IRelatedRefData, protoPort2Data } from '../CommonGraphics';
|
import { IRelatedRefData, protoPort2Data } from '../CommonGraphics';
|
||||||
import { DevicePort } from '../section/Section';
|
import { DevicePort } from '../section/Section';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IAxleCountingSectionData,
|
IAxleCountingSectionData,
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
|
|
||||||
export interface IBeacon extends GraphicData {
|
export interface IBeacon extends GraphicData {
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { Beacon, BeaconTemplate, IBeacon } from './Beacon';
|
import { Beacon, BeaconTemplate, IBeacon } from './Beacon';
|
||||||
|
|
||||||
export interface IBeaconDrawOptions {
|
export interface IBeaconDrawOptions {
|
||||||
|
@ -4,9 +4,8 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
calculateDistanceFromPointToLine,
|
calculateDistanceFromPointToLine,
|
||||||
getRectangleCenter,
|
getRectangleCenter, ILineGraphic
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ILineGraphic } from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
import { SectionGraphic } from '../sectionGraphic/SectionGraphic';
|
import { SectionGraphic } from '../sectionGraphic/SectionGraphic';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { Section, DevicePort, SectionType } from '../section/Section';
|
import { Section, DevicePort, SectionType } from '../section/Section';
|
||||||
@ -45,8 +44,7 @@ enum devicePort {
|
|||||||
|
|
||||||
export class ConcentrationDividingLine
|
export class ConcentrationDividingLine
|
||||||
extends JlGraphic
|
extends JlGraphic
|
||||||
implements ILineGraphic
|
implements ILineGraphic {
|
||||||
{
|
|
||||||
static Type = 'ConcentrationDividingLine';
|
static Type = 'ConcentrationDividingLine';
|
||||||
lineGraphic: SectionGraphic;
|
lineGraphic: SectionGraphic;
|
||||||
|
|
||||||
|
@ -5,7 +5,12 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
} from 'src/jl-graphic';
|
PolylineEditPlugin,
|
||||||
|
addWayPoint,
|
||||||
|
clearWayPoint,
|
||||||
|
MenuItemOptions,
|
||||||
|
ContextMenu
|
||||||
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
IConcentrationDividingLineData,
|
IConcentrationDividingLineData,
|
||||||
ConcentrationDividingLine,
|
ConcentrationDividingLine,
|
||||||
@ -19,13 +24,6 @@ import {
|
|||||||
IHitArea,
|
IHitArea,
|
||||||
Point,
|
Point,
|
||||||
} from 'pixi.js';
|
} from 'pixi.js';
|
||||||
import {
|
|
||||||
PolylineEditPlugin,
|
|
||||||
addWayPoint,
|
|
||||||
clearWayPoint,
|
|
||||||
} from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { getWayLineIndex } from '../polygon/PolygonUtils';
|
import { getWayLineIndex } from '../polygon/PolygonUtils';
|
||||||
|
|
||||||
export class ConcentrationDividingLineDraw extends GraphicDrawAssistant<
|
export class ConcentrationDividingLineDraw extends GraphicDrawAssistant<
|
||||||
|
@ -2,7 +2,7 @@ import { IPointData } from 'pixi.js';
|
|||||||
import { Section } from '../section/Section';
|
import { Section } from '../section/Section';
|
||||||
import { Turnout } from '../turnout/Turnout';
|
import { Turnout } from '../turnout/Turnout';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
import { IDrawApp, JlGraphic } from 'src/jl-graphic';
|
import { IDrawApp, JlGraphic } from 'jl-graphic';
|
||||||
import { GraphicDataBase } from 'src/drawApp/graphics/GraphicDataBase';
|
import { GraphicDataBase } from 'src/drawApp/graphics/GraphicDataBase';
|
||||||
import { TurnoutData } from 'src/drawApp/graphics/TurnoutInteraction';
|
import { TurnoutData } from 'src/drawApp/graphics/TurnoutInteraction';
|
||||||
import { SectionData } from 'src/drawApp/graphics/SectionInteraction';
|
import { SectionData } from 'src/drawApp/graphics/SectionInteraction';
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
calculateLineMidpoint,
|
calculateLineMidpoint,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { KiloMarkerConsts } from '../kilometerMarker/KilometerMarker';
|
import { KiloMarkerConsts } from '../kilometerMarker/KilometerMarker';
|
||||||
export interface ICurvatureData extends GraphicData {
|
export interface ICurvatureData extends GraphicData {
|
||||||
get points(): IPointData[]; // 线坐标点
|
get points(): IPointData[]; // 线坐标点
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
pointBox,
|
pointBox,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { ICurvatureData, Curvature, CurvatureTemplate } from './Curvature';
|
import { ICurvatureData, Curvature, CurvatureTemplate } from './Curvature';
|
||||||
import { CurvatureKiloMarker } from '../curvatureKiloMarker/CurvatureKiloMarker';
|
import { CurvatureKiloMarker } from '../curvatureKiloMarker/CurvatureKiloMarker';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { JlGraphic, JlGraphicTemplate } from 'src/jl-graphic';
|
import { JlGraphic, JlGraphicTemplate } from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
IKiloMarkerData,
|
IKiloMarkerData,
|
||||||
KiloMarkerConsts,
|
KiloMarkerConsts,
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { FederatedMouseEvent, IHitArea, Point } from 'pixi.js';
|
import { FederatedMouseEvent, IHitArea, Point } from 'pixi.js';
|
||||||
import { IKiloMarkerData } from '../kilometerMarker/KilometerMarker';
|
import { IKiloMarkerData } from '../kilometerMarker/KilometerMarker';
|
||||||
import {
|
import {
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IDepartureTimer extends GraphicData {
|
export interface IDepartureTimer extends GraphicData {
|
||||||
get code(): string;
|
get code(): string;
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
DepartureTimer,
|
DepartureTimer,
|
||||||
DepartureTimerTemplate,
|
DepartureTimerTemplate,
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IEsbButtonData extends GraphicData {
|
export interface IEsbButtonData extends GraphicData {
|
||||||
get code(): string;
|
get code(): string;
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { EsbButton, EsbButtonTemplate, IEsbButtonData } from './EsbButton';
|
import { EsbButton, EsbButtonTemplate, IEsbButtonData } from './EsbButton';
|
||||||
|
|
||||||
export interface IEsbButtonDataDrawOptions {
|
export interface IEsbButtonDataDrawOptions {
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IZdwxEsbData extends GraphicData {
|
export interface IZdwxEsbData extends GraphicData {
|
||||||
get code(): string;
|
get code(): string;
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
ZdwxEsb,
|
ZdwxEsb,
|
||||||
ZdwxEsbTemplate,
|
ZdwxEsbTemplate,
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IGatedBox extends GraphicData {
|
export interface IGatedBox extends GraphicData {
|
||||||
get code(): string;
|
get code(): string;
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { GatedBox, GatedBoxTemplate, IGatedBox } from './GatedBox';
|
import { GatedBox, GatedBoxTemplate, IGatedBox } from './GatedBox';
|
||||||
|
|
||||||
export interface IGatedBoxDrawOptions {
|
export interface IGatedBoxDrawOptions {
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GraphicState,
|
GraphicState,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import Ibp_Alarm_Assets from './ibp-alarm-spritesheet.png';
|
import Ibp_Alarm_Assets from './ibp-alarm-spritesheet.png';
|
||||||
import Ibp_Alarm_JSON from './ibp-alarm-data.json';
|
import Ibp_Alarm_JSON from './ibp-alarm-data.json';
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IIbpAlarmData, IbpAlarm, IbpAlarmTemplate } from './IbpAlarm';
|
import { IIbpAlarmData, IbpAlarm, IbpAlarmTemplate } from './IbpAlarm';
|
||||||
|
|
||||||
export class IbpAlarmDraw extends GraphicDrawAssistant<
|
export class IbpAlarmDraw extends GraphicDrawAssistant<
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GraphicState,
|
GraphicState,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import Ibp_Key_Assets from './ibp-key-spritesheet.png';
|
import Ibp_Key_Assets from './ibp-key-spritesheet.png';
|
||||||
import Ibp_Key_JSON from './ibp-key-data.json';
|
import Ibp_Key_JSON from './ibp-key-data.json';
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IIbpKeyData, IbpKey, IbpKeyTemplate } from './IbpKey';
|
import { IIbpKeyData, IbpKey, IbpKeyTemplate } from './IbpKey';
|
||||||
|
|
||||||
export class IbpKeyDraw extends GraphicDrawAssistant<
|
export class IbpKeyDraw extends GraphicDrawAssistant<
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
GraphicState,
|
GraphicState,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
||||||
|
|
||||||
export interface IIbpLightData extends GraphicData {
|
export interface IIbpLightData extends GraphicData {
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
GraphicTransformEvent,
|
GraphicTransformEvent,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { IIbpLightData, IbpLight, IbpLightTempalte } from './IbpLight';
|
import { IIbpLightData, IbpLight, IbpLightTempalte } from './IbpLight';
|
||||||
import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js';
|
import { DisplayObject, FederatedMouseEvent, Point } from 'pixi.js';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
import { ibpGraphicData } from 'src/protos/ibpGraphics';
|
||||||
|
|
||||||
export interface IIbpStationTextData extends GraphicData {
|
export interface IIbpStationTextData extends GraphicData {
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
calculateLineMidpoint,
|
calculateLineMidpoint,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
IIbpStationTextData,
|
IIbpStationTextData,
|
||||||
IbpStationText,
|
IbpStationText,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Graphics } from 'pixi.js';
|
import { Graphics } from 'pixi.js';
|
||||||
import { KilometerSystem } from '../signal/Signal';
|
import { KilometerSystem } from '../signal/Signal';
|
||||||
import { GraphicData } from 'src/jl-graphic';
|
import { GraphicData } from 'jl-graphic';
|
||||||
|
|
||||||
export const KiloMarkerConsts = {
|
export const KiloMarkerConsts = {
|
||||||
size: 50,
|
size: 50,
|
||||||
|
@ -6,9 +6,8 @@ import {
|
|||||||
VectorText,
|
VectorText,
|
||||||
getNormalVector,
|
getNormalVector,
|
||||||
movePointAlongNormal,
|
movePointAlongNormal,
|
||||||
GraphicIdGenerator,
|
GraphicIdGenerator, ILineGraphic
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { ILineGraphic } from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
import { AxleCounting } from '../axleCounting/AxleCounting';
|
import { AxleCounting } from '../axleCounting/AxleCounting';
|
||||||
import { IRelatedRefData, DevicePosition } from '../CommonGraphics';
|
import { IRelatedRefData, DevicePosition } from '../CommonGraphics';
|
||||||
import { Turnout } from '../turnout/Turnout';
|
import { Turnout } from '../turnout/Turnout';
|
||||||
|
@ -6,14 +6,12 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
VectorText,
|
VectorText,
|
||||||
} from 'src/jl-graphic';
|
|
||||||
import { ILinkData, Link, LinkConsts, LinkTemplate } from './Link';
|
|
||||||
import { DisplayObject, Graphics, IHitArea, Point } from 'pixi.js';
|
|
||||||
import {
|
|
||||||
PolylineEditPlugin,
|
PolylineEditPlugin,
|
||||||
ILineGraphic,
|
ILineGraphic,
|
||||||
IEditPointOptions,
|
IEditPointOptions,
|
||||||
} from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
} from 'jl-graphic';
|
||||||
|
import { ILinkData, Link, LinkConsts, LinkTemplate } from './Link';
|
||||||
|
import { DisplayObject, Graphics, IHitArea, Point } from 'pixi.js';
|
||||||
|
|
||||||
export class LinkDraw extends GraphicDrawAssistant<LinkTemplate, ILinkData> {
|
export class LinkDraw extends GraphicDrawAssistant<LinkTemplate, ILinkData> {
|
||||||
points: Point[] = [];
|
points: Point[] = [];
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
calculateLineMidpoint,
|
calculateLineMidpoint,
|
||||||
getNormalVector,
|
getNormalVector,
|
||||||
movePointAlongNormal,
|
movePointAlongNormal,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface ILogicSectionData extends GraphicData {
|
export interface ILogicSectionData extends GraphicData {
|
||||||
get code(): string; // 编号
|
get code(): string; // 编号
|
||||||
|
@ -13,7 +13,9 @@ import {
|
|||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
splitLineEvenly,
|
splitLineEvenly,
|
||||||
} from 'src/jl-graphic';
|
MenuItemOptions,
|
||||||
|
ContextMenu
|
||||||
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ILogicSectionData,
|
ILogicSectionData,
|
||||||
@ -25,8 +27,6 @@ import { Turnout } from '../turnout/Turnout';
|
|||||||
import { LogicSectionData } from 'src/drawApp/graphics/LogicSectionInteraction';
|
import { LogicSectionData } from 'src/drawApp/graphics/LogicSectionInteraction';
|
||||||
import { AxleCountingSection } from '../axleCountingSection/AxleCountingSection';
|
import { AxleCountingSection } from '../axleCountingSection/AxleCountingSection';
|
||||||
import SectionSplitDialog from 'src/components/draw-app/dialogs/SectionSplitDialog.vue';
|
import SectionSplitDialog from 'src/components/draw-app/dialogs/SectionSplitDialog.vue';
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
import { Dialog } from 'quasar';
|
import { Dialog } from 'quasar';
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
VectorText,
|
VectorText,
|
||||||
getRectangleCenter,
|
getRectangleCenter,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
export interface IPhaseFailureProtectorData extends GraphicData {
|
export interface IPhaseFailureProtectorData extends GraphicData {
|
||||||
get code(): string; // 编号
|
get code(): string; // 编号
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
IPhaseFailureProtectorData,
|
IPhaseFailureProtectorData,
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
distance2,
|
distance2,
|
||||||
getRectangleCenter,
|
getRectangleCenter,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import { Station } from '../station/Station';
|
import { Station } from '../station/Station';
|
||||||
import { Section } from '../section/Section';
|
import { Section } from '../section/Section';
|
||||||
import { state } from 'src/protos/device_state';
|
import { state } from 'src/protos/device_state';
|
||||||
|
@ -6,7 +6,7 @@ import {
|
|||||||
GraphicInteractionPlugin,
|
GraphicInteractionPlugin,
|
||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
import { IPlatformData, Platform, PlatformTemplate } from './Platform';
|
import { IPlatformData, Platform, PlatformTemplate } from './Platform';
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Graphics, IPointData } from 'pixi.js';
|
import { Graphics, IPointData } from 'pixi.js';
|
||||||
import { GraphicData, JlGraphic, JlGraphicTemplate } from 'src/jl-graphic';
|
import { GraphicData, JlGraphic, JlGraphicTemplate, ILineGraphic } from 'jl-graphic';
|
||||||
import { ILineGraphic } from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
import { graphicData } from 'src/protos/stationLayoutGraphics';
|
||||||
|
|
||||||
export interface IPolygonData extends GraphicData {
|
export interface IPolygonData extends GraphicData {
|
||||||
|
@ -5,7 +5,13 @@ import {
|
|||||||
IDrawApp,
|
IDrawApp,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
linePoint,
|
linePoint,
|
||||||
} from 'src/jl-graphic';
|
PolylineEditPlugin,
|
||||||
|
addWayPoint,
|
||||||
|
clearWayPoint,
|
||||||
|
getWayLineIndex,
|
||||||
|
MenuItemOptions,
|
||||||
|
ContextMenu
|
||||||
|
} from 'jl-graphic';
|
||||||
import {
|
import {
|
||||||
IPolygonData,
|
IPolygonData,
|
||||||
Polygon,
|
Polygon,
|
||||||
@ -19,14 +25,6 @@ import {
|
|||||||
IHitArea,
|
IHitArea,
|
||||||
Point,
|
Point,
|
||||||
} from 'pixi.js';
|
} from 'pixi.js';
|
||||||
import {
|
|
||||||
PolylineEditPlugin,
|
|
||||||
addWayPoint,
|
|
||||||
clearWayPoint,
|
|
||||||
getWayLineIndex,
|
|
||||||
} from 'src/jl-graphic/plugins/GraphicEditPlugin';
|
|
||||||
import { MenuItemOptions } from 'src/jl-graphic/ui/Menu';
|
|
||||||
import { ContextMenu } from 'src/jl-graphic/ui/ContextMenu';
|
|
||||||
|
|
||||||
export class PolygonDraw extends GraphicDrawAssistant<
|
export class PolygonDraw extends GraphicDrawAssistant<
|
||||||
PolygonTemplate,
|
PolygonTemplate,
|
||||||
|
@ -2,7 +2,7 @@ import { IPointData } from 'pixi.js';
|
|||||||
import {
|
import {
|
||||||
calculateDistanceFromPointToLine,
|
calculateDistanceFromPointToLine,
|
||||||
calculateFootPointFromPointToLine,
|
calculateFootPointFromPointToLine,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
|
|
||||||
//获取所选线段的索引
|
//获取所选线段的索引
|
||||||
export function getWayLineIndex(
|
export function getWayLineIndex(
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
GraphicState,
|
GraphicState,
|
||||||
JlGraphic,
|
JlGraphic,
|
||||||
JlGraphicTemplate,
|
JlGraphicTemplate,
|
||||||
} from 'src/jl-graphic';
|
} from 'jl-graphic';
|
||||||
import Psl_Button_Assets from './psl-button-spritesheet.png';
|
import Psl_Button_Assets from './psl-button-spritesheet.png';
|
||||||
import Psl_Button_JSON from './psl-button-data.json';
|
import Psl_Button_JSON from './psl-button-data.json';
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user