diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index ebfa583f..e0bb61c8 100755 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -366,10 +366,6 @@ "Remove EXIF", "Extract EXIF", "Split Colour Channels", - "Hex Density chart", - "Scatter chart", - "Series chart", - "Heatmap chart", "Rotate Image", "Resize Image", "Blur Image", @@ -382,7 +378,11 @@ "Image Filter", "Contain Image", "Cover Image", - "Image Hue/Saturation/Lightness" + "Image Hue/Saturation/Lightness", + "Hex Density chart", + "Scatter chart", + "Series chart", + "Heatmap chart" ] }, { @@ -399,6 +399,7 @@ "Generate QR Code", "Parse QR Code", "Haversine distance", + "HTML To Text", "Generate Lorem Ipsum", "Numberwang", "XKCD Random Number" diff --git a/src/core/lib/Charts.mjs b/src/core/lib/Charts.mjs index fa3e5137..2bb40b61 100644 --- a/src/core/lib/Charts.mjs +++ b/src/core/lib/Charts.mjs @@ -7,7 +7,7 @@ import OperationError from "../errors/OperationError"; - /** +/** * @constant * @default */ @@ -40,6 +40,7 @@ export const COLOURS = { * @param {string} recordDelimiter * @param {string} fieldDelimiter * @param {boolean} columnHeadingsAreIncluded - whether we should skip the first record + * @param {number} length * @returns {Object[]} */ export function getValues(input, recordDelimiter, fieldDelimiter, columnHeadingsAreIncluded, length) { @@ -58,7 +59,7 @@ export function getValues(input, recordDelimiter, fieldDelimiter, columnHeadings values.push(split); } }); - return { headings, values}; + return { headings, values }; } @@ -74,7 +75,8 @@ export function getValues(input, recordDelimiter, fieldDelimiter, columnHeadings export function getScatterValues(input, recordDelimiter, fieldDelimiter, columnHeadingsAreIncluded) { let { headings, values } = getValues( input, - recordDelimiter, fieldDelimiter, + recordDelimiter, + fieldDelimiter, columnHeadingsAreIncluded, 2 ); @@ -96,6 +98,7 @@ export function getScatterValues(input, recordDelimiter, fieldDelimiter, columnH return { headings, values }; } + /** * Gets values from input for a scatter plot with colour from the third column. * diff --git a/src/core/operations/HTMLToText.mjs b/src/core/operations/HTMLToText.mjs index a47ffc46..ac17a78f 100644 --- a/src/core/operations/HTMLToText.mjs +++ b/src/core/operations/HTMLToText.mjs @@ -20,7 +20,7 @@ class HTMLToText extends Operation { this.name = "HTML To Text"; this.module = "Default"; - this.description = "Converts a HTML ouput from an operation to a readable string instead of being rendered in the DOM."; + this.description = "Converts an HTML output from an operation to a readable string instead of being rendered in the DOM."; this.infoURL = ""; this.inputType = "html"; this.outputType = "string"; diff --git a/src/core/operations/HeatmapChart.mjs b/src/core/operations/HeatmapChart.mjs index 4cde1f30..f04b6881 100644 --- a/src/core/operations/HeatmapChart.mjs +++ b/src/core/operations/HeatmapChart.mjs @@ -9,7 +9,6 @@ import * as d3temp from "d3"; import * as nodomtemp from "nodom"; import { getScatterValues, RECORD_DELIMITER_OPTIONS, COLOURS, FIELD_DELIMITER_OPTIONS } from "../lib/Charts"; - import Operation from "../Operation"; import OperationError from "../errors/OperationError"; import Utils from "../Utils"; diff --git a/src/core/operations/JavaScriptParser.mjs b/src/core/operations/JavaScriptParser.mjs index 40ee7a57..61d7cf50 100644 --- a/src/core/operations/JavaScriptParser.mjs +++ b/src/core/operations/JavaScriptParser.mjs @@ -21,7 +21,7 @@ class JavaScriptParser extends Operation { this.name = "JavaScript Parser"; this.module = "Code"; this.description = "Returns an Abstract Syntax Tree for valid JavaScript code."; - this.infoURL = "https://en.wikipedia.org/wiki/Abstract_syntax_tree"; + this.infoURL = "https://wikipedia.org/wiki/Abstract_syntax_tree"; this.inputType = "string"; this.outputType = "string"; this.args = [ diff --git a/src/core/operations/PEMToHex.mjs b/src/core/operations/PEMToHex.mjs index a2c989fe..580b1028 100644 --- a/src/core/operations/PEMToHex.mjs +++ b/src/core/operations/PEMToHex.mjs @@ -21,7 +21,7 @@ class PEMToHex extends Operation { this.name = "PEM to Hex"; this.module = "PublicKey"; this.description = "Converts PEM (Privacy Enhanced Mail) format to a hexadecimal DER (Distinguished Encoding Rules) string."; - this.infoURL = "https://en.wikipedia.org/wiki/X.690#DER_encoding"; + this.infoURL = "https://wikipedia.org/wiki/X.690#DER_encoding"; this.inputType = "string"; this.outputType = "string"; this.args = []; diff --git a/src/core/operations/ScatterChart.mjs b/src/core/operations/ScatterChart.mjs index e6d0ec9d..70aeb5ea 100644 --- a/src/core/operations/ScatterChart.mjs +++ b/src/core/operations/ScatterChart.mjs @@ -7,7 +7,6 @@ import * as d3temp from "d3"; import * as nodomtemp from "nodom"; - import { getScatterValues, getScatterValuesWithColour, RECORD_DELIMITER_OPTIONS, COLOURS, FIELD_DELIMITER_OPTIONS } from "../lib/Charts"; import Operation from "../Operation"; @@ -30,7 +29,7 @@ class ScatterChart extends Operation { this.name = "Scatter chart"; this.module = "Charts"; this.description = "Plots two-variable data as single points on a graph."; - this.infoURL = "https://en.wikipedia.org/wiki/Scatter_plot"; + this.infoURL = "https://wikipedia.org/wiki/Scatter_plot"; this.inputType = "string"; this.outputType = "html"; this.args = [