Creates a MaterialIconProvider class bound to a particular instance of the js-draw
library.
Example:
import * as jsdraw from 'js-draw';
import { makeMaterialIconProviderClass } from '@js-draw/material-icons';
const MaterialIconProvider = makeMaterialIconProviderClass(jsdraw);
(new jsdraw.Editor(
document.body, { iconProvider: new MaterialIconProvider() },
)).addToolbar();
If you only have one instance of js-draw (which is almost always the case), prefer
newMaterialIconProvider.
Creates a
MaterialIconProvider
class bound to a particular instance of thejs-draw
library.Example:
If you only have one instance of
js-draw
(which is almost always the case), prefernew
MaterialIconProvider.