mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
f74e2da875
This is a first pass at implementing CRC2D.createPattern() and the associated CanvasPattern object. This implementation only works for a few of the required image sources [like CRC2D.drawImage()], and does not yet support transforms. Other than that it supports everything else (which is mainly the various repeat modes).
16 lines
860 B
Plaintext
16 lines
860 B
Plaintext
#import <HTML/CanvasGradient.idl>
|
|
#import <HTML/CanvasPattern.idl>
|
|
#import <HTML/HTMLCanvasElement.idl>
|
|
#import <HTML/HTMLImageElement.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/canvas.html#canvasfillstrokestyles
|
|
interface mixin CanvasFillStrokeStyles {
|
|
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle;
|
|
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle;
|
|
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
|
|
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
|
|
CanvasGradient createConicGradient(double startAngle, double x, double y);
|
|
// FIXME: 'image' should be a CanvasImageSource
|
|
CanvasPattern? createPattern((HTMLImageElement or HTMLCanvasElement) image, [LegacyNullToEmptyString] DOMString repetition);
|
|
};
|