fix(svelte): background lines
This commit is contained in:
@@ -52,6 +52,6 @@
|
|||||||
|
|
||||||
<SvelteFlow {nodes} {edges} fitView minZoom={0.2}>
|
<SvelteFlow {nodes} {edges} fitView minZoom={0.2}>
|
||||||
<Controls />
|
<Controls />
|
||||||
<Background variant={BackgroundVariant.Dots} />
|
<Background variant={BackgroundVariant.Lines} />
|
||||||
<MiniMap />
|
<MiniMap />
|
||||||
</SvelteFlow>
|
</SvelteFlow>
|
||||||
|
|||||||
@@ -10,5 +10,5 @@
|
|||||||
cx={radius}
|
cx={radius}
|
||||||
cy={radius}
|
cy={radius}
|
||||||
r={radius}
|
r={radius}
|
||||||
class={cc(['svelte-flow__background-pattern', 'dot', className])}
|
class={cc(['svelte-flow__background-pattern', 'dots', className])}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -276,14 +276,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.xy-flow__background-pattern {
|
.xy-flow__background-pattern {
|
||||||
&.dot {
|
&.dots {
|
||||||
fill: var(
|
fill: var(
|
||||||
--background-pattern-color-props,
|
--background-pattern-color-props,
|
||||||
var(--background-pattern-color, var(--background-pattern-dot-color-default))
|
var(--background-pattern-color, var(--background-pattern-dot-color-default))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.line {
|
&.lines {
|
||||||
stroke: var(
|
stroke: var(
|
||||||
--background-pattern-color-props,
|
--background-pattern-color-props,
|
||||||
var(--background-pattern-color, var(--background-pattern-line-color-default))
|
var(--background-pattern-color, var(--background-pattern-line-color-default))
|
||||||
|
|||||||
Reference in New Issue
Block a user