@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="CanvasRenderingContext2D")
public class CanvasRenderingContext2D
extends JsObject
implements RenderingContext
| Modifier and Type | Field and Description |
|---|---|
@JsNonNull java.lang.String |
direction
The CanvasRenderingContext2D.direction property of the Canvas 2D API specifies the current text direction used to draw text.
|
@JsNonNull StringOrCanvasGradientOrCanvasPatternUnion |
fillStyle
The CanvasRenderingContext2D.fillStyle property of the Canvas 2D API specifies the color, gradient, or pattern to use inside shapes.
|
@JsNonNull java.lang.String |
filter
The CanvasRenderingContext2D.filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling.
|
@JsNonNull java.lang.String |
font
The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text.
|
@JsNonNull java.lang.String |
fontKerning |
@JsNonNull java.lang.String |
fontStretch |
@JsNonNull java.lang.String |
fontVariantCaps |
double |
globalAlpha
The CanvasRenderingContext2D.globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.
|
@JsNonNull java.lang.String |
globalCompositeOperation
The CanvasRenderingContext2D.globalCompositeOperation property of the Canvas 2D API sets the type of compositing operation to apply when drawing new shapes.
|
boolean |
imageSmoothingEnabled
The imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false).
|
@JsNonNull java.lang.String |
imageSmoothingQuality
The imageSmoothingQuality property of the CanvasRenderingContext2D interface, part of the Canvas API, lets you set the quality of image smoothing.
|
@JsNonNull java.lang.String |
lineCap
The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.
|
double |
lineDashOffset
The CanvasRenderingContext2D.lineDashOffset property of the Canvas 2D API sets the line dash offset, or "phase."
|
@JsNonNull java.lang.String |
lineJoin
The CanvasRenderingContext2D.lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.
|
double |
lineWidth
The CanvasRenderingContext2D.lineWidth property of the Canvas 2D API sets the thickness of lines.
|
double |
miterLimit
The CanvasRenderingContext2D.miterLimit property of the Canvas 2D API sets the miter limit ratio.
|
double |
shadowBlur
The CanvasRenderingContext2D.shadowBlur property of the Canvas 2D API specifies the amount of blur applied to shadows.
|
@JsNonNull java.lang.String |
shadowColor
The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of shadows.
|
double |
shadowOffsetX
The CanvasRenderingContext2D.shadowOffsetX property of the Canvas 2D API specifies the distance that shadows will be offset horizontally.
|
double |
shadowOffsetY
The CanvasRenderingContext2D.shadowOffsetY property of the Canvas 2D API specifies the distance that shadows will be offset vertically.
|
@JsNonNull StringOrCanvasGradientOrCanvasPatternUnion |
strokeStyle
The CanvasRenderingContext2D.strokeStyle property of the Canvas 2D API specifies the color, gradient, or pattern to use for the strokes (outlines) around shapes.
|
@JsNonNull java.lang.String |
textAlign
The CanvasRenderingContext2D.textAlign property of the Canvas 2D API specifies the current text alignment used when drawing text.
|
@JsNonNull java.lang.String |
textBaseline
The CanvasRenderingContext2D.textBaseline property of the Canvas 2D API specifies the current text baseline used when drawing text.
|
double |
textLetterSpacing |
@JsNonNull java.lang.String |
textRendering |
double |
textWordSpacing |
| Modifier | Constructor and Description |
|---|---|
protected |
CanvasRenderingContext2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle)
The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.
|
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean counterclockwise)
The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.
|
void |
arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
The CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius.
|
void |
beginPath()
The CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths.
|
void |
bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the current sub-path.
|
HTMLCanvasElement |
canvas()
The CanvasRenderingContext2D.canvas property, part of the Canvas API, is a read-only reference to the HTMLCanvasElement object that is associated with a given context.
|
void |
clearRect(double x,
double y,
double w,
double h)
The CanvasRenderingContext2D.clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.
|
void |
clip()
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.
|
void |
clip(Path2D path)
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.
|
void |
clip(Path2D path,
java.lang.String fillRule)
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.
|
void |
clip(java.lang.String fillRule)
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.
|
void |
closePath()
The CanvasRenderingContext2D.closePath() method of the Canvas 2D API attempts to add a straight line from the current point to the start of the current sub-path.
|
@JsNonNull CanvasGradient |
createConicGradient(double startAngle,
double x,
double y) |
@JsNonNull ImageData |
createImageData(ImageData imagedata)
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.
|
@JsNonNull ImageData |
createImageData(int sw,
int sh)
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.
|
@JsNonNull ImageData |
createImageData(int sw,
int sh,
ImageDataSettings settings)
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.
|
@JsNonNull CanvasGradient |
createLinearGradient(double x0,
double y0,
double x1,
double y1)
The CanvasRenderingContext2D.createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.
|
@JsNullable CanvasPattern |
createPattern(CanvasImageSource image,
java.lang.String repetition)
The CanvasRenderingContext2D.createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition.
|
@JsNonNull CanvasGradient |
createRadialGradient(double x0,
double y0,
double r0,
double x1,
double y1,
double r1)
The CanvasRenderingContext2D.createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.
|
void |
drawFocusIfNeeded(Element element)
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.
|
void |
drawFocusIfNeeded(Path2D path,
Element element)
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.
|
void |
drawImage(CanvasImageSource image,
double dx,
double dy)
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.
|
void |
drawImage(CanvasImageSource image,
double dx,
double dy,
double dw,
double dh)
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.
|
void |
drawImage(CanvasImageSource image,
double sx,
double sy,
double sw,
double sh,
double dx,
double dy,
double dw,
double dh)
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.
|
void |
ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle)
The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.
|
void |
ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle,
boolean counterclockwise)
The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.
|
void |
fill()
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.
|
void |
fill(Path2D path)
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.
|
void |
fill(Path2D path,
java.lang.String fillRule)
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.
|
void |
fill(java.lang.String fillRule)
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.
|
void |
fillRect(double x,
double y,
double w,
double h)
The CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle.
|
void |
fillText(java.lang.String text,
double x,
double y)
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.
|
void |
fillText(java.lang.String text,
double x,
double y,
double maxWidth)
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.
|
@JsNonNull CanvasRenderingContext2DSettings |
getContextAttributes() |
@JsNonNull ImageData |
getImageData(int sx,
int sy,
int sw,
int sh)
The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.
|
@JsNonNull ImageData |
getImageData(int sx,
int sy,
int sw,
int sh,
ImageDataSettings settings)
The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.
|
@JsNonNull JsArray<java.lang.Double> |
getLineDash()
The getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.
|
@JsNonNull DOMMatrix |
getTransform()
The CanvasRenderingContext2D.getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.
|
boolean |
isContextLost() |
boolean |
isPointInPath(double x,
double y)
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified point is contained in the current path.
|
boolean |
isPointInPath(double x,
double y,
java.lang.String fillRule)
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified point is contained in the current path.
|
boolean |
isPointInPath(Path2D path,
double x,
double y)
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified point is contained in the current path.
|
boolean |
isPointInPath(Path2D path,
double x,
double y,
java.lang.String fillRule)
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified point is contained in the current path.
|
boolean |
isPointInStroke(double x,
double y)
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified point is inside the area contained by the stroking of a path.
|
boolean |
isPointInStroke(Path2D path,
double x,
double y)
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified point is inside the area contained by the stroking of a path.
|
void |
lineTo(double x,
double y)
The CanvasRenderingContext2D method lineTo(), part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
|
@JsNonNull TextMetrics |
measureText(java.lang.String text)
The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).
|
void |
moveTo(double x,
double y)
The CanvasRenderingContext2D.moveTo() method of the Canvas 2D API begins a new sub-path at the point specified by the given (x, y) coordinates.
|
void |
putImageData(ImageData imagedata,
int dx,
int dy)
The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.
|
void |
putImageData(ImageData imagedata,
int dx,
int dy,
int dirtyX,
int dirtyY,
int dirtyWidth,
int dirtyHeight)
The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.
|
void |
quadraticCurveTo(double cpx,
double cpy,
double x,
double y)
The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the current sub-path.
|
void |
rect(double x,
double y,
double w,
double h)
The CanvasRenderingContext2D.rect() method of the Canvas 2D API adds a rectangle to the current path.
|
void |
reset() |
void |
resetTransform()
The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.
|
void |
restore()
The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack.
|
void |
rotate(double angle)
The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.
|
void |
roundRect(double x,
double y,
double w,
double h,
JsArray<UnrestrictedDoubleOrDOMPointInitUnion> radii) |
void |
roundRect(double x,
double y,
double w,
double h,
UnrestrictedDoubleOrDOMPointInitUnion[] radii) |
void |
save()
The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.
|
void |
scale(double x,
double y)
The CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.
|
void |
scrollPathIntoView()
The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.
|
void |
scrollPathIntoView(Path2D path)
The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.
|
void |
setLineDash(double[] segments)
The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines.
|
void |
setLineDash(JsArray<java.lang.Double> segments)
The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines.
|
void |
setTransform()
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
|
void |
setTransform(DOMMatrix2DInit transform)
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
|
void |
setTransform(double a,
double b,
double c,
double d,
double e,
double f)
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
|
void |
stroke()
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.
|
void |
stroke(Path2D path)
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.
|
void |
strokeRect(double x,
double y,
double w,
double h)
The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.
|
void |
strokeText(java.lang.String text,
double x,
double y)
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates.
|
void |
strokeText(java.lang.String text,
double x,
double y,
double maxWidth)
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates.
|
void |
transform(double a,
double b,
double c,
double d,
double e,
double f)
The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method.
|
void |
translate(double x,
double y)
The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation to the current matrix.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@CanvasDirection public @JsNonNull java.lang.String direction
public @JsNonNull StringOrCanvasGradientOrCanvasPatternUnion fillStyle
public @JsNonNull java.lang.String filter
public @JsNonNull java.lang.String font
@CanvasFontKerning public @JsNonNull java.lang.String fontKerning
@CanvasFontStretch public @JsNonNull java.lang.String fontStretch
@CanvasFontVariantCaps public @JsNonNull java.lang.String fontVariantCaps
public double globalAlpha
public @JsNonNull java.lang.String globalCompositeOperation
public boolean imageSmoothingEnabled
@ImageSmoothingQuality public @JsNonNull java.lang.String imageSmoothingQuality
@CanvasLineCap public @JsNonNull java.lang.String lineCap
public double lineDashOffset
@CanvasLineJoin public @JsNonNull java.lang.String lineJoin
public double lineWidth
public double miterLimit
public double shadowBlur
public @JsNonNull java.lang.String shadowColor
public double shadowOffsetX
public double shadowOffsetY
public @JsNonNull StringOrCanvasGradientOrCanvasPatternUnion strokeStyle
@CanvasTextAlign public @JsNonNull java.lang.String textAlign
@CanvasTextBaseline public @JsNonNull java.lang.String textBaseline
public double textLetterSpacing
@CanvasTextRendering public @JsNonNull java.lang.String textRendering
public double textWordSpacing
@JsProperty(name="canvas") @Nonnull public HTMLCanvasElement canvas()
public @JsNonNull CanvasRenderingContext2DSettings getContextAttributes()
public void drawImage(@Nonnull
CanvasImageSource image,
double dx,
double dy)
public void drawImage(@Nonnull
CanvasImageSource image,
double dx,
double dy,
double dw,
double dh)
public void drawImage(@Nonnull
CanvasImageSource image,
double sx,
double sy,
double sw,
double sh,
double dx,
double dy,
double dw,
double dh)
public void fillText(@Nonnull
java.lang.String text,
double x,
double y,
double maxWidth)
public void fillText(@Nonnull
java.lang.String text,
double x,
double y)
public @JsNonNull TextMetrics measureText(@Nonnull java.lang.String text)
public void strokeText(@Nonnull
java.lang.String text,
double x,
double y,
double maxWidth)
public void strokeText(@Nonnull
java.lang.String text,
double x,
double y)
public @JsNonNull CanvasGradient createConicGradient(double startAngle, double x, double y)
public @JsNonNull CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1)
public @JsNullable CanvasPattern createPattern(@Nonnull CanvasImageSource image, @Nonnull java.lang.String repetition)
public @JsNonNull CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
public void beginPath()
public void clip(@CanvasFillRule @Nonnull java.lang.String fillRule)
public void clip()
public void clip(@Nonnull
Path2D path,
@CanvasFillRule @Nonnull
java.lang.String fillRule)
public void clip(@Nonnull
Path2D path)
public void fill(@CanvasFillRule @Nonnull java.lang.String fillRule)
public void fill()
public void fill(@Nonnull
Path2D path,
@CanvasFillRule @Nonnull
java.lang.String fillRule)
public void fill(@Nonnull
Path2D path)
public boolean isPointInPath(double x,
double y,
@CanvasFillRule @Nonnull
java.lang.String fillRule)
public boolean isPointInPath(double x,
double y)
public boolean isPointInPath(@Nonnull
Path2D path,
double x,
double y,
@CanvasFillRule @Nonnull
java.lang.String fillRule)
public boolean isPointInPath(@Nonnull
Path2D path,
double x,
double y)
public boolean isPointInStroke(double x,
double y)
public boolean isPointInStroke(@Nonnull
Path2D path,
double x,
double y)
public void stroke()
public void stroke(@Nonnull
Path2D path)
public @JsNonNull ImageData createImageData(int sw, int sh, @Nonnull ImageDataSettings settings)
public @JsNonNull ImageData createImageData(int sw, int sh)
public @JsNonNull ImageData createImageData(@Nonnull ImageData imagedata)
public @JsNonNull ImageData getImageData(int sx, int sy, int sw, int sh, @Nonnull ImageDataSettings settings)
public @JsNonNull ImageData getImageData(int sx, int sy, int sw, int sh)
public void putImageData(@Nonnull
ImageData imagedata,
int dx,
int dy)
public void putImageData(@Nonnull
ImageData imagedata,
int dx,
int dy,
int dirtyX,
int dirtyY,
int dirtyWidth,
int dirtyHeight)
public void arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean counterclockwise)
public void arc(double x,
double y,
double radius,
double startAngle,
double endAngle)
public void arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
public void bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
public void closePath()
public void ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle,
boolean counterclockwise)
public void ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle)
public void lineTo(double x,
double y)
public void moveTo(double x,
double y)
public void quadraticCurveTo(double cpx,
double cpy,
double x,
double y)
public void rect(double x,
double y,
double w,
double h)
public void roundRect(double x,
double y,
double w,
double h,
@Nonnull
JsArray<UnrestrictedDoubleOrDOMPointInitUnion> radii)
public void roundRect(double x,
double y,
double w,
double h,
@Nonnull
UnrestrictedDoubleOrDOMPointInitUnion[] radii)
public void clearRect(double x,
double y,
double w,
double h)
public void fillRect(double x,
double y,
double w,
double h)
public void strokeRect(double x,
double y,
double w,
double h)
public boolean isContextLost()
public void reset()
public void restore()
public void save()
public @JsNonNull JsArray<java.lang.Double> getLineDash()
public void setLineDash(@Nonnull
JsArray<java.lang.Double> segments)
public void setLineDash(@Nonnull
double[] segments)
public void drawFocusIfNeeded(@Nonnull
Element element)
public void drawFocusIfNeeded(@Nonnull
Path2D path,
@Nonnull
Element element)
public void scrollPathIntoView()
public void scrollPathIntoView(@Nonnull
Path2D path)
public @JsNonNull DOMMatrix getTransform()
public void resetTransform()
public void rotate(double angle)
public void scale(double x,
double y)
public void setTransform(double a,
double b,
double c,
double d,
double e,
double f)
public void setTransform(@Nonnull
DOMMatrix2DInit transform)
public void setTransform()
public void transform(double a,
double b,
double c,
double d,
double e,
double f)
public void translate(double x,
double y)