canvas

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 11 Imported by: 8

Documentation

Overview

Package canvas contains HTML canvas related types.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanvasDirection

type CanvasDirection int

enum: CanvasDirection

const (
	LtrCanvasDirection CanvasDirection = iota
	RtlCanvasDirection
	InheritCanvasDirection
)

func CanvasDirectionFromJS

func CanvasDirectionFromJS(value js.Value) CanvasDirection

CanvasDirectionFromJS is converting a javascript value into a CanvasDirection enum value.

func (*CanvasDirection) JSValue

func (this *CanvasDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasDirection) Value

func (this CanvasDirection) Value() string

Value is converting this into javascript defined string value

type CanvasFillRule

type CanvasFillRule int

enum: CanvasFillRule

const (
	NonzeroCanvasFillRule CanvasFillRule = iota
	EvenoddCanvasFillRule
)

func CanvasFillRuleFromJS

func CanvasFillRuleFromJS(value js.Value) CanvasFillRule

CanvasFillRuleFromJS is converting a javascript value into a CanvasFillRule enum value.

func (*CanvasFillRule) JSValue

func (this *CanvasFillRule) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasFillRule) Value

func (this CanvasFillRule) Value() string

Value is converting this into javascript defined string value

type CanvasGradient

type CanvasGradient struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: CanvasGradient

func CanvasGradientFromJS

func CanvasGradientFromJS(value js.Value) *CanvasGradient

CanvasGradientFromJS is casting a js.Value into CanvasGradient.

func CanvasGradientFromWrapper

func CanvasGradientFromWrapper(input core.Wrapper) *CanvasGradient

CanvasGradientFromJS is casting from something that holds a js.Value into CanvasGradient.

func (*CanvasGradient) AddColorStop

func (_this *CanvasGradient) AddColorStop(offset float64, color string)

func (*CanvasGradient) JSValue

func (_this *CanvasGradient) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type CanvasLineCap

type CanvasLineCap int

enum: CanvasLineCap

const (
	ButtCanvasLineCap CanvasLineCap = iota
	RoundCanvasLineCap
	SquareCanvasLineCap
)

func CanvasLineCapFromJS

func CanvasLineCapFromJS(value js.Value) CanvasLineCap

CanvasLineCapFromJS is converting a javascript value into a CanvasLineCap enum value.

func (*CanvasLineCap) JSValue

func (this *CanvasLineCap) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasLineCap) Value

func (this CanvasLineCap) Value() string

Value is converting this into javascript defined string value

type CanvasLineJoin

type CanvasLineJoin int

enum: CanvasLineJoin

const (
	RoundCanvasLineJoin CanvasLineJoin = iota
	BevelCanvasLineJoin
	MiterCanvasLineJoin
)

func CanvasLineJoinFromJS

func CanvasLineJoinFromJS(value js.Value) CanvasLineJoin

CanvasLineJoinFromJS is converting a javascript value into a CanvasLineJoin enum value.

func (*CanvasLineJoin) JSValue

func (this *CanvasLineJoin) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasLineJoin) Value

func (this CanvasLineJoin) Value() string

Value is converting this into javascript defined string value

type CanvasPattern

type CanvasPattern struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: CanvasPattern

func CanvasPatternFromJS

func CanvasPatternFromJS(value js.Value) *CanvasPattern

CanvasPatternFromJS is casting a js.Value into CanvasPattern.

func CanvasPatternFromWrapper

func CanvasPatternFromWrapper(input core.Wrapper) *CanvasPattern

CanvasPatternFromJS is casting from something that holds a js.Value into CanvasPattern.

func (*CanvasPattern) JSValue

func (_this *CanvasPattern) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*CanvasPattern) SetTransform

func (_this *CanvasPattern) SetTransform(transform *geometry.DOMMatrix2DInit)

type CanvasRenderingContext2D

type CanvasRenderingContext2D struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: CanvasRenderingContext2D

func CanvasRenderingContext2DFromJS

func CanvasRenderingContext2DFromJS(value js.Value) *CanvasRenderingContext2D

CanvasRenderingContext2DFromJS is casting a js.Value into CanvasRenderingContext2D.

func CanvasRenderingContext2DFromWrapper

func CanvasRenderingContext2DFromWrapper(input core.Wrapper) *CanvasRenderingContext2D

CanvasRenderingContext2DFromJS is casting from something that holds a js.Value into CanvasRenderingContext2D.

func (*CanvasRenderingContext2D) Arc

func (_this *CanvasRenderingContext2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*CanvasRenderingContext2D) ArcTo

func (_this *CanvasRenderingContext2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

func (*CanvasRenderingContext2D) BeginPath

func (_this *CanvasRenderingContext2D) BeginPath()

func (*CanvasRenderingContext2D) BezierCurveTo

func (_this *CanvasRenderingContext2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

func (*CanvasRenderingContext2D) Canvas

Canvas returning attribute 'canvas' with type HTMLCanvasElement (idl: HTMLCanvasElement).

func (*CanvasRenderingContext2D) ClearRect

func (_this *CanvasRenderingContext2D) ClearRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) Clip

func (_this *CanvasRenderingContext2D) Clip(fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) Clip2

func (_this *CanvasRenderingContext2D) Clip2(path *Path2D, fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) ClosePath

func (_this *CanvasRenderingContext2D) ClosePath()

func (*CanvasRenderingContext2D) CreateImageData

func (_this *CanvasRenderingContext2D) CreateImageData(sw int, sh int) (_result *ImageData)

func (*CanvasRenderingContext2D) CreateImageData2

func (_this *CanvasRenderingContext2D) CreateImageData2(imagedata *ImageData) (_result *ImageData)

func (*CanvasRenderingContext2D) CreateLinearGradient

func (_this *CanvasRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (_result *CanvasGradient)

func (*CanvasRenderingContext2D) CreatePattern

func (_this *CanvasRenderingContext2D) CreatePattern(image *Union, repetition string) (_result *CanvasPattern)

func (*CanvasRenderingContext2D) CreateRadialGradient

func (_this *CanvasRenderingContext2D) CreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (_result *CanvasGradient)

func (*CanvasRenderingContext2D) Direction

func (_this *CanvasRenderingContext2D) Direction() CanvasDirection

Direction returning attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*CanvasRenderingContext2D) DrawFocusIfNeeded

func (_this *CanvasRenderingContext2D) DrawFocusIfNeeded(element *dom.Element)

func (*CanvasRenderingContext2D) DrawFocusIfNeeded2

func (_this *CanvasRenderingContext2D) DrawFocusIfNeeded2(path *Path2D, element *dom.Element)

func (*CanvasRenderingContext2D) DrawImage

func (_this *CanvasRenderingContext2D) DrawImage(image *Union, dx float64, dy float64)

func (*CanvasRenderingContext2D) DrawImage2

func (_this *CanvasRenderingContext2D) DrawImage2(image *Union, dx float64, dy float64, dw float64, dh float64)

func (*CanvasRenderingContext2D) DrawImage3

func (_this *CanvasRenderingContext2D) DrawImage3(image *Union, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64)

func (*CanvasRenderingContext2D) Ellipse

func (_this *CanvasRenderingContext2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*CanvasRenderingContext2D) Fill

func (_this *CanvasRenderingContext2D) Fill(fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) Fill2

func (_this *CanvasRenderingContext2D) Fill2(path *Path2D, fillRule *CanvasFillRule)

func (*CanvasRenderingContext2D) FillRect

func (_this *CanvasRenderingContext2D) FillRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) FillStyle

func (_this *CanvasRenderingContext2D) FillStyle() *Union

FillStyle returning attribute 'fillStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) FillText

func (_this *CanvasRenderingContext2D) FillText(text string, x float64, y float64, maxWidth *float64)

func (*CanvasRenderingContext2D) Filter

func (_this *CanvasRenderingContext2D) Filter() string

Filter returning attribute 'filter' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) Font

func (_this *CanvasRenderingContext2D) Font() string

Font returning attribute 'font' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) GetContextAttributes

func (_this *CanvasRenderingContext2D) GetContextAttributes() (_result *CanvasRenderingContext2DSettings)

func (*CanvasRenderingContext2D) GetImageData

func (_this *CanvasRenderingContext2D) GetImageData(sx int, sy int, sw int, sh int) (_result *ImageData)

func (*CanvasRenderingContext2D) GetLineDash

func (_this *CanvasRenderingContext2D) GetLineDash() (_result []float64)

func (*CanvasRenderingContext2D) GetTransform

func (_this *CanvasRenderingContext2D) GetTransform() (_result *geometry.DOMMatrix)

func (*CanvasRenderingContext2D) GlobalAlpha

func (_this *CanvasRenderingContext2D) GlobalAlpha() float64

GlobalAlpha returning attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) GlobalCompositeOperation

func (_this *CanvasRenderingContext2D) GlobalCompositeOperation() string

GlobalCompositeOperation returning attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) ImageSmoothingEnabled

func (_this *CanvasRenderingContext2D) ImageSmoothingEnabled() bool

ImageSmoothingEnabled returning attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*CanvasRenderingContext2D) ImageSmoothingQuality

func (_this *CanvasRenderingContext2D) ImageSmoothingQuality() ImageSmoothingQuality

ImageSmoothingQuality returning attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*CanvasRenderingContext2D) IsPointInPath

func (_this *CanvasRenderingContext2D) IsPointInPath(x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*CanvasRenderingContext2D) IsPointInPath2

func (_this *CanvasRenderingContext2D) IsPointInPath2(path *Path2D, x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*CanvasRenderingContext2D) IsPointInStroke

func (_this *CanvasRenderingContext2D) IsPointInStroke(x float64, y float64) (_result bool)

func (*CanvasRenderingContext2D) IsPointInStroke2

func (_this *CanvasRenderingContext2D) IsPointInStroke2(path *Path2D, x float64, y float64) (_result bool)

func (*CanvasRenderingContext2D) JSValue

func (_this *CanvasRenderingContext2D) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*CanvasRenderingContext2D) LineCap

func (_this *CanvasRenderingContext2D) LineCap() CanvasLineCap

LineCap returning attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*CanvasRenderingContext2D) LineDashOffset

func (_this *CanvasRenderingContext2D) LineDashOffset() float64

LineDashOffset returning attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) LineJoin

func (_this *CanvasRenderingContext2D) LineJoin() CanvasLineJoin

LineJoin returning attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*CanvasRenderingContext2D) LineTo

func (_this *CanvasRenderingContext2D) LineTo(x float64, y float64)

func (*CanvasRenderingContext2D) LineWidth

func (_this *CanvasRenderingContext2D) LineWidth() float64

LineWidth returning attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) MeasureText

func (_this *CanvasRenderingContext2D) MeasureText(text string) (_result *TextMetrics)

func (*CanvasRenderingContext2D) MiterLimit

func (_this *CanvasRenderingContext2D) MiterLimit() float64

MiterLimit returning attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) MoveTo

func (_this *CanvasRenderingContext2D) MoveTo(x float64, y float64)

func (*CanvasRenderingContext2D) PutImageData

func (_this *CanvasRenderingContext2D) PutImageData(imagedata *ImageData, dx int, dy int)

func (*CanvasRenderingContext2D) PutImageData2

func (_this *CanvasRenderingContext2D) PutImageData2(imagedata *ImageData, dx int, dy int, dirtyX int, dirtyY int, dirtyWidth int, dirtyHeight int)

func (*CanvasRenderingContext2D) QuadraticCurveTo

func (_this *CanvasRenderingContext2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*CanvasRenderingContext2D) Rect

func (_this *CanvasRenderingContext2D) Rect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) ResetTransform

func (_this *CanvasRenderingContext2D) ResetTransform()

func (*CanvasRenderingContext2D) Restore

func (_this *CanvasRenderingContext2D) Restore()

func (*CanvasRenderingContext2D) Rotate

func (_this *CanvasRenderingContext2D) Rotate(angle float64)

func (*CanvasRenderingContext2D) Save

func (_this *CanvasRenderingContext2D) Save()

func (*CanvasRenderingContext2D) Scale

func (_this *CanvasRenderingContext2D) Scale(x float64, y float64)

func (*CanvasRenderingContext2D) ScrollPathIntoView

func (_this *CanvasRenderingContext2D) ScrollPathIntoView()

func (*CanvasRenderingContext2D) ScrollPathIntoView2

func (_this *CanvasRenderingContext2D) ScrollPathIntoView2(path *Path2D)

func (*CanvasRenderingContext2D) SetDirection

func (_this *CanvasRenderingContext2D) SetDirection(value CanvasDirection)

SetDirection setting attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*CanvasRenderingContext2D) SetFillStyle

func (_this *CanvasRenderingContext2D) SetFillStyle(value *Union)

SetFillStyle setting attribute 'fillStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) SetFilter

func (_this *CanvasRenderingContext2D) SetFilter(value string)

SetFilter setting attribute 'filter' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetFont

func (_this *CanvasRenderingContext2D) SetFont(value string)

SetFont setting attribute 'font' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetGlobalAlpha

func (_this *CanvasRenderingContext2D) SetGlobalAlpha(value float64)

SetGlobalAlpha setting attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetGlobalCompositeOperation

func (_this *CanvasRenderingContext2D) SetGlobalCompositeOperation(value string)

SetGlobalCompositeOperation setting attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetImageSmoothingEnabled

func (_this *CanvasRenderingContext2D) SetImageSmoothingEnabled(value bool)

SetImageSmoothingEnabled setting attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*CanvasRenderingContext2D) SetImageSmoothingQuality

func (_this *CanvasRenderingContext2D) SetImageSmoothingQuality(value ImageSmoothingQuality)

SetImageSmoothingQuality setting attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*CanvasRenderingContext2D) SetLineCap

func (_this *CanvasRenderingContext2D) SetLineCap(value CanvasLineCap)

SetLineCap setting attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*CanvasRenderingContext2D) SetLineDash

func (_this *CanvasRenderingContext2D) SetLineDash(segments []float64)

func (*CanvasRenderingContext2D) SetLineDashOffset

func (_this *CanvasRenderingContext2D) SetLineDashOffset(value float64)

SetLineDashOffset setting attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetLineJoin

func (_this *CanvasRenderingContext2D) SetLineJoin(value CanvasLineJoin)

SetLineJoin setting attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*CanvasRenderingContext2D) SetLineWidth

func (_this *CanvasRenderingContext2D) SetLineWidth(value float64)

SetLineWidth setting attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetMiterLimit

func (_this *CanvasRenderingContext2D) SetMiterLimit(value float64)

SetMiterLimit setting attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowBlur

func (_this *CanvasRenderingContext2D) SetShadowBlur(value float64)

SetShadowBlur setting attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowColor

func (_this *CanvasRenderingContext2D) SetShadowColor(value string)

SetShadowColor setting attribute 'shadowColor' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) SetShadowOffsetX

func (_this *CanvasRenderingContext2D) SetShadowOffsetX(value float64)

SetShadowOffsetX setting attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetShadowOffsetY

func (_this *CanvasRenderingContext2D) SetShadowOffsetY(value float64)

SetShadowOffsetY setting attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) SetStrokeStyle

func (_this *CanvasRenderingContext2D) SetStrokeStyle(value *Union)

SetStrokeStyle setting attribute 'strokeStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) SetTextAlign

func (_this *CanvasRenderingContext2D) SetTextAlign(value CanvasTextAlign)

SetTextAlign setting attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*CanvasRenderingContext2D) SetTextBaseline

func (_this *CanvasRenderingContext2D) SetTextBaseline(value CanvasTextBaseline)

SetTextBaseline setting attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*CanvasRenderingContext2D) SetTransform

func (_this *CanvasRenderingContext2D) SetTransform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*CanvasRenderingContext2D) SetTransform2

func (_this *CanvasRenderingContext2D) SetTransform2(transform *geometry.DOMMatrix2DInit)

func (*CanvasRenderingContext2D) ShadowBlur

func (_this *CanvasRenderingContext2D) ShadowBlur() float64

ShadowBlur returning attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) ShadowColor

func (_this *CanvasRenderingContext2D) ShadowColor() string

ShadowColor returning attribute 'shadowColor' with type string (idl: DOMString).

func (*CanvasRenderingContext2D) ShadowOffsetX

func (_this *CanvasRenderingContext2D) ShadowOffsetX() float64

ShadowOffsetX returning attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) ShadowOffsetY

func (_this *CanvasRenderingContext2D) ShadowOffsetY() float64

ShadowOffsetY returning attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*CanvasRenderingContext2D) Stroke

func (_this *CanvasRenderingContext2D) Stroke()

func (*CanvasRenderingContext2D) Stroke2

func (_this *CanvasRenderingContext2D) Stroke2(path *Path2D)

func (*CanvasRenderingContext2D) StrokeRect

func (_this *CanvasRenderingContext2D) StrokeRect(x float64, y float64, w float64, h float64)

func (*CanvasRenderingContext2D) StrokeStyle

func (_this *CanvasRenderingContext2D) StrokeStyle() *Union

StrokeStyle returning attribute 'strokeStyle' with type Union (idl: Union).

func (*CanvasRenderingContext2D) StrokeText

func (_this *CanvasRenderingContext2D) StrokeText(text string, x float64, y float64, maxWidth *float64)

func (*CanvasRenderingContext2D) TextAlign

func (_this *CanvasRenderingContext2D) TextAlign() CanvasTextAlign

TextAlign returning attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*CanvasRenderingContext2D) TextBaseline

func (_this *CanvasRenderingContext2D) TextBaseline() CanvasTextBaseline

TextBaseline returning attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*CanvasRenderingContext2D) Transform

func (_this *CanvasRenderingContext2D) Transform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*CanvasRenderingContext2D) Translate

func (_this *CanvasRenderingContext2D) Translate(x float64, y float64)

type CanvasRenderingContext2DSettings

type CanvasRenderingContext2DSettings struct {
	Alpha bool
}

dictionary: CanvasRenderingContext2DSettings

func CanvasRenderingContext2DSettingsFromJS

func CanvasRenderingContext2DSettingsFromJS(value js.Value) *CanvasRenderingContext2DSettings

CanvasRenderingContext2DSettingsFromJS is allocating a new CanvasRenderingContext2DSettings object and copy all values in the value javascript object.

func (*CanvasRenderingContext2DSettings) JSValue

func (_this *CanvasRenderingContext2DSettings) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type CanvasTextAlign

type CanvasTextAlign int

enum: CanvasTextAlign

const (
	StartCanvasTextAlign CanvasTextAlign = iota
	EndCanvasTextAlign
	LeftCanvasTextAlign
	RightCanvasTextAlign
	CenterCanvasTextAlign
)

func CanvasTextAlignFromJS

func CanvasTextAlignFromJS(value js.Value) CanvasTextAlign

CanvasTextAlignFromJS is converting a javascript value into a CanvasTextAlign enum value.

func (*CanvasTextAlign) JSValue

func (this *CanvasTextAlign) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasTextAlign) Value

func (this CanvasTextAlign) Value() string

Value is converting this into javascript defined string value

type CanvasTextBaseline

type CanvasTextBaseline int

enum: CanvasTextBaseline

const (
	TopCanvasTextBaseline CanvasTextBaseline = iota
	HangingCanvasTextBaseline
	MiddleCanvasTextBaseline
	AlphabeticCanvasTextBaseline
	IdeographicCanvasTextBaseline
	BottomCanvasTextBaseline
)

func CanvasTextBaselineFromJS

func CanvasTextBaselineFromJS(value js.Value) CanvasTextBaseline

CanvasTextBaselineFromJS is converting a javascript value into a CanvasTextBaseline enum value.

func (*CanvasTextBaseline) JSValue

func (this *CanvasTextBaseline) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CanvasTextBaseline) Value

func (this CanvasTextBaseline) Value() string

Value is converting this into javascript defined string value

type ColorSpaceConversion

type ColorSpaceConversion int

enum: ColorSpaceConversion

const (
	NoneColorSpaceConversion ColorSpaceConversion = iota
	DefaultColorSpaceConversion
)

func ColorSpaceConversionFromJS

func ColorSpaceConversionFromJS(value js.Value) ColorSpaceConversion

ColorSpaceConversionFromJS is converting a javascript value into a ColorSpaceConversion enum value.

func (*ColorSpaceConversion) JSValue

func (this *ColorSpaceConversion) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ColorSpaceConversion) Value

func (this ColorSpaceConversion) Value() string

Value is converting this into javascript defined string value

type HTMLCanvasElement

type HTMLCanvasElement struct {
	html.HTMLElement
}

class: HTMLCanvasElement

func HTMLCanvasElementFromJS

func HTMLCanvasElementFromJS(value js.Value) *HTMLCanvasElement

HTMLCanvasElementFromJS is casting a js.Value into HTMLCanvasElement.

func HTMLCanvasElementFromWrapper

func HTMLCanvasElementFromWrapper(input core.Wrapper) *HTMLCanvasElement

HTMLCanvasElementFromJS is casting from something that holds a js.Value into HTMLCanvasElement.

func (*HTMLCanvasElement) CaptureStream

func (_this *HTMLCanvasElement) CaptureStream(frameRequestRate *float64) (_result *local.MediaStream)

func (*HTMLCanvasElement) GetContext

func (_this *HTMLCanvasElement) GetContext(contextId string, options interface{}) (_result *Union)

func (*HTMLCanvasElement) Height

func (_this *HTMLCanvasElement) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) SetHeight

func (_this *HTMLCanvasElement) SetHeight(value uint)

SetHeight setting attribute 'height' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) SetWidth

func (_this *HTMLCanvasElement) SetWidth(value uint)

SetWidth setting attribute 'width' with type uint (idl: unsigned long).

func (*HTMLCanvasElement) ToBlob

func (_this *HTMLCanvasElement) ToBlob(callback *file.BlobCallback, _type *string, quality interface{})

func (*HTMLCanvasElement) ToDataURL

func (_this *HTMLCanvasElement) ToDataURL(_type *string, quality interface{}) (_result string)

func (*HTMLCanvasElement) TransferControlToOffscreen

func (_this *HTMLCanvasElement) TransferControlToOffscreen() (_result *OffscreenCanvas)

func (*HTMLCanvasElement) Width

func (_this *HTMLCanvasElement) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageBitmap

type ImageBitmap struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ImageBitmap

func ImageBitmapFromJS

func ImageBitmapFromJS(value js.Value) *ImageBitmap

ImageBitmapFromJS is casting a js.Value into ImageBitmap.

func ImageBitmapFromWrapper

func ImageBitmapFromWrapper(input core.Wrapper) *ImageBitmap

ImageBitmapFromJS is casting from something that holds a js.Value into ImageBitmap.

func (*ImageBitmap) Close

func (_this *ImageBitmap) Close()

func (*ImageBitmap) Height

func (_this *ImageBitmap) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*ImageBitmap) JSValue

func (_this *ImageBitmap) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ImageBitmap) Width

func (_this *ImageBitmap) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageBitmapOptions

type ImageBitmapOptions struct {
	ImageOrientation     ImageOrientation
	PremultiplyAlpha     PremultiplyAlpha
	ColorSpaceConversion ColorSpaceConversion
	ResizeWidth          uint
	ResizeHeight         uint
	ResizeQuality        ResizeQuality
}

dictionary: ImageBitmapOptions

func ImageBitmapOptionsFromJS

func ImageBitmapOptionsFromJS(value js.Value) *ImageBitmapOptions

ImageBitmapOptionsFromJS is allocating a new ImageBitmapOptions object and copy all values in the value javascript object.

func (*ImageBitmapOptions) JSValue

func (_this *ImageBitmapOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type ImageBitmapRenderingContext

type ImageBitmapRenderingContext struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ImageBitmapRenderingContext

func ImageBitmapRenderingContextFromJS

func ImageBitmapRenderingContextFromJS(value js.Value) *ImageBitmapRenderingContext

ImageBitmapRenderingContextFromJS is casting a js.Value into ImageBitmapRenderingContext.

func ImageBitmapRenderingContextFromWrapper

func ImageBitmapRenderingContextFromWrapper(input core.Wrapper) *ImageBitmapRenderingContext

ImageBitmapRenderingContextFromJS is casting from something that holds a js.Value into ImageBitmapRenderingContext.

func (*ImageBitmapRenderingContext) Canvas

Canvas returning attribute 'canvas' with type HTMLCanvasElement (idl: HTMLCanvasElement).

func (*ImageBitmapRenderingContext) JSValue

func (_this *ImageBitmapRenderingContext) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ImageBitmapRenderingContext) TransferFromImageBitmap

func (_this *ImageBitmapRenderingContext) TransferFromImageBitmap(bitmap *ImageBitmap)

type ImageData

type ImageData struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ImageData

func ImageDataFromJS

func ImageDataFromJS(value js.Value) *ImageData

ImageDataFromJS is casting a js.Value into ImageData.

func ImageDataFromWrapper

func ImageDataFromWrapper(input core.Wrapper) *ImageData

ImageDataFromJS is casting from something that holds a js.Value into ImageData.

func NewImageData

func NewImageData(data *patch.Uint8ClampedArray, sw uint, sh *uint) (_result *ImageData)

func (*ImageData) Data

func (_this *ImageData) Data() *patch.Uint8ClampedArray

Data returning attribute 'data' with type patch.Uint8ClampedArray (idl: Uint8ClampedArray).

func (*ImageData) Height

func (_this *ImageData) Height() uint

Height returning attribute 'height' with type uint (idl: unsigned long).

func (*ImageData) JSValue

func (_this *ImageData) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ImageData) Width

func (_this *ImageData) Width() uint

Width returning attribute 'width' with type uint (idl: unsigned long).

type ImageOrientation

type ImageOrientation int

enum: ImageOrientation

const (
	NoneImageOrientation ImageOrientation = iota
	FlipYImageOrientation
)

func ImageOrientationFromJS

func ImageOrientationFromJS(value js.Value) ImageOrientation

ImageOrientationFromJS is converting a javascript value into a ImageOrientation enum value.

func (*ImageOrientation) JSValue

func (this *ImageOrientation) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ImageOrientation) Value

func (this ImageOrientation) Value() string

Value is converting this into javascript defined string value

type ImageSmoothingQuality

type ImageSmoothingQuality int

enum: ImageSmoothingQuality

const (
	LowImageSmoothingQuality ImageSmoothingQuality = iota
	MediumImageSmoothingQuality
	HighImageSmoothingQuality
)

func ImageSmoothingQualityFromJS

func ImageSmoothingQualityFromJS(value js.Value) ImageSmoothingQuality

ImageSmoothingQualityFromJS is converting a javascript value into a ImageSmoothingQuality enum value.

func (*ImageSmoothingQuality) JSValue

func (this *ImageSmoothingQuality) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ImageSmoothingQuality) Value

func (this ImageSmoothingQuality) Value() string

Value is converting this into javascript defined string value

type OffscreenCanvas

type OffscreenCanvas struct {
	domcore.EventTarget
}

class: OffscreenCanvas

func NewOffscreenCanvas

func NewOffscreenCanvas(width int, height int) (_result *OffscreenCanvas)

func OffscreenCanvasFromJS

func OffscreenCanvasFromJS(value js.Value) *OffscreenCanvas

OffscreenCanvasFromJS is casting a js.Value into OffscreenCanvas.

func OffscreenCanvasFromWrapper

func OffscreenCanvasFromWrapper(input core.Wrapper) *OffscreenCanvas

OffscreenCanvasFromJS is casting from something that holds a js.Value into OffscreenCanvas.

func (*OffscreenCanvas) ConvertToBlob

func (_this *OffscreenCanvas) ConvertToBlob(options *html.ImageEncodeOptions) (_result *file.PromiseBlob)

func (*OffscreenCanvas) GetContext

func (_this *OffscreenCanvas) GetContext(contextId html.OffscreenRenderingContextId, options interface{}) (_result *Union)

func (*OffscreenCanvas) Height

func (_this *OffscreenCanvas) Height() int

Height returning attribute 'height' with type int (idl: unsigned long long).

func (*OffscreenCanvas) SetHeight

func (_this *OffscreenCanvas) SetHeight(value int)

SetHeight setting attribute 'height' with type int (idl: unsigned long long).

func (*OffscreenCanvas) SetWidth

func (_this *OffscreenCanvas) SetWidth(value int)

SetWidth setting attribute 'width' with type int (idl: unsigned long long).

func (*OffscreenCanvas) TransferToImageBitmap

func (_this *OffscreenCanvas) TransferToImageBitmap() (_result *ImageBitmap)

func (*OffscreenCanvas) Width

func (_this *OffscreenCanvas) Width() int

Width returning attribute 'width' with type int (idl: unsigned long long).

type OffscreenCanvasRenderingContext2D

type OffscreenCanvasRenderingContext2D struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: OffscreenCanvasRenderingContext2D

func OffscreenCanvasRenderingContext2DFromJS

func OffscreenCanvasRenderingContext2DFromJS(value js.Value) *OffscreenCanvasRenderingContext2D

OffscreenCanvasRenderingContext2DFromJS is casting a js.Value into OffscreenCanvasRenderingContext2D.

func OffscreenCanvasRenderingContext2DFromWrapper

func OffscreenCanvasRenderingContext2DFromWrapper(input core.Wrapper) *OffscreenCanvasRenderingContext2D

OffscreenCanvasRenderingContext2DFromJS is casting from something that holds a js.Value into OffscreenCanvasRenderingContext2D.

func (*OffscreenCanvasRenderingContext2D) Arc

func (_this *OffscreenCanvasRenderingContext2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*OffscreenCanvasRenderingContext2D) ArcTo

func (_this *OffscreenCanvasRenderingContext2D) ArcTo(x1 float64, y1 float64, x2 float64, y2 float64, radius float64)

func (*OffscreenCanvasRenderingContext2D) BeginPath

func (_this *OffscreenCanvasRenderingContext2D) BeginPath()

func (*OffscreenCanvasRenderingContext2D) BezierCurveTo

func (_this *OffscreenCanvasRenderingContext2D) BezierCurveTo(cp1x float64, cp1y float64, cp2x float64, cp2y float64, x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) Canvas

Canvas returning attribute 'canvas' with type OffscreenCanvas (idl: OffscreenCanvas).

func (*OffscreenCanvasRenderingContext2D) ClearRect

func (_this *OffscreenCanvasRenderingContext2D) ClearRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) Clip

func (_this *OffscreenCanvasRenderingContext2D) Clip(fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) Clip2

func (_this *OffscreenCanvasRenderingContext2D) Clip2(path *Path2D, fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) ClosePath

func (_this *OffscreenCanvasRenderingContext2D) ClosePath()

func (*OffscreenCanvasRenderingContext2D) Commit

func (_this *OffscreenCanvasRenderingContext2D) Commit()

func (*OffscreenCanvasRenderingContext2D) CreateImageData

func (_this *OffscreenCanvasRenderingContext2D) CreateImageData(sw int, sh int) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) CreateImageData2

func (_this *OffscreenCanvasRenderingContext2D) CreateImageData2(imagedata *ImageData) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) CreateLinearGradient

func (_this *OffscreenCanvasRenderingContext2D) CreateLinearGradient(x0 float64, y0 float64, x1 float64, y1 float64) (_result *CanvasGradient)

func (*OffscreenCanvasRenderingContext2D) CreatePattern

func (_this *OffscreenCanvasRenderingContext2D) CreatePattern(image *Union, repetition string) (_result *CanvasPattern)

func (*OffscreenCanvasRenderingContext2D) CreateRadialGradient

func (_this *OffscreenCanvasRenderingContext2D) CreateRadialGradient(x0 float64, y0 float64, r0 float64, x1 float64, y1 float64, r1 float64) (_result *CanvasGradient)

func (*OffscreenCanvasRenderingContext2D) Direction

Direction returning attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*OffscreenCanvasRenderingContext2D) DrawImage

func (_this *OffscreenCanvasRenderingContext2D) DrawImage(image *Union, dx float64, dy float64)

func (*OffscreenCanvasRenderingContext2D) DrawImage2

func (_this *OffscreenCanvasRenderingContext2D) DrawImage2(image *Union, dx float64, dy float64, dw float64, dh float64)

func (*OffscreenCanvasRenderingContext2D) DrawImage3

func (_this *OffscreenCanvasRenderingContext2D) DrawImage3(image *Union, sx float64, sy float64, sw float64, sh float64, dx float64, dy float64, dw float64, dh float64)

func (*OffscreenCanvasRenderingContext2D) Ellipse

func (_this *OffscreenCanvasRenderingContext2D) Ellipse(x float64, y float64, radiusX float64, radiusY float64, rotation float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*OffscreenCanvasRenderingContext2D) Fill

func (_this *OffscreenCanvasRenderingContext2D) Fill(fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) Fill2

func (_this *OffscreenCanvasRenderingContext2D) Fill2(path *Path2D, fillRule *CanvasFillRule)

func (*OffscreenCanvasRenderingContext2D) FillRect

func (_this *OffscreenCanvasRenderingContext2D) FillRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) FillStyle

func (_this *OffscreenCanvasRenderingContext2D) FillStyle() *Union

FillStyle returning attribute 'fillStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) FillText

func (_this *OffscreenCanvasRenderingContext2D) FillText(text string, x float64, y float64, maxWidth *float64)

func (*OffscreenCanvasRenderingContext2D) Filter

func (_this *OffscreenCanvasRenderingContext2D) Filter() string

Filter returning attribute 'filter' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) Font

Font returning attribute 'font' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) GetImageData

func (_this *OffscreenCanvasRenderingContext2D) GetImageData(sx int, sy int, sw int, sh int) (_result *ImageData)

func (*OffscreenCanvasRenderingContext2D) GetLineDash

func (_this *OffscreenCanvasRenderingContext2D) GetLineDash() (_result []float64)

func (*OffscreenCanvasRenderingContext2D) GetTransform

func (_this *OffscreenCanvasRenderingContext2D) GetTransform() (_result *geometry.DOMMatrix)

func (*OffscreenCanvasRenderingContext2D) GlobalAlpha

func (_this *OffscreenCanvasRenderingContext2D) GlobalAlpha() float64

GlobalAlpha returning attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) GlobalCompositeOperation

func (_this *OffscreenCanvasRenderingContext2D) GlobalCompositeOperation() string

GlobalCompositeOperation returning attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) ImageSmoothingEnabled

func (_this *OffscreenCanvasRenderingContext2D) ImageSmoothingEnabled() bool

ImageSmoothingEnabled returning attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*OffscreenCanvasRenderingContext2D) ImageSmoothingQuality

func (_this *OffscreenCanvasRenderingContext2D) ImageSmoothingQuality() ImageSmoothingQuality

ImageSmoothingQuality returning attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*OffscreenCanvasRenderingContext2D) IsPointInPath

func (_this *OffscreenCanvasRenderingContext2D) IsPointInPath(x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInPath2

func (_this *OffscreenCanvasRenderingContext2D) IsPointInPath2(path *Path2D, x float64, y float64, fillRule *CanvasFillRule) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInStroke

func (_this *OffscreenCanvasRenderingContext2D) IsPointInStroke(x float64, y float64) (_result bool)

func (*OffscreenCanvasRenderingContext2D) IsPointInStroke2

func (_this *OffscreenCanvasRenderingContext2D) IsPointInStroke2(path *Path2D, x float64, y float64) (_result bool)

func (*OffscreenCanvasRenderingContext2D) JSValue

func (_this *OffscreenCanvasRenderingContext2D) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*OffscreenCanvasRenderingContext2D) LineCap

LineCap returning attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*OffscreenCanvasRenderingContext2D) LineDashOffset

func (_this *OffscreenCanvasRenderingContext2D) LineDashOffset() float64

LineDashOffset returning attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) LineJoin

LineJoin returning attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*OffscreenCanvasRenderingContext2D) LineTo

func (*OffscreenCanvasRenderingContext2D) LineWidth

func (_this *OffscreenCanvasRenderingContext2D) LineWidth() float64

LineWidth returning attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) MeasureText

func (_this *OffscreenCanvasRenderingContext2D) MeasureText(text string) (_result *TextMetrics)

func (*OffscreenCanvasRenderingContext2D) MiterLimit

func (_this *OffscreenCanvasRenderingContext2D) MiterLimit() float64

MiterLimit returning attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) MoveTo

func (*OffscreenCanvasRenderingContext2D) PutImageData

func (_this *OffscreenCanvasRenderingContext2D) PutImageData(imagedata *ImageData, dx int, dy int)

func (*OffscreenCanvasRenderingContext2D) PutImageData2

func (_this *OffscreenCanvasRenderingContext2D) PutImageData2(imagedata *ImageData, dx int, dy int, dirtyX int, dirtyY int, dirtyWidth int, dirtyHeight int)

func (*OffscreenCanvasRenderingContext2D) QuadraticCurveTo

func (_this *OffscreenCanvasRenderingContext2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*OffscreenCanvasRenderingContext2D) Rect

func (*OffscreenCanvasRenderingContext2D) ResetTransform

func (_this *OffscreenCanvasRenderingContext2D) ResetTransform()

func (*OffscreenCanvasRenderingContext2D) Restore

func (_this *OffscreenCanvasRenderingContext2D) Restore()

func (*OffscreenCanvasRenderingContext2D) Rotate

func (_this *OffscreenCanvasRenderingContext2D) Rotate(angle float64)

func (*OffscreenCanvasRenderingContext2D) Save

func (_this *OffscreenCanvasRenderingContext2D) Save()

func (*OffscreenCanvasRenderingContext2D) Scale

func (*OffscreenCanvasRenderingContext2D) SetDirection

func (_this *OffscreenCanvasRenderingContext2D) SetDirection(value CanvasDirection)

SetDirection setting attribute 'direction' with type CanvasDirection (idl: CanvasDirection).

func (*OffscreenCanvasRenderingContext2D) SetFillStyle

func (_this *OffscreenCanvasRenderingContext2D) SetFillStyle(value *Union)

SetFillStyle setting attribute 'fillStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) SetFilter

func (_this *OffscreenCanvasRenderingContext2D) SetFilter(value string)

SetFilter setting attribute 'filter' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetFont

func (_this *OffscreenCanvasRenderingContext2D) SetFont(value string)

SetFont setting attribute 'font' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetGlobalAlpha

func (_this *OffscreenCanvasRenderingContext2D) SetGlobalAlpha(value float64)

SetGlobalAlpha setting attribute 'globalAlpha' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetGlobalCompositeOperation

func (_this *OffscreenCanvasRenderingContext2D) SetGlobalCompositeOperation(value string)

SetGlobalCompositeOperation setting attribute 'globalCompositeOperation' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetImageSmoothingEnabled

func (_this *OffscreenCanvasRenderingContext2D) SetImageSmoothingEnabled(value bool)

SetImageSmoothingEnabled setting attribute 'imageSmoothingEnabled' with type bool (idl: boolean).

func (*OffscreenCanvasRenderingContext2D) SetImageSmoothingQuality

func (_this *OffscreenCanvasRenderingContext2D) SetImageSmoothingQuality(value ImageSmoothingQuality)

SetImageSmoothingQuality setting attribute 'imageSmoothingQuality' with type ImageSmoothingQuality (idl: ImageSmoothingQuality).

func (*OffscreenCanvasRenderingContext2D) SetLineCap

func (_this *OffscreenCanvasRenderingContext2D) SetLineCap(value CanvasLineCap)

SetLineCap setting attribute 'lineCap' with type CanvasLineCap (idl: CanvasLineCap).

func (*OffscreenCanvasRenderingContext2D) SetLineDash

func (_this *OffscreenCanvasRenderingContext2D) SetLineDash(segments []float64)

func (*OffscreenCanvasRenderingContext2D) SetLineDashOffset

func (_this *OffscreenCanvasRenderingContext2D) SetLineDashOffset(value float64)

SetLineDashOffset setting attribute 'lineDashOffset' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetLineJoin

func (_this *OffscreenCanvasRenderingContext2D) SetLineJoin(value CanvasLineJoin)

SetLineJoin setting attribute 'lineJoin' with type CanvasLineJoin (idl: CanvasLineJoin).

func (*OffscreenCanvasRenderingContext2D) SetLineWidth

func (_this *OffscreenCanvasRenderingContext2D) SetLineWidth(value float64)

SetLineWidth setting attribute 'lineWidth' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetMiterLimit

func (_this *OffscreenCanvasRenderingContext2D) SetMiterLimit(value float64)

SetMiterLimit setting attribute 'miterLimit' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowBlur

func (_this *OffscreenCanvasRenderingContext2D) SetShadowBlur(value float64)

SetShadowBlur setting attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowColor

func (_this *OffscreenCanvasRenderingContext2D) SetShadowColor(value string)

SetShadowColor setting attribute 'shadowColor' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) SetShadowOffsetX

func (_this *OffscreenCanvasRenderingContext2D) SetShadowOffsetX(value float64)

SetShadowOffsetX setting attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetShadowOffsetY

func (_this *OffscreenCanvasRenderingContext2D) SetShadowOffsetY(value float64)

SetShadowOffsetY setting attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) SetStrokeStyle

func (_this *OffscreenCanvasRenderingContext2D) SetStrokeStyle(value *Union)

SetStrokeStyle setting attribute 'strokeStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) SetTextAlign

func (_this *OffscreenCanvasRenderingContext2D) SetTextAlign(value CanvasTextAlign)

SetTextAlign setting attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*OffscreenCanvasRenderingContext2D) SetTextBaseline

func (_this *OffscreenCanvasRenderingContext2D) SetTextBaseline(value CanvasTextBaseline)

SetTextBaseline setting attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*OffscreenCanvasRenderingContext2D) SetTransform

func (_this *OffscreenCanvasRenderingContext2D) SetTransform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*OffscreenCanvasRenderingContext2D) SetTransform2

func (_this *OffscreenCanvasRenderingContext2D) SetTransform2(transform *geometry.DOMMatrix2DInit)

func (*OffscreenCanvasRenderingContext2D) ShadowBlur

func (_this *OffscreenCanvasRenderingContext2D) ShadowBlur() float64

ShadowBlur returning attribute 'shadowBlur' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) ShadowColor

func (_this *OffscreenCanvasRenderingContext2D) ShadowColor() string

ShadowColor returning attribute 'shadowColor' with type string (idl: DOMString).

func (*OffscreenCanvasRenderingContext2D) ShadowOffsetX

func (_this *OffscreenCanvasRenderingContext2D) ShadowOffsetX() float64

ShadowOffsetX returning attribute 'shadowOffsetX' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) ShadowOffsetY

func (_this *OffscreenCanvasRenderingContext2D) ShadowOffsetY() float64

ShadowOffsetY returning attribute 'shadowOffsetY' with type float64 (idl: unrestricted double).

func (*OffscreenCanvasRenderingContext2D) Stroke

func (_this *OffscreenCanvasRenderingContext2D) Stroke()

func (*OffscreenCanvasRenderingContext2D) Stroke2

func (_this *OffscreenCanvasRenderingContext2D) Stroke2(path *Path2D)

func (*OffscreenCanvasRenderingContext2D) StrokeRect

func (_this *OffscreenCanvasRenderingContext2D) StrokeRect(x float64, y float64, w float64, h float64)

func (*OffscreenCanvasRenderingContext2D) StrokeStyle

func (_this *OffscreenCanvasRenderingContext2D) StrokeStyle() *Union

StrokeStyle returning attribute 'strokeStyle' with type Union (idl: Union).

func (*OffscreenCanvasRenderingContext2D) StrokeText

func (_this *OffscreenCanvasRenderingContext2D) StrokeText(text string, x float64, y float64, maxWidth *float64)

func (*OffscreenCanvasRenderingContext2D) TextAlign

TextAlign returning attribute 'textAlign' with type CanvasTextAlign (idl: CanvasTextAlign).

func (*OffscreenCanvasRenderingContext2D) TextBaseline

TextBaseline returning attribute 'textBaseline' with type CanvasTextBaseline (idl: CanvasTextBaseline).

func (*OffscreenCanvasRenderingContext2D) Transform

func (_this *OffscreenCanvasRenderingContext2D) Transform(a float64, b float64, c float64, d float64, e float64, f float64)

func (*OffscreenCanvasRenderingContext2D) Translate

func (_this *OffscreenCanvasRenderingContext2D) Translate(x float64, y float64)

type Path2D

type Path2D struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Path2D

func NewPath2D

func NewPath2D(path *Union) (_result *Path2D)

func Path2DFromJS

func Path2DFromJS(value js.Value) *Path2D

Path2DFromJS is casting a js.Value into Path2D.

func Path2DFromWrapper

func Path2DFromWrapper(input core.Wrapper) *Path2D

Path2DFromJS is casting from something that holds a js.Value into Path2D.

func (*Path2D) AddPath

func (_this *Path2D) AddPath(path *Path2D, transform *geometry.DOMMatrix2DInit)

func (*Path2D) Arc

func (_this *Path2D) Arc(x float64, y float64, radius float64, startAngle float64, endAngle float64, anticlockwise *bool)

func (*Path2D) ArcTo

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

func (*Path2D) BezierCurveTo

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

func (*Path2D) ClosePath

func (_this *Path2D) ClosePath()

func (*Path2D) Ellipse

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

func (*Path2D) JSValue

func (_this *Path2D) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Path2D) LineTo

func (_this *Path2D) LineTo(x float64, y float64)

func (*Path2D) MoveTo

func (_this *Path2D) MoveTo(x float64, y float64)

func (*Path2D) QuadraticCurveTo

func (_this *Path2D) QuadraticCurveTo(cpx float64, cpy float64, x float64, y float64)

func (*Path2D) Rect

func (_this *Path2D) Rect(x float64, y float64, w float64, h float64)

type PremultiplyAlpha

type PremultiplyAlpha int

enum: PremultiplyAlpha

const (
	NonePremultiplyAlpha PremultiplyAlpha = iota
	PremultiplyPremultiplyAlpha
	DefaultPremultiplyAlpha
)

func PremultiplyAlphaFromJS

func PremultiplyAlphaFromJS(value js.Value) PremultiplyAlpha

PremultiplyAlphaFromJS is converting a javascript value into a PremultiplyAlpha enum value.

func (*PremultiplyAlpha) JSValue

func (this *PremultiplyAlpha) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PremultiplyAlpha) Value

func (this PremultiplyAlpha) Value() string

Value is converting this into javascript defined string value

type PromiseImageBitmap

type PromiseImageBitmap struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseImageBitmapFromJS

func PromiseImageBitmapFromJS(value js.Value) *PromiseImageBitmap

PromiseImageBitmapFromJS is casting a js.Value into PromiseImageBitmap.

func PromiseImageBitmapFromWrapper

func PromiseImageBitmapFromWrapper(input core.Wrapper) *PromiseImageBitmap

PromiseImageBitmapFromJS is casting from something that holds a js.Value into PromiseImageBitmap.

func (*PromiseImageBitmap) Catch

func (_this *PromiseImageBitmap) Catch(onRejected *PromiseImageBitmapOnRejected) (_result *PromiseImageBitmap)

func (*PromiseImageBitmap) Finally

func (_this *PromiseImageBitmap) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseImageBitmap)

func (*PromiseImageBitmap) JSValue

func (_this *PromiseImageBitmap) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseImageBitmap) Then

func (_this *PromiseImageBitmap) Then(onFulfilled *PromiseImageBitmapOnFulfilled, onRejected *PromiseImageBitmapOnRejected) (_result *PromiseImageBitmap)

type PromiseImageBitmapOnFulfilled

type PromiseImageBitmapOnFulfilled js.Func

PromiseImageBitmapOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseImageBitmapOnFulfilledFunc

type PromiseImageBitmapOnFulfilledFunc func(value *ImageBitmap)

callback: PromiseTemplateOnFulfilled

func PromiseImageBitmapOnFulfilledFromJS

func PromiseImageBitmapOnFulfilledFromJS(_value js.Value) PromiseImageBitmapOnFulfilledFunc

type PromiseImageBitmapOnRejected

type PromiseImageBitmapOnRejected js.Func

PromiseImageBitmapOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseImageBitmapOnRejectedFunc

type PromiseImageBitmapOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseImageBitmapOnRejectedFromJS

func PromiseImageBitmapOnRejectedFromJS(_value js.Value) PromiseImageBitmapOnRejectedFunc

type ResizeQuality

type ResizeQuality int

enum: ResizeQuality

const (
	PixelatedResizeQuality ResizeQuality = iota
	LowResizeQuality
	MediumResizeQuality
	HighResizeQuality
)

func ResizeQualityFromJS

func ResizeQualityFromJS(value js.Value) ResizeQuality

ResizeQualityFromJS is converting a javascript value into a ResizeQuality enum value.

func (*ResizeQuality) JSValue

func (this *ResizeQuality) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ResizeQuality) Value

func (this ResizeQuality) Value() string

Value is converting this into javascript defined string value

type TextMetrics

type TextMetrics struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: TextMetrics

func TextMetricsFromJS

func TextMetricsFromJS(value js.Value) *TextMetrics

TextMetricsFromJS is casting a js.Value into TextMetrics.

func TextMetricsFromWrapper

func TextMetricsFromWrapper(input core.Wrapper) *TextMetrics

TextMetricsFromJS is casting from something that holds a js.Value into TextMetrics.

func (*TextMetrics) ActualBoundingBoxAscent

func (_this *TextMetrics) ActualBoundingBoxAscent() float64

ActualBoundingBoxAscent returning attribute 'actualBoundingBoxAscent' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxDescent

func (_this *TextMetrics) ActualBoundingBoxDescent() float64

ActualBoundingBoxDescent returning attribute 'actualBoundingBoxDescent' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxLeft

func (_this *TextMetrics) ActualBoundingBoxLeft() float64

ActualBoundingBoxLeft returning attribute 'actualBoundingBoxLeft' with type float64 (idl: double).

func (*TextMetrics) ActualBoundingBoxRight

func (_this *TextMetrics) ActualBoundingBoxRight() float64

ActualBoundingBoxRight returning attribute 'actualBoundingBoxRight' with type float64 (idl: double).

func (*TextMetrics) AlphabeticBaseline

func (_this *TextMetrics) AlphabeticBaseline() float64

AlphabeticBaseline returning attribute 'alphabeticBaseline' with type float64 (idl: double).

func (*TextMetrics) EmHeightAscent

func (_this *TextMetrics) EmHeightAscent() float64

EmHeightAscent returning attribute 'emHeightAscent' with type float64 (idl: double).

func (*TextMetrics) EmHeightDescent

func (_this *TextMetrics) EmHeightDescent() float64

EmHeightDescent returning attribute 'emHeightDescent' with type float64 (idl: double).

func (*TextMetrics) FontBoundingBoxAscent

func (_this *TextMetrics) FontBoundingBoxAscent() float64

FontBoundingBoxAscent returning attribute 'fontBoundingBoxAscent' with type float64 (idl: double).

func (*TextMetrics) FontBoundingBoxDescent

func (_this *TextMetrics) FontBoundingBoxDescent() float64

FontBoundingBoxDescent returning attribute 'fontBoundingBoxDescent' with type float64 (idl: double).

func (*TextMetrics) HangingBaseline

func (_this *TextMetrics) HangingBaseline() float64

HangingBaseline returning attribute 'hangingBaseline' with type float64 (idl: double).

func (*TextMetrics) IdeographicBaseline

func (_this *TextMetrics) IdeographicBaseline() float64

IdeographicBaseline returning attribute 'ideographicBaseline' with type float64 (idl: double).

func (*TextMetrics) JSValue

func (_this *TextMetrics) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*TextMetrics) Width

func (_this *TextMetrics) Width() float64

Width returning attribute 'width' with type float64 (idl: double).

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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