path

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path2D

type Path2D js.Value

func NewPath2D

func NewPath2D() Path2D

func (Path2D) AddPath

func (p Path2D) AddPath(path Path2D, transform ...interface{})

func (Path2D) Arc

func (p Path2D) Arc(x, y, radius, startAngle, endAngle float64, anticlockwise ...bool)

func (Path2D) ArcTo

func (p Path2D) ArcTo(x1, y1, x2, y2, radius float64)

func (Path2D) BezierCurveTo

func (p Path2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y float64)

func (Path2D) Call

func (p Path2D) Call(method string, args ...interface{}) js.Value

func (Path2D) ClosePath

func (p Path2D) ClosePath()

func (Path2D) Ellipse

func (p Path2D) Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle float64, anticlockwise ...bool)

func (Path2D) Get

func (p Path2D) Get(key string) js.Value

func (Path2D) LineTo

func (p Path2D) LineTo(x, y float64)

func (Path2D) MoveTo

func (p Path2D) MoveTo(x, y float64)

func (Path2D) QuadraticCurveTo

func (p Path2D) QuadraticCurveTo(cpx, cpy, x, y float64)

func (Path2D) Rect

func (p Path2D) Rect(x, y, width, height float64)

func (Path2D) RoundRect

func (p Path2D) RoundRect(x, y, width, height, radius float64)

func (Path2D) Set

func (p Path2D) Set(key string, value interface{})

func (Path2D) Value

func (p Path2D) Value() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL