Я пытаюсь раскрасить pathItems
внутри compoundPathItem
в Illustrator. Мой объект выглядит как круг внутри круга. Никаких штрихов, четыре пути, два compoundPathItems
внутри compoundPathItem
.
Когда я отлаживаю эту строку: alert(doc.compoundPathItems[0])I get:-[CompoundPathItem]
.... which makes sense because I've combined two compoundPathItems.
Однако я не могу получить доступ к pathItems, чтобы раскрасить их:
doc.compoundPathItems[0].compoundPathItems[0].pathItems ... errors out x_x ...
alert(doc.compoundPathItems[0].pathItems.length) gives me 0 .... T-T
Помогите мне понять, что здесь происходит, пожалуйста.