CBS
This data type is used for CBS (Computer-Based Systems) groups in Palito.
It contains metadata such as the group name and unique identifier for each CBS.
Example Definition (TypeScript)
{
"id": "string",
"type": "string",
"position": {
"x": "number",
"y": "number"
},
"data": {
"system_name": "string",
"security_zone": "string"
},
"style": {
"width": "number",
"height": "number"
},
"measured": {
"width": "number",
"height": "number"
},
"selected": "boolean",
"parentId": "string",
"extent": "string"
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for this node |
type | string | Node type (e.g., node, cbs, zone) |
position | object | Node position object |
position.x | number | X-axis coordinate |
position.y | number | Y-axis coordinate |
data | object | External data payload |
data.system_name | string | Group name |
data.security_zone | string | Zone ID to which this group belongs |
style | object | Visual style (node size) |
style.width | number | Width of the node |
style.height | number | Height of the node |
measured | object | Calculated size of the node |
measured.width | number | Measured width |
measured.height | number | Measured height |
selected | boolean | Selection state |
parentId | string | Parent node ID |
extent | string | Extent constraint (parent if nested, otherwise undefined) |
Example Usage
const exampleCBS = {
"id": "8",
"type": "cbs",
"position": {
"x": 425,
"y": 225
},
"data": {
"system_name": "CBS",
"security_zone": "zone-2"
},
"style": {
"width": 700,
"height": 650
},
"measured": {
"width": 700,
"height": 650
},
"selected": false
}