Protocolswiftwasm.webapikit 0.1.0DOM
CanvasDrawPath
Generated.swift:1642protocol CanvasDrawPath : JSBridgedClass
Browse conforming typesprotocol CanvasDrawPath : JSBridgedClass
import DOM
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
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 CustomStringConvertible
A type with a customized textual representation.
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.
func beginPath()
func clip(fillRule: CanvasFillRule? = nil)
func clip(path: Path2D, fillRule: CanvasFillRule? = nil)
func fill(fillRule: CanvasFillRule? = nil)
func fill(path: Path2D, fillRule: CanvasFillRule? = nil)
func isPointInPath(path: Path2D, x: Double, y: Double, fillRule: CanvasFillRule? = nil) -> Bool
func isPointInPath(x: Double, y: Double, fillRule: CanvasFillRule? = nil) -> Bool
func isPointInStroke(path: Path2D, x: Double, y: Double) -> Bool
func isPointInStroke(x: Double, y: Double) -> Bool
func stroke()
func stroke(path: Path2D)