Mini-Stef / Core-Data-Model-Editor

The place to get help, report problems or request feature on the Core Data Model Editor app.
https://github.com/Mini-Stef/Core-Data-Model-Editor
10 stars 1 forks source link

A way to export the diagram #1

Closed gparradob closed 1 year ago

gparradob commented 1 year ago

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 [...] Trying to see the whole diagram is hard and the only way to see it is to print it, but it doesn't print for some reason

Describe the solution you'd like A clear and concise description of what you want to happen. An option to export a JPG, PNG, or even an svg of the diagram

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. There's no other way, not even another app or service

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

Mini-Stef commented 1 year ago

Hello, Thank for your comment, that's my first one :-) If I understand correctly, you ask for a "way to export the diagram". I guess that's the graphical view of the entities and their relations. Which format would you like to have ?

For the time being (revision 1.1 of the app), you can print (from the File menu), and in the print dialog, you can export to a PDF file.

If you wish other export format, I can have a look (currently working on "undo")..

gparradob commented 1 year ago

Hi. I tried printing, but it "prints" the pdf on white color on a white background. Screenshot 2023-11-21 at 9 37 45 AM So even just fixing that or being able to export a .png would be a neat solution

gparradob commented 1 year ago

Trying different things I found it prints with the right colors when in light mode, but another problem is present, that's why printing is not a viable solution. My database is quite complex and it's bigger than what the zoom can accomplish, and this prints only what is visible at the moment of printing so it's incomplete. Either expanding the zoom out capabilities, or printing the whole view even if it's not visible would work for this case.

I had to open the app on a 27" monitor so the visible area would be bigger, I managed to print, only to find that even then, the page is only printed in portrait, wasting most of the space, and also with huge margins. Still it's the most usable diagram I can get because nobody else offers this. Screenshot 2023-11-21 at 10 24 43 AM

Mini-Stef commented 1 year ago

OK, so thank you for discovering all this. If I summarize (just a list, no priority meant) :

Well, good list :-)

Note that I am unsure how to split the model into pages in a smart way, you may have to move the entities so that the page cut does not fall in the middle of them. So it might be handy if I draw light page limits on the canvas so you can position your entities. Any better idea ?

Also, would you be allowed/OK to send me your data model ? It is always nice to have real life examples. No obligation, of course.

Many thanks again.

Mini-Stef commented 1 year ago

All, right, so I did a quick patch.

That's all I can do in a night :-)

Should be available in the App Store (revision 1.1.1) very soon.

gparradob commented 1 year ago

Holy!! That was huge. Thanks.