You are here. See how this question connects to other ideas.
Select a node to open its page · Expand to read within the map
One question
canvas: Are canvas strokes shared data?
canvas provides freeform drawing; the application connects saving and sharing.
Drawing a line illustrates the difference between interaction and persistence. The reviewed registry describes client-side-only behavior without server events. Shared or persistent strokes require additional data and synchronization mechanisms.
Start with these properties
width and height specify the canvas pixel dimensions. background sets its fill, while strokeColor and strokeWidth set the initial brush color and size. These describe the drawing area and tools, not an address at which strokes are saved.
Read a structural example
From the source registry. This is structural reading material, not a live demo; referenced resources and actions require an application.
{
"id": "whiteboard",
"type": "canvas",
"props": {
"width": 1024,
"height": 600,
"background": "#fafafa"
}
}This example defines a 1024 by 600 drawing area with a light background. It supplies neither a shared data source nor a save action, illustrating why drawing something and recovering it after reopening are separate capabilities.
Check your understanding
What is needed for another device to see the same stroke?
Shared drawing data and synchronization; the client-side canvas described here does not establish them.