重新打包
This commit is contained in:
parent
a2d2d3ef33
commit
3c81ca8a83
|
@ -1,5 +1,5 @@
|
|||
import { GraphicState } from 'jl-graphic';
|
||||
import { JlPlatform } from './JlPlatform';
|
||||
import { JlPlatform } from './common/JlPlatform';
|
||||
export interface IGPPlatformState extends GraphicState {
|
||||
id?: number;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { GPConsts } from './PlatformConfig.js';
|
||||
import { JlPlatform } from './JlPlatform.js';
|
||||
import { GPConsts } from './common/PlatformConfig.js';
|
||||
import { JlPlatform } from './common/JlPlatform.js';
|
||||
|
||||
class GPPlatform extends JlPlatform {
|
||||
constructor() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { GraphicState } from 'jl-graphic';
|
||||
import { JlPlatform, DoorCodeLozenge } from './JlPlatform';
|
||||
import { JlPlatform, DoorCodeLozenge } from './common/JlPlatform';
|
||||
export interface ITHPlatformState extends GraphicState {
|
||||
get emergstop(): boolean;
|
||||
set emergstop(v: boolean);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { THConsts } from './PlatformConfig.js';
|
||||
import { JlPlatform, DoorCodeLozenge } from './JlPlatform.js';
|
||||
import { THConsts } from './common/PlatformConfig.js';
|
||||
import { JlPlatform, DoorCodeLozenge } from './common/JlPlatform.js';
|
||||
import { THStation } from '../Station/THStation.js';
|
||||
|
||||
class THPlatform extends JlPlatform {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { calculateMirrorPoint, JlGraphic, distance2, getRectangleCenter, VectorText } from 'jl-graphic';
|
||||
import { Container, Point, Graphics, Color, Rectangle } from 'pixi.js';
|
||||
import { JlSection } from '../Section/common/Section.js';
|
||||
import { JlStation } from '../Station/JlStation.js';
|
||||
import { JlSection } from '../../Section/common/Section.js';
|
||||
import { JlStation } from '../../Station/common/JlStation.js';
|
||||
|
||||
//子元素--矩形
|
||||
class RectGraphic extends Container {
|
|
@ -1,6 +1,6 @@
|
|||
import { GraphicDrawAssistant, GraphicInteractionPlugin, AbsorbableLine } from 'jl-graphic';
|
||||
import { JlPlatform } from './JlPlatform.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
class PlatformDraw extends GraphicDrawAssistant {
|
||||
platformGraphic;
|
|
@ -1,8 +1,8 @@
|
|||
import { JlGraphicTemplate } from 'jl-graphic';
|
||||
import { JlPlatform } from './JlPlatform';
|
||||
import { IPlatformData } from './PlatformConfig';
|
||||
import { ITHPlatformState } from './THPlatform';
|
||||
import { IGPPlatformState } from './GPPlatform';
|
||||
import { ITHPlatformState } from '../THPlatform';
|
||||
import { IGPPlatformState } from '../GPPlatform';
|
||||
import { StyleType } from 'common/common';
|
||||
export declare class PlatformTemplate extends JlGraphicTemplate<JlPlatform> {
|
||||
hasdoor?: boolean;
|
|
@ -1,8 +1,8 @@
|
|||
import { JlGraphicTemplate } from 'jl-graphic';
|
||||
import { JlPlatform } from './JlPlatform.js';
|
||||
import { THPlatform } from './THPlatform.js';
|
||||
import { GPPlatform } from './GPPlatform.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
import { THPlatform } from '../THPlatform.js';
|
||||
import { GPPlatform } from '../GPPlatform.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
class PlatformTemplate extends JlGraphicTemplate {
|
||||
hasdoor;
|
|
@ -0,0 +1,5 @@
|
|||
import { JlSection as SectionBase } from './common/Section';
|
||||
export declare class Section extends SectionBase {
|
||||
constructor();
|
||||
}
|
||||
export { SectionTemplate } from './common/Section';
|
|
@ -1,5 +1,5 @@
|
|||
import { JlSection } from '../common/Section.js';
|
||||
export { SectionTemplate } from '../common/Section.js';
|
||||
import { JlSection } from './common/Section.js';
|
||||
export { SectionTemplate } from './common/Section.js';
|
||||
|
||||
const displayConfig = {
|
||||
lineColor: '#5578b6',
|
|
@ -1,5 +0,0 @@
|
|||
import { JlSection as SectionBase } from '../common/Section';
|
||||
export declare class Section extends SectionBase {
|
||||
constructor();
|
||||
}
|
||||
export { SectionTemplate } from '../common/Section';
|
|
@ -1,7 +1,7 @@
|
|||
import { GraphicDrawAssistant, GraphicInteractionPlugin, IDrawApp, IGraphicApp, JlGraphic, KeyListener, MenuItemOptions } from 'jl-graphic';
|
||||
import { ISectionData, SectionTemplate } from './Section';
|
||||
import { Point, Graphics, type FederatedMouseEvent, type IHitArea, type DisplayObject } from 'pixi.js';
|
||||
import { Section } from '../bjrtss/Section';
|
||||
import { Section } from '../GPSection';
|
||||
export declare class SectionDraw extends GraphicDrawAssistant<SectionTemplate, ISectionData> {
|
||||
points: Point[];
|
||||
graphic: Graphics;
|
||||
|
|
|
@ -2,7 +2,7 @@ import { ContextMenu, GraphicDrawAssistant, KeyListener, calculateMirrorPoint, c
|
|||
import { SectionType, defaultDisplayConfig } from './Section.js';
|
||||
import { Graphics, Point } from 'pixi.js';
|
||||
import { Turnout } from '../../Turnout/Turnout.js';
|
||||
import { Section } from '../bjrtss/Section.js';
|
||||
import { Section } from '../GPSection.js';
|
||||
|
||||
class SectionDraw extends GraphicDrawAssistant {
|
||||
points = [];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { GraphicState } from 'jl-graphic';
|
||||
import { JlStation } from './JlStation';
|
||||
import { JlStation } from './common/JlStation';
|
||||
export interface IGPStationState extends GraphicState {
|
||||
id: number;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { JlStation } from './JlStation.js';
|
||||
import { JlStation } from './common/JlStation.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
|
||||
class GPStation extends JlStation {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { GraphicState } from 'jl-graphic';
|
||||
import { ConstrolGraphic, JlStation } from './JlStation';
|
||||
import { ConstrolGraphic, JlStation } from './common/JlStation';
|
||||
export interface ITHStationState extends GraphicState {
|
||||
get ipRtuStusDown(): boolean;
|
||||
set ipRtuStusDown(v: boolean);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { JlStation, ConstrolGraphic } from './JlStation.js';
|
||||
import { THConsts } from './StationConfig.js';
|
||||
import { JlStation, ConstrolGraphic } from './common/JlStation.js';
|
||||
import { THConsts } from './common/StationConfig.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
|
||||
class THStation extends JlStation {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Container, Point, Graphics, Color } from 'pixi.js';
|
||||
import { VectorText, JlGraphic } from 'jl-graphic';
|
||||
import { stationConstsMap } from './StationConfig.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
class ConstrolGraphic extends Container {
|
||||
constrolConfig;
|
|
@ -1,4 +1,4 @@
|
|||
import { StyleType } from '../../common/common.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
const GPConsts = {
|
||||
codeColor: '0xF48815',
|
|
@ -1,6 +1,6 @@
|
|||
import { GraphicDrawAssistant, GraphicInteractionPlugin, AbsorbableLine } from 'jl-graphic';
|
||||
import { JlStation } from './JlStation.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
class StationDraw extends GraphicDrawAssistant {
|
||||
codeGraph;
|
|
@ -1,8 +1,8 @@
|
|||
import { JlGraphicTemplate } from 'jl-graphic';
|
||||
import { JlStation } from './JlStation';
|
||||
import { IStationData } from './StationConfig';
|
||||
import { ITHStationState } from './THStation';
|
||||
import { IGPStationState } from './GPStation';
|
||||
import { ITHStationState } from '../THStation';
|
||||
import { IGPStationState } from '../GPStation';
|
||||
import { StyleType } from 'common/common';
|
||||
export declare class StationTemplate extends JlGraphicTemplate<JlStation> {
|
||||
hasControl?: boolean;
|
|
@ -1,8 +1,8 @@
|
|||
import { JlGraphicTemplate } from 'jl-graphic';
|
||||
import { JlStation } from './JlStation.js';
|
||||
import { THStation } from './THStation.js';
|
||||
import { GPStation } from './GPStation.js';
|
||||
import { StyleType } from '../../common/common.js';
|
||||
import { THStation } from '../THStation.js';
|
||||
import { GPStation } from '../GPStation.js';
|
||||
import { StyleType } from '../../../common/common.js';
|
||||
|
||||
class StationTemplate extends JlGraphicTemplate {
|
||||
hasControl;
|
|
@ -46,7 +46,7 @@ import {
|
|||
import { Turnout } from 'src/packages/Turnout/Turnout';
|
||||
import { AxleCounting } from 'src/packages/AxleCounting/AxleCounting';
|
||||
import { DevicePort } from 'common/common';
|
||||
import { Section } from '../bjrtss/Section';
|
||||
import { Section } from '../GPSection';
|
||||
|
||||
export class SectionDraw extends GraphicDrawAssistant<
|
||||
SectionTemplate,
|
||||
|
|
Loading…
Reference in New Issue