bpmn-io/bpmn-js

Support RTL (right to left) languages

Aperta

#924 aperta il 15 dic 2018

 (18 commenti) (0 reazioni) (0 assegnatari)JavaScript (1249 fork)batch import
backlogenhancementhelp wantedpr welcome

Metriche repository

Star
 (7739 stelle)
Metriche merge PR
 (Merge medio 4h 59m) (9 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe.

As a user I'd like to be able to model in RTL (right to left) languages.

Describe the solution you'd like

Modeler works in both, RTL and LTR environments without additional configuration.

Describe alternatives you've considered

  • Users must specify on modeler instantiation, whether they would like to run it in RTL or LTR (default) mode.

Additional context

In all right to left languages, text inside Text Elements is in wrong position:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

The created diagram would be something like below:

lllllllllllllllllllllllllllllllllll

As soon as you change the page direction to rtl via <body direction="rtl"> you'll see labels breaking:

qqqqqqqqqqqqwwwwwwwwwwwwwwww


Context RTL in SVG

Guida contributor