Discover Packages
github.com/jpl-au/fluent
html5
canvas
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Apr 7, 2026
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
TagOpen = []byte ("<canvas")
TagClose = []byte ("</canvas>")
AttrHeight = []byte (" height=\"")
AttrWidth = []byte (" width=\"")
)
Byte constants for HTML rendering.
New Creates a new canvas element with child nodes for fallback content.
Example: canvas.New(text.Text("Your browser does not support canvas."))
Renders: <canvas>Your browser does not support canvas.</canvas>
Element is an exported alias for the private element type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.