UNPKG

@zeplin/extension-model

Version:

Models exposed to Zeplin extensions

34 lines (33 loc) 946 B
export declare const DASH_CAP_TYPES: Record<string, string>; export interface DashPatternData { dash?: number; gap?: number; cap?: string; } /** * An interface to represent dash pattern on a Border */ export declare class DashPattern { /** * A positive integer that denotes the length of the dash. */ dash?: number; /** * A positive integer that denotes the length of the gap. */ gap?: number; /** * Cap type of the dash. Possible values are defined in {@link DashPattern.CAP_TYPES} */ cap?: string; static get CAP_TYPES(): Record<string, string>; static get ALLOWED_FIELDS(): string[]; constructor(dashPatternData: DashPatternData); /** * Creates a DashPattern instance from a JSON string * * @param json JSON string representing a dash pattern * @returns A new DashPattern instance */ static fromJSON(json: string): DashPattern; }