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