@univerjs/engine-render 0.22.1 → 0.23.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/cjs/index.js CHANGED
@@ -5474,36 +5474,38 @@ var Custom = class extends SheetExtension {
5474
5474
  if (!worksheet) return;
5475
5475
  const mergeCellRendered = /* @__PURE__ */ new Set();
5476
5476
  const subUnitId = worksheet.getSheetId();
5477
- _univerjs_core.Range.foreach(rowColumnSegment, (row, col) => {
5478
- if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
5479
- let primaryWithCoord = skeleton.getCellWithCoordByIndex(row, col, false);
5480
- const { mergeInfo } = primaryWithCoord;
5481
- let cellData = worksheet.getCell(row, col);
5482
- if (primaryWithCoord.isMerged) cellData = worksheet.getCell(mergeInfo.startRow, mergeInfo.startColumn);
5483
- if (!(cellData === null || cellData === void 0 ? void 0 : cellData.customRender)) return;
5484
- if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
5485
- if (primaryWithCoord.isMerged || primaryWithCoord.isMergedMainCell) {
5486
- const rangeStr = stringifyRange$1(mergeInfo);
5487
- if (mergeCellRendered.has(rangeStr)) return;
5488
- mergeCellRendered.add(rangeStr);
5489
- }
5490
- if (primaryWithCoord.isMerged) primaryWithCoord = skeleton.getCellWithCoordByIndex(mergeInfo.startRow, mergeInfo.startColumn, false);
5491
- const renderInfo = {
5492
- data: cellData,
5493
- style: skeleton.getStyles().getStyleByCell(cellData),
5494
- primaryWithCoord,
5495
- subUnitId,
5496
- row,
5497
- col,
5498
- worksheet,
5499
- unitId: worksheet.unitId
5500
- };
5501
- const customRender = cellData.customRender.sort(_univerjs_core.sortRules);
5502
- ctx.save();
5503
- customRender.forEach((item) => {
5504
- item.drawWith(ctx, renderInfo, skeleton, this.parent);
5477
+ ((diffRanges === null || diffRanges === void 0 ? void 0 : diffRanges.length) ? diffRanges : [rowColumnSegment]).forEach((range) => {
5478
+ _univerjs_core.Range.foreach(range, (row, col) => {
5479
+ if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
5480
+ let primaryWithCoord = skeleton.getCellWithCoordByIndex(row, col, false);
5481
+ const { mergeInfo } = primaryWithCoord;
5482
+ let cellData = worksheet.getCell(row, col);
5483
+ if (primaryWithCoord.isMerged) cellData = worksheet.getCell(mergeInfo.startRow, mergeInfo.startColumn);
5484
+ if (!(cellData === null || cellData === void 0 ? void 0 : cellData.customRender)) return;
5485
+ if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
5486
+ if (primaryWithCoord.isMerged || primaryWithCoord.isMergedMainCell) {
5487
+ const rangeStr = stringifyRange$1(mergeInfo);
5488
+ if (mergeCellRendered.has(rangeStr)) return;
5489
+ mergeCellRendered.add(rangeStr);
5490
+ }
5491
+ if (primaryWithCoord.isMerged) primaryWithCoord = skeleton.getCellWithCoordByIndex(mergeInfo.startRow, mergeInfo.startColumn, false);
5492
+ const renderInfo = {
5493
+ data: cellData,
5494
+ style: skeleton.getStyles().getStyleByCell(cellData),
5495
+ primaryWithCoord,
5496
+ subUnitId,
5497
+ row,
5498
+ col,
5499
+ worksheet,
5500
+ unitId: worksheet.unitId
5501
+ };
5502
+ const customRender = cellData.customRender.sort(_univerjs_core.sortRules);
5503
+ ctx.save();
5504
+ customRender.forEach((item) => {
5505
+ item.drawWith(ctx, renderInfo, skeleton, this.parent);
5506
+ });
5507
+ ctx.restore();
5505
5508
  });
5506
- ctx.restore();
5507
5509
  });
5508
5510
  }
5509
5511
  };
@@ -17294,54 +17296,58 @@ let SpreadsheetSkeleton = class SpreadsheetSkeleton extends _univerjs_core.Sheet
17294
17296
  * @param vpInfo viewBounds
17295
17297
  */
17296
17298
  setStylesCache(vpInfo) {
17299
+ var _vpInfo$diffBounds, _vpInfo$diffCacheBoun, _vpInfo$diffCacheBoun2, _vpInfo$diffCacheBoun3;
17297
17300
  if (!this._worksheetData) return;
17298
17301
  if (!this.rowHeightAccumulation || !this.columnWidthAccumulation) return;
17299
17302
  this.updateVisibleRange(vpInfo);
17300
17303
  const rowColumnSegment = this._drawingRange;
17301
17304
  const columnWidthAccumulation = this.columnWidthAccumulation;
17302
- const { startRow: visibleStartRow, endRow: visibleEndRow, startColumn: visibleStartColumn, endColumn: visibleEndColumn } = rowColumnSegment;
17303
- if (visibleEndColumn === -1 || visibleEndRow === -1) return;
17304
- const mergeVisibleRanges = [];
17305
- let mergeVisibleRangeStartRow = visibleStartRow;
17306
- const expandStartCol = Math.max(0, visibleStartColumn - 20);
17307
- const expandEndCol = Math.min(columnWidthAccumulation.length - 1, visibleEndColumn + 20);
17308
- for (let r = visibleStartRow; r <= visibleEndRow; r++) {
17309
- if (this.worksheet.getRowVisible(r) === false) {
17310
- if (mergeVisibleRangeStartRow < r) mergeVisibleRanges.push({
17305
+ const styleRanges = !!vpInfo && !vpInfo.isDirty && !vpInfo.isForceDirty && (!!((_vpInfo$diffBounds = vpInfo.diffBounds) === null || _vpInfo$diffBounds === void 0 ? void 0 : _vpInfo$diffBounds.length) || !!((_vpInfo$diffCacheBoun = vpInfo.diffCacheBounds) === null || _vpInfo$diffCacheBoun === void 0 ? void 0 : _vpInfo$diffCacheBoun.length) || !!vpInfo.diffX || !!vpInfo.diffY) ? vpInfo.shouldCacheUpdate ? (_vpInfo$diffCacheBoun2 = (_vpInfo$diffCacheBoun3 = vpInfo.diffCacheBounds) === null || _vpInfo$diffCacheBoun3 === void 0 ? void 0 : _vpInfo$diffCacheBoun3.map((bound) => this.getRangeByViewBound(bound))) !== null && _vpInfo$diffCacheBoun2 !== void 0 ? _vpInfo$diffCacheBoun2 : [] : [] : [rowColumnSegment];
17306
+ for (const styleRange of styleRanges) {
17307
+ const { startRow: visibleStartRow, endRow: visibleEndRow, startColumn: visibleStartColumn, endColumn: visibleEndColumn } = styleRange;
17308
+ if (visibleEndColumn === -1 || visibleEndRow === -1) continue;
17309
+ const mergeVisibleRanges = [];
17310
+ let mergeVisibleRangeStartRow = visibleStartRow;
17311
+ const expandStartCol = Math.max(0, visibleStartColumn - 20);
17312
+ const expandEndCol = Math.min(columnWidthAccumulation.length - 1, visibleEndColumn + 20);
17313
+ for (let r = visibleStartRow; r <= visibleEndRow; r++) {
17314
+ if (this.worksheet.getRowVisible(r) === false) {
17315
+ if (mergeVisibleRangeStartRow < r) mergeVisibleRanges.push({
17316
+ startRow: mergeVisibleRangeStartRow,
17317
+ endRow: r - 1,
17318
+ startColumn: visibleStartColumn,
17319
+ endColumn: visibleEndColumn
17320
+ });
17321
+ mergeVisibleRangeStartRow = r + 1;
17322
+ continue;
17323
+ }
17324
+ if (r === visibleEndRow) mergeVisibleRanges.push({
17311
17325
  startRow: mergeVisibleRangeStartRow,
17312
- endRow: r - 1,
17326
+ endRow: r,
17313
17327
  startColumn: visibleStartColumn,
17314
17328
  endColumn: visibleEndColumn
17315
17329
  });
17316
- mergeVisibleRangeStartRow = r + 1;
17317
- continue;
17330
+ for (let c = visibleStartColumn; c <= visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17331
+ bg: true,
17332
+ border: true
17333
+ } });
17334
+ for (let c = expandStartCol; c < visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17335
+ bg: false,
17336
+ border: false
17337
+ } });
17338
+ if (visibleEndColumn === 0) continue;
17339
+ for (let c = visibleEndColumn + 1; c < expandEndCol; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17340
+ bg: false,
17341
+ border: false
17342
+ } });
17318
17343
  }
17319
- if (r === visibleEndRow) mergeVisibleRanges.push({
17320
- startRow: mergeVisibleRangeStartRow,
17321
- endRow: r,
17322
- startColumn: visibleStartColumn,
17323
- endColumn: visibleEndColumn
17324
- });
17325
- for (let c = visibleStartColumn; c <= visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17326
- bg: true,
17327
- border: true
17328
- } });
17329
- for (let c = expandStartCol; c < visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17330
- bg: false,
17331
- border: false
17332
- } });
17333
- if (visibleEndColumn === 0) continue;
17334
- for (let c = visibleEndColumn + 1; c < expandEndCol; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17335
- bg: false,
17336
- border: false
17337
- } });
17338
- }
17339
- const mergeRanges = [];
17340
- for (const mergeVisibleRange of mergeVisibleRanges) {
17341
- const mergeRangeInVisible = this.getCurrentRowColumnSegmentMergeData(mergeVisibleRange);
17342
- mergeRanges.push(...mergeRangeInVisible);
17344
+ const mergeRanges = [];
17345
+ for (const mergeVisibleRange of mergeVisibleRanges) {
17346
+ const mergeRangeInVisible = this.getCurrentRowColumnSegmentMergeData(mergeVisibleRange);
17347
+ mergeRanges.push(...mergeRangeInVisible);
17348
+ }
17349
+ for (const mergeRange of mergeRanges) this._setStylesCacheForOneCell(mergeRange.startRow, mergeRange.startColumn, { mergeRange });
17343
17350
  }
17344
- for (const mergeRange of mergeRanges) this._setStylesCacheForOneCell(mergeRange.startRow, mergeRange.startColumn, { mergeRange });
17345
17351
  return this;
17346
17352
  }
17347
17353
  /**
@@ -18308,12 +18314,19 @@ var Font = class extends SheetExtension {
18308
18314
  if (!rowHeightAccumulation || !columnWidthAccumulation || columnTotalWidth === void 0 || rowTotalHeight === void 0 || !worksheet) return;
18309
18315
  const scale = this._getScale(parentScale);
18310
18316
  const { viewRanges = [], checkOutOfViewBound } = moreBoundsInfo;
18317
+ const lastRowIndex = spreadsheetSkeleton.getRowCount() - 1;
18318
+ const lastColIndex = spreadsheetSkeleton.getColumnCount() - 1;
18319
+ const expandedViewRanges = viewRanges.map((range) => clampRange({
18320
+ ...range,
18321
+ startColumn: range.startColumn - 20,
18322
+ endColumn: range.endColumn + 20
18323
+ }, lastRowIndex, lastColIndex));
18311
18324
  const renderFontContext = {
18312
18325
  ctx,
18313
18326
  scale,
18314
18327
  columnTotalWidth,
18315
18328
  rowTotalHeight,
18316
- viewRanges,
18329
+ viewRanges: expandedViewRanges,
18317
18330
  checkOutOfViewBound: checkOutOfViewBound || true,
18318
18331
  diffRanges,
18319
18332
  spreadsheetSkeleton
@@ -18321,12 +18334,7 @@ var Font = class extends SheetExtension {
18321
18334
  ctx.save();
18322
18335
  const uniqueMergeRanges = [];
18323
18336
  const mergeRangeIDSet = /* @__PURE__ */ new Set();
18324
- const lastRowIndex = spreadsheetSkeleton.getRowCount() - 1;
18325
- const lastColIndex = spreadsheetSkeleton.getColumnCount() - 1;
18326
- viewRanges.forEach((range) => {
18327
- range.startColumn -= 20;
18328
- range.endColumn += 20;
18329
- range = clampRange(range, lastRowIndex, lastColIndex);
18337
+ expandedViewRanges.forEach((range) => {
18330
18338
  spreadsheetSkeleton.worksheet.getMergedCellRange(range.startRow, range.startColumn, range.endRow, range.endColumn).forEach((mergeRange) => {
18331
18339
  const mergeRangeIndex = spreadsheetSkeleton.worksheet.getSpanModel().getMergeDataIndex(mergeRange.startRow, mergeRange.startColumn);
18332
18340
  if (!mergeRangeIDSet.has(mergeRangeIndex)) {
@@ -18654,93 +18662,95 @@ var Marker = class extends SheetExtension {
18654
18662
  const { worksheet, rowColumnSegment } = skeleton;
18655
18663
  if (!worksheet) return;
18656
18664
  const mergeCellRendered = /* @__PURE__ */ new Set();
18657
- _univerjs_core.Range.foreach(rowColumnSegment, (row, col) => {
18658
- var _cellData$markers, _cellData$markers2, _cellData$markers3, _cellData$markers4;
18659
- if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
18660
- let cellData = worksheet.getCell(row, col);
18661
- const cellInfo = skeleton.getCellWithCoordByIndex(row, col, false);
18662
- const { isMerged, isMergedMainCell, mergeInfo } = cellInfo;
18663
- let { startY, endY, startX, endX } = cellInfo;
18664
- if (isMergedMainCell || isMerged) {
18665
- startY = mergeInfo.startY;
18666
- endY = mergeInfo.endY;
18667
- startX = mergeInfo.startX;
18668
- endX = mergeInfo.endX;
18669
- }
18670
- if (isMerged) {
18671
- const mainCell = {
18672
- row: mergeInfo.startRow,
18673
- col: mergeInfo.startColumn
18674
- };
18675
- cellData = worksheet.getCell(mainCell.row, mainCell.col);
18676
- }
18677
- if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
18678
- if (cellInfo.isMerged || cellInfo.isMergedMainCell) {
18679
- const rangeStr = stringifyRange(mergeInfo);
18680
- if (mergeCellRendered.has(rangeStr)) return;
18681
- mergeCellRendered.add(rangeStr);
18682
- }
18683
- if (!cellData) return;
18684
- if ((_cellData$markers = cellData.markers) === null || _cellData$markers === void 0 ? void 0 : _cellData$markers.tr) {
18685
- ctx.save();
18686
- const marker = cellData.markers.tr;
18687
- const x = endX;
18688
- const y = startY;
18689
- ctx.fillStyle = marker.color;
18690
- ctx.moveTo(x, y);
18691
- ctx.beginPath();
18692
- ctx.lineTo(x - marker.size, y);
18693
- ctx.lineTo(x, y + marker.size);
18694
- ctx.lineTo(x, y);
18695
- ctx.closePath();
18696
- ctx.fill();
18697
- ctx.restore();
18698
- }
18699
- if ((_cellData$markers2 = cellData.markers) === null || _cellData$markers2 === void 0 ? void 0 : _cellData$markers2.tl) {
18700
- ctx.save();
18701
- const marker = cellData.markers.tl;
18702
- const x = startX;
18703
- const y = startY;
18704
- ctx.fillStyle = marker.color;
18705
- ctx.moveTo(x, y);
18706
- ctx.beginPath();
18707
- ctx.lineTo(x + marker.size, y);
18708
- ctx.lineTo(x, y + marker.size);
18709
- ctx.lineTo(x, y);
18710
- ctx.closePath();
18711
- ctx.fill();
18712
- ctx.restore();
18713
- }
18714
- if ((_cellData$markers3 = cellData.markers) === null || _cellData$markers3 === void 0 ? void 0 : _cellData$markers3.br) {
18715
- ctx.save();
18716
- const marker = cellData.markers.br;
18717
- const x = endX;
18718
- const y = endY;
18719
- ctx.fillStyle = marker.color;
18720
- ctx.moveTo(x, y);
18721
- ctx.beginPath();
18722
- ctx.lineTo(x - marker.size, y);
18723
- ctx.lineTo(x, y - marker.size);
18724
- ctx.lineTo(x, y);
18725
- ctx.closePath();
18726
- ctx.fill();
18727
- ctx.restore();
18728
- }
18729
- if ((_cellData$markers4 = cellData.markers) === null || _cellData$markers4 === void 0 ? void 0 : _cellData$markers4.bl) {
18730
- ctx.save();
18731
- const marker = cellData.markers.bl;
18732
- const x = startX;
18733
- const y = endY;
18734
- ctx.fillStyle = marker.color;
18735
- ctx.moveTo(x, y);
18736
- ctx.beginPath();
18737
- ctx.lineTo(x + marker.size, y);
18738
- ctx.lineTo(x, y - marker.size);
18739
- ctx.lineTo(x, y);
18740
- ctx.closePath();
18741
- ctx.fill();
18742
- ctx.restore();
18743
- }
18665
+ ((diffRanges === null || diffRanges === void 0 ? void 0 : diffRanges.length) ? diffRanges : [rowColumnSegment]).forEach((range) => {
18666
+ _univerjs_core.Range.foreach(range, (row, col) => {
18667
+ var _cellData$markers, _cellData$markers2, _cellData$markers3, _cellData$markers4;
18668
+ if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
18669
+ let cellData = worksheet.getCell(row, col);
18670
+ const cellInfo = skeleton.getCellWithCoordByIndex(row, col, false);
18671
+ const { isMerged, isMergedMainCell, mergeInfo } = cellInfo;
18672
+ let { startY, endY, startX, endX } = cellInfo;
18673
+ if (isMergedMainCell || isMerged) {
18674
+ startY = mergeInfo.startY;
18675
+ endY = mergeInfo.endY;
18676
+ startX = mergeInfo.startX;
18677
+ endX = mergeInfo.endX;
18678
+ }
18679
+ if (isMerged) {
18680
+ const mainCell = {
18681
+ row: mergeInfo.startRow,
18682
+ col: mergeInfo.startColumn
18683
+ };
18684
+ cellData = worksheet.getCell(mainCell.row, mainCell.col);
18685
+ }
18686
+ if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
18687
+ if (cellInfo.isMerged || cellInfo.isMergedMainCell) {
18688
+ const rangeStr = stringifyRange(mergeInfo);
18689
+ if (mergeCellRendered.has(rangeStr)) return;
18690
+ mergeCellRendered.add(rangeStr);
18691
+ }
18692
+ if (!cellData) return;
18693
+ if ((_cellData$markers = cellData.markers) === null || _cellData$markers === void 0 ? void 0 : _cellData$markers.tr) {
18694
+ ctx.save();
18695
+ const marker = cellData.markers.tr;
18696
+ const x = endX;
18697
+ const y = startY;
18698
+ ctx.fillStyle = marker.color;
18699
+ ctx.moveTo(x, y);
18700
+ ctx.beginPath();
18701
+ ctx.lineTo(x - marker.size, y);
18702
+ ctx.lineTo(x, y + marker.size);
18703
+ ctx.lineTo(x, y);
18704
+ ctx.closePath();
18705
+ ctx.fill();
18706
+ ctx.restore();
18707
+ }
18708
+ if ((_cellData$markers2 = cellData.markers) === null || _cellData$markers2 === void 0 ? void 0 : _cellData$markers2.tl) {
18709
+ ctx.save();
18710
+ const marker = cellData.markers.tl;
18711
+ const x = startX;
18712
+ const y = startY;
18713
+ ctx.fillStyle = marker.color;
18714
+ ctx.moveTo(x, y);
18715
+ ctx.beginPath();
18716
+ ctx.lineTo(x + marker.size, y);
18717
+ ctx.lineTo(x, y + marker.size);
18718
+ ctx.lineTo(x, y);
18719
+ ctx.closePath();
18720
+ ctx.fill();
18721
+ ctx.restore();
18722
+ }
18723
+ if ((_cellData$markers3 = cellData.markers) === null || _cellData$markers3 === void 0 ? void 0 : _cellData$markers3.br) {
18724
+ ctx.save();
18725
+ const marker = cellData.markers.br;
18726
+ const x = endX;
18727
+ const y = endY;
18728
+ ctx.fillStyle = marker.color;
18729
+ ctx.moveTo(x, y);
18730
+ ctx.beginPath();
18731
+ ctx.lineTo(x - marker.size, y);
18732
+ ctx.lineTo(x, y - marker.size);
18733
+ ctx.lineTo(x, y);
18734
+ ctx.closePath();
18735
+ ctx.fill();
18736
+ ctx.restore();
18737
+ }
18738
+ if ((_cellData$markers4 = cellData.markers) === null || _cellData$markers4 === void 0 ? void 0 : _cellData$markers4.bl) {
18739
+ ctx.save();
18740
+ const marker = cellData.markers.bl;
18741
+ const x = startX;
18742
+ const y = endY;
18743
+ ctx.fillStyle = marker.color;
18744
+ ctx.moveTo(x, y);
18745
+ ctx.beginPath();
18746
+ ctx.lineTo(x + marker.size, y);
18747
+ ctx.lineTo(x, y - marker.size);
18748
+ ctx.lineTo(x, y);
18749
+ ctx.closePath();
18750
+ ctx.fill();
18751
+ ctx.restore();
18752
+ }
18753
+ });
18744
18754
  });
18745
18755
  }
18746
18756
  };
@@ -22089,20 +22099,28 @@ var Spreadsheet = class extends SheetComponent {
22089
22099
  this._drawAuxiliary(ctx);
22090
22100
  const parentScale = this.getParentScale();
22091
22101
  const diffRanges = this._refreshIncrementalState && viewportInfo.diffBounds ? (_viewportInfo$diffBou = viewportInfo.diffBounds) === null || _viewportInfo$diffBou === void 0 ? void 0 : _viewportInfo$diffBou.map((bound) => spreadsheetSkeleton.getRangeByViewBound(bound)) : [];
22092
- const viewRanges = [spreadsheetSkeleton.getCacheRangeByViewport(viewportInfo, this.isPrinting)];
22102
+ const cacheRange = spreadsheetSkeleton.getCacheRangeByViewport(viewportInfo, this.isPrinting);
22103
+ const viewRanges = this._refreshIncrementalState && diffRanges.length > 0 ? diffRanges : [cacheRange];
22104
+ const overflowSafeViewRanges = this._refreshIncrementalState && diffRanges.length > 0 ? diffRanges.map((range) => ({
22105
+ ...range,
22106
+ startColumn: cacheRange.startColumn,
22107
+ endColumn: cacheRange.endColumn
22108
+ })) : viewRanges;
22093
22109
  const extensions = this.getExtensionsByOrder();
22094
22110
  const scene = this.getScene();
22095
22111
  for (const extension of extensions) {
22112
+ const extensionViewRanges = extension === this._fontExtension || extension === this._borderExtension ? overflowSafeViewRanges : viewRanges;
22096
22113
  const timeKey = `${SHEET_EXTENSION_PREFIX}${extension.uKey}`;
22097
22114
  const st = _univerjs_core.Tools.now();
22098
22115
  extension.draw(ctx, parentScale, spreadsheetSkeleton, diffRanges, {
22099
- viewRanges,
22116
+ viewRanges: extensionViewRanges,
22100
22117
  checkOutOfViewBound: true,
22101
22118
  viewportKey: viewportInfo.viewportKey,
22102
22119
  viewBound: viewportInfo.cacheBound,
22103
22120
  diffBounds: viewportInfo.diffBounds
22104
22121
  });
22105
- this.addRenderFrameTimeMetricToScene(timeKey, _univerjs_core.Tools.now() - st, scene);
22122
+ const cost = _univerjs_core.Tools.now() - st;
22123
+ this.addRenderFrameTimeMetricToScene(timeKey, cost, scene);
22106
22124
  }
22107
22125
  }
22108
22126
  addRenderFrameTimeMetricToScene(timeKey, val, scene) {
@@ -24474,7 +24492,7 @@ Engine = __decorate([__decorateParam(2, ICanvasColorService)], Engine);
24474
24492
  //#endregion
24475
24493
  //#region package.json
24476
24494
  var name = "@univerjs/engine-render";
24477
- var version = "0.22.1";
24495
+ var version = "0.23.0";
24478
24496
 
24479
24497
  //#endregion
24480
24498
  //#region src/config/config.ts