konva
Version:
<p align="center"> <img src="https://raw.githubusercontent.com/konvajs/konvajs.github.io/master/apple-touch-icon-180x180.png" alt="Konva logo" height="180" /> </p>
25 lines (24 loc) • 1.16 kB
TypeScript
export declare const Factory: {
addGetterSetter(constructor: any, attr: any, def?: any, validator?: any, after?: any): void;
addGetter(constructor: any, attr: any, def?: any): void;
addSetter(constructor: any, attr: any, validator?: any, after?: any): void;
addComponentsGetterSetter(constructor: any, attr: any, components: any, validator?: any, after?: any): void;
addOverloadedGetterSetter(constructor: any, attr: any): void;
addDeprecatedGetterSetter(constructor: any, attr: any, def: any, validator: any): void;
backCompat(constructor: any, methods: any): void;
afterSetFilter(): void;
};
export declare const Validators: {
/**
* @return {number}
*/
RGBComponent(val: any): number;
alphaComponent(val: any): any;
_formatValue(val: any): any;
getNumberValidator(): (val: any, attr: any) => any;
getNumberOrAutoValidator(): (val: any, attr: any) => any;
getStringValidator(): (val: any, attr: any) => any;
getFunctionValidator(): (val: any, attr: any) => any;
getNumberArrayValidator(): (val: any, attr: any) => any;
getBooleanValidator(): (val: any, attr: any) => any;
};