> For the complete documentation index, see [llms.txt](https://docs.renderdraw.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.renderdraw.us/usage-scenarios/use-cases/interacting-with-renderdraw-using-lightning-messaging-service-lms/canvas-interaction.md).

# 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

\\
