# Canvas Interaction

**Overview:**\
This channel is dedicated to capturing user interactions within the canvas. It's versatile and can be used in both 2D and 3D contexts to track specific interactions.

**Usage:**\
Utilized for tracking various interactions within the canvas, such as clicks, drags, or other user inputs, providing a way to respond to or log these activities.

**Parameters:**

* **contextId**: The ID for the context of the 2D or 3D canvas.
* **name**: The name of the interaction.
* **parameters**: Parameters to pass to the interaction, allowing for customizable responses or actions based on the interaction type.

**Channel Name (for import):**

```javascript
import CANVAS_INTERACTION_CHANNEL from "@salesforce/messageChannel/RDraw__Canvas_Interaction__c";
```

**Publisher Components:**

* canvas3D
* standalone\_DataTable

**Subscriber Components:**

* canvas3D (bidirectional)
* canvas2D

\\


---

# 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-interaction.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.
