Help us shape the future of Go! Take the 2026 Go Developer Survey

host

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Package host is the dashboard's side of the page it runs in (GOOS=js): what connects the viewmodels to the page and to its engine worker beyond the engine's API -- joining a class, and the GPU surfaces (their frames and their input). Any page's own command can call it (the dashboard's cmd/dashboard, the playground's), so the wiring exists once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectClass

func ConnectClass(g, worker js.Value, app *vm.App, q *mvvm.Queue)

ConnectClass offers the class dialog when the page supports it (g.__wctrClass), and follows the worker's class reports.

func ConnectSurfaces

func ConnectSurfaces(worker js.Value, app *vm.App, q *mvvm.Queue, scene *ui.Scene)

ConnectSurfaces routes the worker's surface messages to the panes (frames drawn and acknowledged) and the panes' input to the worker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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