@wangeditor-next/plugin-formula 3.0.0 → 6.2.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/basic-modules/src/constants/icon-svg.d.ts +2 -0
- package/dist/basic-modules/src/locale/en.d.ts +2 -0
- package/dist/basic-modules/src/locale/zh-CN.d.ts +2 -0
- package/dist/basic-modules/src/modules/header/parse-elem-html.d.ts +2 -2
- package/dist/basic-modules/src/modules/text-style/custom-types.d.ts +2 -0
- package/dist/basic-modules/src/modules/text-style/menu/EmphasisDotMenu.d.ts +11 -0
- package/dist/basic-modules/src/modules/text-style/menu/WavyUnderlineMenu.d.ts +11 -0
- package/dist/basic-modules/src/modules/text-style/menu/index.d.ts +10 -0
- package/dist/basic-modules/src/modules/text-style/render-style.d.ts +2 -1
- package/dist/basic-modules/src/modules/text-style/style-constants.d.ts +35 -0
- package/dist/basic-modules/src/modules/text-style/style-to-html.d.ts +2 -1
- package/dist/basic-modules/src/utils/dom.d.ts +1 -1
- package/dist/code-highlight/src/utils/dom.d.ts +1 -1
- package/dist/core/src/config/interface.d.ts +32 -2
- package/dist/core/src/editor/interface.d.ts +16 -3
- package/dist/core/src/index.d.ts +4 -2
- package/dist/core/src/render/helper.d.ts +1 -2
- package/dist/core/src/to-html/index.d.ts +12 -0
- package/dist/core/src/utils/dom.d.ts +1 -1
- package/dist/editor/src/Boot.d.ts +2 -2
- package/dist/editor/src/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/list-module/src/locale/en.d.ts +3 -0
- package/dist/list-module/src/locale/zh-CN.d.ts +3 -0
- package/dist/list-module/src/module/custom-types.d.ts +13 -0
- package/dist/list-module/src/module/helpers.d.ts +14 -4
- package/dist/list-module/src/module/html-transform.d.ts +10 -0
- package/dist/list-module/src/module/menu/BaseMenu.d.ts +2 -2
- package/dist/list-module/src/module/outline-actions.d.ts +9 -0
- package/dist/list-module/src/module/parse-elem-html.d.ts +1 -2
- package/dist/list-module/src/module/plugin.d.ts +1 -1
- package/dist/list-module/src/utils/maps.d.ts +2 -1
- package/dist/plugin-formula/src/utils/dom.d.ts +1 -1
- package/dist/table-module/src/module/menu/CellProperty.d.ts +2 -1
- package/dist/table-module/src/module/menu/TableProperty.d.ts +2 -1
- package/dist/table-module/src/module/render-elem/selection-overlay.d.ts +21 -0
- package/dist/table-module/src/module/weak-maps.d.ts +3 -2
- package/dist/table-module/src/utils/dom.d.ts +1 -1
- package/dist/table-module/src/utils/options.d.ts +3 -12
- package/dist/upload-image-module/src/utils/dom.d.ts +1 -1
- package/dist/video-module/src/utils/dom.d.ts +1 -1
- package/package.json +4 -5
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VNode } from 'snabbdom';
|
|
2
|
+
export type SelectionRect = {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
};
|
|
8
|
+
export type SelectionPerimeterSide = 'top' | 'right' | 'bottom' | 'left';
|
|
9
|
+
export type SelectionPerimeterSegment = {
|
|
10
|
+
side: SelectionPerimeterSide;
|
|
11
|
+
offset: number;
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Returns the physical perimeter of a set of non-overlapping cell rectangles. Opposing edges
|
|
17
|
+
* cancel only where they overlap, so partially exposed sides of merged cells remain precise.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getSelectionPerimeterSegments(rects: SelectionRect[]): SelectionPerimeterSegment[];
|
|
20
|
+
export declare function drawSelectionOverlay(elm: Node | undefined): void;
|
|
21
|
+
export declare function renderSelectionOverlay(): VNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { BaseEditor, BaseElement } from 'slate';
|
|
1
2
|
import { NodeEntryWithContext } from '../utils';
|
|
2
3
|
/** Weak reference between the `Editor` and the selected elements */
|
|
3
|
-
export declare const EDITOR_TO_SELECTION: WeakMap<
|
|
4
|
+
export declare const EDITOR_TO_SELECTION: WeakMap<BaseEditor, NodeEntryWithContext[][]>;
|
|
4
5
|
/** Weak reference between the `Editor` and a set of the selected elements */
|
|
5
|
-
export declare const EDITOR_TO_SELECTION_SET: WeakMap<
|
|
6
|
+
export declare const EDITOR_TO_SELECTION_SET: WeakMap<BaseEditor, WeakSet<BaseElement>>;
|
|
@@ -10,7 +10,7 @@ import DOMText = globalThis.Text;
|
|
|
10
10
|
import DOMRange = globalThis.Range;
|
|
11
11
|
import DOMSelection = globalThis.Selection;
|
|
12
12
|
import DOMStaticRange = globalThis.StaticRange;
|
|
13
|
-
export { Dom7Array } from 'dom7';
|
|
13
|
+
export type { Dom7Array } from 'dom7';
|
|
14
14
|
export default $;
|
|
15
15
|
/**
|
|
16
16
|
* 获取 tagName lower-case
|
|
@@ -8,18 +8,9 @@ export interface WithTableOptions {
|
|
|
8
8
|
tr: ElementType;
|
|
9
9
|
table: ElementType;
|
|
10
10
|
tbody: ElementType;
|
|
11
|
-
tfoot
|
|
12
|
-
thead
|
|
11
|
+
tfoot?: ElementType;
|
|
12
|
+
thead?: ElementType;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export declare const DEFAULT_WITH_TABLE_OPTIONS:
|
|
16
|
-
blocks: {
|
|
17
|
-
td: string;
|
|
18
|
-
th: string;
|
|
19
|
-
content: string;
|
|
20
|
-
tr: string;
|
|
21
|
-
table: string;
|
|
22
|
-
tbody: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
15
|
+
export declare const DEFAULT_WITH_TABLE_OPTIONS: WithTableOptions;
|
|
25
16
|
export {};
|
|
@@ -11,7 +11,7 @@ import DOMText = globalThis.Text;
|
|
|
11
11
|
import DOMRange = globalThis.Range;
|
|
12
12
|
import DOMSelection = globalThis.Selection;
|
|
13
13
|
import DOMStaticRange = globalThis.StaticRange;
|
|
14
|
-
export { Dom7Array } from 'dom7';
|
|
14
|
+
export type { Dom7Array } from 'dom7';
|
|
15
15
|
export default $;
|
|
16
16
|
/**
|
|
17
17
|
* 获取 tagName lower-case
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/plugin-formula",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "wangEditor next formula 公式",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
"types": "./dist/plugin-formula/src/index.d.ts",
|
|
15
15
|
"import": "./dist/index.mjs",
|
|
16
16
|
"require": "./dist/index.js"
|
|
17
|
-
}
|
|
18
|
-
"./dist/css/style.css": "./dist/css/style.css"
|
|
17
|
+
}
|
|
19
18
|
},
|
|
20
19
|
"directories": {
|
|
21
20
|
"lib": "dist"
|
|
@@ -38,9 +37,9 @@
|
|
|
38
37
|
"@wangeditor-next-shared/rollup-config": "^0.0.2"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"@wangeditor-next/editor": ">=6.0.0",
|
|
42
40
|
"katex": "^0.16.0",
|
|
43
|
-
"snabbdom": "^3.6.0"
|
|
41
|
+
"snabbdom": "^3.6.0",
|
|
42
|
+
"@wangeditor-next/editor": "^6.2.0"
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"dom7": "^4.0.0",
|