I am using a drawing to display cell status with a label indicating the name of the cell.
Currently the way I display the text is a element on the shape with a binding
{
"type": "text",
"style": {
"fill": "#000000",
"fontWeight": "bold",
"opacity": 1,
"overflow": "hidden",
"whiteSpace": "nowrap",
"dominant-baseline": "middle",
"font-size": "1vw",
"pointer-events": "none",
"text-anchor": "middle"
},
"x": "50%",
"y": "50%",
"text": "Palletizer"
}
What is the best way to make the entire text visible on the shape and scale with the box size?
I want the shape to scale with the users resolution and remain fully readable.
Is there a better way overall to display a box or similar over a full plant layout?