mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 07:43:22 +00:00
Found a different dom implementation that removes 6MB
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
import * as d3 from "d3";
|
||||
import jsdom from "jsdom";
|
||||
import * as nodom from "nodom";
|
||||
import { getScatterValues, RECORD_DELIMITER_OPTIONS, COLOURS, FIELD_DELIMITER_OPTIONS } from "../lib/Charts";
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ class HeatmapChart extends Operation {
|
||||
yLabel = headings.y;
|
||||
}
|
||||
|
||||
const document = new jsdom.JSDOM().window.document;
|
||||
const document = new nodom.Document();
|
||||
let svg = document.createElement("svg");
|
||||
svg = d3.select(svg)
|
||||
.attr("width", "100%")
|
||||
|
||||
Reference in New Issue
Block a user