RoundedRectangles

RoundedRectangles

{Array} RoundedRectangles Collection of Rounded Rectangle objects

Constructor

new RoundedRectangles()

Source:
Properties:
Name Type Description
point Point X & Y axis coordinates
stroke StrokeCollection Stroke collection properties
shadow ShadowCollection Shadow collection properties
aspect Aspect Aspect properties
canvas HTMLCanvasElement 2D canvas context
template Template Canvas Lab Template object
anchor Anchor Anchor properties
options Options Options for this object

Extends

Methods

anchor(value)

Description:
  • Set anchor type
Source:
Overrides:
See:
Parameters:
Name Type Description
value string Anchor type

area() → {number}

Description:
  • Get area of this object
Source:
Inherited From:
See:
Returns:
Area of rectangle
Type
number

aspect() → {Aspect}

Description:
  • Get aspect properties
Source:
Inherited From:
See:
Returns:
Aspect properties
Type
Aspect

canvas(value)

Description:
  • Set canvas value
Source:
Overrides:
See:
Parameters:
Name Type Description
value string Canvas id

center() → {Point}

Description:
  • Get center of this object
Source:
Inherited From:
See:
Returns:
Center point coordinates
Type
Point

draw(canvas)

Description:
  • Draw function for collections
Source:
Inherited From:
See:
Parameters:
Name Type Description
canvas string Canvas Id

endPoint() → {Point}

Description:
  • Returns the last Point within this Array
Source:
Inherited From:
See:
Returns:
Last Array element's X & Y Coordinates
Type
Point

getPoints(indexes, color)

Description:
  • Get all or specific points throughout this collection
Source:
Inherited From:
See:
Parameters:
Name Type Description
indexes Array.<number> Indexes of points
color Rgb Color to colorize objects selected points

height() → {number}

Description:
  • Get aspect height
Source:
Inherited From:
See:
Returns:
Height value
Type
number

options() → {Object}

Description:
  • Get options
Source:
Overrides:
Returns:
Options object
Type
Object

perimeter() → {number}

Description:
  • Get perimeter of this object
Source:
Inherited From:
See:
Returns:
Perimeter of rectangle
Type
number

point(value)

Description:
  • Set point
Source:
Overrides:
See:
Parameters:
Name Type Description
value Point X & Y coordinates

push()

Description:
  • Pushes child object(s) into this collection
Source:
Inherited From:
See:

shadow() → {Shadow}

Description:
  • Get shadow properties
Source:
Inherited From:
Returns:
Shadow properties
Type
Shadow

storageType() → {clObject}

Description:
  • Returns this collection's storage type
Source:
Inherited From:
Returns:
Canvas Lab object
Type
clObject

stroke() → {Stroke}

Description:
  • Get stroke properties
Source:
Inherited From:
Returns:
Stroke properties
Type
Stroke

template(value)

Description:
  • Set template
Source:
Overrides:
See:
Parameters:
Name Type Description
value Template Template object

width() → {number}

Description:
  • Get aspect with
Source:
Inherited From:
See:
Returns:
Width value
Type
number

x(value)

Description:
  • Set x-axis value
Source:
Overrides:
See:
Parameters:
Name Type Description
value number X coordinate value

y(value)

Description:
  • Set the y-axis value
Source:
Overrides:
See:
Parameters:
Name Type Description
value number Y coordinate value