source: imaps-frontend/node_modules/konva/lib/shapes/Image.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 944 bytes
Line 
1import { Shape, ShapeConfig } from '../Shape.js';
2import { GetSet, IRect } from '../types.js';
3import { Context } from '../Context.js';
4export interface ImageConfig extends ShapeConfig {
5 image: CanvasImageSource | undefined;
6 crop?: IRect;
7 cornerRadius?: number | number[];
8}
9export declare class Image extends Shape<ImageConfig> {
10 constructor(attrs: ImageConfig);
11 _setImageLoad(): void;
12 _useBufferCanvas(): boolean;
13 _sceneFunc(context: Context): void;
14 _hitFunc(context: Context): void;
15 getWidth(): any;
16 getHeight(): any;
17 static fromURL(url: string, callback: (img: Image) => void, onError?: OnErrorEventHandler): void;
18 image: GetSet<CanvasImageSource | undefined, this>;
19 crop: GetSet<IRect, this>;
20 cropX: GetSet<number, this>;
21 cropY: GetSet<number, this>;
22 cropWidth: GetSet<number, this>;
23 cropHeight: GetSet<number, this>;
24 cornerRadius: GetSet<number | number[], this>;
25}
Note: See TracBrowser for help on using the repository browser.