@lvce-editor/editor-worker 11.0.0 → 11.1.0
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 +3 -2
- package/package.json +2 -2
package/dist/editorWorkerMain.js
CHANGED
|
@@ -3601,6 +3601,7 @@ const createEditor = async ({
|
|
|
3601
3601
|
const newEditor4 = {
|
|
3602
3602
|
...newEditor3,
|
|
3603
3603
|
focused: true,
|
|
3604
|
+
focus: FocusEditorText$1,
|
|
3604
3605
|
textInfos,
|
|
3605
3606
|
differences
|
|
3606
3607
|
};
|
|
@@ -4906,7 +4907,7 @@ const getChanges$4 = (editor, getDelta) => {
|
|
|
4906
4907
|
} = editor;
|
|
4907
4908
|
for (let i = 0; i < selections.length; i += 4) {
|
|
4908
4909
|
// @ts-ignore
|
|
4909
|
-
const [selectionStartRow, selectionStartColumn
|
|
4910
|
+
const [selectionStartRow, selectionStartColumn] = getSelectionPairs(selections, i);
|
|
4910
4911
|
const start = {
|
|
4911
4912
|
rowIndex: selectionStartRow,
|
|
4912
4913
|
columnIndex: selectionStartColumn
|
|
@@ -6852,7 +6853,7 @@ const getNewSelections$4 = (selections, lines, getDelta) => {
|
|
|
6852
6853
|
const newSelections = clone(selections);
|
|
6853
6854
|
for (let i = 0; i < selections.length; i += 4) {
|
|
6854
6855
|
// @ts-ignore
|
|
6855
|
-
const [selectionStartRow, selectionStartColumn, selectionEndRow, selectionEndColumn
|
|
6856
|
+
const [selectionStartRow, selectionStartColumn, selectionEndRow, selectionEndColumn] = getSelectionPairs(selections, i);
|
|
6856
6857
|
if (selectionStartRow === selectionEndRow && selectionStartColumn === selectionEndColumn) {
|
|
6857
6858
|
moveToPositionLeft(newSelections, i + 2, selectionStartRow, selectionStartColumn, lines, getDelta);
|
|
6858
6859
|
moveToPositionEqual(newSelections, i, selectionEndRow, selectionEndColumn);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/editor-worker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Lvce Editor",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/editorWorkerMain.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lvce-editor/constants": "^1.
|
|
9
|
+
"@lvce-editor/constants": "^1.24.0"
|
|
10
10
|
}
|
|
11
11
|
}
|