Skip to content

Commit

Permalink
- fixed font family and font embedding in svg
Browse files Browse the repository at this point in the history
Signed-off-by: oleg_wyndrick <[email protected]>
  • Loading branch information
Oleg-RapidFort committed Oct 29, 2024
1 parent 3a8cfa2 commit b58f9bf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
6 changes: 4 additions & 2 deletions report_shots/shots.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ const generateReportViews = async (
padding = 8;
const cveReductionSVG = `
<svg width="${severityVulnsDimensions.width + padding * 2}" height="${severityVulnsDimensions.height+ padding * 2}" xmlns="http://www.w3.org/2000/svg">
${combinedStyle}
<rect width="100%" height="100%" fill="#F1F1F3"/>
<g transform="translate(${padding}, ${padding})">
${vulnsBySeverityChartSVG}
${cleanedSVGs[0]}
</g>
</svg>
`;
Expand Down Expand Up @@ -470,7 +471,8 @@ async function main() {
const platform = process.argv[3]

const imgList = await fsPromise.readFile(imgListPath, { encoding: 'utf8' });
const imgListArray = imgList.split("\n");
// const imgListArray = imgList.split("\n");
const imgListArray = ['apache/bitnami']

for await (const imagePath of imgListArray) {
console.log("image name=", imagePath);
Expand Down
7 changes: 5 additions & 2 deletions report_shots/template_contextual_severity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b58f9bf

Please sign in to comment.