Decoding XML breaks when code is minified · Issue #169 · maxGraph/maxGraph · GitHub
Skip to content

Decoding XML breaks when code is minified #169

Description

@urdeveloper

When migrating from mxGraph to maxGraph I realized decoding XML doesn't work if the final code is minified. This is because decoding XML elements and finding a corresponding decoder is based on the constructor name. When code is minified, those constructor names are not same as the original ones (for example, GraphDataModel, Cell, ...).
To fix this I believe the decoders and codec registry need to be refactored to not rely on constructor names anymore.
Please let me know if this a correct observation, then I can start working on a PR to address the issue.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions