Constructors
Properties
Methods
setType
- setType(patternType): Pattern
Parameters
- patternType:
| "repeat"
| "repeat-x"
| "repeat-y"
| "no-repeat"
toJSON
- toJSON(): {
pattern: {
data: string | LazyCanvas;
type: string;
};
patternType:
| "repeat"
| "repeat-x"
| "repeat-y"
| "no-repeat";
type: string;
toJSON(): LazyCanvasPattern;
} Returns {
pattern: {
data: string | LazyCanvas;
type: string;
};
patternType:
| "repeat"
| "repeat-x"
| "repeat-y"
| "no-repeat";
type: string;
toJSON(): LazyCanvasPattern;
}
pattern: {
data: string | LazyCanvas;
type: string;
}
patternType:
| "repeat"
| "repeat-x"
| "repeat-y"
| "no-repeat"
type: string
toJSON:function
Example