From 4e8ff6201ad95a303df9417af51ac23df5c7de7b Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 20 Nov 2021 17:22:52 +0100 Subject: [PATCH] feat: Add loading indicator slot and prop * While the graph is suspended we open up a loading indicator slot * a prop option has to be passed to enable the indicator * add some styles for a default loading text * move loading event to after store has been initialized *and* zoom pane dimensions are present Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- examples/Stress/StressExample.vue | 8 ++- src/container/VueFlow/VueFlow.vue | 95 ++++++++++++++++------------- src/container/ZoomPane/ZoomPane.vue | 24 +++----- src/store/stateStore.ts | 4 +- src/store/utils.ts | 3 +- src/style.css | 7 +++ src/types/types.ts | 1 + 7 files changed, 81 insertions(+), 61 deletions(-) diff --git a/examples/Stress/StressExample.vue b/examples/Stress/StressExample.vue index 1d4b4304..68d24c35 100644 --- a/examples/Stress/StressExample.vue +++ b/examples/Stress/StressExample.vue @@ -49,7 +49,13 @@ const updateElements = () => { }