@univerjs/engine-render 0.10.14 → 0.11.0
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/es/index.js
CHANGED
|
@@ -43195,7 +43195,7 @@ function zy(r, t, e, a, s) {
|
|
|
43195
43195
|
var f;
|
|
43196
43196
|
const { startIndex: n, endIndex: i, children: o } = a, l = (f = e.getTableByStartIndex(n)) == null ? void 0 : f.tableSource;
|
|
43197
43197
|
if (l == null)
|
|
43198
|
-
|
|
43198
|
+
return console.warn("Table not found when creating table skeleton"), null;
|
|
43199
43199
|
const u = e6(n, i, l);
|
|
43200
43200
|
let d = 0, c = 0;
|
|
43201
43201
|
for (const m of o) {
|
|
@@ -43255,7 +43255,10 @@ function Dy(r, t, e, a, s, n) {
|
|
|
43255
43255
|
var f;
|
|
43256
43256
|
const i = [], { startIndex: o, endIndex: l, children: u } = a, d = (f = e.getTableByStartIndex(o)) == null ? void 0 : f.tableSource;
|
|
43257
43257
|
if (d == null)
|
|
43258
|
-
|
|
43258
|
+
return console.warn("Table not found when creating table skeletons"), {
|
|
43259
|
+
skeTables: i,
|
|
43260
|
+
fromCurrentPage: !1
|
|
43261
|
+
};
|
|
43259
43262
|
const c = d.tableRows[0].repeatHeaderRow === t1.TRUE, g = e6(o, l, d), h = {
|
|
43260
43263
|
rowTop: 0,
|
|
43261
43264
|
tableWidth: 0,
|
package/lib/index.js
CHANGED
|
@@ -43195,7 +43195,7 @@ function zy(r, t, e, a, s) {
|
|
|
43195
43195
|
var f;
|
|
43196
43196
|
const { startIndex: n, endIndex: i, children: o } = a, l = (f = e.getTableByStartIndex(n)) == null ? void 0 : f.tableSource;
|
|
43197
43197
|
if (l == null)
|
|
43198
|
-
|
|
43198
|
+
return console.warn("Table not found when creating table skeleton"), null;
|
|
43199
43199
|
const u = e6(n, i, l);
|
|
43200
43200
|
let d = 0, c = 0;
|
|
43201
43201
|
for (const m of o) {
|
|
@@ -43255,7 +43255,10 @@ function Dy(r, t, e, a, s, n) {
|
|
|
43255
43255
|
var f;
|
|
43256
43256
|
const i = [], { startIndex: o, endIndex: l, children: u } = a, d = (f = e.getTableByStartIndex(o)) == null ? void 0 : f.tableSource;
|
|
43257
43257
|
if (d == null)
|
|
43258
|
-
|
|
43258
|
+
return console.warn("Table not found when creating table skeletons"), {
|
|
43259
|
+
skeTables: i,
|
|
43260
|
+
fromCurrentPage: !1
|
|
43261
|
+
};
|
|
43259
43262
|
const c = d.tableRows[0].repeatHeaderRow === t1.TRUE, g = e6(o, l, d), h = {
|
|
43260
43263
|
rowTop: 0,
|
|
43261
43264
|
tableWidth: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ITable } from '@univerjs/core';
|
|
1
|
+
import { ITable, Nullable } from '@univerjs/core';
|
|
2
2
|
import { IDocumentSkeletonPage, IDocumentSkeletonTable, IParagraphList, ISectionBreakConfig } from '../../../../basics';
|
|
3
3
|
import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
4
4
|
import { DocumentViewModel } from '../../view-model/document-view-model';
|
|
5
5
|
import { ILayoutContext } from '../tools';
|
|
6
|
-
export declare function createTableSkeleton(ctx: ILayoutContext, curPage: IDocumentSkeletonPage, viewModel: DocumentViewModel, tableNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig): IDocumentSkeletonTable
|
|
6
|
+
export declare function createTableSkeleton(ctx: ILayoutContext, curPage: IDocumentSkeletonPage, viewModel: DocumentViewModel, tableNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig): Nullable<IDocumentSkeletonTable>;
|
|
7
7
|
export declare function rollbackListCache(listLevel: Map<string, IParagraphList[][]>, table: DataStreamTreeNode): void;
|
|
8
8
|
export interface ISlicedTableSkeletonParams {
|
|
9
9
|
skeTables: IDocumentSkeletonTable[];
|