This commit is contained in:
@@ -2,6 +2,7 @@ import React from "react";
|
||||
import { Group, Rect, Text } from "react-konva";
|
||||
import Konva from "konva";
|
||||
import type { EditorObject } from "@/pages/editor/store/editorStore";
|
||||
import { getColorWithOpacity } from "@/pages/editor/utils/colorOpacity";
|
||||
|
||||
type EditorTableProps = {
|
||||
obj: EditorObject;
|
||||
@@ -80,7 +81,7 @@ const EditorTable = ({ obj, selectedCellId, onCellClick, onCellDblClick, onDragE
|
||||
y={y}
|
||||
width={cellWidth}
|
||||
height={cellHeight}
|
||||
fill={cell.background}
|
||||
fill={getColorWithOpacity(cell.background, cell.backgroundOpacity ?? 100)}
|
||||
stroke={isCellSelected ? "#3b82f6" : stroke || "#808080"}
|
||||
strokeWidth={isCellSelected ? 3 : strokeWidth || 1}
|
||||
cornerRadius={isTopLeft ? [8, 0, 0, 0] : isTopRight ? [0, 8, 0, 0] : 0}
|
||||
|
||||
Reference in New Issue
Block a user