hello, as i know in css rtl code is
div { direction: rtl;}but how about javascript in mv code look ?any tips ?
You can't. React js has a concept where you can do styles this way but what your describing - as far as I know cannot be done on its own.
If MV works anything like Ace, text will be printed a character at a time, so RTL-orientation would have to be implemented manually.
There are the unicode code points for RTL (U+200F) and LTR (U+200E) wich should let you redender mixed text without any problems in strings.
Of course, this last part is quite false, because that depends if the text renderer of MV supports those characters (wich usually doesn't)
So there is a high chance we will have to fix that...
The 'Bitmap' Class/Function uses a canvas-context, where you theoretically set the direction. But with just the dev console i couldn't try it out, because the Bitmap class is already initialized, so i can't modify the matching prototype function.
In some days we know more 🙂