@univerjs/engine-render 0.1.0-alpha.1 → 0.1.0-alpha.3
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/LICENSE.txt +178 -0
- package/README.md +1 -1
- package/lib/cjs/index.js +73 -23962
- package/lib/es/index.js +15060 -0
- package/lib/types/base-object.d.ts +21 -6
- package/lib/types/basics/cell-data.d.ts +15 -1
- package/lib/types/basics/const.d.ts +16 -154
- package/lib/types/basics/document-node-tools.d.ts +15 -1
- package/lib/types/basics/draw.d.ts +15 -1
- package/lib/types/basics/font-cache.d.ts +15 -1
- package/lib/types/basics/i-document-skeleton-cached.d.ts +17 -3
- package/lib/types/basics/i-events.d.ts +17 -6
- package/lib/types/basics/index.d.ts +15 -1
- package/lib/types/basics/interfaces.d.ts +15 -1
- package/lib/types/basics/path2.d.ts +15 -1
- package/lib/types/basics/performance-monitor.d.ts +15 -1
- package/lib/types/basics/position.d.ts +15 -1
- package/lib/types/basics/quick-event.d.ts +15 -1
- package/lib/types/basics/range.d.ts +20 -1
- package/lib/types/basics/scroll-xy.d.ts +15 -1
- package/lib/types/basics/tools.d.ts +22 -8
- package/lib/types/basics/transform.d.ts +15 -1
- package/lib/types/basics/unit-convert.d.ts +15 -1
- package/lib/types/basics/vector2.d.ts +23 -1
- package/lib/types/canvas.d.ts +15 -1
- package/lib/types/components/component.d.ts +22 -8
- package/lib/types/components/docs/block/block-error.d.ts +15 -1
- package/lib/types/components/docs/block/index.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/bullet.d.ts +16 -2
- package/lib/types/components/docs/block/paragraph/index.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +32 -9
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +15 -1
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts +15 -1
- package/lib/types/components/docs/block/section.d.ts +15 -1
- package/lib/types/components/docs/common/column.d.ts +15 -1
- package/lib/types/components/docs/common/convert-cursor.d.ts +17 -3
- package/lib/types/components/docs/common/index.d.ts +15 -1
- package/lib/types/components/docs/common/line.d.ts +16 -2
- package/lib/types/components/docs/common/liquid.d.ts +15 -1
- package/lib/types/components/docs/common/page.d.ts +15 -1
- package/lib/types/components/docs/common/range.d.ts +17 -3
- package/lib/types/components/docs/common/section.d.ts +15 -1
- package/lib/types/components/docs/common/span.d.ts +17 -1
- package/lib/types/components/docs/common/tools.d.ts +15 -2
- package/lib/types/components/docs/doc-component.d.ts +21 -11
- package/lib/types/components/docs/doc-extension.d.ts +17 -2
- package/lib/types/components/docs/doc-skeleton.d.ts +18 -4
- package/lib/types/components/docs/document.d.ts +18 -7
- package/lib/types/components/docs/extensions/background.d.ts +15 -1
- package/lib/types/components/docs/extensions/border.d.ts +15 -1
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +16 -1
- package/lib/types/components/docs/extensions/index.d.ts +15 -1
- package/lib/types/components/docs/extensions/line.d.ts +16 -1
- package/lib/types/components/docs/horizon-bar.d.ts +15 -1
- package/lib/types/components/docs/index.d.ts +15 -1
- package/lib/types/components/docs/text-selection-render-manager.d.ts +41 -25
- package/lib/types/components/docs/vertical-bar.d.ts +15 -1
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +15 -1
- package/lib/types/components/docs/view-model/document-view-model.d.ts +15 -1
- package/lib/types/components/extension.d.ts +17 -3
- package/lib/types/components/index.d.ts +15 -1
- package/lib/types/components/sheets/column-header.d.ts +17 -3
- package/lib/types/components/sheets/extensions/background.d.ts +17 -3
- package/lib/types/components/sheets/extensions/border.d.ts +17 -3
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +15 -1
- package/lib/types/components/sheets/extensions/font.d.ts +17 -3
- package/lib/types/components/sheets/extensions/index.d.ts +15 -2
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +15 -1
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +19 -2
- package/lib/types/components/sheets/index.d.ts +15 -1
- package/lib/types/components/sheets/interfaces.d.ts +17 -2
- package/lib/types/components/sheets/row-header.d.ts +17 -3
- package/lib/types/components/sheets/sheet-component.d.ts +23 -9
- package/lib/types/components/sheets/sheet-skeleton.d.ts +43 -11
- package/lib/types/components/sheets/spreadsheet.d.ts +33 -17
- package/lib/types/components/skeleton.d.ts +15 -1
- package/lib/types/components/slides/index.d.ts +15 -1
- package/lib/types/components/slides/slide.d.ts +15 -1
- package/lib/types/custom/custom-object.d.ts +17 -3
- package/lib/types/custom/index.d.ts +15 -1
- package/lib/types/engine.d.ts +18 -4
- package/lib/types/group.d.ts +17 -3
- package/lib/types/index.d.ts +16 -2
- package/lib/types/layer.d.ts +29 -3
- package/lib/types/render-engine.d.ts +16 -2
- package/lib/types/render-manager.service.d.ts +15 -1
- package/lib/types/scene-viewer.d.ts +17 -3
- package/lib/types/scene.-transformer.d.ts +15 -1
- package/lib/types/scene.d.ts +18 -5
- package/lib/types/scene.input-manager.d.ts +19 -2
- package/lib/types/scroll-timer.d.ts +15 -1
- package/lib/types/services/object-transform-manager.service.d.ts +15 -1
- package/lib/types/shape/base-scroll-bar.d.ts +15 -1
- package/lib/types/shape/circle.d.ts +15 -1
- package/lib/types/shape/control.d.ts +15 -1
- package/lib/types/shape/drawing.d.ts +15 -1
- package/lib/types/shape/index.d.ts +15 -1
- package/lib/types/shape/path.d.ts +15 -1
- package/lib/types/shape/picture.d.ts +15 -1
- package/lib/types/shape/rect.d.ts +15 -1
- package/lib/types/shape/regular-polygon.d.ts +15 -1
- package/lib/types/shape/rich-text.d.ts +17 -6
- package/lib/types/shape/scroll-bar.d.ts +15 -1
- package/lib/types/shape/selection.d.ts +15 -1
- package/lib/types/shape/shape.d.ts +17 -11
- package/lib/types/thin-engine.d.ts +15 -1
- package/lib/types/thin-scene.d.ts +18 -3
- package/lib/types/viewport.d.ts +26 -11
- package/lib/umd/index.js +73 -0
- package/package.json +22 -14
- package/LICENSE +0 -21
- package/lib/esm/index.js +0 -23259
- package/lib/types/base-object.d.ts.map +0 -1
- package/lib/types/basics/cell-data.d.ts.map +0 -1
- package/lib/types/basics/const.d.ts.map +0 -1
- package/lib/types/basics/document-node-tools.d.ts.map +0 -1
- package/lib/types/basics/draw.d.ts.map +0 -1
- package/lib/types/basics/font-cache.d.ts.map +0 -1
- package/lib/types/basics/i-document-skeleton-cached.d.ts.map +0 -1
- package/lib/types/basics/i-events.d.ts.map +0 -1
- package/lib/types/basics/index.d.ts.map +0 -1
- package/lib/types/basics/interfaces.d.ts.map +0 -1
- package/lib/types/basics/path2.d.ts.map +0 -1
- package/lib/types/basics/performance-monitor.d.ts.map +0 -1
- package/lib/types/basics/position.d.ts.map +0 -1
- package/lib/types/basics/quick-event.d.ts.map +0 -1
- package/lib/types/basics/range.d.ts.map +0 -1
- package/lib/types/basics/scroll-xy.d.ts.map +0 -1
- package/lib/types/basics/tools.d.ts.map +0 -1
- package/lib/types/basics/transform.d.ts.map +0 -1
- package/lib/types/basics/unit-convert.d.ts.map +0 -1
- package/lib/types/basics/vector2.d.ts.map +0 -1
- package/lib/types/canvas.d.ts.map +0 -1
- package/lib/types/components/component.d.ts.map +0 -1
- package/lib/types/components/docs/block/block-error.d.ts.map +0 -1
- package/lib/types/components/docs/block/index.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/bullet.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/index.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts.map +0 -1
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts.map +0 -1
- package/lib/types/components/docs/block/section.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table-cell.d.ts +0 -1
- package/lib/types/components/docs/block/table/table-cell.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table-row.d.ts +0 -1
- package/lib/types/components/docs/block/table/table-row.d.ts.map +0 -1
- package/lib/types/components/docs/block/table/table.d.ts +0 -1
- package/lib/types/components/docs/block/table/table.d.ts.map +0 -1
- package/lib/types/components/docs/common/column.d.ts.map +0 -1
- package/lib/types/components/docs/common/convert-cursor.d.ts.map +0 -1
- package/lib/types/components/docs/common/index.d.ts.map +0 -1
- package/lib/types/components/docs/common/line.d.ts.map +0 -1
- package/lib/types/components/docs/common/liquid.d.ts.map +0 -1
- package/lib/types/components/docs/common/page.d.ts.map +0 -1
- package/lib/types/components/docs/common/range.d.ts.map +0 -1
- package/lib/types/components/docs/common/section.d.ts.map +0 -1
- package/lib/types/components/docs/common/span.d.ts.map +0 -1
- package/lib/types/components/docs/common/tools.d.ts.map +0 -1
- package/lib/types/components/docs/doc-component.d.ts.map +0 -1
- package/lib/types/components/docs/doc-extension.d.ts.map +0 -1
- package/lib/types/components/docs/doc-skeleton.d.ts.map +0 -1
- package/lib/types/components/docs/document.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/background.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/border.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/index.d.ts.map +0 -1
- package/lib/types/components/docs/extensions/line.d.ts.map +0 -1
- package/lib/types/components/docs/horizon-bar.d.ts.map +0 -1
- package/lib/types/components/docs/index.d.ts.map +0 -1
- package/lib/types/components/docs/text-selection-render-manager.d.ts.map +0 -1
- package/lib/types/components/docs/vertical-bar.d.ts.map +0 -1
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts.map +0 -1
- package/lib/types/components/docs/view-model/document-view-model.d.ts.map +0 -1
- package/lib/types/components/extension.d.ts.map +0 -1
- package/lib/types/components/index.d.ts.map +0 -1
- package/lib/types/components/sheets/column-header.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/background.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts +0 -13
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/border.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/font.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/index.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts.map +0 -1
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts.map +0 -1
- package/lib/types/components/sheets/index.d.ts.map +0 -1
- package/lib/types/components/sheets/interfaces.d.ts.map +0 -1
- package/lib/types/components/sheets/row-header.d.ts.map +0 -1
- package/lib/types/components/sheets/sheet-component.d.ts.map +0 -1
- package/lib/types/components/sheets/sheet-skeleton.d.ts.map +0 -1
- package/lib/types/components/sheets/spreadsheet.d.ts.map +0 -1
- package/lib/types/components/skeleton.d.ts.map +0 -1
- package/lib/types/components/slides/index.d.ts.map +0 -1
- package/lib/types/components/slides/slide.d.ts.map +0 -1
- package/lib/types/custom/custom-object.d.ts.map +0 -1
- package/lib/types/custom/index.d.ts.map +0 -1
- package/lib/types/engine.d.ts.map +0 -1
- package/lib/types/group.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/layer.d.ts.map +0 -1
- package/lib/types/render-engine.d.ts.map +0 -1
- package/lib/types/render-manager.service.d.ts.map +0 -1
- package/lib/types/scene-viewer.d.ts.map +0 -1
- package/lib/types/scene.-transformer.d.ts.map +0 -1
- package/lib/types/scene.d.ts.map +0 -1
- package/lib/types/scene.input-manager.d.ts.map +0 -1
- package/lib/types/scroll-timer.d.ts.map +0 -1
- package/lib/types/services/object-transform-manager.service.d.ts.map +0 -1
- package/lib/types/shape/base-scroll-bar.d.ts.map +0 -1
- package/lib/types/shape/circle.d.ts.map +0 -1
- package/lib/types/shape/control.d.ts.map +0 -1
- package/lib/types/shape/drawing.d.ts.map +0 -1
- package/lib/types/shape/index.d.ts.map +0 -1
- package/lib/types/shape/path.d.ts.map +0 -1
- package/lib/types/shape/picture.d.ts.map +0 -1
- package/lib/types/shape/rect.d.ts.map +0 -1
- package/lib/types/shape/regular-polygon.d.ts.map +0 -1
- package/lib/types/shape/rich-text.d.ts.map +0 -1
- package/lib/types/shape/scroll-bar.d.ts.map +0 -1
- package/lib/types/shape/selection.d.ts.map +0 -1
- package/lib/types/shape/shape.d.ts.map +0 -1
- package/lib/types/thin-engine.d.ts.map +0 -1
- package/lib/types/thin-scene.d.ts.map +0 -1
- package/lib/types/viewport.d.ts.map +0 -1
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core';
|
|
2
17
|
import type { IBoundRectNoAngle } from './vector2';
|
|
3
18
|
export declare const getColor: (RgbArray: number[], opacity?: number) => string;
|
|
@@ -36,6 +51,7 @@ export declare function isNumber(value?: unknown): value is number;
|
|
|
36
51
|
export declare function isObject(value?: unknown): value is object;
|
|
37
52
|
export declare function precisionTo(num: number, accurate: number): number;
|
|
38
53
|
/**
|
|
54
|
+
* When drawing lines, it is necessary to align their precision.
|
|
39
55
|
* performance testing
|
|
40
56
|
* var time = performance.now(); for(let i=0;i<100000000;i++){ fixLineWidthByScale(i, 0.666); }; console.log(performance.now()-time);
|
|
41
57
|
*/
|
|
@@ -47,19 +63,18 @@ export declare function getFontStyleString(textStyle?: IStyleBase, localeService
|
|
|
47
63
|
fontFamily: string;
|
|
48
64
|
};
|
|
49
65
|
export declare function isSupportBoundingBox(ctx: CanvasRenderingContext2D): boolean;
|
|
50
|
-
export declare function
|
|
51
|
-
export declare function hasJapaneseText(text: string): boolean;
|
|
52
|
-
export declare function hasKoreanText(text: string): boolean;
|
|
66
|
+
export declare function hasCJKText(text: string): boolean;
|
|
53
67
|
export declare function hasCJK(text: string): boolean;
|
|
54
|
-
export declare function hasWrappableText(text: string): boolean;
|
|
55
68
|
export declare function hasAllLatin(text: string): boolean;
|
|
56
69
|
export declare function hasBasicLatin(text: string): boolean;
|
|
57
70
|
export declare function hasLatinOneSupplement(text: string): boolean;
|
|
58
71
|
export declare function hasLatinExtendedA(text: string): boolean;
|
|
59
72
|
export declare function hasLatinExtendedB(text: string): boolean;
|
|
73
|
+
export declare const EMOJI_REG: RegExp;
|
|
74
|
+
export declare function startWithEmoji(text: string): boolean;
|
|
60
75
|
export declare function hasArabic(text: string): boolean;
|
|
61
76
|
export declare function hasTibetan(text: string): boolean;
|
|
62
|
-
export declare function
|
|
77
|
+
export declare function hasSpace(text: string): boolean;
|
|
63
78
|
export declare function getDPI(): number;
|
|
64
79
|
export declare function ptToPx(pt: number): number;
|
|
65
80
|
export declare function pxToPt(px: number): number;
|
|
@@ -86,13 +101,13 @@ export declare function mergeInfoOffset(mergeInfo: IRangeWithCoord, offsetX: num
|
|
|
86
101
|
startY: number;
|
|
87
102
|
endX: number;
|
|
88
103
|
endY: number;
|
|
89
|
-
startRow: number;
|
|
90
104
|
startColumn: number;
|
|
91
|
-
endRow: number;
|
|
92
105
|
endColumn: number;
|
|
93
106
|
rangeType?: import("@univerjs/core").RANGE_TYPE | undefined;
|
|
94
107
|
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
|
|
95
108
|
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
|
|
109
|
+
startRow: number;
|
|
110
|
+
endRow: number;
|
|
96
111
|
};
|
|
97
112
|
export declare function isRectIntersect(rect1: IBoundRectNoAngle, rect2: IBoundRectNoAngle): boolean;
|
|
98
113
|
export declare function injectStyle(styles: string[]): void;
|
|
@@ -106,4 +121,3 @@ export declare function getSizeForDom(dom: HTMLElement): {
|
|
|
106
121
|
width: number;
|
|
107
122
|
height: number;
|
|
108
123
|
};
|
|
109
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { ITransformState } from '@univerjs/core';
|
|
2
17
|
import type { IRect } from './interfaces';
|
|
3
18
|
import { Vector2 } from './vector2';
|
|
@@ -140,4 +155,3 @@ export declare class Transform {
|
|
|
140
155
|
*/
|
|
141
156
|
private _calcDimensionsMatrix;
|
|
142
157
|
}
|
|
143
|
-
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
declare const whiteListKeyForPt: Set<string>;
|
|
2
17
|
declare function isNotEmpty(value: unknown): boolean;
|
|
3
|
-
//# sourceMappingURL=unit-convert.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { DeepImmutable, FloatArray } from './i-events';
|
|
2
17
|
export interface IPoint {
|
|
3
18
|
x: number;
|
|
@@ -435,4 +450,11 @@ export interface IBoundRectNoAngle {
|
|
|
435
450
|
right: number;
|
|
436
451
|
bottom: number;
|
|
437
452
|
}
|
|
438
|
-
|
|
453
|
+
export interface IViewportBound {
|
|
454
|
+
viewBound: IBoundRectNoAngle;
|
|
455
|
+
diffBounds: IBoundRectNoAngle[];
|
|
456
|
+
diffX: number;
|
|
457
|
+
diffY: number;
|
|
458
|
+
viewPortPosition: IBoundRectNoAngle;
|
|
459
|
+
viewPortKey?: string;
|
|
460
|
+
}
|
package/lib/types/canvas.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
interface ICanvasProps {
|
|
2
17
|
width?: number;
|
|
3
18
|
height?: number;
|
|
@@ -52,4 +67,3 @@ export declare class HitCanvas extends Canvas {
|
|
|
52
67
|
constructor(props?: ICanvasProps);
|
|
53
68
|
}
|
|
54
69
|
export {};
|
|
55
|
-
//# sourceMappingURL=canvas.d.ts.map
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { BaseObject } from '../base-object';
|
|
2
|
-
import type {
|
|
17
|
+
import type { IViewportBound } from '../basics/vector2';
|
|
3
18
|
import type { ComponentExtension } from './extension';
|
|
4
|
-
export declare class RenderComponent<T, U> extends BaseObject {
|
|
19
|
+
export declare class RenderComponent<T, U, V> extends BaseObject {
|
|
5
20
|
private _extensions;
|
|
6
|
-
get extensions(): Map<string, ComponentExtension<T, U>>;
|
|
7
|
-
register(...extensions: Array<ComponentExtension<T, U>>): void;
|
|
21
|
+
get extensions(): Map<string, ComponentExtension<T, U, V>>;
|
|
22
|
+
register(...extensions: Array<ComponentExtension<T, U, V>>): void;
|
|
8
23
|
unRegister(...uKeys: string[]): void;
|
|
9
|
-
getExtensionsByOrder(): ComponentExtension<T, U>[];
|
|
10
|
-
getExtensionByKey(uKey: string): ComponentExtension<T, U> | undefined;
|
|
11
|
-
draw(ctx: CanvasRenderingContext2D, bounds?:
|
|
24
|
+
getExtensionsByOrder(): ComponentExtension<T, U, V>[];
|
|
25
|
+
getExtensionByKey(uKey: string): ComponentExtension<T, U, V> | undefined;
|
|
26
|
+
draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
|
|
12
27
|
}
|
|
13
|
-
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare function dealWithBlockError(): never[];
|
|
2
|
-
//# sourceMappingURL=block-error.d.ts.map
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export * from './block-error';
|
|
2
17
|
export * from './paragraph';
|
|
3
18
|
export * from './section';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { GlyphType } from '@univerjs/core';
|
|
2
17
|
export declare function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string): string;
|
|
3
|
-
//# sourceMappingURL=bullet-ruler.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
|
|
2
17
|
import type { IDocumentSkeletonBullet } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
-
export declare function
|
|
18
|
+
export declare function dealWithBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
|
|
4
19
|
export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
|
|
5
|
-
//# sourceMappingURL=bullet.d.ts.map
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export * from './bullet';
|
|
2
17
|
export * from './bullet-ruler';
|
|
3
18
|
export * from './inline-drawing';
|
|
4
19
|
export * from './language-ruler';
|
|
5
20
|
export * from './layout-ruler';
|
|
6
21
|
export * from './paragraph';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDrawing, LocaleService } from '@univerjs/core';
|
|
2
17
|
import type { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
|
|
3
18
|
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
19
|
export declare function dealWidthInlineDrawing(drawing: IDrawing, sectionBreakConfig: ISectionBreakConfig, allPages?: IDocumentSkeletonPage[], paragraphConfig?: IParagraphConfig, localeService?: LocaleService): never[];
|
|
5
|
-
//# sourceMappingURL=inline-drawing.d.ts.map
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IParagraphStyle } from '@univerjs/core';
|
|
3
17
|
import type { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
18
|
import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
5
19
|
import type { DocumentViewModel } from '../../view-model/document-view-model';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
spanGroup: IDocumentSkeletonSpan[];
|
|
9
|
-
}
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
export declare function otherHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
21
|
+
step: number;
|
|
22
|
+
spanGroup: import("../../../..").IDocumentSkeletonSpan[];
|
|
23
|
+
};
|
|
24
|
+
export declare function ArabicHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
25
|
+
step: number;
|
|
26
|
+
spanGroup: import("../../../..").IDocumentSkeletonSpan[];
|
|
27
|
+
};
|
|
28
|
+
export declare function emojiHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
29
|
+
step: number;
|
|
30
|
+
spanGroup: import("../../../..").IDocumentSkeletonSpan[];
|
|
31
|
+
};
|
|
32
|
+
export declare function TibetanHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
33
|
+
step: number;
|
|
34
|
+
spanGroup: import("../../../..").IDocumentSkeletonSpan[];
|
|
35
|
+
};
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonPage, IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';
|
|
2
17
|
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
3
18
|
export declare function calculateParagraphLayout(spanGroup: IDocumentSkeletonSpan[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[];
|
|
4
|
-
//# sourceMappingURL=layout-ruler.d.ts.map
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached';
|
|
2
17
|
import type { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
3
18
|
import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
4
19
|
import type { DocumentViewModel } from '../../view-model/document-view-model';
|
|
5
20
|
export declare function dealWidthParagraph(bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[];
|
|
6
|
-
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
2
17
|
import type { ISectionBreakConfig } from '../../../basics/interfaces';
|
|
3
18
|
import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
|
|
@@ -7,4 +22,3 @@ export declare function dealWithSections(bodyModel: DocumentViewModel, sectionNo
|
|
|
7
22
|
renderedBlockIdMap: Map<string, boolean>;
|
|
8
23
|
};
|
|
9
24
|
export declare function dealWidthBlocksByMultiColumnAndContinuous(): void;
|
|
10
|
-
//# sourceMappingURL=section.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { ISectionColumnProperties } from '@univerjs/core';
|
|
2
17
|
import { ColumnSeparatorType } from '@univerjs/core';
|
|
3
18
|
import type { IDocumentSkeletonColumn } from '../../../basics/i-document-skeleton-cached';
|
|
4
19
|
export declare function createSkeletonColumn(columnIndex: number | undefined, columnProperties: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, pageWidth?: number): IDocumentSkeletonColumn;
|
|
5
|
-
//# sourceMappingURL=column.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { ITextRange, Nullable } from '@univerjs/core';
|
|
2
17
|
import type { INodePosition } from '../../../basics/interfaces';
|
|
3
18
|
import type { IPoint } from '../../../basics/vector2';
|
|
@@ -39,12 +54,12 @@ export declare function compareNodePosition(pos1: INodePosition, pos2: INodePosi
|
|
|
39
54
|
};
|
|
40
55
|
export declare function getOneTextSelectionRange(rangeList: ITextRange[]): Nullable<ITextRange>;
|
|
41
56
|
export declare class NodePositionConvertToCursor {
|
|
42
|
-
private _liquid;
|
|
43
57
|
private _documentOffsetConfig;
|
|
44
58
|
private _docSkeleton;
|
|
59
|
+
private _liquid;
|
|
45
60
|
private _currentStartState;
|
|
46
61
|
private _currentEndState;
|
|
47
|
-
constructor(
|
|
62
|
+
constructor(_documentOffsetConfig: IDocumentOffsetConfig, _docSkeleton: DocumentSkeleton);
|
|
48
63
|
getRangePointData(startOrigin: Nullable<INodePosition>, endOrigin: Nullable<INodePosition>): {
|
|
49
64
|
borderBoxPointGroup: IPoint[][];
|
|
50
65
|
contentBoxPointGroup: IPoint[][];
|
|
@@ -57,4 +72,3 @@ export declare class NodePositionConvertToCursor {
|
|
|
57
72
|
private _pushToPoints;
|
|
58
73
|
private _selectionIterator;
|
|
59
74
|
}
|
|
60
|
-
//# sourceMappingURL=convert-cursor.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export * from './column';
|
|
2
17
|
export * from './convert-cursor';
|
|
3
18
|
export * from './line';
|
|
@@ -7,4 +22,3 @@ export * from './range';
|
|
|
7
22
|
export * from './section';
|
|
8
23
|
export * from './span';
|
|
9
24
|
export * from './tools';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonLine, LineType } from '../../../basics/i-document-skeleton-cached';
|
|
2
17
|
interface ILineBoundingBox {
|
|
3
18
|
lineHeight: number;
|
|
4
19
|
lineTop: number;
|
|
20
|
+
contentHeight: number;
|
|
5
21
|
paddingLeft?: number;
|
|
6
22
|
paddingRight?: number;
|
|
7
23
|
paddingTop?: number;
|
|
8
24
|
paddingBottom?: number;
|
|
9
25
|
marginTop?: number;
|
|
10
26
|
spaceBelowApply?: number;
|
|
11
|
-
contentHeight: number;
|
|
12
27
|
}
|
|
13
28
|
export declare function createSkeletonLine(paragraphIndex: number, lineType: LineType, lineBoundingBox: ILineBoundingBox, columnWidth: number, lineIndex?: number, isParagraphStart?: boolean, affectSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, headersDrawings?: Map<string, IDocumentSkeletonDrawing>, footersDrawings?: Map<string, IDocumentSkeletonDrawing>): IDocumentSkeletonLine;
|
|
14
29
|
export declare function calculateLineTopByDrawings(lineHeight?: number, lineTop?: number, pageSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, headersDrawings?: Map<string, IDocumentSkeletonDrawing>, footersDrawings?: Map<string, IDocumentSkeletonDrawing>): number;
|
|
@@ -17,4 +32,3 @@ export declare function setLineMarginBottom(line: IDocumentSkeletonLine, marginB
|
|
|
17
32
|
export declare function updateDivideInLine(line: IDocumentSkeletonLine): void;
|
|
18
33
|
export declare function createAndUpdateBlockAnchor(paragraphIndex: number, line: IDocumentSkeletonLine, top: number, drawingAnchor?: Map<number, IDocumentSkeletonDrawingAnchor>): void;
|
|
19
34
|
export {};
|
|
20
|
-
//# sourceMappingURL=line.d.ts.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonSection, IDocumentSkeletonSpan } from '../../../basics/i-document-skeleton-cached';
|
|
2
17
|
import { PageLayoutType } from '../../../basics/i-document-skeleton-cached';
|
|
3
18
|
export declare class Liquid {
|
|
@@ -38,4 +53,3 @@ export declare class Liquid {
|
|
|
38
53
|
y: number;
|
|
39
54
|
};
|
|
40
55
|
}
|
|
41
|
-
//# sourceMappingURL=liquid.d.ts.map
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
2
17
|
import { BreakType } from '../../../basics/i-document-skeleton-cached';
|
|
3
18
|
import type { ISectionBreakConfig } from '../../../basics/interfaces';
|
|
4
19
|
export declare function createSkeletonPage(sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage;
|
|
5
|
-
//# sourceMappingURL=page.d.ts.map
|