photoeditorsdk
Version:
The most comprehensive photo editor SDK for HTML5
84 lines (83 loc) • 2.35 kB
TypeScript
export type FontType = 'uppercase' | 'capitalize' | 'lowercase' | 'none';
export interface FontSystemOption {
size?: number;
letterSpacing?: number;
case?: FontType;
}
export interface FontSystemInterface {
/** ToolControlBar title */
headline1?: FontSystemOption;
/** Dialog title, ToolControlBar subtitles */
headline2?: FontSystemOption;
/** Carousel, input text, dropdown text, modal body */
body?: FontSystemOption;
/** Card labels, input labels, tooltip */
label?: FontSystemOption;
/** Basic ui card label */
basicUICardLabel?: FontSystemOption;
/** Contained Buttons and Button base class */
button1?: FontSystemOption;
/** Text button, dropdown items, canvas action buttons */
button2?: FontSystemOption;
basicUITabLabel?: FontSystemOption;
}
export declare const calculateAdvancedUIToolControlBarMeasurements: (width: number, spacer?: number) => CustomMeasurements;
/**
* The values will accept the pixel amount as a number
*/
export type CustomMeasurements = {
advancedUIToolbar?: {
width?: number;
marginBottom?: number;
};
advancedUIToolControlBar?: {
width?: number;
marginBottom?: number;
};
advancedUICard?: {
small?: {
height?: number;
width?: number;
};
medium?: {
height?: number;
width?: number;
};
large?: {
height?: number;
width?: number;
};
};
advancedUISpacer?: number;
basicUIToolbar?: {
openHeight?: number;
closeHeight?: number;
};
basicUIToolControlBar?: {
itemsBarHeight?: number;
controlsBarHeight?: number;
maxHeight?: number;
maxWidth?: number;
};
mainCanvasActionBar?: {
height?: number;
};
canvas?: {
/** This value can be used in combination with an opaque
* mainCanvasActionBar.background color to prevent
* canvas elements to be hidden behind the mainCanvasActionBar */
marginTop?: number;
};
colorItem?: {
size?: number;
};
inputs?: {
cropSize?: {
maxWidth?: number;
};
checkbox?: {
maxWidth?: number;
};
};
fontSystem?: FontSystemInterface;
};