canvas

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

View Source
const (
	E   = 2.71828182845904523536028747135266249775724709369995957496696763
	Pi  = 3.14159265358979323846264338327950288419716939937510582097494459
	Phi = 1.61803398874989484820458683436563811772030917980576286213544862
	Tau = 6.28318530717958647692528676655900576839433879875021164194988918
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas js.Value

func FromQuerySelector

func FromQuerySelector(querySelector string) Canvas

func NewCanvas

func NewCanvas(width, height int) Canvas

func (Canvas) Call

func (c Canvas) Call(method string, args ...interface{}) js.Value

func (Canvas) Context2D

func (c Canvas) Context2D() context.Context2D

func (Canvas) Get

func (c Canvas) Get(key string) js.Value

func (Canvas) Height

func (c Canvas) Height(h ...int) int

func (Canvas) InnerHTML

func (c Canvas) InnerHTML(s ...string) string

func (Canvas) Render

func (c Canvas) Render() jsext.Element

func (Canvas) Set

func (c Canvas) Set(key string, value interface{})

func (Canvas) Style

func (c Canvas) Style() jsext.Style

func (Canvas) Value

func (c Canvas) Value() js.Value

func (Canvas) Width

func (c Canvas) Width(w ...int) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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