threat-dragon
threat-dragon copied to clipboard
Desktop: Landscape Diagram Export option
Is your feature request related to a problem? Please describe.
👋 I've been using this great tool for a little while but we keep hitting a minor niggle which we'd love to see improved. When exporting reports using the Mac desktop app much of the time the diagrams include scrolls bars. It would be great to either be able to fit-to-width and/or output diagrams as landscape so that the scrollbars can be removed and so more space is available.
Describe the solution you'd like
The option to export diagrams in landscape to better support larger and more complex systems.
Describe alternatives you've considered
None
Additional context
Hello @nickrmc83 - I am glad you like Threat Dragon, and this is a good suggestion, thankyou. It would be a good enhancement to have a landscape option ... it maybe could be a tick box in app/threatmodels/desktopreport.html
with this option being applied in app/threatmodels/desktopreport.js
.
@jgadsden Can you please assign it to me.
@Yogendra0Sharma - all yours! thanks for taking this on
Hello @Yogendra0Sharma , we may be releasing Threat Dragon at the end of this week. Do you want to get this fix in to this version 1.3.1 release?
Hello @Yogendra0Sharma , we are very close to the release, do you mind if someone else works on this issue so that it can be released?
Hello @Yogendra0Sharma , we are very close to the release, do you mind if someone else works on this issue so that it can be released?
Sure.
After some working through the code, this feature requires a change to be made to the threat dragon core file : https://github.com/OWASP/threat-dragon-core/blob/main/src/threatmodels/threatmodelreport.html
and so we can put this feature back to version 1.4. This gives much more time for you @Yogendra0Sharma ? I now realise that this is not a good first issue - so I have removed the label - and if you want help on this one I can give it.
Raised an issue to support this in the core repo: https://github.com/OWASP/threat-dragon-core/issues/70
Transferred to threat dragon repo
Is Export option implemented on the Desktop version? I have been looking for the same, but I couldn't find it.
Is Export option implemented on the Desktop version? I have been looking for the same, but I couldn't find it.
Hello @jauharbal , not yet but if you are interested in coding it that would be great Cheers, Jon
Issue #127 duplicates this
This has been addressed in version 2.0.2 - the diagrams in the reports are scaled to fit and no longer have scroll bars