Class: RangeDisplay

RangeDisplay

new RangeDisplay(opt_options=)

Creates a new RangeDisplay. A RangeDisplay is parented to a sensor and displays the sensor's sensitivity range.
Parameters:
Name Type Argument Description
opt_options= Object <optional>
A map of initial properties.
Source:

Extends

  • Item

Members

borderWidth

RangeDisplays have no height or color and rely on the associated DOM element's CSS border to render their line.
Source:

Methods

<static> draw()

Updates the corresponding DOM element's style property.
Source:

<static> getCSSText(props) → {string}

Concatenates a new cssText string.
Parameters:
Name Type Description
props Object A map of object properties.
Source:
Returns:
A string representing cssText.
Type
string

init(world, opt_options=)

Initializes RangeDisplay.
Parameters:
Name Type Argument Description
world Object An instance of World.
opt_options= Object <optional>
A map of initial properties.
Source:

step()

Called every frame, step() updates the instance's properties.
Source: