mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix(sub-canvas): background dot fill color (#437)
This commit is contained in:
parent
93aa3e77b1
commit
94bdba02d1
@ -24,7 +24,9 @@ export const SubCanvasBackground: FC = () => {
|
||||
const dotColor = backgroundConfig.dotColor ?? '#eceeef';
|
||||
const dotOpacity = backgroundConfig.dotOpacity ?? 0.5;
|
||||
const backgroundColor = backgroundConfig.backgroundColor ?? '#f2f3f5';
|
||||
const dotFillColor = backgroundConfig.dotFillColor ?? dotColor;
|
||||
// 只有当 dotFillColor 被明确设置且与 dotColor 不同时才添加 fill 属性
|
||||
const dotFillColor =
|
||||
backgroundConfig.dotFillColor === dotColor ? '' : backgroundConfig.dotFillColor;
|
||||
|
||||
// 生成唯一的 pattern ID
|
||||
const patternId = `sub-canvas-dot-pattern-${node.id}`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user