diff --git a/src/additional-components/Background/Background.vue b/src/additional-components/Background/Background.vue index 185bbfc6..8fc8bb80 100644 --- a/src/additional-components/Background/Background.vue +++ b/src/additional-components/Background/Background.vue @@ -22,9 +22,7 @@ const defaultColors: Record = { } const store = useStore() -// when there are multiple flows on a page we need to make sure that every background gets its own pattern. -const bgClasses = ['vue-flow__background'] const background = computed(() => { const scaledGap = props.gap && props.gap * store.transform[2] const xOffset = scaledGap && store.transform[0] % scaledGap @@ -39,13 +37,12 @@ const background = computed(() => { } }) -const isLines = props.variant === BackgroundVariant.Lines -const bgColor = props.color ? props.color : defaultColors[props.variant || BackgroundVariant.Dots] +// when there are multiple flows on a page we need to make sure that every background gets its own pattern. const patternId = `pattern-${Math.floor(Math.random() * 100000)}`