API Reference > imodeljs-frontend > Views > Decorator Decorator Interface Interface for drawing "decorations" into, or on top of, the active Viewports. Decorators generate Decorations. Implemented by AccuSnap Methods Name Description decorate(context: DecorateContext): void Implement this method to add Decorations into the supplied DecorateContext. getDecorationGeometry(hit: HitDetail): GeometryStreamProps | undefined Optional If Decorator.testDecorationHit returned true, implement this method to return the snappable geometry for this Decorator. getDecorationToolTip(hit: HitDetail): Promise<HTMLElement | string> Optional If Decorator.testDecorationHit returned true, implement this method to return the tooltip message for this Decorator. onDecorationButtonEvent(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled> Optional If Decorator.testDecorationHit returned true, implement this method to handle a button event for this Decorator. testDecorationHit(id: string): boolean Optional If the Decorator.decorate method created pickable graphics, return true if the supplied Id is from this Decorator. Defined in core/frontend/src/ViewManager.ts Line 23 Last Updated: 13 June, 2024