Documentation ¶ Index ¶ func New(nodes ...node.Node) *element type Element Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(nodes ...node.Node) *element 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> Types ¶ type Element ¶ type Element = element Element is an exported alias for the private element type Source Files ¶ View all Source files canvas.go Click to show internal directories. Click to hide internal directories.