1.0.4 • Published 5 years ago

dripping-spray-canvas v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Dripping Spray Canvas Drawer

This module draws shapes from the dripping-spray module on a provided canvas. It also provides a function to create the complete spray and do all the plumbing if you just want to let users draw on a canvas element.

For more information about how to use the dripping-spray, please refer to the full readme in the main code repository.

createSpray(canvasId: CanvasDOMElement, options: SprayOptions): { destroy: Function, reset: Function }

When you are done letting the user spray, use the destroy() method on the returned object. This way it will remove all listeners and fixes those memory leaks.

If you call the reset() function on the returned object, it will create a new spray, essentially resetting all information about drips. Most probably you won't need this function.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-0

6 years ago