Skip to main content

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

FieldTypeDescription
idstringUnique identifier for this node
typestringNode type (e.g., node, cbs, zone)
positionobjectNode position object
position.xnumberX-axis coordinate
position.ynumberY-axis coordinate
dataobjectExternal data payload
data.system_namestringGroup name
data.security_zonestringZone ID to which this group belongs
styleobjectVisual style (node size)
style.widthnumberWidth of the node
style.heightnumberHeight of the node
measuredobjectCalculated size of the node
measured.widthnumberMeasured width
measured.heightnumberMeasured height
selectedbooleanSelection state
parentIdstringParent node ID
extentstringExtent 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
}