Highlighter
This component allows highlighting and selecting fragments in a 3D scene. 📕 Tutorial. 📘 API.
Extends
Component
Implements
Disposable
Eventable
Properties
autoToggle
autoToggle:
Set
<string
>
Styles with auto toggle will be unselected when selected twice.
backupColor
backupColor:
null
|Color
=null
Stores the backup color before selection.
colors
colors:
Map
<string
,null
|Color
>
Stores the colors used for highlighting selections. If null, the highlighter won't color geometries (useful for selection without coloring).
config
config:
Required
<HighlighterConfig
>
Stores the configuration options for the Highlighter.
enabled
enabled:
boolean
=true
OBC.Component.enabled
Overrides
OBC.Component.enabled
eventManager
eventManager:
EventManager
Manager to easily toggle and reset all events.
Implementation of
OBC.Eventable.eventManager
events
events:
HighlightEvents
={}
Stores the events triggered by the Highlighter.
isSetup
isSetup:
boolean
=false
Indicates whether the Highlighter is setup.
mouseMoveThreshold
mouseMoveThreshold:
number
=5
Threshhold on how much the mouse have to move until its considered movement
multiple
multiple:
"none"
|"ctrlKey"
|"shiftKey"
="ctrlKey"
Determines the multiple selection behavior.
onAfterUpdate
readonly
onAfterUpdate:Event
<Highlighter
>
OBC.Updateable.onAfterUpdate
onBeforeUpdate
readonly
onBeforeUpdate:Event
<Highlighter
>
OBC.Updateable.onBeforeUpdate
onDisposed
readonly
onDisposed:Event
<unknown
>
OBC.Disposable.onDisposed
Implementation of
OBC.Disposable.onDisposed
onSetup
readonly
onSetup:Event
<Highlighter
>
Event triggered when the Highlighter is setup.
selectable
selectable:
object
={}
If defined, only the specified elements will be selected by the specified style.
Index signature
[name
: string
]: FragmentIdMap
selection
selection:
object
={}
Stores the current selection.
Index signature
[selectionID
: string
]: FRAGS.FragmentIdMap
zoomFactor
zoomFactor:
number
=1.5
Zoom factor applied when zooming to selection.
zoomToSelection
zoomToSelection:
boolean
=false
Indicates whether to zoom to the selection when highlighting.