Preparing search index...
The search index is not available
@overlapmedia/imagemapper
@overlapmedia/imagemapper
Polygon
Class Polygon
Hierarchy (
view full
)
Component
Polygon
Index
Constructors
constructor
Properties
editor
Owner
element
is
Frozen
is
Selected
points
style
Methods
_log
Warn
On
Op
On
Frozen
add
Point
export
freeze
get
Handles
is
Valid
move
move
Last
Point
set
Handles
Visibility
set
Is
Selected
set
Style
update
Element
Points
Constructors
constructor
new
Polygon
(
editorOwner
,
points
?
)
:
Polygon
Parameters
editorOwner
:
Editor
Optional
points
:
Point
|
Point
[]
Returns
Polygon
Properties
Readonly
editor
Owner
editor
Owner
:
Editor
Readonly
element
element
:
SVGElement
is
Frozen
is
Frozen
:
boolean
= false
is
Selected
is
Selected
:
boolean
= false
points
points
:
Point
[]
= []
style
style
:
{
component
:
Style
;
componentHover
:
{
off
:
Style
;
on
:
Style
;
}
;
componentSelect
:
{
off
:
Style
;
on
:
Style
;
}
;
handle
:
Style
;
handleHover
:
Style
;
}
= ...
Type declaration
component
:
Style
component
Hover
:
{
off
:
Style
;
on
:
Style
;
}
off
:
Style
on
:
Style
component
Select
:
{
off
:
Style
;
on
:
Style
;
}
off
:
Style
on
:
Style
handle
:
Style
handle
Hover
:
Style
Methods
_log
Warn
On
Op
On
Frozen
_log
Warn
On
Op
On
Frozen
(
op
)
:
void
Parameters
op
:
string
Returns
void
add
Point
add
Point
(
x
,
y
)
:
Polygon
Parameters
x
:
number
y
:
number
Returns
Polygon
export
export
(
)
:
{
x
:
number
;
y
:
number
;
}
[]
Returns
{
x
:
number
;
y
:
number
;
}
[]
freeze
freeze
(
freeze
?
)
:
Polygon
Parameters
Optional
freeze
:
boolean
Returns
Polygon
get
Handles
get
Handles
(
)
:
Handle
[]
Returns
Handle
[]
is
Valid
is
Valid
(
)
:
boolean
Returns
boolean
move
move
(
deltaX
,
deltaY
)
:
Polygon
Parameters
deltaX
:
number
deltaY
:
number
Returns
Polygon
move
Last
Point
move
Last
Point
(
x
,
y
)
:
Polygon
Parameters
x
:
number
y
:
number
Returns
Polygon
set
Handles
Visibility
set
Handles
Visibility
(
visible
?
)
:
Polygon
Parameters
Optional
visible
:
boolean
Returns
Polygon
set
Is
Selected
set
Is
Selected
(
selected
?
)
:
Polygon
Parameters
Optional
selected
:
boolean
Returns
Polygon
set
Style
set
Style
(
style
)
:
Polygon
Parameters
style
:
{
component
:
Style
;
componentHover
:
{
off
:
Style
;
on
:
Style
;
}
;
componentSelect
:
{
off
:
Style
;
on
:
Style
;
}
;
handle
:
Style
;
handleHover
:
Style
;
}
component
:
Style
component
Hover
:
{
off
:
Style
;
on
:
Style
;
}
off
:
Style
on
:
Style
component
Select
:
{
off
:
Style
;
on
:
Style
;
}
off
:
Style
on
:
Style
handle
:
Style
handle
Hover
:
Style
Returns
Polygon
update
Element
Points
update
Element
Points
(
)
:
Polygon
Returns
Polygon
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
editor
Owner
element
is
Frozen
is
Selected
points
style
_log
Warn
On
Op
On
Frozen
add
Point
export
freeze
get
Handles
is
Valid
move
move
Last
Point
set
Handles
Visibility
set
Is
Selected
set
Style
update
Element
Points
@overlapmedia/imagemapper
Loading...
Generated using
TypeDoc