Class: ExtremePointTag
component.ExtremePointTag
classdesc
Tag holding properties for visualizing a extreme points
and their outline.
example
var geometry = new PointsGeometry([[0.3, 0.3], [0.5, 0.4]]);var tag = new ExtremePointTag( "id-1", geometry { editable: true, lineColor: 0xff0000 });
tagComponent.add([tag]);
#
Hierarchy↳
ExtremePointTag
#
Constructors#
constructor• new ExtremePointTag(id
, geometry
, options?
)
Create an extreme point tag.
override
#
ParametersName | Type | Description |
---|---|---|
id | string | Unique identifier of the tag. |
geometry | PointsGeometry | Geometry defining points of tag. |
options? | ExtremePointTagOptions | Options defining the visual appearance and behavior of the extreme point tag. |
#
Overrides#
Defined incomponent/tag/tag/ExtremePointTag.ts:43
#
Events#
on• on(type
, handler
): void
Event fired when the geometry of the tag has changed.
example
var tag = new OutlineTag({ // tag options });// Set an event listenertag.on('geometry', function() { console.log("A geometry event has occurred.");});
#
ParametersName | Type |
---|---|
type | "geometry" |
handler | (event : TagStateEvent ) => void |
#
Returnsvoid
#
Inherited from#
Defined in• on(type
, handler
): void
Event fired when a tag has been updated.
example
var tag = new OutlineTag({ // tag options });// Set an event listenertag.on('tag', function() { console.log("A tag event has occurred.");});
#
ParametersName | Type |
---|---|
type | "tag" |
handler | (event : TagStateEvent ) => void |
#
Returnsvoid
#
Inherited from#
Defined in#
Accessors#
editable• get
editable(): boolean
Get editable property.
#
Returnsboolean
Value indicating if tag is editable.
#
Defined incomponent/tag/tag/ExtremePointTag.ts:61
• set
editable(value
): void
Set editable property.
fires
changed
#
ParametersName | Type |
---|---|
value | boolean |
#
Returnsvoid
Value indicating if tag is editable.
#
Defined incomponent/tag/tag/ExtremePointTag.ts:71
#
fillColor• get
fillColor(): number
Get fill color property.
#
Returnsnumber
#
Defined incomponent/tag/tag/ExtremePointTag.ts:80
• set
fillColor(value
): void
Set fill color property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/ExtremePointTag.ts:90
#
fillOpacity• get
fillOpacity(): number
Get fill opacity property.
#
Returnsnumber
#
Defined incomponent/tag/tag/ExtremePointTag.ts:99
• set
fillOpacity(value
): void
Set fill opacity property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/ExtremePointTag.ts:109
#
geometry• get
geometry(): PointsGeometry
inheritdoc
#
Returns#
Defined incomponent/tag/tag/ExtremePointTag.ts:115
#
id• get
id(): string
Get id property.
#
Returnsstring
#
Defined in#
indicateVertices• get
indicateVertices(): boolean
Get indicate vertices property.
#
Returnsboolean
Value indicating if vertices should be indicated when tag is editable.
#
Defined incomponent/tag/tag/ExtremePointTag.ts:124
• set
indicateVertices(value
): void
Set indicate vertices property.
fires
changed
#
ParametersName | Type |
---|---|
value | boolean |
#
Returnsvoid
Value indicating if vertices should be indicated when tag is editable.
#
Defined incomponent/tag/tag/ExtremePointTag.ts:134
#
lineColor• get
lineColor(): number
Get line color property.
#
Returnsnumber
#
Defined incomponent/tag/tag/ExtremePointTag.ts:143
• set
lineColor(value
): void
Set line color property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/ExtremePointTag.ts:153
#
lineOpacity• get
lineOpacity(): number
Get line opacity property.
#
Returnsnumber
#
Defined incomponent/tag/tag/ExtremePointTag.ts:162
• set
lineOpacity(value
): void
Set line opacity property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/ExtremePointTag.ts:172
#
lineWidth• get
lineWidth(): number
Get line width property.
#
Returnsnumber
#
Defined incomponent/tag/tag/ExtremePointTag.ts:181
• set
lineWidth(value
): void
Set line width property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/ExtremePointTag.ts:191
#
Methods#
fireâ–¸ fire(type
, event
): void
#
ParametersName | Type |
---|---|
type | "tag" | "geometry" |
event | TagStateEvent |
#
Returnsvoid
#
Inherited from#
Defined in../doc/component/tag/tag/Tag.ts:103
#
offâ–¸ off(type
, handler
): void
Unsubscribe from an event by its name.
#
ParametersName | Type |
---|---|
type | "tag" | "geometry" |
handler | (event : TagStateEvent ) => void |
#
Returnsvoid
#
Inherited from#
Defined in../doc/component/tag/tag/Tag.ts:118
#
setOptionsâ–¸ setOptions(options
): void
Set options for tag.
description
Sets all the option properties provided and keeps
the rest of the values as is.
fires
changed
#
ParametersName | Type | Description |
---|---|---|
options | ExtremePointTagOptions | Extreme point tag options |
#
Returnsvoid