mirror of
https://github.com/gchq/CyberChef
synced 2025-12-10 21:33:36 +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 { getSeriesValues, RECORD_DELIMITER_OPTIONS, FIELD_DELIMITER_OPTIONS } from "../lib/Charts";
|
||||
|
||||
import Operation from "../Operation";
|
||||
@@ -79,7 +79,7 @@ class SeriesChart extends Operation {
|
||||
allSeriesHeight = Object.keys(series).length * (interSeriesPadding + seriesHeight),
|
||||
svgHeight = allSeriesHeight + xAxisHeight + interSeriesPadding;
|
||||
|
||||
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