Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Error when text created without specifying font. AKA "Uncaught TypeError: Cannot read property 'replace' of undefined" #48

@silverhawk184

Description

@silverhawk184

Just specifying "paper.text(x,y).attr('text');" does not create a font attribute, which Raphael.export requires on line 118.

Please update to say "family: typeof node.attrs.font === 'undefined' ? null : node.attrs.font.replace(/^.?"(\w+)".$/, '$1'),"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions