@textbus/platform-browser 5.4.10 → 5.4.11
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/index.esm.js +26 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +26 -55
- package/dist/index.js.map +1 -1
- package/dist/selection-bridge.d.ts +4 -7
- package/package.json +2 -2
|
@@ -46,15 +46,12 @@ export declare class SelectionBridge implements NativeSelectionBridge {
|
|
|
46
46
|
getNextLinePositionByCurrent(position: SelectionPosition): SelectionPosition | null;
|
|
47
47
|
private getLinePosition;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* @param startLeft
|
|
52
|
-
* @param toNext
|
|
53
|
-
* @private
|
|
49
|
+
* 通过遍历模型位置 + 视觉 rect 判断换行,计算光标到下一行或上一行的位置。
|
|
50
|
+
* 不使用 Selection.modify(),避免复杂布局中的死循环。
|
|
54
51
|
*/
|
|
55
52
|
private getVerticalMovePosition;
|
|
56
|
-
/**
|
|
57
|
-
private
|
|
53
|
+
/** 目标位置是否已离开起始行 */
|
|
54
|
+
private isDifferentLine;
|
|
58
55
|
/**
|
|
59
56
|
* 沿目标行微调位置。
|
|
60
57
|
* 起点在 targetX 右侧 → 向左找到离 targetX 最近的右侧位置;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@textbus/platform-browser",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.11",
|
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@tanbo/stream": "^1.2.7",
|
|
36
36
|
"@viewfly/core": "^3.0.5",
|
|
37
|
-
"@textbus/core": "^5.4.
|
|
37
|
+
"@textbus/core": "^5.4.11"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"rimraf": "^3.0.2",
|