lint compliance

This commit is contained in:
yflory 2025-03-18 16:19:06 +01:00
parent 1e52e13d07
commit 8f96735cc3

View File

@ -10,7 +10,6 @@ define([
'/components/pako/dist/pako.min.js',
'/common/common-hash.js',
'/api/config',
'jquery',
], function (
Util,
FileCrypto,
@ -19,7 +18,6 @@ define([
pako,
Hash,
ApiConfig,
$,
) {
const Nacl = window.nacl;
const x2js = new X2JS();
@ -82,11 +80,6 @@ define([
}
};
const xmlAsJsonContent = (xml) => {
var decompressedXml = decompressDrawioXml(xml);
return numbersToNumbers(x2js.xml2js(decompressedXml));
};
// As described here: https://drawio-app.com/extracting-the-xml-from-mxfiles/
const decompressDrawioXml = function(xmlDocStr) {
var TEXT_NODE = 3;
@ -122,6 +115,12 @@ define([
return result;
};
const xmlAsJsonContent = (xml) => {
var decompressedXml = decompressDrawioXml(xml);
return numbersToNumbers(x2js.xml2js(decompressedXml));
};
const parseDrawioStyle = (styleAttrValue) => {
if (!styleAttrValue) {
return {};