@univerjs/engine-render 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023
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
|
@@ -43604,7 +43604,7 @@ function Ly(r, t, e, a, s) {
|
|
|
43604
43604
|
var f;
|
|
43605
43605
|
const { startIndex: n, endIndex: i, children: o } = a, l = (f = e.getTableByStartIndex(n)) == null ? void 0 : f.tableSource;
|
|
43606
43606
|
if (l == null)
|
|
43607
|
-
|
|
43607
|
+
return console.warn("Table not found when creating table skeleton"), null;
|
|
43608
43608
|
const u = e6(n, i, l);
|
|
43609
43609
|
let d = 0, c = 0;
|
|
43610
43610
|
for (const m of o) {
|
|
@@ -43664,7 +43664,10 @@ function Ny(r, t, e, a, s, n) {
|
|
|
43664
43664
|
var f;
|
|
43665
43665
|
const i = [], { startIndex: o, endIndex: l, children: u } = a, d = (f = e.getTableByStartIndex(o)) == null ? void 0 : f.tableSource;
|
|
43666
43666
|
if (d == null)
|
|
43667
|
-
|
|
43667
|
+
return console.warn("Table not found when creating table skeletons"), {
|
|
43668
|
+
skeTables: i,
|
|
43669
|
+
fromCurrentPage: !1
|
|
43670
|
+
};
|
|
43668
43671
|
const c = d.tableRows[0].repeatHeaderRow === t1.TRUE, g = e6(o, l, d), h = {
|
|
43669
43672
|
rowTop: 0,
|
|
43670
43673
|
tableWidth: 0,
|
package/lib/index.js
CHANGED
|
@@ -43604,7 +43604,7 @@ function Ly(r, t, e, a, s) {
|
|
|
43604
43604
|
var f;
|
|
43605
43605
|
const { startIndex: n, endIndex: i, children: o } = a, l = (f = e.getTableByStartIndex(n)) == null ? void 0 : f.tableSource;
|
|
43606
43606
|
if (l == null)
|
|
43607
|
-
|
|
43607
|
+
return console.warn("Table not found when creating table skeleton"), null;
|
|
43608
43608
|
const u = e6(n, i, l);
|
|
43609
43609
|
let d = 0, c = 0;
|
|
43610
43610
|
for (const m of o) {
|
|
@@ -43664,7 +43664,10 @@ function Ny(r, t, e, a, s, n) {
|
|
|
43664
43664
|
var f;
|
|
43665
43665
|
const i = [], { startIndex: o, endIndex: l, children: u } = a, d = (f = e.getTableByStartIndex(o)) == null ? void 0 : f.tableSource;
|
|
43666
43666
|
if (d == null)
|
|
43667
|
-
|
|
43667
|
+
return console.warn("Table not found when creating table skeletons"), {
|
|
43668
|
+
skeTables: i,
|
|
43669
|
+
fromCurrentPage: !1
|
|
43670
|
+
};
|
|
43668
43671
|
const c = d.tableRows[0].repeatHeaderRow === t1.TRUE, g = e6(o, l, d), h = {
|
|
43669
43672
|
rowTop: 0,
|
|
43670
43673
|
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[];
|