Skip to content

#3469672: Scale the not-to-be-scaled XB annotations by the inverse of current scale

The XB annotations and labels should not change size when zooming. We've tried different approaches before — this MR implements @effulgentsia's idea of scaling the not-to-be-scaled components by the inverse amount, so that when the ancestor <div> is scaled, it cancels out.

Besides doing that, we also need to factor in the current zoom level when calculating the dimensions of the outline.

Merge request reports

Loading