Class: Point

Point

new Point()

Creates a new Point. Points are the most basic Flora item. They represent a fixed point in 2D space and are just an extension of Burner Item with isStatic set to true.
Source:

Extends

  • Item

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(opt_options=)

Initializes an instance of Point.
Parameters:
Name Type Argument Default Description
opt_options= Object <optional>
A map of initial properties.
opt_options.color Array <optional>
200, 200, 200 Color.
opt_options.borderRadius number <optional>
100 Border radius.
opt_options.borderWidth number <optional>
2 Border width.
opt_options.borderStyle string <optional>
'solid' Border style.
opt_options.borderColor Array <optional>
60, 60, 60 Border color.
Source: