@lvce-editor/editor-worker 19.63.0 → 19.63.1
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/editorWorkerMain.js +10 -4
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -3738,7 +3738,7 @@ const characterWidth = 0.75;
|
|
|
3738
3738
|
const lineHeight = 2;
|
|
3739
3739
|
const minimumViewportHeight = 20;
|
|
3740
3740
|
|
|
3741
|
-
const resize = (state, dimensions, columnWidth = state.columnWidth) => {
|
|
3741
|
+
const resize$2 = (state, dimensions, columnWidth = state.columnWidth) => {
|
|
3742
3742
|
const x = dimensions.x ?? state.x;
|
|
3743
3743
|
const y = dimensions.y ?? state.y;
|
|
3744
3744
|
const outerWidth = dimensions.width ?? state.outerWidth ?? state.width;
|
|
@@ -4442,7 +4442,7 @@ const hasSelection = editor => {
|
|
|
4442
4442
|
return editor.selections && editor.selections.length > 0;
|
|
4443
4443
|
};
|
|
4444
4444
|
const setBounds = (editor, x, y, width, height, columnWidth) => {
|
|
4445
|
-
return resize(editor, {
|
|
4445
|
+
return resize$2(editor, {
|
|
4446
4446
|
height,
|
|
4447
4447
|
width,
|
|
4448
4448
|
x,
|
|
@@ -10964,12 +10964,13 @@ const {
|
|
|
10964
10964
|
handleToggleReplaceFocus,
|
|
10965
10965
|
replace,
|
|
10966
10966
|
replaceAll,
|
|
10967
|
+
resize: resize$1,
|
|
10967
10968
|
toggleMatchCase,
|
|
10968
10969
|
toggleMatchWholeWord,
|
|
10969
10970
|
togglePreserveCase,
|
|
10970
10971
|
toggleReplace,
|
|
10971
10972
|
toggleUseRegularExpression
|
|
10972
|
-
} = createFns(['close', 'focusCloseButton', 'focusFind', 'focusNext', 'focusNextMatchButton', 'focusPrevious', 'focusPreviousMatchButton', 'focusReplace', 'focusReplaceAllButton', 'focusReplaceButton', 'focusToggleReplace', 'handleBlur', 'handleClickButton', 'handleFocus', 'handleInput', 'handleReplaceFocus', 'handleReplaceInput', 'handleToggleReplaceFocus', 'replace', 'replaceAll', 'toggleMatchCase', 'toggleMatchWholeWord', 'toggleReplace', 'toggleUseRegularExpression', 'focusNextElement', 'focusPreviousElement', 'togglePreserveCase'], 'FindWidget', Find);
|
|
10973
|
+
} = createFns(['close', 'focusCloseButton', 'focusFind', 'focusNext', 'focusNextMatchButton', 'focusPrevious', 'focusPreviousMatchButton', 'focusReplace', 'focusReplaceAllButton', 'focusReplaceButton', 'focusToggleReplace', 'handleBlur', 'handleClickButton', 'handleFocus', 'handleInput', 'handleReplaceFocus', 'handleReplaceInput', 'handleToggleReplaceFocus', 'replace', 'replaceAll', 'resize', 'toggleMatchCase', 'toggleMatchWholeWord', 'toggleReplace', 'toggleUseRegularExpression', 'focusNextElement', 'focusPreviousElement', 'togglePreserveCase'], 'FindWidget', Find);
|
|
10973
10974
|
|
|
10974
10975
|
const EditorFindWidget = {
|
|
10975
10976
|
__proto__: null,
|
|
@@ -10999,6 +11000,7 @@ const EditorFindWidget = {
|
|
|
10999
11000
|
render: render$c,
|
|
11000
11001
|
replace,
|
|
11001
11002
|
replaceAll,
|
|
11003
|
+
resize: resize$1,
|
|
11002
11004
|
toggleMatchCase,
|
|
11003
11005
|
toggleMatchWholeWord,
|
|
11004
11006
|
togglePreserveCase,
|
|
@@ -14595,7 +14597,7 @@ const handleSettingsChanged = async state => {
|
|
|
14595
14597
|
} else if (!state.breadcrumbsEnabled) {
|
|
14596
14598
|
[documentSymbols, workspaceUri] = await Promise.all([getDocumentSymbols(editorWithUpdatedSettings), getWorkspaceUri$1(state.applicationId)]);
|
|
14597
14599
|
}
|
|
14598
|
-
const resizedEditor = resize({
|
|
14600
|
+
const resizedEditor = resize$2({
|
|
14599
14601
|
...editorWithUpdatedSettings,
|
|
14600
14602
|
documentSymbols,
|
|
14601
14603
|
workspaceUri
|
|
@@ -16833,6 +16835,10 @@ const wrapFocusCommand = fn => {
|
|
|
16833
16835
|
const executeViewletCommand = (uid, commandId, ...args) => {
|
|
16834
16836
|
return executeViewletCommand$1(commandMap, uid, commandId, ...args);
|
|
16835
16837
|
};
|
|
16838
|
+
const resize = async (editor, dimensions) => {
|
|
16839
|
+
const resizedEditor = resize$2(editor, dimensions, editor.columnWidth);
|
|
16840
|
+
return resize$1(resizedEditor, dimensions);
|
|
16841
|
+
};
|
|
16836
16842
|
const commandMap = {
|
|
16837
16843
|
'ActivateByEvent.activateByEvent': activateByEvent,
|
|
16838
16844
|
'CodeGenerator.accept': codeGeneratorAccept,
|