rt-graphic-component/components/Separator/SeparatorConfig.d.ts

26 lines
792 B
TypeScript
Raw Normal View History

2023-12-25 16:37:59 +08:00
import { GraphicData } from "jl-graphic";
export declare enum separatorTypeEnum {
turnout = "turnout",// 道岔分隔符
endA = "endA",// A端尽头分隔符
endB = "endB",// B端尽头分隔符
section = "section"
}
2024-01-02 14:36:10 +08:00
export interface ISeparatorConsts {
2023-12-25 16:37:59 +08:00
height: number;
lineWidth: number;
lineColor: string;
circleColor: string;
radius: number;
}
2024-01-02 14:36:10 +08:00
export type UpdateSeparatorConsts = Partial<ISeparatorConsts>;
2023-12-25 16:37:59 +08:00
export interface ISeparatorData extends GraphicData {
get code(): string;
set code(v: string);
get separatorType(): string;
set separatorType(v: string);
clone(): ISeparatorData;
copyFrom(data: ISeparatorData): void;
eq(other: ISeparatorData): boolean;
}
2024-01-02 14:36:10 +08:00
export declare function getSeparatorConsts(): ISeparatorConsts;