stage

<script src="./point_src/stage"></script>

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:

  1. mount() and draw(ctx) functions
  2. load capture events
  3. size locking and auto resizing
  4. optional request frame loop
  5. builtin measurement tools; center and dimensions
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')

Method List

comment.html|safe
comment.html|safe
  • method_kind

    method_name

    (
    param_name = param.default_value ,
    )
    from class_name
    comment.html|safe
    comment.html|safe