Interface ImagePatternObject

interface ImagePatternObject {
    id?: number;
    image: string | ImageLike;
    imageHeight?: number;
    imageWidth?: number;
    repeat?: ImagePatternRepeat;
    rotation?: number;
    scaleX?: number;
    scaleY?: number;
    type?: "pattern";
    x?: number;
    y?: number;
}

Hierarchy (view full)

Properties

id?: number
image: string | ImageLike
imageHeight?: number
imageWidth?: number

Width and height of image. imageWidth and imageHeight are only used in svg-ssr renderer. Because we can't get the size of image in svg-ssr renderer. They need to be give explictly.

repeat?: ImagePatternRepeat
rotation?: number
scaleX?: number
scaleY?: number
type?: "pattern"
x?: number
y?: number