-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] tacticBackground support for SVGConfig #92
Comments
These values are defined in the layer json. Though they seem to be ignored / not implemented in the SVG conversion. Defining these in the layer json and using the ATT&CK Nav to export to SVG works as expected. "showTacticRowBackground": true,
"tacticRowBackground": "#205b8f" Example export using the script: Example export using ATT&CK Nav: Adding code and JSON layer file to recreate the issue. lay = Layer()
lay.from_file("example_layer.json")
svgconf = SVGConfig(width=12, height=12, headerHeight=1, unit="in", showSubtechniques="expanded",
font="sans-serif", tableBorderColor="#6B7279", showHeader=False, legendDocked=True,
legendX=0, legendY=0, legendWidth=2, legendHeight=1, showLegend=False, showFilters=False,
showAbout=False, showDomain=False, border=0.104)
t = ToSvg(domain=lay.layer.domain, source='taxii', config=svgconf)
t.to_svg(layerInit=lay, filepath="../reports/mitreheatmap.svg") JSON Layer: example_layer.zip |
Looks like the reason is that there are no cells created under the Tactic text.
Could implement another method similar to
|
Is your feature request related to a problem?
Add tacticBackground and showTacticBackground as parameter options when using SVGConfig
Describe the solution you'd like
Add tacticBackground and showTacticBackground as a supported parameter options when using SVGConfig to export a layer as an SVG.
The text was updated successfully, but these errors were encountered: