From d6a8ed6be504aefa97200caf10bcd1173057b707 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 17 Aug 2021 22:14:02 +0200 Subject: [PATCH] update: Color prop optional in MarkerDefinitions --- src/container/EdgeRenderer/MarkerDefinitions.tsx | 3 ++- src/utils/symbols.ts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/utils/symbols.ts diff --git a/src/container/EdgeRenderer/MarkerDefinitions.tsx b/src/container/EdgeRenderer/MarkerDefinitions.tsx index 77d7c4b7..84556b01 100644 --- a/src/container/EdgeRenderer/MarkerDefinitions.tsx +++ b/src/container/EdgeRenderer/MarkerDefinitions.tsx @@ -10,7 +10,8 @@ export default defineComponent({ props: { color: { type: String as PropType, - required: true + required: false, + default: '' } }, setup(props) { diff --git a/src/utils/symbols.ts b/src/utils/symbols.ts new file mode 100644 index 00000000..e96169fe --- /dev/null +++ b/src/utils/symbols.ts @@ -0,0 +1,7 @@ +import { InjectionKey } from 'vue'; +import { RevueFlowStore } from '../types'; +import { RevueFlowHooks } from '../hooks/RevueFlowHooks'; + +export const StoreKey: InjectionKey = Symbol('store'); +export const HooksKey: InjectionKey = Symbol('hooks'); +export const NodeIdContextKey: InjectionKey = Symbol('NodeIdContext');