Skip to content

Function: createToolbar()

ts
function createToolbar(
   container, 
   host, 
   dark): {
  destroy: () => void;
  element: HTMLElement;
};

Defined in: ui/toolbar.ts:72

Build a floating toolbar in container and wire it to the plot host.

Parameters

ParameterType
containerHTMLElement
hostToolbarHost
darkboolean

Returns

ts
{
  destroy: () => void;
  element: HTMLElement;
}

destroy

ts
destroy: () => void;

Returns

void

element

ts
element: HTMLElement;

MIT licensed. WebGL2 required.