Version
The Version data type is used in Palito to represent versioned metadata. A single version includes information about related zones, version memo, and the last edited time.
Type Definition (TypeScript)
Version = {
version: number;
versionMemo: string;
editTime: string; // Format: yyyy-mm-dd hh:mm:ss
zones: Zone[];
};
Field Descriptions
| Field | Type | Description |
|---|---|---|
version | number | Version number (numeric) |
versionMemo | string | Description or memo for this version |
editTime | string | Last edit timestamp (formatted as yyyy-mm-dd hh:mm:ss) |
zones | Zone[] | Array of zone objects included in this version |
Example
{
"version": 1,
"versionMemo": "Insert Version Memo",
"editTime": "2025-07-22 15:38:45",
"zones": [
{
"id": "zone-1",
"name": "Main Zone",
"nodes": [ /* ... */ ],
"viewport": {
"x": 0,
"y": 0,
"zoom": 1.0
}
}
]
}