@univerjs/engine-render 0.1.4 → 0.1.6

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 (102) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +3042 -2847
  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 +4 -18
  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 +2 -16
  9. package/lib/types/basics/i-events.d.ts +2 -16
  10. package/lib/types/basics/interfaces.d.ts +5 -19
  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 +6 -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 +2 -16
  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 +8 -23
  23. package/lib/types/components/docs/doc-extension.d.ts +3 -17
  24. package/lib/types/components/docs/document.d.ts +9 -26
  25. package/lib/types/components/docs/extensions/background.d.ts +4 -18
  26. package/lib/types/components/docs/extensions/border.d.ts +4 -18
  27. package/lib/types/components/docs/extensions/font-and-base-line.d.ts +4 -18
  28. package/lib/types/components/docs/extensions/line.d.ts +4 -18
  29. package/lib/types/components/docs/layout/block/paragraph/bullet-ruler.d.ts +1 -15
  30. package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +3 -17
  31. package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +4 -18
  32. package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +9 -23
  33. package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +3 -17
  34. package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +5 -19
  35. package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +3 -17
  36. package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +6 -20
  37. package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +6 -20
  38. package/lib/types/components/docs/layout/block/section.d.ts +5 -19
  39. package/lib/types/components/docs/layout/doc-skeleton.d.ts +7 -22
  40. package/lib/types/components/docs/layout/linebreak/extensions/tab-linebreak-extension.d.ts +2 -16
  41. package/lib/types/components/docs/layout/linebreak/linebreaker.d.ts +2 -16
  42. package/lib/types/components/docs/layout/model/column.d.ts +3 -18
  43. package/lib/types/components/docs/layout/model/glyph.d.ts +3 -18
  44. package/lib/types/components/docs/layout/model/line.d.ts +2 -16
  45. package/lib/types/components/docs/layout/model/page.d.ts +3 -18
  46. package/lib/types/components/docs/layout/model/section.d.ts +3 -18
  47. package/lib/types/components/docs/layout/tools.d.ts +7 -22
  48. package/lib/types/components/docs/liquid.d.ts +2 -17
  49. package/lib/types/components/docs/text-selection/convert-cursor.d.ts +6 -20
  50. package/lib/types/components/docs/text-selection/text-range.d.ts +10 -25
  51. package/lib/types/components/docs/text-selection/text-selection-render-manager.d.ts +12 -27
  52. package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +2 -17
  53. package/lib/types/components/docs/view-model/document-view-model.d.ts +8 -23
  54. package/lib/types/components/extension.d.ts +5 -20
  55. package/lib/types/components/sheets/column-header.d.ts +5 -19
  56. package/lib/types/components/sheets/extensions/background.d.ts +4 -18
  57. package/lib/types/components/sheets/extensions/border.d.ts +4 -18
  58. package/lib/types/components/sheets/extensions/column-header-layout.d.ts +4 -18
  59. package/lib/types/components/sheets/extensions/custom.d.ts +10 -0
  60. package/lib/types/components/sheets/extensions/font.d.ts +4 -18
  61. package/lib/types/components/sheets/extensions/index.d.ts +2 -0
  62. package/lib/types/components/sheets/extensions/marker.d.ts +10 -0
  63. package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
  64. package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
  65. package/lib/types/components/sheets/interfaces.d.ts +4 -18
  66. package/lib/types/components/sheets/row-header.d.ts +5 -19
  67. package/lib/types/components/sheets/sheet-component.d.ts +6 -20
  68. package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
  69. package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
  70. package/lib/types/components/skeleton.d.ts +2 -16
  71. package/lib/types/components/slides/slide.d.ts +5 -20
  72. package/lib/types/custom/custom-object.d.ts +3 -17
  73. package/lib/types/engine.d.ts +7 -19
  74. package/lib/types/group.d.ts +4 -19
  75. package/lib/types/index.d.ts +1 -0
  76. package/lib/types/layer.d.ts +4 -18
  77. package/lib/types/render-engine.d.ts +4 -18
  78. package/lib/types/render-manager.service.d.ts +9 -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/checkbox.d.ts +17 -0
  87. package/lib/types/shape/circle.d.ts +3 -18
  88. package/lib/types/shape/dropdown-item.d.ts +12 -0
  89. package/lib/types/shape/index.d.ts +1 -0
  90. package/lib/types/shape/path.d.ts +3 -18
  91. package/lib/types/shape/picture.d.ts +4 -19
  92. package/lib/types/shape/rect.d.ts +3 -18
  93. package/lib/types/shape/regular-polygon.d.ts +5 -20
  94. package/lib/types/shape/rich-text.d.ts +4 -18
  95. package/lib/types/shape/scroll-bar.d.ts +6 -21
  96. package/lib/types/shape/shape.d.ts +5 -19
  97. package/lib/types/shape/text.d.ts +7 -0
  98. package/lib/types/thin-engine.d.ts +6 -21
  99. package/lib/types/thin-scene.d.ts +8 -24
  100. package/lib/types/viewport.d.ts +9 -25
  101. package/lib/umd/index.js +2 -2
  102. package/package.json +6 -6
@@ -1,22 +1,8 @@
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 { IScale } from '@univerjs/core';
17
- import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
18
- import type { UniverRenderingContext } from '../../../context';
19
1
  import { docExtension } from '../doc-extension';
2
+ import { UniverRenderingContext } from '../../../context';
3
+ import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
4
+ import { IScale } from '@univerjs/core';
5
+
20
6
  export declare class Border extends docExtension {
21
7
  uKey: string;
22
8
  Z_INDEX: number;
@@ -1,22 +1,8 @@
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 { IScale } from '@univerjs/core';
17
- import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
18
- import type { UniverRenderingContext } from '../../../context';
19
1
  import { docExtension } from '../doc-extension';
2
+ import { UniverRenderingContext } from '../../../context';
3
+ import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
4
+ import { IScale } from '@univerjs/core';
5
+
20
6
  export declare class FontAndBaseLine extends docExtension {
21
7
  uKey: string;
22
8
  Z_INDEX: number;
@@ -1,22 +1,8 @@
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 { IScale } from '@univerjs/core';
17
- import type { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
18
- import type { UniverRenderingContext } from '../../../context';
19
1
  import { docExtension } from '../doc-extension';
2
+ import { UniverRenderingContext } from '../../../context';
3
+ import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
4
+ import { IScale } from '@univerjs/core';
5
+
20
6
  export declare class Line extends docExtension {
21
7
  uKey: string;
22
8
  Z_INDEX: number;
@@ -1,17 +1,3 @@
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
1
  import { GlyphType } from '@univerjs/core';
2
+
17
3
  export declare function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string): string;
@@ -1,19 +1,5 @@
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';
1
+ import { IDocumentSkeletonBullet } from '../../../../../basics/i-document-skeleton-cached';
2
+ import { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
3
+
18
4
  export declare function dealWithBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
19
5
  export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
@@ -1,19 +1,5 @@
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';
1
+ import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
2
+ import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
3
+ import { IDrawing, LocaleService } from '@univerjs/core';
4
+
19
5
  export declare function dealWidthInlineDrawing(drawing: IDrawing, sectionBreakConfig: ISectionBreakConfig, allPages?: IDocumentSkeletonPage[], paragraphConfig?: IParagraphConfig, localeService?: LocaleService): never[];
@@ -1,35 +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
- */
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';
1
+ import { DocumentViewModel } from '../../../view-model/document-view-model';
2
+ import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
3
+ import { ISectionBreakConfig } from '../../../../../basics/interfaces';
4
+ import { IParagraphStyle } from '@univerjs/core';
5
+
20
6
  export declare function otherHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
21
7
  step: number;
22
- glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[];
8
+ glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[];
23
9
  };
24
10
  export declare function ArabicHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
25
11
  step: number;
26
- glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[];
12
+ glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[];
27
13
  };
28
14
  export declare function emojiHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
29
15
  step: number;
30
- glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[];
16
+ glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[];
31
17
  };
32
18
  export declare function TibetanHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
33
19
  step: number;
34
- glyphGroup: import("../../../../..").IDocumentSkeletonGlyph[];
20
+ glyphGroup: import('../../../../..').IDocumentSkeletonGlyph[];
35
21
  };
@@ -1,18 +1,4 @@
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 { IDocumentSkeletonGlyph, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
17
- import type { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
1
+ import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
2
+ import { IDocumentSkeletonGlyph, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
3
+
18
4
  export declare function layoutParagraph(glyphGroup: IDocumentSkeletonGlyph[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[];
@@ -1,20 +1,6 @@
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';
1
+ import { DocumentViewModel } from '../../../view-model/document-view-model';
2
+ import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
3
+ import { ISectionBreakConfig } from '../../../../../basics/interfaces';
4
+ import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached';
5
+
20
6
  export declare function dealWidthParagraph(bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[];
@@ -1,18 +1,4 @@
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 { IParagraph } from '@univerjs/core';
17
- import type { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
1
+ import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
2
+ import { IParagraph } from '@univerjs/core';
3
+
18
4
  export declare function lineAdjustment(pages: IDocumentSkeletonPage[], paragraph: IParagraph): void;
@@ -1,21 +1,7 @@
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 { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
18
- import type { DocumentViewModel } from '../../../view-model/document-view-model';
19
- import type { ISectionBreakConfig } from '../../../../../basics/interfaces';
20
- import type { IShapedText } from './shaping';
1
+ import { IShapedText } from './shaping';
2
+ import { ISectionBreakConfig } from '../../../../../basics/interfaces';
3
+ import { DocumentViewModel } from '../../../view-model/document-view-model';
4
+ import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
5
+ import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../../basics/i-document-skeleton-cached';
6
+
21
7
  export declare function lineBreaking(shapedTextList: IShapedText[], curPage: IDocumentSkeletonPage, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[];
@@ -1,23 +1,9 @@
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 { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached';
18
- import type { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
19
- import type { DocumentViewModel } from '../../../view-model/document-view-model';
20
- import type { ISectionBreakConfig } from '../../../../../basics/interfaces';
1
+ import { ISectionBreakConfig } from '../../../../../basics/interfaces';
2
+ import { DocumentViewModel } from '../../../view-model/document-view-model';
3
+ import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
4
+ import { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached';
5
+ import { IParagraphStyle } from '@univerjs/core';
6
+
21
7
  export interface IShapedText {
22
8
  text: string;
23
9
  glyphs: IDocumentSkeletonGlyph[];
@@ -1,22 +1,8 @@
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';
1
+ import { DocumentViewModel } from '../../view-model/document-view-model';
2
+ import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
3
+ import { ISectionBreakConfig } from '../../../../basics/interfaces';
4
+ import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached';
5
+
20
6
  export declare function dealWithSections(bodyModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, _preRenderedBlockIdMap?: Map<string, boolean>): {
21
7
  pages: IDocumentSkeletonPage[];
22
8
  renderedBlockIdMap: Map<string, boolean>;
@@ -1,25 +1,10 @@
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 { LocaleService, Nullable } from '@univerjs/core';
17
- import type { IDocumentSkeletonCached, IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
18
- import { PageLayoutType } from '../../../basics/i-document-skeleton-cached';
19
- import type { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces';
20
- import type { IViewportBound, Vector2 } from '../../../basics/vector2';
1
+ import { DocumentViewModel } from '../view-model/document-view-model';
21
2
  import { Skeleton } from '../../skeleton';
22
- import type { DocumentViewModel } from '../view-model/document-view-model';
3
+ import { IViewportBound, Vector2 } from '../../../basics/vector2';
4
+ import { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces';
5
+ import { IDocumentSkeletonCached, IDocumentSkeletonGlyph, PageLayoutType } from '../../../basics/i-document-skeleton-cached';
6
+ import { LocaleService, Nullable } from '@univerjs/core';
7
+
23
8
  export declare enum DocumentSkeletonState {
24
9
  PENDING = "pending",
25
10
  CALCULATING = "calculating",
@@ -41,7 +26,7 @@ export declare class DocumentSkeleton extends Skeleton {
41
26
  actualHeight: number;
42
27
  };
43
28
  private _getPageActualWidth;
44
- getPageSize(): import("@univerjs/core").ISize | undefined;
29
+ getPageSize(): import('@univerjs/core').ISize | undefined;
45
30
  findPositionByGlyph(glyph: IDocumentSkeletonGlyph): Nullable<INodeSearch>;
46
31
  findNodePositionByCharIndex(charIndex: number, isBack?: boolean): Nullable<INodePosition>;
47
32
  findNodeByCharIndex(charIndex: number): Nullable<IDocumentSkeletonGlyph>;
@@ -1,17 +1,3 @@
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';
1
+ import { LineBreaker } from '../linebreaker';
2
+
17
3
  export declare function tabLineBreakExtension(breaker: LineBreaker): void;
@@ -1,20 +1,6 @@
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
+ import { ILineBreakRule } from './rule';
16
2
  import { Break } from './break';
17
- import type { ILineBreakRule } from './rule';
3
+
18
4
  interface ILineBreakExtension {
19
5
  (breaker: LineBreaker): void;
20
6
  }
@@ -1,19 +1,4 @@
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';
1
+ import { IDocumentSkeletonColumn } from '../../../../basics/i-document-skeleton-cached';
2
+ import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core';
3
+
19
4
  export declare function createSkeletonColumn(columnIndex: number | undefined, columnProperties: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, pageWidth?: number): IDocumentSkeletonColumn;
@@ -1,21 +1,6 @@
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 { IAdjustability, IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonGlyph } from '../../../../basics/i-document-skeleton-cached';
17
- import { GlyphType } from '../../../../basics/i-document-skeleton-cached';
18
- import type { IFontCreateConfig } from '../../../../basics/interfaces';
1
+ import { IFontCreateConfig } from '../../../../basics/interfaces';
2
+ import { IAdjustability, IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, GlyphType } from '../../../../basics/i-document-skeleton-cached';
3
+
19
4
  export declare function isSpace(char: string): boolean;
20
5
  export declare function isJustifiable(content: string): boolean;
21
6
  export declare function baseAdjustability(content: string, width: number): IAdjustability;
@@ -1,19 +1,5 @@
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 { IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonLine, LineType } from '../../../../basics/i-document-skeleton-cached';
1
+ import { IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonLine, LineType } from '../../../../basics/i-document-skeleton-cached';
2
+
17
3
  interface ILineBoundingBox {
18
4
  lineHeight: number;
19
5
  lineTop: number;
@@ -1,19 +1,4 @@
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';
1
+ import { ISectionBreakConfig } from '../../../../basics/interfaces';
2
+ import { IDocumentSkeletonPage, ISkeletonResourceReference, BreakType } from '../../../../basics/i-document-skeleton-cached';
3
+
19
4
  export declare function createSkeletonPage(sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage;
@@ -1,20 +1,5 @@
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';
1
+ import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../../basics/i-document-skeleton-cached';
2
+ import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core';
3
+
19
4
  export declare function createSkeletonSection(columnProperties?: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, top?: number, left?: number, sectionWidth?: number, sectionHeight?: number): IDocumentSkeletonSection;
20
5
  export declare function setColumnFullState(column: IDocumentSkeletonColumn, state: boolean): void;
@@ -1,26 +1,11 @@
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 { INumberUnit, IParagraphStyle, ITextStyle, ObjectPositionH, ObjectPositionV } from '@univerjs/core';
17
- import { BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
18
- import type { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../basics/i-document-skeleton-cached';
19
- import type { IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces';
20
- import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
21
- import type { DocumentViewModel } from '../view-model/document-view-model';
1
+ import { DocumentViewModel } from '../view-model/document-view-model';
2
+ import { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
3
+ import { IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces';
4
+ import { IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../basics/i-document-skeleton-cached';
5
+ import { INumberUnit, IParagraphStyle, ITextStyle, ObjectPositionH, ObjectPositionV, BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
6
+
22
7
  export declare function getLastPage(pages: IDocumentSkeletonPage[]): IDocumentSkeletonPage;
23
- export declare function getLastSection(page: IDocumentSkeletonPage): import("../../../basics/i-document-skeleton-cached").IDocumentSkeletonSection;
8
+ export declare function getLastSection(page: IDocumentSkeletonPage): import('../../../basics/i-document-skeleton-cached').IDocumentSkeletonSection;
24
9
  export declare function getLastColumn(page: IDocumentSkeletonPage): IDocumentSkeletonColumn;
25
10
  export declare function getLastLine(page: IDocumentSkeletonPage): IDocumentSkeletonLine | undefined;
26
11
  export declare function getLastLineByColumn(column: IDocumentSkeletonColumn): IDocumentSkeletonLine;