Documentation ¶
Rendered for js/wasm
Index ¶
- type Context2D
- func (c Context2D) Arc(x, y, radius, startAngle, endAngle float64, anticlockwise ...bool)
- func (c Context2D) ArcTo(x1, y1, x2, y2, radius float64)
- func (c Context2D) BeginPath()
- func (c Context2D) BeginPath2(startX, startY float64)
- func (c Context2D) BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y float64)
- func (c Context2D) Call(method string, args ...interface{}) js.Value
- func (c Context2D) Canvas() js.Value
- func (c Context2D) ClearRect(x, y, width, height float64)
- func (c Context2D) Clip(fillRule ...string)
- func (c Context2D) ClosePath()
- func (c Context2D) CreateConicGradient(startAngle, x, y float64) js.Value
- func (c Context2D) CreateImageData(width, height float64, settings map[string]any) js.Value
- func (c Context2D) CreateImageDataFrom(data js.Value) js.Value
- func (c Context2D) CreateLinearGradient(x0, y0, x1, y1 float64) js.Value
- func (c Context2D) CreatePattern(image js.Value, repetition string) js.Value
- func (c Context2D) CreateRadialGradient(x0, y0, r0, x1, y1, r1 float64) js.Value
- func (c Context2D) Direction(d ...string) string
- func (c Context2D) DrawFocusIfNeeded(element js.Value, path ...path.Path2D)
- func (c Context2D) DrawImage(image js.Value, dx, dy float64, settings map[string]any)
- func (c Context2D) DrawImage2(image js.Value, dx, dy, dw, dh float64, settings map[string]any)
- func (c Context2D) DrawImage3(image js.Value, sx, sy, sw, sh, dx, dy, dw, dh float64, ...)
- func (c Context2D) Ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle float64, ...)
- func (c Context2D) Fill(fillRule ...string)
- func (c Context2D) FillRect(x, y, width, height float64)
- func (c Context2D) FillStyle(s ...string) string
- func (c Context2D) FillText(text string, x, y float64, maxWidth ...float64)
- func (c Context2D) Filter(f ...string) string
- func (c Context2D) Font(f ...string) string
- func (c Context2D) FontKerning(f ...string) string
- func (c Context2D) FontStretch(f ...string) string
- func (c Context2D) FontVariantCaps(f ...string) string
- func (c Context2D) Get(key string) js.Value
- func (c Context2D) GetContextAttributes() js.Value
- func (c Context2D) GetImageData(sx, sy, sw, sh float64, settings ...map[string]any) js.Value
- func (c Context2D) GetLineDash() js.Value
- func (c Context2D) GetTransform() js.Value
- func (c Context2D) GlobalAlpha(a ...float64) float64
- func (c Context2D) GlobalCompositeOperation(o ...string) string
- func (c Context2D) ImageSmoothingEnabled(e ...bool) bool
- func (c Context2D) ImageSmoothingQuality(q ...string) string
- func (c Context2D) IsContextLost() bool
- func (c Context2D) IsPointInPath(x, y float64, fillRule ...string) bool
- func (c Context2D) IsPointInPath2(path path.Path2D, x, y float64, fillRule ...string) bool
- func (c Context2D) IsPointInStroke(x, y float64, path ...string) bool
- func (c Context2D) LetterSpacing(l ...string) string
- func (c Context2D) LineCap(col ...string) string
- func (c Context2D) LineDashOffset(o ...float64) float64
- func (c Context2D) LineJoin(j ...string) string
- func (c Context2D) LineTo(x, y float64)
- func (c Context2D) LineWidth(w ...float64) float64
- func (c Context2D) MeasureText(text string) js.Value
- func (c Context2D) MiterLimit(l ...float64) float64
- func (c Context2D) MoveTo(x, y float64)
- func (c Context2D) PutImageData(imageData js.Value, dx, dy float64)
- func (c Context2D) PutImageData2(imageData js.Value, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight float64)
- func (c Context2D) QuadraticCurveTo(cpx, cpy, x, y float64)
- func (c Context2D) Rect(x, y, width, height float64)
- func (c Context2D) Reset()
- func (c Context2D) ResetTransform()
- func (c Context2D) Restore()
- func (c Context2D) Rotate(angle float64)
- func (c Context2D) RoundRect(x, y, width, height, radius float64)
- func (c Context2D) Save()
- func (c Context2D) Scale(x, y float64)
- func (c Context2D) ScrollPathIntoView(path ...string)
- func (c Context2D) Set(key string, value interface{})
- func (c Context2D) SetLineDash(segments []float64)
- func (ctx Context2D) SetTransform(a, b, c, d, e, f float64)
- func (c Context2D) SetTransformMatrix(matrix js.Value)
- func (c Context2D) ShadowBlur(b ...float64) float64
- func (c Context2D) ShadowColor(col ...string) string
- func (c Context2D) ShadowOffsetX(x ...float64) float64
- func (c Context2D) ShadowOffsetY(y ...float64) float64
- func (c Context2D) Stroke(path ...string)
- func (c Context2D) StrokeRect(x, y, width, height float64)
- func (c Context2D) StrokeStyle(s ...string) string
- func (c Context2D) StrokeText(text string, x, y float64, maxWidth ...float64)
- func (c Context2D) TextAlign(t ...string) string
- func (c Context2D) TextBaseline(t ...string) string
- func (c Context2D) TextRendering(t ...string) string
- func (ctx Context2D) Transform(a, b, c, d, e, f float64)
- func (ctx Context2D) Translate(x, y float64)
- func (c Context2D) Value() js.Value
- func (c Context2D) WordSpacing(w ...string) string
- type WebGLRenderingContext
- func (c WebGLRenderingContext) ActiveTexture(texture ...int) int
- func (c WebGLRenderingContext) AttachShader(program, shader js.Value)
- func (c WebGLRenderingContext) BindAttribLocation(program, location js.Value, name string)
- func (c WebGLRenderingContext) BindBuffer(target, buffer js.Value)
- func (c WebGLRenderingContext) BindFramebuffer(target, framebuffer js.Value)
- func (c WebGLRenderingContext) BindRenderbuffer(target, renderbuffer js.Value)
- func (c WebGLRenderingContext) BindTexture(target, texture js.Value)
- func (c WebGLRenderingContext) BlendColor(red, green, blue, alpha float32)
- func (c WebGLRenderingContext) BlendEquation(mode int)
- func (c WebGLRenderingContext) BlendEquationSeparate(modeRGB, modeAlpha int)
- func (c WebGLRenderingContext) BlendFunc(sfactor, dfactor int)
- func (c WebGLRenderingContext) BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha int)
- func (c WebGLRenderingContext) BufferData(target int, src []byte, usage int)
- func (c WebGLRenderingContext) BufferData2(target int, size int, usage int)
- func (c WebGLRenderingContext) BufferData2WebGL2(target int, srcData []byte, usage int, srcOffset int, length ...int)
- func (c WebGLRenderingContext) BufferDataWebGL2(target int, usage int, srcOffset int)
- func (c WebGLRenderingContext) BufferSubData(target int, dstByteOffset int, src ...[]byte)
- func (c WebGLRenderingContext) BufferSubDataWebGL2(target int, dstByteOffset int, rest ...any)
- func (c WebGLRenderingContext) Call(method string, args ...interface{}) js.Value
- func (c WebGLRenderingContext) Canvas() js.Value
- func (c WebGLRenderingContext) CheckFramebufferStatus(target int) int
- func (c WebGLRenderingContext) Clear(mask int)
- func (c WebGLRenderingContext) ClearColor(red, green, blue, alpha float32)
- func (c WebGLRenderingContext) ClearDepth(depth float32)
- func (c WebGLRenderingContext) ClearStencil(s int)
- func (c WebGLRenderingContext) ColorMask(red, green, blue, alpha bool)
- func (c WebGLRenderingContext) CompileShader(shader js.Value)
- func (c WebGLRenderingContext) DrawingBufferColorSpace(cSpace ...string) string
- func (c WebGLRenderingContext) DrawingBufferHeight() int
- func (c WebGLRenderingContext) DrawingBufferWidth() int
- func (c WebGLRenderingContext) Get(key string) js.Value
- func (c WebGLRenderingContext) Set(key string, value interface{})
- func (c WebGLRenderingContext) UnpackColorSpace(cSpace ...string) string
- func (c WebGLRenderingContext) Value() js.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context2D ¶
func NewContext2D ¶
func (Context2D) BeginPath2 ¶
func (Context2D) BezierCurveTo ¶
func (Context2D) CreateConicGradient ¶
func (Context2D) CreateImageData ¶
func (Context2D) CreateImageDataFrom ¶
func (Context2D) CreateLinearGradient ¶
func (Context2D) CreatePattern ¶
func (Context2D) CreateRadialGradient ¶
func (Context2D) DrawFocusIfNeeded ¶
func (Context2D) DrawImage2 ¶
func (Context2D) DrawImage3 ¶
func (Context2D) FontKerning ¶
func (Context2D) FontStretch ¶
func (Context2D) FontVariantCaps ¶
func (Context2D) GetContextAttributes ¶
func (Context2D) GetImageData ¶
func (Context2D) GetLineDash ¶
func (Context2D) GetTransform ¶
func (Context2D) GlobalAlpha ¶
func (Context2D) GlobalCompositeOperation ¶
func (Context2D) ImageSmoothingEnabled ¶
func (Context2D) ImageSmoothingQuality ¶
func (Context2D) IsContextLost ¶
func (Context2D) IsPointInPath ¶
func (Context2D) IsPointInPath2 ¶
func (Context2D) IsPointInStroke ¶
func (Context2D) LetterSpacing ¶
func (Context2D) LineDashOffset ¶
func (Context2D) MiterLimit ¶
func (Context2D) PutImageData2 ¶
func (Context2D) QuadraticCurveTo ¶
func (Context2D) ResetTransform ¶
func (c Context2D) ResetTransform()
func (Context2D) ScrollPathIntoView ¶
func (Context2D) SetLineDash ¶
func (Context2D) SetTransform ¶
func (Context2D) SetTransformMatrix ¶
func (Context2D) ShadowBlur ¶
func (Context2D) ShadowColor ¶
func (Context2D) ShadowOffsetX ¶
func (Context2D) ShadowOffsetY ¶
func (Context2D) StrokeRect ¶
func (Context2D) StrokeStyle ¶
func (Context2D) StrokeText ¶
func (Context2D) TextBaseline ¶
func (Context2D) TextRendering ¶
func (Context2D) WordSpacing ¶
type WebGLRenderingContext ¶
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 (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) 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
Click to show internal directories.
Click to hide internal directories.