drawio icon indicating copy to clipboard operation
drawio copied to clipboard

The chart of the custom library, the exported xml format, cannot obtain the value of value or shape

Open flashoop opened this issue 3 years ago • 2 comments

  • [ agree] I agree to follow the Code of Conduct that this project adheres to.
  • [ yes] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

The custom library defines the data format through , and gives value, id, shape attributes. like this:

[{"data":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB0PSIxNjE3MTcyOTQ1MzcxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMTA3LjAwNzk5NTYwNTQ2ODc1IDEwNC40NDgwNDM4MjMyNDIxOSA4MTAuNjc3NDkwMjM0Mzc1IDgxMy4wOTYwNjkzMzU5Mzc1IiB2ZXJzaW9uPSIxLjEiIHAtaWQ9IjE5NjU4IiB3aWR0aD0iODEwLjY3NzQ5MDIzNDM3NSIgaGVpZ2h0PSI4MTMuMDk2MDY5MzM1OTM3NSI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIi8+PC9kZWZzPjxwYXRoIGQ9Ik0yNDkuODU2IDE3OS4yaDEzOC43NTJjMC0yNS42LTQuMDk2LTUxLjItMTIuOC03Mi43MDRIMjAyLjc1MmMtNTMuMjQ4IDAtOTUuNzQ0IDQyLjQ5Ni05NS43NDQgOTUuNzQ0djE4My4yOTZjMjEuNTA0IDYuMTQ0IDQ1LjA1NiAxMC43NTIgNjguMDk2IDEwLjc1Mmg0LjA5NlYyNDkuODU2QzE3OS4yIDE5Ni4wOTYgMTk2LjA5NiAxNzkuMiAyNDkuODU2IDE3OS4yeiBtMzUxLjc0NCAyMTUuNTUyYzAgNDEuNDcyIDMzLjI4IDc0Ljc1MiA3NC4yNCA3NC43NTJzNzQuNzUyLTMzLj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EyLjgtMzYuMzUyIDMxLjc0NEMzNzMuNzYgMzEzLjM0NCAyODQuMTYgMzk0LjI0IDE3Ny42NjQgMzk2Ljh2NzYuOGMxMi44IDAgMjUuNi0yLjA0OCAzOC40LTQuMDk2IDMuNTg0IDAgNS42MzIgMCA4LjE5Mi0yLjU2eiIgZmlsbD0iI0ZGNkEwMCIgcC1pZD0iMTk2NjAiLz48L3N2Zz4=","w":518,"h":520,"title":"postgresql PostgreSQL ","aspect":"fixed","id":"awscloud","value":"postgresql"}]

When exporting the xml format, <mxCell> under <mxGraphModel> cannot export the attributes of each svg data format, such as shape = awscloud value

like this:

In the exported result, the value is empty and the shape is equal to the image, so the value or shape of the exported image cannot be known.

Describe the solution you'd like A clear and concise description of what you want to happen.

I want when exporting, in <mxCell id="GG7DYfoxsoIG0kQrVP_L-1" >

The value and shape attribute value defined in can be exported

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I hope to open the definition of similar built-in libraries, you can define the value of the shape, and after the cisco-like icon is exported, you can see the unique value corresponding to the shape

Additional context Add any other context or screenshots about the feature request here.

import mxlibrary data format :

image

export mxGraphModel data format: image

wish to export mxGraphModel data format:

image

flashoop avatar Jul 18 '22 10:07 flashoop

When exporting the xml format, under cannot export the attributes of each svg data format, such as shape = awscloud value

like this:

In the exported result, the value is empty and the shape is equal to the image, so the value or shape of the exported image cannot be known.

flashoop avatar Jul 18 '22 10:07 flashoop

<mxCell id="GG7DYfoxsoIG0kQrVP_L-1" value="" style="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0c

flashoop avatar Jul 18 '22 10:07 flashoop

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 14:03 stale[bot]