Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/graphics
Rect
Class Rect
Hierarchy
Rect
Implements
Graphics
Equals
Debug
Index
Constructors
constructor
Properties
height
width
x
y
Methods
copy
debug
draw
equals
render
render
Rect
to
Any
to
String
with
Height
with
Width
withX
withY
create
from
Any
Constructors
constructor
new
Rect
(
x
:
Length
, y
:
Length
, width
:
Length
, height
:
Length
)
:
Rect
Parameters
x:
Length
y:
Length
width:
Length
height:
Length
Returns
Rect
Properties
Readonly
height
height
:
Length
Readonly
width
width
:
Length
Readonly
x
x
:
Length
Readonly
y
y
:
Length
Methods
Protected
copy
copy
(
x
:
Length
, y
:
Length
, width
:
Length
, height
:
Length
)
:
Rect
Parameters
x:
Length
y:
Length
width:
Length
height:
Length
Returns
Rect
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
draw
draw
(
context
:
DrawingContext
, frame
?:
null
|
R2Box
)
:
void
Parameters
context:
DrawingContext
Optional
frame:
null
|
R2Box
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
render
render
(
)
:
string
render
(
renderer
:
GraphicsRenderer
, frame
?:
R2Box
)
:
void
Returns
string
Parameters
renderer:
GraphicsRenderer
Optional
frame:
R2Box
Returns
void
Protected
render
Rect
render
Rect
(
context
:
DrawingContext
, frame
:
null
|
R2Box
)
:
void
Parameters
context:
DrawingContext
frame:
null
|
R2Box
Returns
void
to
Any
to
Any
(
)
:
RectInit
Returns
RectInit
to
String
to
String
(
)
:
string
Returns
string
with
Height
with
Height
(
height
:
AnyLength
)
:
Rect
Parameters
height:
AnyLength
Returns
Rect
with
Width
with
Width
(
width
:
AnyLength
)
:
Rect
Parameters
width:
AnyLength
Returns
Rect
withX
withX
(
x
:
AnyLength
)
:
Rect
Parameters
x:
AnyLength
Returns
Rect
withY
withY
(
y
:
AnyLength
)
:
Rect
Parameters
y:
AnyLength
Returns
Rect
Static
create
create
(
x
:
AnyLength
, y
:
AnyLength
, width
:
AnyLength
, height
:
AnyLength
)
:
Rect
Parameters
x:
AnyLength
y:
AnyLength
width:
AnyLength
height:
AnyLength
Returns
Rect
Static
from
Any
from
Any
(
value
:
AnyRect
)
:
Rect
Parameters
value:
AnyRect
Returns
Rect
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Rect
constructor
height
width
x
y
copy
debug
draw
equals
render
render
Rect
to
Any
to
String
with
Height
with
Width
withX
withY
create
from
Any
Generated using
TypeDoc