Interface: SerializedElement
Defined in: core/src/fabricjs/canvas/ChamevoCanvas.ts:56
Represents a serialized element that can be saved and loaded.
Example
const element: SerializedElement = {
title: 'my-text',
source: 'Hello World',
type: 'text',
parameters: { left: 100, top: 50, fontSize: 24 }
};
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
title | string | Unique identifier/name for the element | core/src/fabricjs/canvas/ChamevoCanvas.ts:58 |
source | string | Source content - text content for text elements, URL for images | core/src/fabricjs/canvas/ChamevoCanvas.ts:60 |
type | ElementType | Element type | core/src/fabricjs/canvas/ChamevoCanvas.ts:62 |
parameters | Partial<CVElementProps> | Element parameters (position, styling, permissions, etc.) | core/src/fabricjs/canvas/ChamevoCanvas.ts:64 |