package js.html
Available on jsThe
Path2Dinterface of the Canvas 2D API is used to declare paths that are then later used onCanvasRenderingContext2Dobjects. The path methods of theCanvasRenderingContext2Dinterface are present on this interface as well and are allowing you to create paths that you can retain and replay as required on a canvas.Documentation Path2D by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (pathString:String)new ()new (other:Path2D)Throws:
null |
DOMError |
|---|
addPath (path:Path2D, ?transformation:Matrix):VoidAdds a path to the current path.
arc (x:Float, y:Float, radius:Float, startAngle:Float, endAngle:Float, anticlockwise:Bool = false):VoidThrows:
null |
DOMError |
|---|
arcTo (x1:Float, y1:Float, x2:Float, y2:Float, radius:Float):VoidThrows:
null |
DOMError |
|---|
bezierCurveTo (cp1x:Float, cp1y:Float, cp2x:Float, cp2y:Float, x:Float, y:Float):VoidclosePath ():Void ellipse (x:Float, y:Float, radiusX:Float, radiusY:Float, rotation:Float, startAngle:Float, endAngle:Float, anticlockwise:Bool = false):VoidThrows:
null |
DOMError |
|---|
lineTo (x:Float, y:Float):VoidmoveTo (x:Float, y:Float):VoidquadraticCurveTo (cpx:Float, cpy:Float, x:Float, y:Float):Voidrect (x:Float, y:Float, w:Float, h:Float):Void
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Path2D.html