Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLCanvas ¶
type HTMLCanvas struct {
// contains filtered or unexported fields
}
HTMLCanvas is an HTMLCanvas renderer.
func New ¶
func New(c js.Value, width, height, dpm float64) *HTMLCanvas
New returns an HTMLCanvas renderer.
func (*HTMLCanvas) RenderImage ¶
func (r *HTMLCanvas) RenderImage(img image.Image, m canvas.Matrix)
RenderImage renders an image to the canvas using a transformation matrix.
func (*HTMLCanvas) RenderPath ¶
RenderPath renders a path to the canvas using a style and a transformation matrix.
func (*HTMLCanvas) RenderText ¶
func (r *HTMLCanvas) RenderText(text *canvas.Text, m canvas.Matrix)
RenderText renders a text object to the canvas using a transformation matrix.
func (*HTMLCanvas) Size ¶
func (r *HTMLCanvas) Size() (float64, float64)
Size returns the size of the canvas in millimeters.
Click to show internal directories.
Click to hide internal directories.