enableRightToLeftDetection
Determines whether or not run the algorithm, that match the text of the label to right-to-left languages
// Example 1.
// Set a label's rightToLeft before init
Label.enableRightToLeftDetection = true;
const myLabelEntity = viewer.entities.add({
label: {
id: 'my label',
text: 'זה טקסט בעברית \n ועכשיו יורדים שורה',
}
});
Content copied to clipboard
// Example 2.
const myLabelEntity = viewer.entities.add({
label: {
id: 'my label',
text: 'English text'
}
});
// Set a label's rightToLeft after init
Label.enableRightToLeftDetection = true;
myLabelEntity.text = 'טקסט חדש';
Content copied to clipboard