@asc-mitc/fdl — Node.js API
Preparing search index...
Rect
Class Rect
Lightweight Rect value type.
Index
Constructors
constructor
Properties
height
width
x
y
Methods
clone
equals
to
JSON
to
String
Constructors
constructor
new
Rect
(
x
?:
number
,
y
?:
number
,
width
?:
number
,
height
?:
number
)
:
Rect
Parameters
x
:
number
= 0
y
:
number
= 0
width
:
number
= 0
height
:
number
= 0
Returns
Rect
Properties
height
height
:
number
width
width
:
number
x
x
:
number
y
y
:
number
Methods
clone
clone
()
:
Rect
Create a shallow copy.
Returns
Rect
equals
equals
(
other
:
Rect
)
:
boolean
Value equality.
Parameters
other
:
Rect
Returns
boolean
to
JSON
toJSON
()
:
Record
<
string
,
unknown
>
Convert to plain object.
Returns
Record
<
string
,
unknown
>
to
String
toString
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
width
x
y
Methods
clone
equals
to
JSON
to
String
@asc-mitc/fdl — Node.js API
Loading...
Lightweight Rect value type.