@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.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +83 -66
- package/lib/types/base-object.d.ts +7 -23
- package/lib/types/basics/cell-data.d.ts +2 -16
- package/lib/types/basics/document-node-tools.d.ts +4 -18
- package/lib/types/basics/draw.d.ts +5 -20
- package/lib/types/basics/font-cache.d.ts +4 -18
- package/lib/types/basics/i-document-skeleton-cached.d.ts +2 -16
- package/lib/types/basics/i-events.d.ts +2 -16
- package/lib/types/basics/interfaces.d.ts +5 -19
- package/lib/types/basics/path2.d.ts +2 -16
- package/lib/types/basics/position.d.ts +3 -17
- package/lib/types/basics/quick-event.d.ts +3 -17
- package/lib/types/basics/range.d.ts +2 -16
- package/lib/types/basics/text-rotation.d.ts +2 -16
- package/lib/types/basics/tools.d.ts +6 -20
- package/lib/types/basics/transform.d.ts +3 -17
- package/lib/types/basics/vector2.d.ts +2 -16
- package/lib/types/basics/viewport-subtract.d.ts +2 -16
- package/lib/types/canvas.d.ts +1 -15
- package/lib/types/components/component.d.ts +5 -19
- package/lib/types/components/docs/doc-component.d.ts +8 -23
- package/lib/types/components/docs/doc-extension.d.ts +3 -17
- package/lib/types/components/docs/document.d.ts +9 -26
- package/lib/types/components/docs/extensions/background.d.ts +4 -18
- package/lib/types/components/docs/extensions/border.d.ts +4 -18
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +4 -18
- package/lib/types/components/docs/extensions/line.d.ts +4 -18
- package/lib/types/components/docs/layout/block/paragraph/bullet-ruler.d.ts +1 -15
- package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +4 -18
- package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +9 -23
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +5 -19
- package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +3 -17
- package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +6 -20
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +6 -20
- package/lib/types/components/docs/layout/block/section.d.ts +5 -19
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +7 -22
- package/lib/types/components/docs/layout/linebreak/extensions/tab-linebreak-extension.d.ts +2 -16
- package/lib/types/components/docs/layout/linebreak/linebreaker.d.ts +2 -16
- package/lib/types/components/docs/layout/model/column.d.ts +3 -18
- package/lib/types/components/docs/layout/model/glyph.d.ts +3 -18
- package/lib/types/components/docs/layout/model/line.d.ts +2 -16
- package/lib/types/components/docs/layout/model/page.d.ts +3 -18
- package/lib/types/components/docs/layout/model/section.d.ts +3 -18
- package/lib/types/components/docs/layout/tools.d.ts +7 -22
- package/lib/types/components/docs/liquid.d.ts +2 -17
- package/lib/types/components/docs/text-selection/convert-cursor.d.ts +6 -20
- package/lib/types/components/docs/text-selection/text-range.d.ts +10 -25
- package/lib/types/components/docs/text-selection/text-selection-render-manager.d.ts +12 -27
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +2 -17
- package/lib/types/components/docs/view-model/document-view-model.d.ts +8 -23
- package/lib/types/components/extension.d.ts +5 -20
- package/lib/types/components/sheets/column-header.d.ts +5 -19
- package/lib/types/components/sheets/extensions/background.d.ts +4 -18
- package/lib/types/components/sheets/extensions/border.d.ts +4 -18
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/font.d.ts +4 -18
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +4 -18
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +4 -18
- package/lib/types/components/sheets/interfaces.d.ts +4 -18
- package/lib/types/components/sheets/row-header.d.ts +5 -19
- package/lib/types/components/sheets/sheet-component.d.ts +6 -20
- package/lib/types/components/sheets/sheet-skeleton.d.ts +8 -23
- package/lib/types/components/sheets/spreadsheet.d.ts +8 -22
- package/lib/types/components/skeleton.d.ts +2 -16
- package/lib/types/components/slides/slide.d.ts +5 -20
- package/lib/types/custom/custom-object.d.ts +3 -17
- package/lib/types/engine.d.ts +7 -19
- package/lib/types/group.d.ts +4 -19
- package/lib/types/layer.d.ts +4 -18
- package/lib/types/render-engine.d.ts +4 -18
- package/lib/types/render-manager.service.d.ts +9 -23
- package/lib/types/scene-viewer.d.ts +7 -21
- package/lib/types/scene.d.ts +14 -29
- package/lib/types/scene.input-manager.d.ts +3 -17
- package/lib/types/scene.transformer.d.ts +5 -20
- package/lib/types/scroll-timer.d.ts +4 -18
- package/lib/types/services/object-transform-manager.service.d.ts +4 -18
- package/lib/types/shape/base-scroll-bar.d.ts +7 -21
- package/lib/types/shape/circle.d.ts +3 -18
- package/lib/types/shape/path.d.ts +3 -18
- package/lib/types/shape/picture.d.ts +4 -19
- package/lib/types/shape/rect.d.ts +3 -18
- package/lib/types/shape/regular-polygon.d.ts +5 -20
- package/lib/types/shape/rich-text.d.ts +4 -18
- package/lib/types/shape/scroll-bar.d.ts +6 -21
- package/lib/types/shape/shape.d.ts +5 -19
- package/lib/types/thin-engine.d.ts +6 -21
- package/lib/types/thin-scene.d.ts +8 -24
- package/lib/types/viewport.d.ts +9 -25
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { IDocumentRenderConfig, IScale, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Registry } from '@univerjs/core';
|
|
18
|
-
import type { BaseObject } from '../base-object';
|
|
19
|
-
import type { Vector2 } from '../basics/vector2';
|
|
20
|
-
import type { UniverRenderingContext } from '../context';
|
|
1
|
+
import { UniverRenderingContext } from '../context';
|
|
2
|
+
import { Vector2 } from '../basics/vector2';
|
|
3
|
+
import { BaseObject } from '../base-object';
|
|
4
|
+
import { IDocumentRenderConfig, IScale, Nullable, Registry } from '@univerjs/core';
|
|
5
|
+
|
|
21
6
|
export interface IExtensionConfig {
|
|
22
7
|
originTranslate?: Vector2;
|
|
23
8
|
spanStartPoint?: Vector2;
|
|
@@ -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 { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
17
|
-
import type { UniverRenderingContext } from '../../context';
|
|
18
|
-
import type { ColumnHeaderLayout } from './extensions/column-header-layout';
|
|
1
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
19
2
|
import { SpreadsheetHeader } from './sheet-component';
|
|
20
|
-
import
|
|
3
|
+
import { ColumnHeaderLayout } from './extensions/column-header-layout';
|
|
4
|
+
import { UniverRenderingContext } from '../../context';
|
|
5
|
+
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
6
|
+
|
|
21
7
|
export declare class SpreadsheetColumnHeader extends SpreadsheetHeader {
|
|
22
8
|
private _columnHeaderLayoutExtension;
|
|
23
9
|
constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
|
|
@@ -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 { IRange, IScale } from '@univerjs/core';
|
|
17
|
-
import type { UniverRenderingContext } from '../../../context';
|
|
18
|
-
import type { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
19
1
|
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class Background extends SheetExtension {
|
|
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 { IRange, IScale } from '@univerjs/core';
|
|
17
|
-
import type { UniverRenderingContext } from '../../../context';
|
|
18
|
-
import type { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
19
1
|
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class Border extends SheetExtension {
|
|
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 { UniverRenderingContext } from '../../../context';
|
|
18
|
-
import type { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
19
1
|
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IScale } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class ColumnHeaderLayout extends SheetExtension {
|
|
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 { IRange, IScale } from '@univerjs/core';
|
|
17
|
-
import type { UniverRenderingContext } from '../../../context';
|
|
18
|
-
import { type SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
19
1
|
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export interface ISheetFontRenderExtension {
|
|
21
7
|
fontRenderExtension?: {
|
|
22
8
|
leftOffset?: 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 { UniverRenderingContext } from '../../../context';
|
|
18
|
-
import type { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
19
1
|
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IScale } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class RowHeaderLayout extends SheetExtension {
|
|
21
7
|
uKey: string;
|
|
22
8
|
Z_INDEX: number;
|
|
@@ -1,27 +1,13 @@
|
|
|
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 { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
17
2
|
import { ComponentExtension } from '../../extension';
|
|
18
|
-
import
|
|
3
|
+
import { IRange } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export declare enum SHEET_EXTENSION_TYPE {
|
|
20
6
|
GRID = 0
|
|
21
7
|
}
|
|
22
8
|
export declare class SheetExtension extends ComponentExtension<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> {
|
|
23
9
|
type: SHEET_EXTENSION_TYPE;
|
|
24
|
-
getCellIndex(rowIndex: number, columnIndex: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], dataMergeCache: IRange[]): import(
|
|
10
|
+
getCellIndex(rowIndex: number, columnIndex: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], dataMergeCache: IRange[]): import('@univerjs/core').ISelectionCellWithCoord;
|
|
25
11
|
isRenderDiffRangesByCell(range: IRange, diffRanges?: IRange[]): boolean;
|
|
26
12
|
isRenderDiffRangesByColumn(curStartColumn: number, curEndColumn: number, diffRanges?: IRange[]): boolean;
|
|
27
13
|
isRenderDiffRangesByRow(curStartRow: number, curEndRow: number, diffRanges?: IRange[]): boolean;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
17
|
-
import type { BORDER_TYPE } from '../../basics/const';
|
|
18
|
-
import type { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
1
|
+
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
2
|
+
import { BORDER_TYPE } from '../../basics/const';
|
|
3
|
+
import { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
export interface BorderCache {
|
|
20
6
|
[key: string]: BorderCacheItem | {};
|
|
21
7
|
}
|
|
@@ -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 { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
17
|
-
import type { UniverRenderingContext } from '../../context';
|
|
18
|
-
import type { RowHeaderLayout } from './extensions/row-header-layout';
|
|
1
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
19
2
|
import { SpreadsheetHeader } from './sheet-component';
|
|
20
|
-
import
|
|
3
|
+
import { RowHeaderLayout } from './extensions/row-header-layout';
|
|
4
|
+
import { UniverRenderingContext } from '../../context';
|
|
5
|
+
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
6
|
+
|
|
21
7
|
export declare class SpreadsheetRowHeader extends SpreadsheetHeader {
|
|
22
8
|
private _rowHeaderLayoutExtension;
|
|
23
9
|
constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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, Nullable } from '@univerjs/core';
|
|
17
|
-
import type { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
18
|
-
import type { UniverRenderingContext } from '../../context';
|
|
1
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
2
|
+
import { SHEET_EXTENSION_TYPE } from './extensions/sheet-extension';
|
|
19
3
|
import { RenderComponent } from '../component';
|
|
20
|
-
import
|
|
21
|
-
import
|
|
4
|
+
import { UniverRenderingContext } from '../../context';
|
|
5
|
+
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
6
|
+
import { IRange, Nullable } from '@univerjs/core';
|
|
7
|
+
|
|
22
8
|
export declare class SheetComponent extends RenderComponent<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> {
|
|
23
9
|
private _skeleton?;
|
|
24
10
|
constructor(oKey: string, _skeleton?: SpreadsheetSkeleton | undefined);
|
|
@@ -1,24 +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 { ICellData, IPaddingData, IRange, ISelectionCellWithCoord, ITextRotation, IWorksheetData, Nullable, Styles, Worksheet } from '@univerjs/core';
|
|
17
|
-
import { BooleanNumber, DocumentDataModel, HorizontalAlign, IContextService, LocaleService, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
18
|
-
import type { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
|
|
19
|
-
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
1
|
+
import { IStylesCache } from './interfaces';
|
|
20
2
|
import { Skeleton } from '../skeleton';
|
|
21
|
-
import
|
|
3
|
+
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
4
|
+
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
|
|
5
|
+
import { ICellData, IPaddingData, IRange, ISelectionCellWithCoord, ITextRotation, IWorksheetData, Nullable, Styles, Worksheet, BooleanNumber, DocumentDataModel, HorizontalAlign, IContextService, LocaleService, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
6
|
+
|
|
22
7
|
/**
|
|
23
8
|
* Obtain the height and width of a cell's text, taking into account scenarios with rotated text.
|
|
24
9
|
* @param documentSkeleton Data of the document's ViewModel
|
|
@@ -243,9 +228,9 @@ export declare class SpreadsheetSkeleton extends Skeleton {
|
|
|
243
228
|
endY: number;
|
|
244
229
|
startColumn: number;
|
|
245
230
|
endColumn: number;
|
|
246
|
-
rangeType?: import(
|
|
247
|
-
startAbsoluteRefType?: import(
|
|
248
|
-
endAbsoluteRefType?: import(
|
|
231
|
+
rangeType?: import('@univerjs/core').RANGE_TYPE | undefined;
|
|
232
|
+
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
|
|
233
|
+
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType | undefined;
|
|
249
234
|
startRow: number;
|
|
250
235
|
endRow: number;
|
|
251
236
|
};
|
|
@@ -1,26 +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 { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
17
|
-
import type { UniverRenderingContext } from '../../context';
|
|
18
|
-
import { Documents } from '../docs/document';
|
|
19
|
-
import type { Background } from './extensions/background';
|
|
20
|
-
import type { Border } from './extensions/border';
|
|
21
|
-
import type { Font } from './extensions/font';
|
|
1
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
22
2
|
import { SheetComponent } from './sheet-component';
|
|
23
|
-
import
|
|
3
|
+
import { Font } from './extensions/font';
|
|
4
|
+
import { Border } from './extensions/border';
|
|
5
|
+
import { Background } from './extensions/background';
|
|
6
|
+
import { Documents } from '../docs/document';
|
|
7
|
+
import { UniverRenderingContext } from '../../context';
|
|
8
|
+
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
9
|
+
|
|
24
10
|
export declare class Spreadsheet extends SheetComponent {
|
|
25
11
|
private _allowCache;
|
|
26
12
|
private _backgroundExtension;
|
|
@@ -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 { IFontLocale } from '../basics/interfaces';
|
|
16
2
|
import { Disposable, LocaleService } from '@univerjs/core';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
export declare class Skeleton extends Disposable {
|
|
19
5
|
protected readonly _localService: LocaleService;
|
|
20
6
|
private _fontLocale;
|
|
@@ -1,23 +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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import { Observable } from '@univerjs/core';
|
|
18
|
-
import type { UniverRenderingContext } from '../../context';
|
|
19
|
-
import type { Scene } from '../../scene';
|
|
20
1
|
import { SceneViewer } from '../../scene-viewer';
|
|
2
|
+
import { Scene } from '../../scene';
|
|
3
|
+
import { UniverRenderingContext } from '../../context';
|
|
4
|
+
import { Nullable, Observable } from '@univerjs/core';
|
|
5
|
+
|
|
21
6
|
export declare enum SLIDE_NAVIGATION_KEY {
|
|
22
7
|
LEFT = "__slideNavigationLeft__",
|
|
23
8
|
RIGHT = "__slideNavigationRight__"
|
|
@@ -28,7 +13,7 @@ export declare class Slide extends SceneViewer {
|
|
|
28
13
|
activeFirstPage(): void;
|
|
29
14
|
addPage(scene: Scene): void;
|
|
30
15
|
changePage(id?: string): void;
|
|
31
|
-
hasPage(key: string): import(
|
|
16
|
+
hasPage(key: string): import('../../thin-scene').ThinScene | undefined;
|
|
32
17
|
addNavigation(): void;
|
|
33
18
|
removeNavigation(): void;
|
|
34
19
|
enableNav(): void;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { UniverRenderingContext } from '../context';
|
|
2
|
+
import { IViewportBound, Vector2 } from '../basics/vector2';
|
|
16
3
|
import { BaseObject } from '../base-object';
|
|
17
|
-
|
|
18
|
-
import type { UniverRenderingContext } from '../context';
|
|
4
|
+
|
|
19
5
|
export declare class CustomObject extends BaseObject {
|
|
20
6
|
private _render;
|
|
21
7
|
private _isHitCustom?;
|
package/lib/types/engine.d.ts
CHANGED
|
@@ -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 { Observable } from '@univerjs/core';
|
|
17
|
-
import type { CURSOR_TYPE } from './basics/const';
|
|
18
|
-
import { Canvas, type CanvasRenderMode } from './canvas';
|
|
19
|
-
import type { Scene } from './scene';
|
|
20
1
|
import { ThinEngine } from './thin-engine';
|
|
2
|
+
import { Scene } from './scene';
|
|
3
|
+
import { Canvas, CanvasRenderMode } from './canvas';
|
|
4
|
+
import { CURSOR_TYPE } from './basics/const';
|
|
5
|
+
import { Observable } from '@univerjs/core';
|
|
6
|
+
|
|
21
7
|
export declare class Engine extends ThinEngine<Scene> {
|
|
22
8
|
renderEvenInBackground: boolean;
|
|
23
9
|
/**
|
|
@@ -37,6 +23,7 @@ export declare class Engine extends ThinEngine<Scene> {
|
|
|
37
23
|
private _requestNewFrameHandler;
|
|
38
24
|
private _frameId;
|
|
39
25
|
private _usingSafari;
|
|
26
|
+
private _resizeObserver;
|
|
40
27
|
private _fps;
|
|
41
28
|
private _deltaTime;
|
|
42
29
|
private _performanceMonitor;
|
|
@@ -115,4 +102,5 @@ export declare class Engine extends ThinEngine<Scene> {
|
|
|
115
102
|
private _getWheelEventName;
|
|
116
103
|
private _getPassive;
|
|
117
104
|
private _getPointerType;
|
|
105
|
+
private _matchMediaHandler;
|
|
118
106
|
}
|
package/lib/types/group.d.ts
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { UniverRenderingContext } from './context';
|
|
2
|
+
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
3
|
+
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
16
4
|
import { BaseObject } from './base-object';
|
|
17
|
-
|
|
18
|
-
import { RENDER_CLASS_TYPE } from './basics/const';
|
|
19
|
-
import type { IViewportBound, Vector2 } from './basics/vector2';
|
|
20
|
-
import type { UniverRenderingContext } from './context';
|
|
5
|
+
|
|
21
6
|
export declare class Group extends BaseObject {
|
|
22
7
|
private _objects;
|
|
23
8
|
constructor(key?: string, ...objects: BaseObject[]);
|
package/lib/types/layer.d.ts
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Disposable } from '@univerjs/core';
|
|
1
|
+
import { ThinScene } from './thin-scene';
|
|
2
|
+
import { UniverRenderingContext } from './context';
|
|
17
3
|
import { BaseObject } from './base-object';
|
|
18
|
-
import
|
|
19
|
-
|
|
4
|
+
import { Disposable } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class Layer extends Disposable {
|
|
21
7
|
private _scene;
|
|
22
8
|
private _zIndex;
|
|
@@ -1,25 +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 { Plugin, PluginType } from '@univerjs/core';
|
|
17
|
-
import { Injector } from '@wendellhu/redi';
|
|
18
1
|
import { Engine } from './engine';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { Plugin, PluginType } from '@univerjs/core';
|
|
4
|
+
|
|
19
5
|
/**
|
|
20
6
|
* The global rendering engine.
|
|
21
7
|
*/
|
|
22
|
-
export declare const IRenderingEngine: import(
|
|
8
|
+
export declare const IRenderingEngine: import('@wendellhu/redi').IdentifierDecorator<Engine>;
|
|
23
9
|
export declare class UniverRenderEnginePlugin extends Plugin {
|
|
24
10
|
readonly _injector: Injector;
|
|
25
11
|
static type: PluginType;
|