flashedElement
Getter
Identifies the currently-flashed object.
The "flashed" visual effect is typically applied to the object in the viewport currently under the mouse cursor, to indicate
it is ready to be interacted with by a tool. ToolAdmin is responsible for updating it when the mouse cursor moves.
The object is usually an Element but could also be a Model or pickable decoration produced by a Decorator,
in which case the element Id will be a transient Id.
The setter ignores any string that is not a well-formed Id64String. Passing Id64.invalid to the
setter is equivalent to passing undefined - both mean "nothing is flashed".
flashedElement: IModelAndElementId | undefined
@throws Error if an attempt is made to change this property from within an onFlashedElementChanged event callback.
@see - onFlashedElementChanged to be notified when the flashed object changes.
- flashSettings to customize the visual effect.
Returns - IModelAndElementId | undefined
Setter
flashedElement(flashed: IModelAndElementId): void
| Parameter | Type | Description |
|---|---|---|
| flashed | IModelAndElementId |
Returns - void
Defined in
- core/frontend/src/Viewport.ts Line 2084
Last Updated: 03 December, 2026