@univerjs/engine-render 0.6.0-alpha.0 → 0.6.0-experimental.20250212-dbe9830
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 +5582 -6082
- package/lib/types/basics/const.d.ts +1 -1
- package/lib/types/basics/index.d.ts +1 -1
- package/lib/types/basics/interfaces.d.ts +9 -0
- package/lib/types/basics/tools.d.ts +9 -17
- package/lib/types/basics/unit-convert.d.ts +1 -1
- package/lib/types/components/docs/extensions/index.d.ts +1 -1
- package/lib/types/components/docs/horizon-bar.d.ts +1 -1
- package/lib/types/components/docs/layout/block/block-error.d.ts +1 -1
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +1 -2
- package/lib/types/components/docs/layout/hyphenation/lang.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/af.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/as.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/be.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/bg.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/bn.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ca.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/cop.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/cs.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/cu.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/cy.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/da.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/de-1901.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/de-1996.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/de-ch-1901.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/el-monoton.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/el-polyton.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/en-gb.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/en-us.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/es.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/et.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/eu.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/fi.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/fr.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/fur.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ga.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/gl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/grc.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/gu.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/hi.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/hr.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/hsb.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/hu.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/hy.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ia.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/id.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/is.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/it.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ka.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/kmr.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/kn.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/la-x-classic.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/la-x-liturgic.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/la.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/lt.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/lv.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ml.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/mn-cyrl-x-lmc.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/mn-cyrl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/mr.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/mul-ethi.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/nb.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/nl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/nn.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/no.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/oc.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/or.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/pa.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/pi.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/pl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/pms.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/pt.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/rm.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ro.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ru.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sa.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sh-cyrl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sh-latn.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sk.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sr-cyrl.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/sv.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/ta.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/te.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/th.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/tk.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/tr.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/uk.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/patterns/zh-latn-pinyin.d.ts +1 -1
- package/lib/types/components/docs/layout/hyphenation/tools.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/break.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/classes.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/enhancers/utils.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/index.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/pairs.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/swap.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/tiny-inflate.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/trie-data.d.ts +1 -1
- package/lib/types/components/docs/layout/line-breaker/unicode-trie.d.ts +1 -1
- package/lib/types/components/docs/layout/model/table.d.ts +1 -1
- package/lib/types/components/docs/vertical-bar.d.ts +1 -1
- package/lib/types/components/index.d.ts +2 -3
- package/lib/types/components/sheets/column-header.d.ts +1 -1
- package/lib/types/components/sheets/extensions/background.d.ts +1 -1
- package/lib/types/components/sheets/extensions/border.d.ts +1 -1
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +1 -1
- package/lib/types/components/sheets/extensions/custom.d.ts +1 -1
- package/lib/types/components/sheets/extensions/font.d.ts +6 -6
- package/lib/types/components/sheets/extensions/index.d.ts +1 -1
- package/lib/types/components/sheets/extensions/marker.d.ts +1 -1
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +1 -1
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +1 -1
- package/lib/types/components/sheets/index.d.ts +2 -2
- package/lib/types/components/sheets/interfaces.d.ts +5 -2
- package/lib/types/components/sheets/row-header.d.ts +1 -1
- package/lib/types/components/sheets/sheet-component.d.ts +1 -1
- package/lib/types/components/sheets/{sheet-skeleton.d.ts → sheet.render-skeleton.d.ts} +51 -231
- package/lib/types/components/sheets/spreadsheet.d.ts +3 -8
- package/lib/types/components/slides/index.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/custom/custom-object.d.ts +1 -1
- package/lib/types/custom/index.d.ts +1 -1
- package/lib/types/engine.d.ts +20 -2
- package/lib/types/index.d.ts +2 -3
- package/lib/types/render-manager/render-manager.service.d.ts +2 -4
- package/lib/types/render-manager/render-unit.d.ts +20 -0
- package/lib/types/scene.d.ts +35 -8
- package/lib/types/services/render-config.d.ts +1 -1
- package/lib/types/services/render-config.service.d.ts +1 -1
- package/lib/types/shape/control.d.ts +1 -1
- package/lib/types/shape/drawing.d.ts +1 -1
- package/lib/types/shape/index.d.ts +1 -1
- package/lib/types/viewport.d.ts +9 -2
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
- package/LICENSE +0 -176
- package/lib/types/components/skeleton.d.ts +0 -13
- package/lib/types/thin-engine.d.ts +0 -32
|
@@ -15,8 +15,17 @@ export interface IObjectFullState extends ITransformState {
|
|
|
15
15
|
export interface IRect extends ISize, IOffset {
|
|
16
16
|
points: Vector2[];
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* width
|
|
20
|
+
* height
|
|
21
|
+
* scaleX
|
|
22
|
+
* scaleY
|
|
23
|
+
*/
|
|
18
24
|
export interface ISceneTransformState extends ISize, IScale {
|
|
19
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Bad design! should use Bit Flags!
|
|
28
|
+
*/
|
|
20
29
|
export declare enum TRANSFORM_CHANGE_OBSERVABLE_TYPE {
|
|
21
30
|
translate = 0,
|
|
22
31
|
resize = 1,
|
|
@@ -67,17 +67,18 @@ export declare function pxToInch(px: number): number;
|
|
|
67
67
|
export declare function getScale(parentScale: IScale): number;
|
|
68
68
|
export declare function getCellPositionByIndex(row: number, column: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[]): IPosition;
|
|
69
69
|
/**
|
|
70
|
+
* @deprecated use same function in @univerjs/core
|
|
70
71
|
* @description Get the cell position information of the specified row and column, including the position information of the cell and the merge information of the cell
|
|
71
72
|
* @param {number} row The row index of the cell
|
|
72
73
|
* @param {number} column The column index of the cell
|
|
73
74
|
* @param {number[]} rowHeightAccumulation The accumulated height of each row
|
|
74
75
|
* @param {number[]} columnWidthAccumulation The accumulated width of each column
|
|
75
|
-
* @param {ICellInfo}
|
|
76
|
+
* @param {ICellInfo} mergeDataInfo The merge information of the cell
|
|
76
77
|
* @returns {ICellWithCoord} The cell position information of the specified row and column, including the position information of the cell and the merge information of the cell
|
|
77
78
|
*/
|
|
78
|
-
|
|
79
|
+
declare function getCellWithCoordByIndexCore(row: number, column: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], mergeDataInfo: ICellInfo): ICellWithCoord;
|
|
79
80
|
/**
|
|
80
|
-
* @deprecated please use getCellWithCoordByIndexCore instead
|
|
81
|
+
* @deprecated please use getCellWithCoordByIndexCore in @univerjs/core instead
|
|
81
82
|
*/
|
|
82
83
|
declare const getCellByIndexWithMergeInfo: typeof getCellWithCoordByIndexCore;
|
|
83
84
|
export { getCellByIndexWithMergeInfo };
|
|
@@ -116,25 +117,13 @@ export declare function getSizeForDom(dom: HTMLElement): {
|
|
|
116
117
|
export declare function ptToPixel(pt: number): number;
|
|
117
118
|
export declare function pixelToPt(px: number): number;
|
|
118
119
|
/**
|
|
119
|
-
*
|
|
120
|
+
* Is cell in view ranges.
|
|
120
121
|
* @param ranges
|
|
121
122
|
* @param rowIndex
|
|
122
123
|
* @param colIndex
|
|
123
|
-
* @returns
|
|
124
|
+
* @returns boolean
|
|
124
125
|
*/
|
|
125
126
|
export declare function inViewRanges(ranges: IRange[], rowIndex: number, colIndex: number): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* 在非下方区域中
|
|
128
|
-
* @param ranges
|
|
129
|
-
* @param rowIndex
|
|
130
|
-
*/
|
|
131
|
-
export declare function inCurrentAndAboveViewRanges(ranges: IRange[], rowIndex: number): boolean;
|
|
132
|
-
/**
|
|
133
|
-
* row 在任意一个 Range 中
|
|
134
|
-
* @param ranges
|
|
135
|
-
* @param rowIndex
|
|
136
|
-
*/
|
|
137
|
-
export declare function inRowViewRanges(ranges: IRange[], rowIndex: number): boolean;
|
|
138
127
|
/**
|
|
139
128
|
* If there is an intersection in ranges to the mainRanges, extend it to the first set of ranges.
|
|
140
129
|
* @param {IRange[]} mainRanges target ranges
|
|
@@ -147,4 +136,7 @@ export declare function clampRange(range: IRange, maxRow: number, maxColumn: num
|
|
|
147
136
|
startColumn: number;
|
|
148
137
|
endColumn: number;
|
|
149
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Get system highlight color in rgb format.
|
|
141
|
+
*/
|
|
150
142
|
export declare function getSystemHighlightColor(): import('@univerjs/core').IRgbColor;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { LocaleService, Nullable } from '@univerjs/core';
|
|
1
|
+
import { LocaleService, Nullable, Skeleton } from '@univerjs/core';
|
|
2
2
|
import { IDocumentSkeletonCached, IDocumentSkeletonGlyph, IDocumentSkeletonPage, PageLayoutType } from '../../../basics/i-document-skeleton-cached';
|
|
3
3
|
import { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces';
|
|
4
4
|
import { IViewportInfo, Vector2 } from '../../../basics/vector2';
|
|
5
5
|
import { DocumentViewModel, DocumentEditArea } from '../view-model/document-view-model';
|
|
6
|
-
import { Skeleton } from '../../skeleton';
|
|
7
6
|
export declare enum DocumentSkeletonState {
|
|
8
7
|
PENDING = "pending",
|
|
9
8
|
CALCULATING = "calculating",
|