///
export default class Element {
meta?: any;
defprops: any;
compiler: (props: any) => JSX.Element;
configurer?: (props: any, config: any) => any;
props: any;
cached: boolean;
component: any;
x: number;
y: number;
width: number;
height: number;
scale: number;
anchor: 'top left' | 'top middle' | 'top right' | 'center left' | 'center middle' | 'center right' | 'bottom left' | 'bottom middle' | 'bottom right';
constructor(props: any, compiler: (props: any) => JSX.Element, configurer?: (props: any, config: any) => any);
compile: () => this;
configure: (config?: any) => this;
getSize: () => [number, number];
transform: (transform?: {
x?: number;
y?: number;
scale?: number;
anchor?: 'top left' | 'top middle' | 'top right' | 'center left' | 'center middle' | 'center right' | 'bottom left' | 'bottom middle' | 'bottom right';
}) => this;
toJSX: () => any;
toCanvas: (options?: {
background?: string;
}) => Promise;
to: (type: string, options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
background?: string;
}) => Promise;
toPDF: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
background?: string;
}) => Promise;
toSVG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
background?: string;
}) => Promise;
toPNG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
toJPEG: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
background?: string;
}) => Promise;
toWEBP: (options?: {
configs?: any;
responseType?: 'string' | 'base64' | 'binary' | 'arrayBuffer' | 'dataUri';
}) => Promise;
}
//# sourceMappingURL=element.d.ts.map