MCPcopy Index your code
hub / github.com/markmap/markmap / renderToolbar

Function renderToolbar

packages/markmap-cli/src/util/common.ts:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export const ASSETS_PREFIX = '/assets/';
13
14const renderToolbar = () => {
15 const { markmap, mm } = window;
16 const toolbar = new markmap.Toolbar();
17 toolbar.attach(mm);
18 const el = toolbar.render() as HTMLElement;
19 el.setAttribute('style', 'position:absolute;bottom:20px;right:20px');
20 document.body.append(el);
21};
22
23export const toolbarAssets: IAssets = {
24 styles: [buildCSSItem(TOOLBAR_CSS)],

Callers

nothing calls this directly

Calls 2

attachMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected