@lvce-editor/editor-worker 19.77.3 → 19.77.4
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/dist/diff-sdk.js +5 -2
- package/dist/editorWorkerMain.js +5 -2
- package/package.json +1 -1
package/dist/diff-sdk.js
CHANGED
|
@@ -19127,11 +19127,13 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
|
|
|
19127
19127
|
}, x, y, width, height, 9);
|
|
19128
19128
|
const newEditor2 = setText$1(newEditor1, content);
|
|
19129
19129
|
const newEditor3 = await updateHorizontalLayout(newEditor2);
|
|
19130
|
+
const savedDeltaY = savedState?.deltaY;
|
|
19131
|
+
const newEditor3WithScroll = typeof savedDeltaY === 'number' && Number.isFinite(savedDeltaY) && savedDeltaY >= 0 ? await setDeltaYFixedValue(newEditor3, savedDeltaY) : newEditor3;
|
|
19130
19132
|
|
|
19131
19133
|
// Detect links and initialize decorations
|
|
19132
|
-
const linkDecorations = detectAllLinksAsDecorations(
|
|
19134
|
+
const linkDecorations = detectAllLinksAsDecorations(newEditor3WithScroll);
|
|
19133
19135
|
const newEditor3WithLinks = {
|
|
19134
|
-
...
|
|
19136
|
+
...newEditor3WithScroll,
|
|
19135
19137
|
decorations: linkDecorations
|
|
19136
19138
|
};
|
|
19137
19139
|
let documentSymbols = state.documentSymbols || [];
|
|
@@ -21001,6 +21003,7 @@ const saveState = async (state, hotReload) => {
|
|
|
21001
21003
|
...(largeFile && {
|
|
21002
21004
|
largeFile: true
|
|
21003
21005
|
}),
|
|
21006
|
+
deltaY,
|
|
21004
21007
|
...(widgets.length > 0 && {
|
|
21005
21008
|
widgets
|
|
21006
21009
|
}),
|
package/dist/editorWorkerMain.js
CHANGED
|
@@ -19546,11 +19546,13 @@ const loadContent = async (state, savedState, largeFile = false, focus = true, f
|
|
|
19546
19546
|
}, x, y, width, height, 9);
|
|
19547
19547
|
const newEditor2 = setText$1(newEditor1, content);
|
|
19548
19548
|
const newEditor3 = await updateHorizontalLayout(newEditor2);
|
|
19549
|
+
const savedDeltaY = savedState?.deltaY;
|
|
19550
|
+
const newEditor3WithScroll = typeof savedDeltaY === 'number' && Number.isFinite(savedDeltaY) && savedDeltaY >= 0 ? await setDeltaYFixedValue(newEditor3, savedDeltaY) : newEditor3;
|
|
19549
19551
|
|
|
19550
19552
|
// Detect links and initialize decorations
|
|
19551
|
-
const linkDecorations = detectAllLinksAsDecorations(
|
|
19553
|
+
const linkDecorations = detectAllLinksAsDecorations(newEditor3WithScroll);
|
|
19552
19554
|
const newEditor3WithLinks = {
|
|
19553
|
-
...
|
|
19555
|
+
...newEditor3WithScroll,
|
|
19554
19556
|
decorations: linkDecorations
|
|
19555
19557
|
};
|
|
19556
19558
|
let documentSymbols = state.documentSymbols || [];
|
|
@@ -21420,6 +21422,7 @@ const saveState = async (state, hotReload) => {
|
|
|
21420
21422
|
...(largeFile && {
|
|
21421
21423
|
largeFile: true
|
|
21422
21424
|
}),
|
|
21425
|
+
deltaY,
|
|
21423
21426
|
...(widgets.length > 0 && {
|
|
21424
21427
|
widgets
|
|
21425
21428
|
}),
|