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