Go Js ToolTip Zoom In - Zoom Out

Hi Community,

We have a zoom in - zoom out feature in our diagram, but seems like the tooltip is not getting adjusted while zooming in or out. Any fix for this?

We have added tooltip like this -

$(go.Adornment, “Spot”,
$(go.Placeholder, {
padding: 32
$(go.TextBlock, {
text: “Add a path”,
stroke: “#FFFFFF”,
font: “9pt Open Sans”,
background: “black”,
width: 71,
height: 24,
margin: 10,
alignment: go.Spot.Bottom,
alignmentFocus: go.Spot.Bottom,
textAlign: “center”,
verticalAlignment: go.Spot.Center
Our Use Case snapshot for your reference!

Screenshot 2023-02-16 at 3.22.21 PM

Yes, tooltips and context menus and text editors are all shown at normal scale – independent of the Diagram.scale. This intentional so that they aren’t too small to be seen or too big.

I suppose you could override ToolManager.showToolTip to call the super method and then if (this.currentToolTip) this.currentToolTip.scale = 1.