- Clone this repository.
git submodule update --init
make copyimages
- Open Readme.html
// addToDefaultTools takes LC namespace arg for forward compatibility with
// 0.4.12 (CommonJS support).
require('lc-pro-tools').tools.addToDefaultTools(LC);
LC.init(
document.getElementById('lc-container'),
{imageURLPrefix: "my/image/path"});
Or:
const LCProTools = require('lc-pro-tools');
LC.init(
document.getElementById('lc-container'), {
imageURLPrefix: "my/image/path",
tools: [
LC.tools.Pencil,
LC.tools.Eraser,
LC.tools.Line,
LC.tools.Rectangle,
LC.tools.Ellipse,
LC.tools.Text,
LC.tools.Polygon,
LCProTools.tools.PaintBucket,
LCProTools.tools.Spraypaint,
LC.tools.Pan
]
});