重新打包

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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