Create constructor

This commit is contained in:
Thomas 2025-06-06 12:36:22 +01:00
parent 1ca9f23e47
commit 3cd45c5f68

View file

@ -10,6 +10,32 @@ import Operation from "../Operation.mjs";
/**
* Line Break operation
*/
class LineBreak extends Operation {}
class LineBreak extends Operation {
/**
* LineBreak constructor
*/
constructor() {
super();
this.name = "Line Break";
this.module = "Default";
this.description = "Breaks the input text every <code>n</code> characters.";
this.inputType = "ArrayBuffer";
this.outputType = "string";
this.args = [
{
"name": "Line break width",
"type": "number",
"value": 16,
"min": 1
}, {
"name": "Remove leading whitespace",
"type": "boolean",
"value": false
}
];
}
}
export default LineBreak;