@tbuckley89/webgl-canvas
A web component that uses webgl to render strokes.
Installation
npm install @tbuckley89/webgl-canvas
Usage
Simply include the module and use <webgl-canvas>
anywhere:
<webgl-canvas></webgl-canvas>
Properties
-
document
-- controls what strokes are shown and gets notified when new strokes are added. This should implement the Document interface (seesrc/Document.ts
) and pass it towebgl-canvas
usingcanvas.document = doc;
.
TODO
- Control touch/stylus/mouse behavior
- Reduce size by removing unnecessary parts of Three.js