Optional
addedThis method will get called when objects have been added to the selection.
Iterable<@bimworks/jssdk!Qid> that provides the @bimworks/jssdk!Qids of the objects added to the selection set.
Unused
Optional
addedObjects were added to the set of visible objects
An Iterable
This method can return a Promise, if it does, subsequent listeners will only be notified after the returned Promise has resolved
Optional
colorOptional
colorOptional
colorCalled when the color of the given objects has been reset
The Qids of the objects for which the color has been reset
Optional
hoverCalled then the given object is not being hovered on anymore
The Qid of the object that is not being hovered over anymore
Optional
hoverCalled then the given object is being hovered on
The Qid of the object being hovered over
The Qid of the previous objects that was being hovered over
The screenspace location of the hover event. This can be useful to for example place a popup/tooltip at that location. Screenspace location is x, y coordinate between 0, 0 and canvas width,height
Optional
primaryThe primary selection has changed
The Qid of the newly selected primary object or null if primary selection was unselected
Optional
removedObjects have been removed from the selection set
The Qids of the objects that have been removed from the selection set
Optional
removedObjects were removed from the set of visible objects
An Iterable
Optional
type: stringTo be removed
This method can return a Promise, if it does, subsequent listeners will only be notified after the returned Promise has resolved
Optional
setOptional
setOptional
setThis method will get called when the set of selected objects has been
Iterable<@bimworks/jssdk!Qid> that provides the @bimworks/jssdk!Qids of the objects added to the selection set.
Unused
Optional
setOptional
viewFit the given object into view.
The Qids of the objects to fit
Optional
options: ViewFitOptionsTo provide a buffer around the objects. A percentage, where 0 means no buffer and 100 means only buffer
Optional
viewFit the given models into view.
The models to fit
Optional
options: ViewFitOptionsTo provide a buffer around the objects. A percentage, where 0 means no buffer and 100 means only buffer
An interface that can be implemented to be notified about certain ObjectStateManager related events. All of the methods allow the ability to return a Promise. When a Promise is returned, the ObjectStateManager will wait before it will trigger the next listener until the Promise resolves. Keep that in mind when returning a Promise.