Debug helper, ideal as a map generator callback. Always bound to this.
What to draw
Is it necessary to clean before?
Timer tick: update dirty parts
Clear the whole display (cover it with background color)
Compute the maximum font size to fit into a set of given constraints
Maximum allowed pixel width
Maximum allowed pixel height
fontSize
Compute the maximum width/height to fit into a set of given constraints
Maximum allowed pixel width
Maximum allowed pixel height
cellWidth,cellHeight
One or more chars (will be overlapping themselves)
One or more chars (will be overlapping themselves)
Draws a text at given position. Optionally wraps at a maximum length. Currently does not work with hex layout.
May contain color/background format specifiers, %c{name}/%b{name}, both optional. %c{}/%b{} resets to default.
lines drawn
Convert a DOM event (mouse or touch) to map coordinates. Uses first touch for multi-touch.
event
-1 for values outside of the canvas
Returns the DOM node of this display
Returns currently set options
Generated using TypeDoc
Visual map display