Class: OutlineTag
component.OutlineTag
classdesc
Tag holding properties for visualizing a geometry outline.
example
var geometry = new RectGeometry([0.3, 0.3, 0.5, 0.4]);var tag = new OutlineTag( "id-1", geometry { editable: true, lineColor: 0xff0000 });
tagComponent.add([tag]);
#
Hierarchy↳
OutlineTag
#
Constructors#
constructor• new OutlineTag(id
, geometry
, options?
)
Create an outline tag.
override
#
ParametersName | Type | Description |
---|---|---|
id | string | Unique identifier of the tag. |
geometry | VertexGeometry | Geometry defining vertices of tag. |
options? | OutlineTagOptions | Options defining the visual appearance and behavior of the outline tag. |
#
Overrides#
Defined incomponent/tag/tag/OutlineTag.ts:58
#
Events#
on• on(type
, handler
): void
Event fired when the icon of the outline tag is clicked.
example
var tag = new OutlineTag({ // tag options });// Set an event listenertag.on('click', function() { console.log("A click event has occurred.");});
#
ParametersName | Type |
---|---|
type | "click" |
handler | (event : TagStateEvent ) => void |
#
Returnsvoid
#
Overrides#
Defined incomponent/tag/tag/OutlineTag.ts:402
• 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
#
Overrides#
Defined incomponent/tag/tag/OutlineTag.ts:419
• 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
#
Defined incomponent/tag/tag/OutlineTag.ts:436
#
Accessors#
click$• get
click$(): Subject
<OutlineTag
>
Click observable.
description
An observable emitting the tag when the icon of the
tag has been clicked.
#
ReturnsSubject
<OutlineTag
>
#
Defined incomponent/tag/tag/OutlineTag.ts:104
#
domain• get
domain(): TagDomain
Get domain property.
description
Readonly property that can only be set in constructor.
#
ReturnsValue indicating the domain of the tag.
#
Defined incomponent/tag/tag/OutlineTag.ts:115
#
editable• get
editable(): boolean
Get editable property.
#
Returnsboolean
Value indicating if tag is editable.
#
Defined incomponent/tag/tag/OutlineTag.ts:123
• set
editable(value
): void
Set editable property.
fires
changed
#
ParametersName | Type |
---|---|
value | boolean |
#
Returnsvoid
Value indicating if tag is editable.
#
Defined incomponent/tag/tag/OutlineTag.ts:133
#
fillColor• get
fillColor(): number
Get fill color property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:146
• set
fillColor(value
): void
Set fill color property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:156
#
fillOpacity• get
fillOpacity(): number
Get fill opacity property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:165
• set
fillOpacity(value
): void
Set fill opacity property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:175
#
geometry• get
geometry(): VertexGeometry
inheritdoc
#
Returns#
Defined incomponent/tag/tag/OutlineTag.ts:181
#
icon• get
icon(): string
Get icon property.
#
Returnsstring
#
Defined incomponent/tag/tag/OutlineTag.ts:189
• set
icon(value
): void
Set icon property.
fires
changed
#
ParametersName | Type |
---|---|
value | string |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:199
#
iconFloat• get
iconFloat(): Alignment
Get icon float property.
#
Returns#
Defined incomponent/tag/tag/OutlineTag.ts:208
• set
iconFloat(value
): void
Set icon float property.
fires
changed
#
ParametersName | Type |
---|---|
value | Alignment |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:218
#
iconIndex• get
iconIndex(): number
Get icon index property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:227
• set
iconIndex(value
): void
Set icon index property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:237
#
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/OutlineTag.ts:247
• 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/OutlineTag.ts:257
#
lineColor• get
lineColor(): number
Get line color property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:266
• set
lineColor(value
): void
Set line color property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:276
#
lineOpacity• get
lineOpacity(): number
Get line opacity property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:285
• set
lineOpacity(value
): void
Set line opacity property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:295
#
lineWidth• get
lineWidth(): number
Get line width property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:304
• set
lineWidth(value
): void
Set line width property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:314
#
text• get
text(): string
Get text property.
#
Returnsstring
#
Defined incomponent/tag/tag/OutlineTag.ts:323
• set
text(value
): void
Set text property.
fires
changed
#
ParametersName | Type |
---|---|
value | string |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:333
#
textColor• get
textColor(): number
Get text color property.
#
Returnsnumber
#
Defined incomponent/tag/tag/OutlineTag.ts:342
• set
textColor(value
): void
Set text color property.
fires
changed
#
ParametersName | Type |
---|---|
value | number |
#
Returnsvoid
#
Defined incomponent/tag/tag/OutlineTag.ts:352
#
Methods#
fireâ–¸ fire(type
, event
): void
#
ParametersName | Type |
---|---|
type | TagEventType |
event | TagStateEvent |
#
Returnsvoid
#
Overrides#
Defined in../doc/component/tag/tag/OutlineTag.ts:357
#
offâ–¸ off(type
, handler
): void
Unsubscribe from an event by its name.
#
ParametersName | Type |
---|---|
type | TagEventType |
handler | (event : TagStateEvent ) => void |
#
Returnsvoid
#
Overrides#
Defined in../doc/component/tag/tag/OutlineTag.ts:373
#
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 | OutlineTagOptions | Outline tag options |
#
Returnsvoid