/** * @module Shapes */ import { R } from "../R"; import { RectPos, Path } from "../planimetry"; import { ModifyAbleShape } from "./ModifyAbleShape"; /** * 图像 */ export declare class ImageShape extends ModifyAbleShape { protected image: CanvasImageSource; protected pos: RectPos; moveUp(n: number): void; moveDown(n: number): void; moveLeft(n: number): void; moveRight(n: number): void; constructor(image: CanvasImageSource, pos: RectPos); private syncValue; setValue(v: Path): void; render: R; inRegion(p: [number, number]): boolean; static fetchFromUrl(url: string): Promise; fetchFromUrl(url: string): Promise; } //# sourceMappingURL=ImageShape.d.ts.map