From 0743b0766708f157da317c28bb73c3350f76f2eb Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 19 Jan 2023 17:02:27 +0100 Subject: [PATCH] :bug: Fix problem with mask disappearing in root frame --- frontend/src/app/main/ui/shapes/mask.cljs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/app/main/ui/shapes/mask.cljs b/frontend/src/app/main/ui/shapes/mask.cljs index d0685a5f5..f74e3a664 100644 --- a/frontend/src/app/main/ui/shapes/mask.cljs +++ b/frontend/src/app/main/ui/shapes/mask.cljs @@ -78,6 +78,13 @@ :y (:y mask-bb-rect) :width (:width mask-bb-rect) :height (:height mask-bb-rect) + + ;; This is necesary to prevent a race condition in the dynamic-modifiers whether the modifier + ;; triggers afte the render + :data-old-x (:x mask-bb-rect) + :data-old-y (:y mask-bb-rect) + :data-old-width (:width mask-bb-rect) + :data-old-height (:height mask-bb-rect) :mask-units "userSpaceOnUse"} [:g {:filter (when-not svg-text? (filter-url render-id mask))} [:& shape-wrapper {:shape (-> mask (dissoc :shadow :blur) (assoc :is-mask? true))}]]]])))