@zeplin/extension-model
Version:
Models exposed to Zeplin extensions
37 lines (36 loc) • 830 B
TypeScript
export interface CornerRadiusData {
topLeft: number;
topRight: number;
bottomRight: number;
bottomLeft: number;
}
/**
* Class representing individual corner radius values
*/
export declare class CornerRadius {
/**
* Top left corner radius
*/
topLeft: number;
/**
* Top right corner radius
*/
topRight: number;
/**
* Bottom right corner radius
*/
bottomRight: number;
/**
* Bottom left corner radius
*/
bottomLeft: number;
static get ALLOWED_FIELDS(): string[];
constructor(data: CornerRadiusData);
/**
* Creates a CornerRadius instance from a JSON string
*
* @param json JSON string representing corner radius
* @returns A new CornerRadius instance
*/
static fromJSON(json: string): CornerRadius;
}