Skip to content

Exporting text elements as part of an interactive <g> element #173

@erinreiss

Description

@erinreiss

Dreaming of a way to use ai2html to create a group in my interactions:svg layer that includes a path, a line, and a snippet of text that will all be turned into a single element with a shared id. Currently, text elements within a svg:interactions layer group in illustrator are kicked out of the group, so they remain as text elements and do not share the id.

I know I can get around this by expanding appearance on all text so they are just paths. But that is a really tough workflow, especially if you want to go back and change text.

So! I am dreaming of a setting in ai2html that could:

  1. Allow the text elements in svg:interactions groups in illustrator to stay part of the element that exports
  2. Allow svg:interactions group to apply a class to their output (instead of an id) — so that even text that was kicked out of the would still bear the class from the illustrator group they started in, and could be targeted with js, along with the paths that ended up in the
  3. Or worst case, by auto-converting the text to paths and then exporting all text inside of interactions:svg as paths, allowing them to end up in their destined elements

Thank you for your amazing script!! I teach it in every class I run!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions