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

26 lines
801 B
TypeScript
Raw Normal View History

2023-12-25 16:37:59 +08:00
import { GraphicData } from "jl-graphic";
import { CategoryType } from "../CategoryType";
export declare enum separatorTypeEnum {
turnout = "turnout",// 道岔分隔符
endA = "endA",// A端尽头分隔符
endB = "endB",// B端尽头分隔符
section = "section"
}
export interface SeparatorConstsConfig {
height: number;
lineWidth: number;
lineColor: string;
circleColor: string;
radius: number;
}
export declare const SeparatorConstsMap: Map<CategoryType, SeparatorConstsConfig>;
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;
}