package.lib.graphic.Pattern.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zrender Show documentation
Show all versions of zrender Show documentation
A lightweight graphic library providing 2d draw for Apache ECharts
The newest version!
import { ImageLike } from '../core/types';
import { SVGVNode } from '../svg/core';
declare type ImagePatternRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
export interface PatternObjectBase {
id?: number;
type?: 'pattern';
x?: number;
y?: number;
rotation?: number;
scaleX?: number;
scaleY?: number;
}
export interface ImagePatternObject extends PatternObjectBase {
image: ImageLike | string;
repeat?: ImagePatternRepeat;
imageWidth?: number;
imageHeight?: number;
}
export interface InnerImagePatternObject extends ImagePatternObject {
__image?: ImageLike;
}
export interface SVGPatternObject extends PatternObjectBase {
svgElement?: SVGVNode;
svgWidth?: number;
svgHeight?: number;
}
export declare type PatternObject = ImagePatternObject | SVGPatternObject;
declare class Pattern {
type: 'pattern';
image: ImageLike | string;
svgElement: SVGElement | string;
repeat: ImagePatternRepeat;
x: number;
y: number;
rotation: number;
scaleX: number;
scaleY: number;
constructor(image: ImageLike | string, repeat: ImagePatternRepeat);
}
export default Pattern;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy