Class: Rect

ge.shape.Rect(dataopt, nullable)

new Rect(dataopt, nullable)

Rectangle.
Parameters:
Name Type Attributes Description
data object <optional>
<nullable>
JSON data.
Properties
Name Type Attributes Default Description
aspect number <optional>
<nullable>
1 Aspect ratio.
Source:

Members

aspect :number

Aspect ratio.
Type:
  • number
Source:

Methods

(abstract) doFitTitleInside(node, size, textSize)

Resize a node to fit its title inside.
Parameters:
Name Type Description
node ge.Node Node data.
size ge.ContainerSize Text container size.
textSize ge.TextSize Text size calculator.
Source:

(abstract) getPoint(node, angle) → {ge.Point}

Return point at angle.
Parameters:
Name Type Description
node ge.Node Node data.
angle ge.Angle Angle.
Source:
Returns:
Type
ge.Point

path(node) → {string}

Return SVG path.
Parameters:
Name Type Description
node ge.Node Node data.
Source:
Returns:
SVG path.
Type
string

(abstract) toJson() → {object}

Convert to JSON.
Source:
Returns:
JSON data.
Type
object