Module @js-draw/material-icons - v1.22.0

@js-draw/material-icons

Provides a material icon theme for js-draw.

import { Editor, makeEdgeToolbar } from 'js-draw';
import { MaterialIconProvider } from '@js-draw/material-icons';

// Apply js-draw CSS
import 'js-draw/styles';

const editor = new Editor(document.body, {
  iconProvider: new MaterialIconProvider(),
});

// Ensure that there is enough room for the toolbar
editor.getRootElement().style.minHeight = '500px';

// Add a toolbar
const toolbar = makeEdgeToolbar(editor);

// ...with the default elements
toolbar.addDefaults();

@js-draw/material-icons

A material icon pack for js-draw.

The icons in this pack are licensed under the Apache 2.0 License. See the icon pack's GitHub repository.

References

Classes

References

Renames and re-exports MaterialIconProvider
OpenSource licenses