glyphic-co/textblock

Script only processes first instance

theorosendorf opened this issue · 2 comments

Hey @traviskochel ,

I noticed the second text block wasn't being scaled. I did some testing and found that if I reversed the order of the JSON code, the first text block wouldn't scale. As in the code below, "#jupiter p" scales but ".saturn p" doesn't. What do you think?

Galley([
      {
        target:"#jupiter p",
        minFontSize: 1.9,
        maxFontSize: 2.6
      },
      {
        target:".saturn p",
        minFontSize: 1.9,
        maxFontSize: 2.6
      }
    ]);

Good catch. I'll try to take a look at this next week. I've got family in town