import { TClassProperties, TSize } from '../typedefs'; import { Image as FbricImage } from './Image'; import type { FabricObjectProps, SerializedObjectProps, TProps } from './Object/types'; import { LoadImageOptions } from '../util/misc/objectEnlive'; export type ImageSource = string | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement; interface UniqueImageProps { srcFromAttribute: boolean; minimumScaleTrigger: number; cropX: number; cropY: number; imageSmoothing: boolean; crossOrigin: string | null; url: string; } export declare const UrlImageDefaultValues: Partial>; export interface SerializedImageProps extends SerializedObjectProps { src: string; crossOrigin: string | null; filters: any[]; resizeFilter?: any; cropX: number; cropY: number; url: string; } export interface UrlImageProps extends FabricObjectProps, UniqueImageProps { } export declare class UrlImage = Partial> extends FbricImage { minWidth: number; _id: string; obj_type: string; locked: boolean; whiteboardId: string; userId: string; timestamp: Date; verticalAlign: string; zIndex: number; url: string; lines: object[]; title: string; relationship: object[]; extendPropeties: string[]; dynamicMinWidth: number; /** * Use this boolean property in order to split strings that have no white space concept. * this is a cheap way to help with chinese/japanese * @type Boolean * @since 2.6.0 */ splitByGrapheme: boolean; static ownDefaults: Record; static getDefaults(): { controls: { tl: import("../..").Control; br: import("../..").Control; }; }; constructor(element: ImageSource, options: Props); setElement(element: ImageSource, size?: Partial): void; toObject(propertiesToInclude: Array): object; getWidgetMenuList(): string[]; getWidgetMenuLength(): 50 | 60; getContextMenuList(): string[]; InitializeEvent: () => void; removedListener(): void; initDoubleClickSimulation(): void; onMouseDown(options: any): void; _stopEvent(e: any): void; drawObject(ctx: CanvasRenderingContext2D): void; renderDescription(ctx: any): void; renderTitle(ctx: any, title: any): void; renderPublishDate(ctx: any): void; wrapText(context: any, text: any, x: any, y: any, maxWidth: any, lineHeight: any): void; fromURL>(url: string, options?: T & LoadImageOptions): Promise; } export {}; //# sourceMappingURL=Urlimage.d.ts.map