Path2D
Generated.swift:13335class Path2D
class Path2D
import DOM
protocol Any_Path2D_or_String : ConvertibleToJSValue
protocol CanvasPath : JSBridgedClass
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(path: Path2D_or_String? = nil)
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
let jsObject: JSObject
func addPath(path: Path2D, transform: DOMMatrix2DInit? = nil)
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func arc(x: Double, y: Double, radius: Double, startAngle: Double, endAngle: Double, counterclockwise: Bool? = nil)
func arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radius: Double)
func bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double)
func closePath()
func ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, counterclockwise: Bool? = nil)
func lineTo(x: Double, y: Double)
func moveTo(x: Double, y: Double)
func quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double)
func rect(x: Double, y: Double, w: Double, h: Double)
func roundRect(x: Double, y: Double, w: Double, h: Double, radii: DOMPointInit_or_Double_or_seq_of_DOMPointInit_or_Double? = nil)
func jsValue() -> JSValue