context

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: 2 Imported by: 2

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context2D

type Context2D js.Value

func NewContext2D

func NewContext2D(canvas js.Value) Context2D

func (Context2D) Arc

func (c Context2D) Arc(x, y, radius, startAngle, endAngle float64, anticlockwise ...bool)

func (Context2D) ArcTo

func (c Context2D) ArcTo(x1, y1, x2, y2, radius float64)

func (Context2D) BeginPath

func (c Context2D) BeginPath()

func (Context2D) BeginPath2

func (c Context2D) BeginPath2(startX, startY float64)

func (Context2D) BezierCurveTo

func (c Context2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y float64)

func (Context2D) Call

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

func (Context2D) Canvas

func (c Context2D) Canvas() js.Value

func (Context2D) ClearRect

func (c Context2D) ClearRect(x, y, width, height float64)

func (Context2D) Clip

func (c Context2D) Clip(fillRule ...string)

func (Context2D) ClosePath

func (c Context2D) ClosePath()

func (Context2D) CreateConicGradient

func (c Context2D) CreateConicGradient(startAngle, x, y float64) js.Value

func (Context2D) CreateImageData

func (c Context2D) CreateImageData(width, height float64, settings map[string]any) js.Value

func (Context2D) CreateImageDataFrom

func (c Context2D) CreateImageDataFrom(data js.Value) js.Value

func (Context2D) CreateLinearGradient

func (c Context2D) CreateLinearGradient(x0, y0, x1, y1 float64) js.Value

func (Context2D) CreatePattern

func (c Context2D) CreatePattern(image js.Value, repetition string) js.Value

func (Context2D) CreateRadialGradient

func (c Context2D) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) js.Value

func (Context2D) Direction

func (c Context2D) Direction(d ...string) string

func (Context2D) DrawFocusIfNeeded

func (c Context2D) DrawFocusIfNeeded(element js.Value, path ...path.Path2D)

func (Context2D) DrawImage

func (c Context2D) DrawImage(image js.Value, dx, dy float64, settings map[string]any)

func (Context2D) DrawImage2

func (c Context2D) DrawImage2(image js.Value, dx, dy, dw, dh float64, settings map[string]any)

func (Context2D) DrawImage3

func (c Context2D) DrawImage3(image js.Value, sx, sy, sw, sh, dx, dy, dw, dh float64, settings map[string]any)

func (Context2D) Ellipse

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

func (Context2D) Fill

func (c Context2D) Fill(fillRule ...string)

func (Context2D) FillRect

func (c Context2D) FillRect(x, y, width, height float64)

func (Context2D) FillStyle

func (c Context2D) FillStyle(s ...string) string

func (Context2D) FillText

func (c Context2D) FillText(text string, x, y float64, maxWidth ...float64)

func (Context2D) Filter

func (c Context2D) Filter(f ...string) string

func (Context2D) Font

func (c Context2D) Font(f ...string) string

func (Context2D) FontKerning

func (c Context2D) FontKerning(f ...string) string

func (Context2D) FontStretch

func (c Context2D) FontStretch(f ...string) string

func (Context2D) FontVariantCaps

func (c Context2D) FontVariantCaps(f ...string) string

func (Context2D) Get

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

func (Context2D) GetContextAttributes

func (c Context2D) GetContextAttributes() js.Value

func (Context2D) GetImageData

func (c Context2D) GetImageData(sx, sy, sw, sh float64, settings ...map[string]any) js.Value

func (Context2D) GetLineDash

func (c Context2D) GetLineDash() js.Value

func (Context2D) GetTransform

func (c Context2D) GetTransform() js.Value

func (Context2D) GlobalAlpha

func (c Context2D) GlobalAlpha(a ...float64) float64

func (Context2D) GlobalCompositeOperation

func (c Context2D) GlobalCompositeOperation(o ...string) string

func (Context2D) ImageSmoothingEnabled

func (c Context2D) ImageSmoothingEnabled(e ...bool) bool

func (Context2D) ImageSmoothingQuality

func (c Context2D) ImageSmoothingQuality(q ...string) string

func (Context2D) IsContextLost

func (c Context2D) IsContextLost() bool

func (Context2D) IsPointInPath

func (c Context2D) IsPointInPath(x, y float64, fillRule ...string) bool

func (Context2D) IsPointInPath2

func (c Context2D) IsPointInPath2(path path.Path2D, x, y float64, fillRule ...string) bool

func (Context2D) IsPointInStroke

func (c Context2D) IsPointInStroke(x, y float64, path ...string) bool

func (Context2D) LetterSpacing

func (c Context2D) LetterSpacing(l ...string) string

func (Context2D) LineCap

func (c Context2D) LineCap(col ...string) string

func (Context2D) LineDashOffset

func (c Context2D) LineDashOffset(o ...float64) float64

func (Context2D) LineJoin

func (c Context2D) LineJoin(j ...string) string

func (Context2D) LineTo

func (c Context2D) LineTo(x, y float64)

func (Context2D) LineWidth

func (c Context2D) LineWidth(w ...float64) float64

func (Context2D) MeasureText

func (c Context2D) MeasureText(text string) js.Value

func (Context2D) MiterLimit

func (c Context2D) MiterLimit(l ...float64) float64

func (Context2D) MoveTo

func (c Context2D) MoveTo(x, y float64)

func (Context2D) PutImageData

func (c Context2D) PutImageData(imageData js.Value, dx, dy float64)

func (Context2D) PutImageData2

func (c Context2D) PutImageData2(imageData js.Value, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight float64)

func (Context2D) QuadraticCurveTo

func (c Context2D) QuadraticCurveTo(cpx, cpy, x, y float64)

func (Context2D) Rect

func (c Context2D) Rect(x, y, width, height float64)

func (Context2D) Reset

func (c Context2D) Reset()

func (Context2D) ResetTransform

func (c Context2D) ResetTransform()

func (Context2D) Restore

func (c Context2D) Restore()

func (Context2D) Rotate

func (c Context2D) Rotate(angle float64)

func (Context2D) RoundRect

func (c Context2D) RoundRect(x, y, width, height, radius float64)

func (Context2D) Save

func (c Context2D) Save()

func (Context2D) Scale

func (c Context2D) Scale(x, y float64)

func (Context2D) ScrollPathIntoView

func (c Context2D) ScrollPathIntoView(path ...string)

func (Context2D) Set

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

func (Context2D) SetLineDash

func (c Context2D) SetLineDash(segments []float64)

func (Context2D) SetTransform

func (ctx Context2D) SetTransform(a, b, c, d, e, f float64)

func (Context2D) SetTransformMatrix

func (c Context2D) SetTransformMatrix(matrix js.Value)

func (Context2D) ShadowBlur

func (c Context2D) ShadowBlur(b ...float64) float64

func (Context2D) ShadowColor

func (c Context2D) ShadowColor(col ...string) string

func (Context2D) ShadowOffsetX

func (c Context2D) ShadowOffsetX(x ...float64) float64

func (Context2D) ShadowOffsetY

func (c Context2D) ShadowOffsetY(y ...float64) float64

func (Context2D) Stroke

func (c Context2D) Stroke(path ...string)

func (Context2D) StrokeRect

func (c Context2D) StrokeRect(x, y, width, height float64)

func (Context2D) StrokeStyle

func (c Context2D) StrokeStyle(s ...string) string

func (Context2D) StrokeText

func (c Context2D) StrokeText(text string, x, y float64, maxWidth ...float64)

func (Context2D) TextAlign

func (c Context2D) TextAlign(t ...string) string

func (Context2D) TextBaseline

func (c Context2D) TextBaseline(t ...string) string

func (Context2D) TextRendering

func (c Context2D) TextRendering(t ...string) string

func (Context2D) Transform

func (ctx Context2D) Transform(a, b, c, d, e, f float64)

func (Context2D) Translate

func (ctx Context2D) Translate(x, y float64)

func (Context2D) Value

func (c Context2D) Value() js.Value

func (Context2D) WordSpacing

func (c Context2D) WordSpacing(w ...string) string

type WebGLRenderingContext

type WebGLRenderingContext js.Value

func (WebGLRenderingContext) ActiveTexture

func (c WebGLRenderingContext) ActiveTexture(texture ...int) int

func (WebGLRenderingContext) AttachShader

func (c WebGLRenderingContext) AttachShader(program, shader js.Value)

func (WebGLRenderingContext) BindAttribLocation

func (c WebGLRenderingContext) BindAttribLocation(program, location js.Value, name string)

func (WebGLRenderingContext) BindBuffer

func (c WebGLRenderingContext) BindBuffer(target, buffer js.Value)

func (WebGLRenderingContext) BindFramebuffer

func (c WebGLRenderingContext) BindFramebuffer(target, framebuffer js.Value)

func (WebGLRenderingContext) BindRenderbuffer

func (c WebGLRenderingContext) BindRenderbuffer(target, renderbuffer js.Value)

func (WebGLRenderingContext) BindTexture

func (c WebGLRenderingContext) BindTexture(target, texture js.Value)

func (WebGLRenderingContext) BlendColor

func (c WebGLRenderingContext) BlendColor(red, green, blue, alpha float32)

func (WebGLRenderingContext) BlendEquation

func (c WebGLRenderingContext) BlendEquation(mode int)

func (WebGLRenderingContext) BlendEquationSeparate

func (c WebGLRenderingContext) BlendEquationSeparate(modeRGB, modeAlpha int)

func (WebGLRenderingContext) BlendFunc

func (c WebGLRenderingContext) BlendFunc(sfactor, dfactor int)

func (WebGLRenderingContext) BlendFuncSeparate

func (c WebGLRenderingContext) BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha int)

func (WebGLRenderingContext) BufferData

func (c WebGLRenderingContext) BufferData(target int, src []byte, usage int)

func (WebGLRenderingContext) BufferData2

func (c WebGLRenderingContext) BufferData2(target int, size int, usage int)

func (WebGLRenderingContext) BufferData2WebGL2

func (c WebGLRenderingContext) BufferData2WebGL2(target int, srcData []byte, usage int, srcOffset int, length ...int)

func (WebGLRenderingContext) BufferDataWebGL2

func (c WebGLRenderingContext) BufferDataWebGL2(target int, usage int, srcOffset int)

func (WebGLRenderingContext) BufferSubData

func (c WebGLRenderingContext) BufferSubData(target int, dstByteOffset int, src ...[]byte)

func (WebGLRenderingContext) BufferSubDataWebGL2

func (c WebGLRenderingContext) BufferSubDataWebGL2(target int, dstByteOffset int, rest ...any)

func (WebGLRenderingContext) Call

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

func (WebGLRenderingContext) Canvas

func (c WebGLRenderingContext) Canvas() js.Value

func (WebGLRenderingContext) CheckFramebufferStatus

func (c WebGLRenderingContext) CheckFramebufferStatus(target int) int

func (WebGLRenderingContext) Clear

func (c WebGLRenderingContext) Clear(mask int)

func (WebGLRenderingContext) ClearColor

func (c WebGLRenderingContext) ClearColor(red, green, blue, alpha float32)

func (WebGLRenderingContext) ClearDepth

func (c WebGLRenderingContext) ClearDepth(depth float32)

func (WebGLRenderingContext) ClearStencil

func (c WebGLRenderingContext) ClearStencil(s int)

func (WebGLRenderingContext) ColorMask

func (c WebGLRenderingContext) ColorMask(red, green, blue, alpha bool)

func (WebGLRenderingContext) CompileShader

func (c WebGLRenderingContext) CompileShader(shader js.Value)

func (WebGLRenderingContext) DrawingBufferColorSpace

func (c WebGLRenderingContext) DrawingBufferColorSpace(cSpace ...string) string

func (WebGLRenderingContext) DrawingBufferHeight

func (c WebGLRenderingContext) DrawingBufferHeight() int

func (WebGLRenderingContext) DrawingBufferWidth

func (c WebGLRenderingContext) DrawingBufferWidth() int

func (WebGLRenderingContext) Get

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

func (WebGLRenderingContext) Set

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

func (WebGLRenderingContext) UnpackColorSpace

func (c WebGLRenderingContext) UnpackColorSpace(cSpace ...string) string

func (WebGLRenderingContext) Value

func (c WebGLRenderingContext) Value() js.Value

Jump to

Keyboard shortcuts

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