@magiclane/maps-sdk
Preparing search index...
RectType
Class RectType<T>
A generic type consisting of x, y, width and height coordinates.
Type Parameters
T
extends
number
Index
Constructors
constructor
Properties
height
width
x
y
Accessors
to
Rectangle
Methods
equals
hash
Code
to
Json
from
Json
from
Rectangle
Constructors
constructor
new
RectType
<
T
extends
number
>
(
__namedParameters
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
,
)
:
RectType
<
T
>
Type Parameters
T
extends
number
Parameters
__namedParameters
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Returns
RectType
<
T
>
Properties
height
height
:
T
width
width
:
T
x
x
:
T
y
y
:
T
Accessors
to
Rectangle
get
toRectangle
()
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Returns
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Methods
equals
equals
(
other
:
RectType
<
T
>
)
:
boolean
Parameters
other
:
RectType
<
T
>
Returns
boolean
hash
Code
hashCode
()
:
number
Returns
number
to
Json
toJson
()
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Returns
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Static
from
Json
fromJson
<
T
extends
number
>
(
json
:
{
height
?:
T
;
width
?:
T
;
x
?:
T
;
y
?:
T
}
,
)
:
RectType
<
T
>
Type Parameters
T
extends
number
Parameters
json
:
{
height
?:
T
;
width
?:
T
;
x
?:
T
;
y
?:
T
}
Returns
RectType
<
T
>
Static
from
Rectangle
fromRectangle
<
T
extends
number
>
(
rectangle
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
,
)
:
RectType
<
T
>
Type Parameters
T
extends
number
Parameters
rectangle
:
{
height
:
T
;
width
:
T
;
x
:
T
;
y
:
T
}
Returns
RectType
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
height
width
x
y
Accessors
to
Rectangle
Methods
equals
hash
Code
to
Json
from
Json
from
Rectangle
@magiclane/maps-sdk
Loading...
A generic type consisting of x, y, width and height coordinates.