stage
A Stage acts as a convenience tool to hoist a canvas and begin drawing however it's not fundamental.
The Stage helps manage loading and looping of draw functions
Extend with your own custom functionality and run the go() method:
class MainStage extends Stage {
// canvas = document.getElementById('playspace');
canvas = 'playspace'
}
stage = MainStage.go({
loop: true
})
This will execute the canvas name. It provides some free tools:
mount()anddraw(ctx)functions- load capture events
- size locking and auto resizing
- optional request frame loop
- builtin measurement tools;
centeranddimensions
Meta Data
| dependencies | () |
| unused_keys | ('title',) |
| unknown_keys | ('files',) |
| files | ['', 'stage-resize.js', 'functions/resolve.js'] |
| filepath_exists | True |
| path | stage |
| filepath | stage.js |
| clean_files | ('stage-resize.js', 'functions/resolve.js') |