@univerjs/engine-render 0.1.3 → 0.1.5

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.
Files changed (126) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +10914 -10855
  3. package/lib/types/base-object.d.ts +7 -23
  4. package/lib/types/basics/cell-data.d.ts +2 -16
  5. package/lib/types/basics/document-node-tools.d.ts +10 -24
  6. package/lib/types/basics/draw.d.ts +5 -20
  7. package/lib/types/basics/font-cache.d.ts +4 -18
  8. package/lib/types/basics/i-document-skeleton-cached.d.ts +15 -23
  9. package/lib/types/basics/i-events.d.ts +2 -16
  10. package/lib/types/basics/interfaces.d.ts +7 -21
  11. package/lib/types/basics/path2.d.ts +2 -16
  12. package/lib/types/basics/position.d.ts +3 -17
  13. package/lib/types/basics/quick-event.d.ts +3 -17
  14. package/lib/types/basics/range.d.ts +2 -16
  15. package/lib/types/basics/text-rotation.d.ts +2 -16
  16. package/lib/types/basics/tools.d.ts +10 -20
  17. package/lib/types/basics/transform.d.ts +3 -17
  18. package/lib/types/basics/vector2.d.ts +2 -16
  19. package/lib/types/basics/viewport-subtract.d.ts +3 -0
  20. package/lib/types/canvas.d.ts +1 -15
  21. package/lib/types/components/component.d.ts +5 -19
  22. package/lib/types/components/docs/doc-component.d.ts +10 -25
  23. package/lib/types/components/docs/doc-extension.d.ts +4 -18
  24. package/lib/types/components/docs/document.d.ts +10 -26
  25. package/lib/types/components/docs/extensions/background.d.ts +5 -19
  26. package/lib/types/components/docs/extensions/border.d.ts +5 -19
  27. package/lib/types/components/docs/extensions/font-and-base-line.d.ts +5 -19
  28. package/lib/types/components/docs/extensions/line.d.ts +5 -19
  29. package/lib/types/components/docs/layout/block/paragraph/bullet-ruler.d.ts +3 -0
  30. package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +5 -0
  31. package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +5 -0
  32. package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +21 -0
  33. package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +4 -0
  34. package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +6 -0
  35. package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +4 -0
  36. package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +7 -0
  37. package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +11 -0
  38. package/lib/types/components/docs/layout/block/section.d.ts +10 -0
  39. package/lib/types/components/docs/{doc-skeleton.d.ts → layout/doc-skeleton.d.ts} +11 -26
  40. package/lib/types/components/docs/layout/linebreak/extensions/tab-linebreak-extension.d.ts +3 -0
  41. package/lib/types/components/docs/layout/linebreak/linebreaker.d.ts +27 -0
  42. package/lib/types/components/docs/layout/model/__test__/glyph.spec.d.ts +16 -0
  43. package/lib/types/components/docs/layout/model/column.d.ts +4 -0
  44. package/lib/types/components/docs/layout/model/glyph.d.ts +16 -0
  45. package/lib/types/components/docs/{common → layout/model}/line.d.ts +2 -16
  46. package/lib/types/components/docs/layout/model/page.d.ts +4 -0
  47. package/lib/types/components/docs/layout/model/section.d.ts +5 -0
  48. package/lib/types/components/docs/{common → layout}/tools.d.ts +10 -25
  49. package/lib/types/components/docs/{common/liquid.d.ts → liquid.d.ts} +4 -19
  50. package/lib/types/components/docs/{common → text-selection}/convert-cursor.d.ts +9 -23
  51. package/lib/types/components/docs/{common → text-selection}/text-range.d.ts +10 -25
  52. package/lib/types/components/docs/{text-selection-render-manager.d.ts → text-selection/text-selection-render-manager.d.ts} +15 -28
  53. package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +2 -17
  54. package/lib/types/components/docs/view-model/document-view-model.d.ts +8 -23
  55. package/lib/types/components/extension.d.ts +5 -20
  56. package/lib/types/components/index.d.ts +0 -1
  57. package/lib/types/components/sheets/column-header.d.ts +5 -19
  58. package/lib/types/components/sheets/extensions/background.d.ts +4 -18
  59. package/lib/types/components/sheets/extensions/border.d.ts +4 -18
  60. package/lib/types/components/sheets/extensions/column-header-layout.d.ts +4 -18
  61. package/lib/types/components/sheets/extensions/font.d.ts +4 -18
  62. package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
  63. package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
  64. package/lib/types/components/sheets/interfaces.d.ts +4 -18
  65. package/lib/types/components/sheets/row-header.d.ts +5 -19
  66. package/lib/types/components/sheets/sheet-component.d.ts +6 -20
  67. package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
  68. package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
  69. package/lib/types/components/skeleton.d.ts +2 -16
  70. package/lib/types/components/slides/slide.d.ts +5 -20
  71. package/lib/types/context.d.ts +4 -0
  72. package/lib/types/custom/custom-object.d.ts +3 -17
  73. package/lib/types/engine.d.ts +9 -19
  74. package/lib/types/group.d.ts +4 -19
  75. package/lib/types/index.d.ts +9 -1
  76. package/lib/types/layer.d.ts +5 -18
  77. package/lib/types/render-engine.d.ts +4 -18
  78. package/lib/types/render-manager.service.d.ts +10 -23
  79. package/lib/types/scene-viewer.d.ts +7 -21
  80. package/lib/types/scene.d.ts +14 -29
  81. package/lib/types/scene.input-manager.d.ts +3 -17
  82. package/lib/types/scene.transformer.d.ts +5 -20
  83. package/lib/types/scroll-timer.d.ts +4 -18
  84. package/lib/types/services/object-transform-manager.service.d.ts +4 -18
  85. package/lib/types/shape/base-scroll-bar.d.ts +7 -21
  86. package/lib/types/shape/circle.d.ts +3 -18
  87. package/lib/types/shape/path.d.ts +3 -18
  88. package/lib/types/shape/picture.d.ts +4 -19
  89. package/lib/types/shape/rect.d.ts +3 -18
  90. package/lib/types/shape/regular-polygon.d.ts +5 -20
  91. package/lib/types/shape/rich-text.d.ts +4 -18
  92. package/lib/types/shape/scroll-bar.d.ts +6 -21
  93. package/lib/types/shape/shape.d.ts +5 -19
  94. package/lib/types/thin-engine.d.ts +6 -21
  95. package/lib/types/thin-scene.d.ts +11 -24
  96. package/lib/types/viewport.d.ts +9 -28
  97. package/lib/umd/index.js +2 -2
  98. package/package.json +10 -9
  99. package/lib/types/components/docs/block/index.d.ts +0 -18
  100. package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +0 -17
  101. package/lib/types/components/docs/block/paragraph/bullet.d.ts +0 -19
  102. package/lib/types/components/docs/block/paragraph/index.d.ts +0 -21
  103. package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +0 -19
  104. package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +0 -35
  105. package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +0 -18
  106. package/lib/types/components/docs/block/paragraph/paragraph.d.ts +0 -20
  107. package/lib/types/components/docs/block/section.d.ts +0 -24
  108. package/lib/types/components/docs/common/column.d.ts +0 -19
  109. package/lib/types/components/docs/common/index.d.ts +0 -24
  110. package/lib/types/components/docs/common/page.d.ts +0 -19
  111. package/lib/types/components/docs/common/section.d.ts +0 -20
  112. package/lib/types/components/docs/common/span.d.ts +0 -28
  113. package/lib/types/components/docs/index.d.ts +0 -22
  114. package/lib/types/components/docs/linebreak/extensions/tab-linebreak-extension.d.ts +0 -17
  115. package/lib/types/components/docs/linebreak/linebreaker.d.ts +0 -41
  116. /package/lib/types/components/docs/{block → layout/block}/block-error.d.ts +0 -0
  117. /package/lib/types/components/docs/{linebreak → layout/linebreak}/__tests__/linebreak.spec.d.ts +0 -0
  118. /package/lib/types/components/docs/{linebreak → layout/linebreak}/break.d.ts +0 -0
  119. /package/lib/types/components/docs/{linebreak → layout/linebreak}/classes.d.ts +0 -0
  120. /package/lib/types/components/docs/{linebreak → layout/linebreak}/index.d.ts +0 -0
  121. /package/lib/types/components/docs/{linebreak → layout/linebreak}/pairs.d.ts +0 -0
  122. /package/lib/types/components/docs/{linebreak → layout/linebreak}/rule.d.ts +0 -0
  123. /package/lib/types/components/docs/{linebreak → layout/linebreak}/swap.d.ts +0 -0
  124. /package/lib/types/components/docs/{linebreak → layout/linebreak}/tiny-inflate.d.ts +0 -0
  125. /package/lib/types/components/docs/{linebreak → layout/linebreak}/trie-data.d.ts +0 -0
  126. /package/lib/types/components/docs/{linebreak → layout/linebreak}/unicode-trie.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-render",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-render",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -17,7 +17,9 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/dream-num/univer/issues"
19
19
  },
20
- "keywords": [],
20
+ "keywords": [
21
+ "univer"
22
+ ],
21
23
  "exports": {
22
24
  ".": {
23
25
  "import": "./lib/es/index.js",
@@ -50,7 +52,7 @@
50
52
  "peerDependencies": {
51
53
  "@wendellhu/redi": "0.13.0",
52
54
  "rxjs": ">=7.0.0",
53
- "@univerjs/core": "0.1.3"
55
+ "@univerjs/core": "0.1.5"
54
56
  },
55
57
  "dependencies": {
56
58
  "cjk-regex": "^3.1.0",
@@ -58,13 +60,12 @@
58
60
  },
59
61
  "devDependencies": {
60
62
  "@wendellhu/redi": "^0.13.0",
61
- "less": "^4.2.0",
62
63
  "rxjs": "^7.8.1",
63
- "typescript": "^5.4.2",
64
- "vite": "^5.1.6",
65
- "vitest": "^1.3.1",
66
- "@univerjs/shared": "0.1.3",
67
- "@univerjs/core": "0.1.3"
64
+ "typescript": "^5.4.3",
65
+ "vite": "^5.2.6",
66
+ "vitest": "^1.4.0",
67
+ "@univerjs/shared": "0.1.5",
68
+ "@univerjs/core": "0.1.5"
68
69
  },
69
70
  "scripts": {
70
71
  "test": "vitest run",
@@ -1,18 +0,0 @@
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
- export * from './block-error';
17
- export * from './paragraph';
18
- export * from './section';
@@ -1,17 +0,0 @@
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 { GlyphType } from '@univerjs/core';
17
- export declare function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string): string;
@@ -1,19 +0,0 @@
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 { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
17
- import type { IDocumentSkeletonBullet } from '../../../../basics/i-document-skeleton-cached';
18
- export declare function dealWithBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
19
- export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
@@ -1,21 +0,0 @@
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
- export * from './bullet';
17
- export * from './bullet-ruler';
18
- export * from './inline-drawing';
19
- export * from './language-ruler';
20
- export * from './layout-ruler';
21
- export * from './paragraph';
@@ -1,19 +0,0 @@
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 { IDrawing, LocaleService } from '@univerjs/core';
17
- import type { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
18
- import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
19
- export declare function dealWidthInlineDrawing(drawing: IDrawing, sectionBreakConfig: ISectionBreakConfig, allPages?: IDocumentSkeletonPage[], paragraphConfig?: IParagraphConfig, localeService?: LocaleService): never[];
@@ -1,35 +0,0 @@
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';
17
- import type { ISectionBreakConfig } from '../../../../basics/interfaces';
18
- import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
19
- import type { DocumentViewModel } from '../../view-model/document-view-model';
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,18 +0,0 @@
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 { IDocumentSkeletonPage, IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';
17
- import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
18
- export declare function calculateParagraphLayout(spanGroup: IDocumentSkeletonSpan[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[];
@@ -1,20 +0,0 @@
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 { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached';
17
- import type { ISectionBreakConfig } from '../../../../basics/interfaces';
18
- import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
19
- import type { DocumentViewModel } from '../../view-model/document-view-model';
20
- export declare function dealWidthParagraph(bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[];
@@ -1,24 +0,0 @@
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 { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
17
- import type { ISectionBreakConfig } from '../../../basics/interfaces';
18
- import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
19
- import type { DocumentViewModel } from '../view-model/document-view-model';
20
- export declare function dealWithSections(bodyModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, preRenderedBlockIdMap?: Map<string, boolean>): {
21
- pages: IDocumentSkeletonPage[];
22
- renderedBlockIdMap: Map<string, boolean>;
23
- };
24
- export declare function dealWidthBlocksByMultiColumnAndContinuous(): void;
@@ -1,19 +0,0 @@
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 { ISectionColumnProperties } from '@univerjs/core';
17
- import { ColumnSeparatorType } from '@univerjs/core';
18
- import type { IDocumentSkeletonColumn } from '../../../basics/i-document-skeleton-cached';
19
- export declare function createSkeletonColumn(columnIndex: number | undefined, columnProperties: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, pageWidth?: number): IDocumentSkeletonColumn;
@@ -1,24 +0,0 @@
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
- export * from './column';
17
- export * from './convert-cursor';
18
- export * from './line';
19
- export * from './liquid';
20
- export * from './page';
21
- export * from './section';
22
- export * from './span';
23
- export * from './text-range';
24
- export * from './tools';
@@ -1,19 +0,0 @@
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 { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
17
- import { BreakType } from '../../../basics/i-document-skeleton-cached';
18
- import type { ISectionBreakConfig } from '../../../basics/interfaces';
19
- export declare function createSkeletonPage(sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage;
@@ -1,20 +0,0 @@
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 { ISectionColumnProperties } from '@univerjs/core';
17
- import { ColumnSeparatorType } from '@univerjs/core';
18
- import type { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../basics/i-document-skeleton-cached';
19
- export declare function createSkeletonSection(columnProperties?: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, top?: number, left?: number, sectionWidth?: number, sectionHeight?: number): IDocumentSkeletonSection;
20
- export declare function setColumnFullState(column: IDocumentSkeletonColumn, state: boolean): void;
@@ -1,28 +0,0 @@
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 { Nullable } from '@univerjs/core';
17
- import type { IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonSpan } from '../../../basics/i-document-skeleton-cached';
18
- import { SpanType } from '../../../basics/i-document-skeleton-cached';
19
- import type { IFontCreateConfig } from '../../../basics/interfaces';
20
- export declare function createSkeletonWordSpan(content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
21
- export declare function createSkeletonLetterSpan(content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
22
- export declare function createSkeletonTabSpan(config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
23
- export declare function _createSkeletonWordOrLetter(spanType: SpanType, content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
24
- export declare function createSkeletonBulletSpan(span: IDocumentSkeletonSpan, bulletSkeleton: IDocumentSkeletonBullet, charSpaceApply: number): IDocumentSkeletonSpan;
25
- export declare function setSpanGroupLeft(spanGroup: IDocumentSkeletonSpan[], left?: number): void;
26
- export declare function setSpanLeft(span: IDocumentSkeletonSpan, left?: number): void;
27
- export declare function addSpanToDivide(divide: IDocumentSkeletonDivide, spanGroup: IDocumentSkeletonSpan[], offsetLeft?: number): void;
28
- export declare function hasMixedTextLayout(preSpan: Nullable<IDocumentSkeletonSpan>, span: IDocumentSkeletonSpan): boolean;
@@ -1,22 +0,0 @@
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
- export * from './block';
17
- export * from './common';
18
- export * from './doc-skeleton';
19
- export * from './document';
20
- export * from './horizon-bar';
21
- export * from './text-selection-render-manager';
22
- export * from './vertical-bar';
@@ -1,17 +0,0 @@
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 { LineBreaker } from '../linebreaker';
17
- export declare function tabLineBreakExtension(breaker: LineBreaker): void;
@@ -1,41 +0,0 @@
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 { Break } from './break';
17
- import type { ILineBreakRule } from './rule';
18
- interface ILineBreakExtension {
19
- (breaker: LineBreaker): void;
20
- }
21
- export declare class LineBreaker {
22
- string: string;
23
- private _pos;
24
- private _lastPos;
25
- private _curClass;
26
- private _codePoint;
27
- private _nextClass;
28
- private _LB8a;
29
- private _LB21a;
30
- private _LB30a;
31
- private _rule;
32
- constructor(string: string);
33
- use(extension: ILineBreakExtension): this;
34
- addRule(key: string, rule: ILineBreakRule): this;
35
- nextBreak(): Break | null;
36
- private _getNextCodePoint;
37
- private _nextCharClass;
38
- private _getSimpleBreak;
39
- private _getPairTableBreak;
40
- }
41
- export {};