@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/es/index.js CHANGED
@@ -5445,36 +5445,38 @@ var Custom = class extends SheetExtension {
5445
5445
  if (!worksheet) return;
5446
5446
  const mergeCellRendered = /* @__PURE__ */ new Set();
5447
5447
  const subUnitId = worksheet.getSheetId();
5448
- Range.foreach(rowColumnSegment, (row, col) => {
5449
- if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
5450
- let primaryWithCoord = skeleton.getCellWithCoordByIndex(row, col, false);
5451
- const { mergeInfo } = primaryWithCoord;
5452
- let cellData = worksheet.getCell(row, col);
5453
- if (primaryWithCoord.isMerged) cellData = worksheet.getCell(mergeInfo.startRow, mergeInfo.startColumn);
5454
- if (!(cellData === null || cellData === void 0 ? void 0 : cellData.customRender)) return;
5455
- if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
5456
- if (primaryWithCoord.isMerged || primaryWithCoord.isMergedMainCell) {
5457
- const rangeStr = stringifyRange$1(mergeInfo);
5458
- if (mergeCellRendered.has(rangeStr)) return;
5459
- mergeCellRendered.add(rangeStr);
5460
- }
5461
- if (primaryWithCoord.isMerged) primaryWithCoord = skeleton.getCellWithCoordByIndex(mergeInfo.startRow, mergeInfo.startColumn, false);
5462
- const renderInfo = {
5463
- data: cellData,
5464
- style: skeleton.getStyles().getStyleByCell(cellData),
5465
- primaryWithCoord,
5466
- subUnitId,
5467
- row,
5468
- col,
5469
- worksheet,
5470
- unitId: worksheet.unitId
5471
- };
5472
- const customRender = cellData.customRender.sort(sortRules);
5473
- ctx.save();
5474
- customRender.forEach((item) => {
5475
- item.drawWith(ctx, renderInfo, skeleton, this.parent);
5448
+ ((diffRanges === null || diffRanges === void 0 ? void 0 : diffRanges.length) ? diffRanges : [rowColumnSegment]).forEach((range) => {
5449
+ Range.foreach(range, (row, col) => {
5450
+ if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
5451
+ let primaryWithCoord = skeleton.getCellWithCoordByIndex(row, col, false);
5452
+ const { mergeInfo } = primaryWithCoord;
5453
+ let cellData = worksheet.getCell(row, col);
5454
+ if (primaryWithCoord.isMerged) cellData = worksheet.getCell(mergeInfo.startRow, mergeInfo.startColumn);
5455
+ if (!(cellData === null || cellData === void 0 ? void 0 : cellData.customRender)) return;
5456
+ if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
5457
+ if (primaryWithCoord.isMerged || primaryWithCoord.isMergedMainCell) {
5458
+ const rangeStr = stringifyRange$1(mergeInfo);
5459
+ if (mergeCellRendered.has(rangeStr)) return;
5460
+ mergeCellRendered.add(rangeStr);
5461
+ }
5462
+ if (primaryWithCoord.isMerged) primaryWithCoord = skeleton.getCellWithCoordByIndex(mergeInfo.startRow, mergeInfo.startColumn, false);
5463
+ const renderInfo = {
5464
+ data: cellData,
5465
+ style: skeleton.getStyles().getStyleByCell(cellData),
5466
+ primaryWithCoord,
5467
+ subUnitId,
5468
+ row,
5469
+ col,
5470
+ worksheet,
5471
+ unitId: worksheet.unitId
5472
+ };
5473
+ const customRender = cellData.customRender.sort(sortRules);
5474
+ ctx.save();
5475
+ customRender.forEach((item) => {
5476
+ item.drawWith(ctx, renderInfo, skeleton, this.parent);
5477
+ });
5478
+ ctx.restore();
5476
5479
  });
5477
- ctx.restore();
5478
5480
  });
5479
5481
  }
5480
5482
  };
@@ -17265,54 +17267,58 @@ let SpreadsheetSkeleton = class SpreadsheetSkeleton extends SheetSkeleton {
17265
17267
  * @param vpInfo viewBounds
17266
17268
  */
17267
17269
  setStylesCache(vpInfo) {
17270
+ var _vpInfo$diffBounds, _vpInfo$diffCacheBoun, _vpInfo$diffCacheBoun2, _vpInfo$diffCacheBoun3;
17268
17271
  if (!this._worksheetData) return;
17269
17272
  if (!this.rowHeightAccumulation || !this.columnWidthAccumulation) return;
17270
17273
  this.updateVisibleRange(vpInfo);
17271
17274
  const rowColumnSegment = this._drawingRange;
17272
17275
  const columnWidthAccumulation = this.columnWidthAccumulation;
17273
- const { startRow: visibleStartRow, endRow: visibleEndRow, startColumn: visibleStartColumn, endColumn: visibleEndColumn } = rowColumnSegment;
17274
- if (visibleEndColumn === -1 || visibleEndRow === -1) return;
17275
- const mergeVisibleRanges = [];
17276
- let mergeVisibleRangeStartRow = visibleStartRow;
17277
- const expandStartCol = Math.max(0, visibleStartColumn - 20);
17278
- const expandEndCol = Math.min(columnWidthAccumulation.length - 1, visibleEndColumn + 20);
17279
- for (let r = visibleStartRow; r <= visibleEndRow; r++) {
17280
- if (this.worksheet.getRowVisible(r) === false) {
17281
- if (mergeVisibleRangeStartRow < r) mergeVisibleRanges.push({
17276
+ 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];
17277
+ for (const styleRange of styleRanges) {
17278
+ const { startRow: visibleStartRow, endRow: visibleEndRow, startColumn: visibleStartColumn, endColumn: visibleEndColumn } = styleRange;
17279
+ if (visibleEndColumn === -1 || visibleEndRow === -1) continue;
17280
+ const mergeVisibleRanges = [];
17281
+ let mergeVisibleRangeStartRow = visibleStartRow;
17282
+ const expandStartCol = Math.max(0, visibleStartColumn - 20);
17283
+ const expandEndCol = Math.min(columnWidthAccumulation.length - 1, visibleEndColumn + 20);
17284
+ for (let r = visibleStartRow; r <= visibleEndRow; r++) {
17285
+ if (this.worksheet.getRowVisible(r) === false) {
17286
+ if (mergeVisibleRangeStartRow < r) mergeVisibleRanges.push({
17287
+ startRow: mergeVisibleRangeStartRow,
17288
+ endRow: r - 1,
17289
+ startColumn: visibleStartColumn,
17290
+ endColumn: visibleEndColumn
17291
+ });
17292
+ mergeVisibleRangeStartRow = r + 1;
17293
+ continue;
17294
+ }
17295
+ if (r === visibleEndRow) mergeVisibleRanges.push({
17282
17296
  startRow: mergeVisibleRangeStartRow,
17283
- endRow: r - 1,
17297
+ endRow: r,
17284
17298
  startColumn: visibleStartColumn,
17285
17299
  endColumn: visibleEndColumn
17286
17300
  });
17287
- mergeVisibleRangeStartRow = r + 1;
17288
- continue;
17301
+ for (let c = visibleStartColumn; c <= visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17302
+ bg: true,
17303
+ border: true
17304
+ } });
17305
+ for (let c = expandStartCol; c < visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17306
+ bg: false,
17307
+ border: false
17308
+ } });
17309
+ if (visibleEndColumn === 0) continue;
17310
+ for (let c = visibleEndColumn + 1; c < expandEndCol; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17311
+ bg: false,
17312
+ border: false
17313
+ } });
17289
17314
  }
17290
- if (r === visibleEndRow) mergeVisibleRanges.push({
17291
- startRow: mergeVisibleRangeStartRow,
17292
- endRow: r,
17293
- startColumn: visibleStartColumn,
17294
- endColumn: visibleEndColumn
17295
- });
17296
- for (let c = visibleStartColumn; c <= visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17297
- bg: true,
17298
- border: true
17299
- } });
17300
- for (let c = expandStartCol; c < visibleEndColumn; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17301
- bg: false,
17302
- border: false
17303
- } });
17304
- if (visibleEndColumn === 0) continue;
17305
- for (let c = visibleEndColumn + 1; c < expandEndCol; c++) this._setStylesCacheForOneCell(r, c, { cacheItem: {
17306
- bg: false,
17307
- border: false
17308
- } });
17309
- }
17310
- const mergeRanges = [];
17311
- for (const mergeVisibleRange of mergeVisibleRanges) {
17312
- const mergeRangeInVisible = this.getCurrentRowColumnSegmentMergeData(mergeVisibleRange);
17313
- mergeRanges.push(...mergeRangeInVisible);
17315
+ const mergeRanges = [];
17316
+ for (const mergeVisibleRange of mergeVisibleRanges) {
17317
+ const mergeRangeInVisible = this.getCurrentRowColumnSegmentMergeData(mergeVisibleRange);
17318
+ mergeRanges.push(...mergeRangeInVisible);
17319
+ }
17320
+ for (const mergeRange of mergeRanges) this._setStylesCacheForOneCell(mergeRange.startRow, mergeRange.startColumn, { mergeRange });
17314
17321
  }
17315
- for (const mergeRange of mergeRanges) this._setStylesCacheForOneCell(mergeRange.startRow, mergeRange.startColumn, { mergeRange });
17316
17322
  return this;
17317
17323
  }
17318
17324
  /**
@@ -18279,12 +18285,19 @@ var Font = class extends SheetExtension {
18279
18285
  if (!rowHeightAccumulation || !columnWidthAccumulation || columnTotalWidth === void 0 || rowTotalHeight === void 0 || !worksheet) return;
18280
18286
  const scale = this._getScale(parentScale);
18281
18287
  const { viewRanges = [], checkOutOfViewBound } = moreBoundsInfo;
18288
+ const lastRowIndex = spreadsheetSkeleton.getRowCount() - 1;
18289
+ const lastColIndex = spreadsheetSkeleton.getColumnCount() - 1;
18290
+ const expandedViewRanges = viewRanges.map((range) => clampRange({
18291
+ ...range,
18292
+ startColumn: range.startColumn - 20,
18293
+ endColumn: range.endColumn + 20
18294
+ }, lastRowIndex, lastColIndex));
18282
18295
  const renderFontContext = {
18283
18296
  ctx,
18284
18297
  scale,
18285
18298
  columnTotalWidth,
18286
18299
  rowTotalHeight,
18287
- viewRanges,
18300
+ viewRanges: expandedViewRanges,
18288
18301
  checkOutOfViewBound: checkOutOfViewBound || true,
18289
18302
  diffRanges,
18290
18303
  spreadsheetSkeleton
@@ -18292,12 +18305,7 @@ var Font = class extends SheetExtension {
18292
18305
  ctx.save();
18293
18306
  const uniqueMergeRanges = [];
18294
18307
  const mergeRangeIDSet = /* @__PURE__ */ new Set();
18295
- const lastRowIndex = spreadsheetSkeleton.getRowCount() - 1;
18296
- const lastColIndex = spreadsheetSkeleton.getColumnCount() - 1;
18297
- viewRanges.forEach((range) => {
18298
- range.startColumn -= 20;
18299
- range.endColumn += 20;
18300
- range = clampRange(range, lastRowIndex, lastColIndex);
18308
+ expandedViewRanges.forEach((range) => {
18301
18309
  spreadsheetSkeleton.worksheet.getMergedCellRange(range.startRow, range.startColumn, range.endRow, range.endColumn).forEach((mergeRange) => {
18302
18310
  const mergeRangeIndex = spreadsheetSkeleton.worksheet.getSpanModel().getMergeDataIndex(mergeRange.startRow, mergeRange.startColumn);
18303
18311
  if (!mergeRangeIDSet.has(mergeRangeIndex)) {
@@ -18625,93 +18633,95 @@ var Marker = class extends SheetExtension {
18625
18633
  const { worksheet, rowColumnSegment } = skeleton;
18626
18634
  if (!worksheet) return;
18627
18635
  const mergeCellRendered = /* @__PURE__ */ new Set();
18628
- Range.foreach(rowColumnSegment, (row, col) => {
18629
- var _cellData$markers, _cellData$markers2, _cellData$markers3, _cellData$markers4;
18630
- if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
18631
- let cellData = worksheet.getCell(row, col);
18632
- const cellInfo = skeleton.getCellWithCoordByIndex(row, col, false);
18633
- const { isMerged, isMergedMainCell, mergeInfo } = cellInfo;
18634
- let { startY, endY, startX, endX } = cellInfo;
18635
- if (isMergedMainCell || isMerged) {
18636
- startY = mergeInfo.startY;
18637
- endY = mergeInfo.endY;
18638
- startX = mergeInfo.startX;
18639
- endX = mergeInfo.endX;
18640
- }
18641
- if (isMerged) {
18642
- const mainCell = {
18643
- row: mergeInfo.startRow,
18644
- col: mergeInfo.startColumn
18645
- };
18646
- cellData = worksheet.getCell(mainCell.row, mainCell.col);
18647
- }
18648
- if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
18649
- if (cellInfo.isMerged || cellInfo.isMergedMainCell) {
18650
- const rangeStr = stringifyRange(mergeInfo);
18651
- if (mergeCellRendered.has(rangeStr)) return;
18652
- mergeCellRendered.add(rangeStr);
18653
- }
18654
- if (!cellData) return;
18655
- if ((_cellData$markers = cellData.markers) === null || _cellData$markers === void 0 ? void 0 : _cellData$markers.tr) {
18656
- ctx.save();
18657
- const marker = cellData.markers.tr;
18658
- const x = endX;
18659
- const y = startY;
18660
- ctx.fillStyle = marker.color;
18661
- ctx.moveTo(x, y);
18662
- ctx.beginPath();
18663
- ctx.lineTo(x - marker.size, y);
18664
- ctx.lineTo(x, y + marker.size);
18665
- ctx.lineTo(x, y);
18666
- ctx.closePath();
18667
- ctx.fill();
18668
- ctx.restore();
18669
- }
18670
- if ((_cellData$markers2 = cellData.markers) === null || _cellData$markers2 === void 0 ? void 0 : _cellData$markers2.tl) {
18671
- ctx.save();
18672
- const marker = cellData.markers.tl;
18673
- const x = startX;
18674
- const y = startY;
18675
- ctx.fillStyle = marker.color;
18676
- ctx.moveTo(x, y);
18677
- ctx.beginPath();
18678
- ctx.lineTo(x + marker.size, y);
18679
- ctx.lineTo(x, y + marker.size);
18680
- ctx.lineTo(x, y);
18681
- ctx.closePath();
18682
- ctx.fill();
18683
- ctx.restore();
18684
- }
18685
- if ((_cellData$markers3 = cellData.markers) === null || _cellData$markers3 === void 0 ? void 0 : _cellData$markers3.br) {
18686
- ctx.save();
18687
- const marker = cellData.markers.br;
18688
- const x = endX;
18689
- const y = endY;
18690
- ctx.fillStyle = marker.color;
18691
- ctx.moveTo(x, y);
18692
- ctx.beginPath();
18693
- ctx.lineTo(x - marker.size, y);
18694
- ctx.lineTo(x, y - marker.size);
18695
- ctx.lineTo(x, y);
18696
- ctx.closePath();
18697
- ctx.fill();
18698
- ctx.restore();
18699
- }
18700
- if ((_cellData$markers4 = cellData.markers) === null || _cellData$markers4 === void 0 ? void 0 : _cellData$markers4.bl) {
18701
- ctx.save();
18702
- const marker = cellData.markers.bl;
18703
- const x = startX;
18704
- const y = endY;
18705
- ctx.fillStyle = marker.color;
18706
- ctx.moveTo(x, y);
18707
- ctx.beginPath();
18708
- ctx.lineTo(x + marker.size, y);
18709
- ctx.lineTo(x, y - marker.size);
18710
- ctx.lineTo(x, y);
18711
- ctx.closePath();
18712
- ctx.fill();
18713
- ctx.restore();
18714
- }
18636
+ ((diffRanges === null || diffRanges === void 0 ? void 0 : diffRanges.length) ? diffRanges : [rowColumnSegment]).forEach((range) => {
18637
+ Range.foreach(range, (row, col) => {
18638
+ var _cellData$markers, _cellData$markers2, _cellData$markers3, _cellData$markers4;
18639
+ if (!worksheet.getRowVisible(row) || !worksheet.getColVisible(col)) return;
18640
+ let cellData = worksheet.getCell(row, col);
18641
+ const cellInfo = skeleton.getCellWithCoordByIndex(row, col, false);
18642
+ const { isMerged, isMergedMainCell, mergeInfo } = cellInfo;
18643
+ let { startY, endY, startX, endX } = cellInfo;
18644
+ if (isMergedMainCell || isMerged) {
18645
+ startY = mergeInfo.startY;
18646
+ endY = mergeInfo.endY;
18647
+ startX = mergeInfo.startX;
18648
+ endX = mergeInfo.endX;
18649
+ }
18650
+ if (isMerged) {
18651
+ const mainCell = {
18652
+ row: mergeInfo.startRow,
18653
+ col: mergeInfo.startColumn
18654
+ };
18655
+ cellData = worksheet.getCell(mainCell.row, mainCell.col);
18656
+ }
18657
+ if (!this.isRenderDiffRangesByRow(mergeInfo.startRow, mergeInfo.endRow, diffRanges)) return true;
18658
+ if (cellInfo.isMerged || cellInfo.isMergedMainCell) {
18659
+ const rangeStr = stringifyRange(mergeInfo);
18660
+ if (mergeCellRendered.has(rangeStr)) return;
18661
+ mergeCellRendered.add(rangeStr);
18662
+ }
18663
+ if (!cellData) return;
18664
+ if ((_cellData$markers = cellData.markers) === null || _cellData$markers === void 0 ? void 0 : _cellData$markers.tr) {
18665
+ ctx.save();
18666
+ const marker = cellData.markers.tr;
18667
+ const x = endX;
18668
+ const y = startY;
18669
+ ctx.fillStyle = marker.color;
18670
+ ctx.moveTo(x, y);
18671
+ ctx.beginPath();
18672
+ ctx.lineTo(x - marker.size, y);
18673
+ ctx.lineTo(x, y + marker.size);
18674
+ ctx.lineTo(x, y);
18675
+ ctx.closePath();
18676
+ ctx.fill();
18677
+ ctx.restore();
18678
+ }
18679
+ if ((_cellData$markers2 = cellData.markers) === null || _cellData$markers2 === void 0 ? void 0 : _cellData$markers2.tl) {
18680
+ ctx.save();
18681
+ const marker = cellData.markers.tl;
18682
+ const x = startX;
18683
+ const y = startY;
18684
+ ctx.fillStyle = marker.color;
18685
+ ctx.moveTo(x, y);
18686
+ ctx.beginPath();
18687
+ ctx.lineTo(x + marker.size, y);
18688
+ ctx.lineTo(x, y + marker.size);
18689
+ ctx.lineTo(x, y);
18690
+ ctx.closePath();
18691
+ ctx.fill();
18692
+ ctx.restore();
18693
+ }
18694
+ if ((_cellData$markers3 = cellData.markers) === null || _cellData$markers3 === void 0 ? void 0 : _cellData$markers3.br) {
18695
+ ctx.save();
18696
+ const marker = cellData.markers.br;
18697
+ const x = endX;
18698
+ const y = endY;
18699
+ ctx.fillStyle = marker.color;
18700
+ ctx.moveTo(x, y);
18701
+ ctx.beginPath();
18702
+ ctx.lineTo(x - marker.size, y);
18703
+ ctx.lineTo(x, y - marker.size);
18704
+ ctx.lineTo(x, y);
18705
+ ctx.closePath();
18706
+ ctx.fill();
18707
+ ctx.restore();
18708
+ }
18709
+ if ((_cellData$markers4 = cellData.markers) === null || _cellData$markers4 === void 0 ? void 0 : _cellData$markers4.bl) {
18710
+ ctx.save();
18711
+ const marker = cellData.markers.bl;
18712
+ const x = startX;
18713
+ const y = endY;
18714
+ ctx.fillStyle = marker.color;
18715
+ ctx.moveTo(x, y);
18716
+ ctx.beginPath();
18717
+ ctx.lineTo(x + marker.size, y);
18718
+ ctx.lineTo(x, y - marker.size);
18719
+ ctx.lineTo(x, y);
18720
+ ctx.closePath();
18721
+ ctx.fill();
18722
+ ctx.restore();
18723
+ }
18724
+ });
18715
18725
  });
18716
18726
  }
18717
18727
  };
@@ -22060,20 +22070,28 @@ var Spreadsheet = class extends SheetComponent {
22060
22070
  this._drawAuxiliary(ctx);
22061
22071
  const parentScale = this.getParentScale();
22062
22072
  const diffRanges = this._refreshIncrementalState && viewportInfo.diffBounds ? (_viewportInfo$diffBou = viewportInfo.diffBounds) === null || _viewportInfo$diffBou === void 0 ? void 0 : _viewportInfo$diffBou.map((bound) => spreadsheetSkeleton.getRangeByViewBound(bound)) : [];
22063
- const viewRanges = [spreadsheetSkeleton.getCacheRangeByViewport(viewportInfo, this.isPrinting)];
22073
+ const cacheRange = spreadsheetSkeleton.getCacheRangeByViewport(viewportInfo, this.isPrinting);
22074
+ const viewRanges = this._refreshIncrementalState && diffRanges.length > 0 ? diffRanges : [cacheRange];
22075
+ const overflowSafeViewRanges = this._refreshIncrementalState && diffRanges.length > 0 ? diffRanges.map((range) => ({
22076
+ ...range,
22077
+ startColumn: cacheRange.startColumn,
22078
+ endColumn: cacheRange.endColumn
22079
+ })) : viewRanges;
22064
22080
  const extensions = this.getExtensionsByOrder();
22065
22081
  const scene = this.getScene();
22066
22082
  for (const extension of extensions) {
22083
+ const extensionViewRanges = extension === this._fontExtension || extension === this._borderExtension ? overflowSafeViewRanges : viewRanges;
22067
22084
  const timeKey = `${SHEET_EXTENSION_PREFIX}${extension.uKey}`;
22068
22085
  const st = Tools.now();
22069
22086
  extension.draw(ctx, parentScale, spreadsheetSkeleton, diffRanges, {
22070
- viewRanges,
22087
+ viewRanges: extensionViewRanges,
22071
22088
  checkOutOfViewBound: true,
22072
22089
  viewportKey: viewportInfo.viewportKey,
22073
22090
  viewBound: viewportInfo.cacheBound,
22074
22091
  diffBounds: viewportInfo.diffBounds
22075
22092
  });
22076
- this.addRenderFrameTimeMetricToScene(timeKey, Tools.now() - st, scene);
22093
+ const cost = Tools.now() - st;
22094
+ this.addRenderFrameTimeMetricToScene(timeKey, cost, scene);
22077
22095
  }
22078
22096
  }
22079
22097
  addRenderFrameTimeMetricToScene(timeKey, val, scene) {
@@ -24445,7 +24463,7 @@ Engine = __decorate([__decorateParam(2, ICanvasColorService)], Engine);
24445
24463
  //#endregion
24446
24464
  //#region package.json
24447
24465
  var name = "@univerjs/engine-render";
24448
- var version = "0.22.1";
24466
+ var version = "0.23.0";
24449
24467
 
24450
24468
  //#endregion
24451
24469
  //#region src/config/config.ts