Copy link to clipboard
Copied
So, im trying to understand the styleRanges a bit more.
Im not sure if i quite understand correctly
https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#Text-styleRanges
Visually, within Adobe XD, i can see that all the same styles are applied continously within the text's field.
However, when i console.log styleRanges, I am getting mutiple 'ranges' or multiple indexes within the array. In my mind, this should not be happening since every character has the same styling. The length of the array should be one and that one index should contain only one object of styling since every character shares the same style.
Why is it that i am getting more than one?
I even checked each property and they all match.
Below are two objects within the array
StyleRanges: []
Object One:
Have something to add?