From 2fa7e22b5f3afb2929c557d0f0bef86eef9b0a4c Mon Sep 17 00:00:00 2001
From: Braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Mon, 14 Mar 2022 13:08:02 +0100
Subject: [PATCH] feat(background): Allow background height/width to be set
* allow for bgColor to be set
* allow for no pattern to be used
---
examples/Basic/Basic.vue | 12 +++++++--
.../Background/Background.vue | 27 ++++++++++++++-----
src/types/components.ts | 7 ++++-
src/types/flow.ts | 1 +
4 files changed, 38 insertions(+), 9 deletions(-)
diff --git a/examples/Basic/Basic.vue b/examples/Basic/Basic.vue
index 90b13dfc..b2081957 100644
--- a/examples/Basic/Basic.vue
+++ b/examples/Basic/Basic.vue
@@ -1,5 +1,5 @@
-
diff --git a/src/types/components.ts b/src/types/components.ts
index 63c08169..4def0229 100644
--- a/src/types/components.ts
+++ b/src/types/components.ts
@@ -38,8 +38,13 @@ export interface HandleProps {
export interface BackgroundProps {
variant?: BackgroundVariant
gap?: number
- color?: string
+ patternColor?: string
+ bgColor?: string
size?: number
+ height?: number
+ width?: number
+ x?: number
+ y?: number
}
export interface ControlProps {
diff --git a/src/types/flow.ts b/src/types/flow.ts
index 98ab657d..13090fed 100644
--- a/src/types/flow.ts
+++ b/src/types/flow.ts
@@ -57,6 +57,7 @@ export type SnapGrid = [number, number]
export enum BackgroundVariant {
Lines = 'lines',
Dots = 'dots',
+ None = 'none',
}
export interface SelectionRect extends Rect {