main
Last change
on this file since d565449 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
|
Rev | Line | |
---|
[d565449] | 1 | import { Shape, ShapeConfig } from '../Shape.js';
|
---|
| 2 | import { GetSet, IRect } from '../types.js';
|
---|
| 3 | import { Context } from '../Context.js';
|
---|
| 4 | export interface ImageConfig extends ShapeConfig {
|
---|
| 5 | image: CanvasImageSource | undefined;
|
---|
| 6 | crop?: IRect;
|
---|
| 7 | cornerRadius?: number | number[];
|
---|
| 8 | }
|
---|
| 9 | export 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.