Skip to content

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented May 27, 2024

The type of the root property had been incorrectly set to SVGElement during the Typescript migration (see commit 413796a).
This prevented to use it in various scenario, like the example described in the ExportImage JSDoc.

This example was working in mxGraph and typed-mxgraph declares the property as a Element, so it is now declares the property as a Element

A test has been added to show that the ExportImage example using XmlCanvas2D with a root using an Element type works.

Notes

The type of the `root` property had been incorrectly set to `SVGElement` during the Typescript
migration (see commit 413796a).
This prevented to use it in various scenario, like the example described in the `ExportImage` JSDoc.
This example was working in mxGraph and typed-mxgraph declares the property as a `Element`, so it is
now declares the property as a `Element`

A test has been added to show that the ExportImage example using XmlCanvas2D with a root using an
Element type works.
@tbouffard tbouffard added the bug Something isn't working label May 27, 2024
@tbouffard tbouffard marked this pull request as ready for review May 27, 2024 07:40
@tbouffard tbouffard marked this pull request as draft May 27, 2024 09:58
@tbouffard tbouffard marked this pull request as ready for review May 27, 2024 13:28
@tbouffard tbouffard merged commit d5ed60b into main May 28, 2024
@tbouffard tbouffard deleted the fix/XmlCanvas2D_constructor_param_type branch May 28, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant