重新打包

This commit is contained in:
joylink_zhaoerwei 2024-01-11 13:38:16 +08:00
parent a2d2d3ef33
commit 3c81ca8a83
30 changed files with 37 additions and 37 deletions

View File

@ -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;
}

View File

@ -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() {

View File

@ -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);

View File

@ -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 {

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -0,0 +1,5 @@
import { JlSection as SectionBase } from './common/Section';
export declare class Section extends SectionBase {
constructor();
}
export { SectionTemplate } from './common/Section';

View File

@ -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',

View File

@ -1,5 +0,0 @@
import { JlSection as SectionBase } from '../common/Section';
export declare class Section extends SectionBase {
constructor();
}
export { SectionTemplate } from '../common/Section';

View File

@ -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;

View File

@ -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 = [];

View File

@ -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;
}

View File

@ -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 {

View File

@ -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);

View File

@ -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 {

View File

@ -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;

View File

@ -1,4 +1,4 @@
import { StyleType } from '../../common/common.js';
import { StyleType } from '../../../common/common.js';
const GPConsts = {
codeColor: '0xF48815',

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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,