# Canvas Element Hovered

**Overview:**\
Fires when the user hovers over an element in either a 2D or 3D canvas.

**Usage:**\
Utilized to trigger actions or display information related to the hovered element in either a 2D or 3D canvas context.

**Parameters:**

* **contextId**: The ID for the context of the 2D or 3D canvas.
* **elementId**: The ID of the hovered element.
* **elementType**: The type of the hovered element, indicating the shape or canvas element type in 2D (e.g., layoutArea), or component in 3D.
* **elementName**: The name of the hovered element.
* **record**: The associated record of the hovered element, where applicable.

**Channel Name (for import):**

```javascript
import CANVAS_ELEMENT_HOVERED_CHANNEL from "@salesforce/messageChannel/RDraw__Canvas_ElementHovered__c";
```

**Publisher Components:**

* canvas3D
* canvas2D

**Subscriber Components:**

* standalone\_DataTable

\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.renderdraw.us/usage-scenarios/use-cases/interacting-with-renderdraw-using-lightning-messaging-service-lms/canvas-element-hovered.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
