@ones-editor/editor 2.8.0 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -76155,7 +76155,7 @@ ${docStr}
|
|
|
76155
76155
|
const style2 = span.style;
|
|
76156
76156
|
const fontSize2 = style2.fontSize;
|
|
76157
76157
|
if (fontSize2) {
|
|
76158
|
-
const fontSizeValue = fontSize2.replace("px", "");
|
|
76158
|
+
const fontSizeValue = Math.round(parseFloat(fontSize2.replace("px", "")));
|
|
76159
76159
|
return `<font-size-${fontSizeValue}>${content}</font-size-${fontSizeValue}>`;
|
|
76160
76160
|
}
|
|
76161
76161
|
return content;
|
|
@@ -85549,6 +85549,13 @@ ${data2.flowchartText}
|
|
|
85549
85549
|
if (!pre.endsWith("/")) {
|
|
85550
85550
|
pre += "/";
|
|
85551
85551
|
}
|
|
85552
|
+
if (pre.startsWith("http://") || pre.startsWith("https://"))
|
|
85553
|
+
;
|
|
85554
|
+
else {
|
|
85555
|
+
const host = window.location.host;
|
|
85556
|
+
const protocol = window.location.protocol;
|
|
85557
|
+
pre = `${protocol}//${host}${pre}`;
|
|
85558
|
+
}
|
|
85552
85559
|
const encodedText = plantumlEncoder__default.default.encode(plantumlText);
|
|
85553
85560
|
assert(logger$g, encodedText, encodedText);
|
|
85554
85561
|
pre += encodedText;
|
|
@@ -92539,7 +92546,7 @@ ${data2.plantumlText}
|
|
|
92539
92546
|
}
|
|
92540
92547
|
}
|
|
92541
92548
|
});
|
|
92542
|
-
editor.version = "2.8.
|
|
92549
|
+
editor.version = "2.8.2";
|
|
92543
92550
|
return editor;
|
|
92544
92551
|
}
|
|
92545
92552
|
function isDoc(doc2) {
|
|
@@ -92652,7 +92659,7 @@ ${data2.plantumlText}
|
|
|
92652
92659
|
}
|
|
92653
92660
|
});
|
|
92654
92661
|
OnesEditorToolbar.register(editor);
|
|
92655
|
-
editor.version = "2.8.
|
|
92662
|
+
editor.version = "2.8.2";
|
|
92656
92663
|
return editor;
|
|
92657
92664
|
}
|
|
92658
92665
|
async function showDocVersions(editor, options, serverUrl) {
|