Test purpose
- Create block and wheel entitys
- Clone the entitys
- Position the entitys on the canvas
- Change the state of a subset of entitys sharing the same state object
- Check the various drawing methods available to the entitys
- Check that the 'purge' attribute has removed all non-essential path, pivot, mimic and filter attributes from Wheel entitys
- Check that when a drag operation starts, the dragged entity does not suddenly jump
- Check that when a drag operation ends, the dragged entity does not suddenly jump
- Kill and resurrect several entitys to make sure they remove themselves entirely from the Scrawl-canvas system, and cleanly recreate themselves from saved packets
Note that this demo runs on the minified library, not on the source code!
Annotated code