@extend-ai/react-xlsx 0.13.3 → 0.13.4

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/dist/index.cjs CHANGED
@@ -27023,8 +27023,7 @@ function XlsxGrid({
27023
27023
  const canvasCellStyle = cellData.canvas ?? buildCanvasCellStyleCache(cellStyle);
27024
27024
  const fillColor = cellData.conditionalColorScale?.color ?? (typeof cellStyle.backgroundColor === "string" ? cellStyle.backgroundColor : sheetSurface);
27025
27025
  const gradientFill = !cellData.conditionalColorScale && typeof cellStyle.backgroundImage === "string" ? resolveCanvasGradientFill(paneContext, localRect, cellStyle.backgroundImage) : null;
27026
- const hasExplicitCellFill = cellData.conditionalColorScale !== null || gradientFill !== null || typeof cellStyle.backgroundColor === "string" && cellStyle.backgroundColor !== sheetSurface;
27027
- if (hasExplicitCellFill || cellData.chartHighlight) {
27026
+ if (cellData.chartHighlight) {
27028
27027
  flushPendingGridlines();
27029
27028
  }
27030
27029
  paneContext.fillStyle = gradientFill ?? fillColor;
@@ -27072,7 +27071,7 @@ function XlsxGrid({
27072
27071
  const bottomNeighborTopBorder = bottomNeighborData?.isMergedSecondary ? null : bottomNeighborData?.canvas?.topBorder ?? parseCanvasBorderDeclaration(bottomNeighborData?.style.borderTop);
27073
27072
  const resolvedRightBorder = resolveCanvasBoundaryBorder(rightBorder, rightNeighborLeftBorder);
27074
27073
  const resolvedBottomBorder = resolveCanvasBoundaryBorder(bottomBorder, bottomNeighborTopBorder);
27075
- if (showGridLines && !hasExplicitCellFill && (!resolvedRightBorder || !resolvedBottomBorder)) {
27074
+ if (showGridLines && (!resolvedRightBorder || !resolvedBottomBorder)) {
27076
27075
  enqueueGridlinePath();
27077
27076
  if (!resolvedRightBorder) {
27078
27077
  paneContext.moveTo(localRect.left + localRect.width - 0.5, localRect.top);
@@ -30718,7 +30717,6 @@ function useXlsxViewerThumbnails(options = {}) {
30718
30717
  const canvasCellStyle = cellData.canvas ?? buildCanvasCellStyleCache(cellData.style);
30719
30718
  const gradientFill = typeof cellData.style.backgroundImage === "string" ? resolveCanvasGradientFill(context, rect, cellData.style.backgroundImage) : null;
30720
30719
  const fillColor = cellData.conditionalColorScale?.color ?? (typeof cellData.style.backgroundColor === "string" ? cellData.style.backgroundColor : thumbnailSheetSurface);
30721
- const hasExplicitCellFill = cellData.conditionalColorScale !== null || gradientFill !== null || typeof cellData.style.backgroundColor === "string" && cellData.style.backgroundColor !== thumbnailSheetSurface;
30722
30720
  context.fillStyle = gradientFill ?? fillColor;
30723
30721
  context.fillRect(rect.left, rect.top, rect.width, rect.height);
30724
30722
  if (cellData.conditionalDataBar) {
@@ -30743,7 +30741,7 @@ function useXlsxViewerThumbnails(options = {}) {
30743
30741
  }
30744
30742
  }
30745
30743
  }
30746
- if (showGridLines && !hasExplicitCellFill) {
30744
+ if (showGridLines) {
30747
30745
  context.strokeStyle = palette.border;
30748
30746
  context.lineWidth = 1;
30749
30747
  context.beginPath();