@univerjs/engine-render 0.1.4 → 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 (94) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +83 -66
  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/font.d.ts +4 -18
  60. package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
  61. package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
  62. package/lib/types/components/sheets/interfaces.d.ts +4 -18
  63. package/lib/types/components/sheets/row-header.d.ts +5 -19
  64. package/lib/types/components/sheets/sheet-component.d.ts +6 -20
  65. package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
  66. package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
  67. package/lib/types/components/skeleton.d.ts +2 -16
  68. package/lib/types/components/slides/slide.d.ts +5 -20
  69. package/lib/types/custom/custom-object.d.ts +3 -17
  70. package/lib/types/engine.d.ts +7 -19
  71. package/lib/types/group.d.ts +4 -19
  72. package/lib/types/layer.d.ts +4 -18
  73. package/lib/types/render-engine.d.ts +4 -18
  74. package/lib/types/render-manager.service.d.ts +9 -23
  75. package/lib/types/scene-viewer.d.ts +7 -21
  76. package/lib/types/scene.d.ts +14 -29
  77. package/lib/types/scene.input-manager.d.ts +3 -17
  78. package/lib/types/scene.transformer.d.ts +5 -20
  79. package/lib/types/scroll-timer.d.ts +4 -18
  80. package/lib/types/services/object-transform-manager.service.d.ts +4 -18
  81. package/lib/types/shape/base-scroll-bar.d.ts +7 -21
  82. package/lib/types/shape/circle.d.ts +3 -18
  83. package/lib/types/shape/path.d.ts +3 -18
  84. package/lib/types/shape/picture.d.ts +4 -19
  85. package/lib/types/shape/rect.d.ts +3 -18
  86. package/lib/types/shape/regular-polygon.d.ts +5 -20
  87. package/lib/types/shape/rich-text.d.ts +4 -18
  88. package/lib/types/shape/scroll-bar.d.ts +6 -21
  89. package/lib/types/shape/shape.d.ts +5 -19
  90. package/lib/types/thin-engine.d.ts +6 -21
  91. package/lib/types/thin-scene.d.ts +8 -24
  92. package/lib/types/viewport.d.ts +9 -25
  93. package/lib/umd/index.js +1 -1
  94. package/package.json +6 -6
@@ -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 { Nullable } from '@univerjs/core';
17
1
  import { Vector2 } from './vector2';
2
+ import { Nullable } from '@univerjs/core';
3
+
18
4
  export declare const INITIAL_Path2: Vector2[];
19
5
  export declare class Path2 {
20
6
  private _lines;
@@ -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 { BaseObject } from '../base-object';
17
- import type { IBoundRect } from './vector2';
1
+ import { IBoundRect } from './vector2';
2
+ import { BaseObject } from '../base-object';
3
+
18
4
  export declare function getOffsetRectForDom(ele: HTMLElement): {
19
5
  top: number;
20
6
  left: number;
@@ -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 { BaseObject } from '../base-object';
17
- import type { IMouseEvent, IPointerEvent } from './i-events';
1
+ import { IMouseEvent, IPointerEvent } from './i-events';
2
+ import { BaseObject } from '../base-object';
3
+
18
4
  export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void;
@@ -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 { ITextRangeParam } from '@univerjs/core';
1
+ import { ITextRangeParam } from '@univerjs/core';
2
+
17
3
  export interface ITextSelectionStyle {
18
4
  strokeWidth: number;
19
5
  stroke: 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 ITextRotation } from '@univerjs/core';
1
+ import { ITextRotation } from '@univerjs/core';
2
+
17
3
  export declare const VERTICAL_ROTATE_ANGLE = 90;
18
4
  export declare function convertTextRotation(textRotation?: ITextRotation): {
19
5
  centerAngle: number;
@@ -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 { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core';
17
- import type { IBoundRectNoAngle } from './vector2';
1
+ import { IBoundRectNoAngle } from './vector2';
2
+ import { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core';
3
+
18
4
  export declare const getColor: (RgbArray: number[], opacity?: number) => string;
19
5
  export declare const toPx: (num: number | string, ReferenceValue: Nullable<number>) => number;
20
6
  /**
@@ -108,9 +94,9 @@ export declare function mergeInfoOffset(mergeInfo: IRangeWithCoord, offsetX: num
108
94
  endY: number;
109
95
  startColumn: number;
110
96
  endColumn: number;
111
- rangeType?: import("@univerjs/core").RANGE_TYPE | undefined;
112
- startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
113
- endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
97
+ rangeType?: import('@univerjs/core').RANGE_TYPE | undefined;
98
+ startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
99
+ endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
114
100
  startRow: number;
115
101
  endRow: number;
116
102
  };
@@ -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 { ITransformState } from '@univerjs/core';
17
- import type { IRect } from './interfaces';
18
1
  import { Vector2 } from './vector2';
2
+ import { IRect } from './interfaces';
3
+ import { ITransformState } from '@univerjs/core';
4
+
19
5
  export declare const INITIAL_MATRIX: number[];
20
6
  export declare class Transform {
21
7
  dirty: boolean;
@@ -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 { DeepImmutable, FloatArray } from './i-events';
1
+ import { DeepImmutable, FloatArray } from './i-events';
2
+
17
3
  export interface IPoint {
18
4
  x: number;
19
5
  y: 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
- import type { IRange } from '@univerjs/core';
1
+ import { IRange } from '@univerjs/core';
2
+
17
3
  export declare function subtractViewportRange(range1: IRange, range2: IRange): IRange[];
@@ -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
1
  import { UniverRenderingContext } from './context';
2
+
17
3
  /**
18
4
  * canvas render mode
19
5
  */
@@ -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 { IDisposable } from '@wendellhu/redi';
1
+ import { ComponentExtension } from './extension';
2
+ import { UniverRenderingContext } from '../context';
3
+ import { IViewportBound } from '../basics/vector2';
17
4
  import { BaseObject } from '../base-object';
18
- import type { IViewportBound } from '../basics/vector2';
19
- import type { UniverRenderingContext } from '../context';
20
- import type { ComponentExtension } from './extension';
5
+ import { IDisposable } from '@wendellhu/redi';
6
+
21
7
  export declare class RenderComponent<T, U, V> extends BaseObject {
22
8
  private _extensions;
23
9
  get extensions(): Map<string, ComponentExtension<T, U, V>>;
@@ -1,27 +1,12 @@
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 { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached';
18
- import { PageLayoutType } from '../../basics/i-document-skeleton-cached';
19
- import type { INodeInfo } from '../../basics/interfaces';
20
- import type { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
21
- import type { UniverRenderingContext } from '../../context';
1
+ import { DocumentSkeleton } from './layout/doc-skeleton';
2
+ import { DOCS_EXTENSION_TYPE } from './doc-extension';
22
3
  import { RenderComponent } from '../component';
23
- import type { DOCS_EXTENSION_TYPE } from './doc-extension';
24
- import type { DocumentSkeleton } from './layout/doc-skeleton';
4
+ import { UniverRenderingContext } from '../../context';
5
+ import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
6
+ import { INodeInfo } from '../../basics/interfaces';
7
+ import { IDocumentSkeletonGlyph, IDocumentSkeletonLine, PageLayoutType } from '../../basics/i-document-skeleton-cached';
8
+ import { Nullable } from '@univerjs/core';
9
+
25
10
  export declare class DocComponent extends RenderComponent<IDocumentSkeletonGlyph | IDocumentSkeletonLine, DOCS_EXTENSION_TYPE, IBoundRectNoAngle[]> {
26
11
  private _skeleton?;
27
12
  pageMarginLeft: number;
@@ -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 { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached';
17
- import type { IBoundRectNoAngle } from '../../basics/vector2';
18
1
  import { ComponentExtension } from '../extension';
2
+ import { IBoundRectNoAngle } from '../../basics/vector2';
3
+ import { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached';
4
+
19
5
  export declare enum DOCS_EXTENSION_TYPE {
20
6
  SPAN = 0,
21
7
  LINE = 1
@@ -1,29 +1,12 @@
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 './extensions';
17
- import type { Nullable } from '@univerjs/core';
18
- import { Observable } from '@univerjs/core';
19
- import type { IDocumentSkeletonPage } from '../../basics/i-document-skeleton-cached';
20
- import { PageLayoutType } from '../../basics/i-document-skeleton-cached';
21
- import type { Transform } from '../../basics/transform';
22
- import type { IViewportBound } from '../../basics/vector2';
23
- import type { UniverRenderingContext } from '../../context';
24
- import type { Scene } from '../../scene';
1
+ import { DocumentSkeleton } from './layout/doc-skeleton';
25
2
  import { DocComponent } from './doc-component';
26
- import type { DocumentSkeleton } from './layout/doc-skeleton';
3
+ import { Scene } from '../../scene';
4
+ import { UniverRenderingContext } from '../../context';
5
+ import { IViewportBound } from '../../basics/vector2';
6
+ import { Transform } from '../../basics/transform';
7
+ import { IDocumentSkeletonPage, PageLayoutType } from '../../basics/i-document-skeleton-cached';
8
+ import { Nullable, Observable } from '@univerjs/core';
9
+
27
10
  interface IPageMarginLayout {
28
11
  pageMarginLeft: number;
29
12
  pageMarginTop: number;
@@ -54,7 +37,7 @@ export declare class Documents extends DocComponent {
54
37
  static create(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig): Documents;
55
38
  setConfig(config?: IDocumentsConfig): void;
56
39
  getOffsetConfig(): IDocumentOffsetConfig;
57
- getEngine(): Nullable<import("../../thin-engine").ThinEngine<Scene>>;
40
+ getEngine(): Nullable<import('../../thin-engine').ThinEngine<Scene>>;
58
41
  draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
59
42
  changeSkeleton(newSkeleton: DocumentSkeleton): this;
60
43
  protected _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
@@ -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 Background 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 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[];