process-analytics / bpmn-visualization-js

A TypeScript library for visualizing process execution data on BPMN diagrams
https://process-analytics.github.io/bpmn-visualization-js/
Apache License 2.0
224 stars 31 forks source link

[FEAT] Improve label position accuracy #321

Closed tbouffard closed 2 years ago

tbouffard commented 4 years ago

The label seem slightly translated to the bottom-right direction, see https://github.com/process-analytics/bpmn-visualization-js/pull/299#issuecomment-644881142 for shape label.

tbouffard commented 4 years ago

mxGraph upgrade to 4.1.1+ may improve position accuracy. See https://github.com/process-analytics/mxgraph2/commit/49f1e827723922a8130d8f047c6574fa3b06fe75 introduced in 4.1.1: "Fixes inconsistent text rendering, center alignment "

tbouffard commented 4 years ago

It has been confirmed that the text is moved to the left when upgrading to 4.1.1, see