Path2D class
This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Path2D.new([Object? path])
-
factory
Properties
- addPath ↔ void Function(Path2D, [DOMMatrix2DInit?])
-
Available on Path2D, provided by the Path2D$Typings extension
getter/setter pair - arc ↔ void Function(num, num, num, num, num, [bool?])
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - arcTo ↔ void Function(num, num, num, num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - bezierCurveTo ↔ void Function(num, num, num, num, num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - closePath ↔ void Function()
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - ellipse ↔ void Function(num, num, num, num, num, num, num, [bool?])
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- lineTo ↔ void Function(num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - moveTo ↔ void Function(num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - quadraticCurveTo ↔ void Function(num, num, num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - rect ↔ void Function(num, num, num, num)
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - roundRect ↔ void Function(num, num, num, num, [Object?])
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited