mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 17:06:13 +02:00
🐛 Add shadow to artboard make it lose the fill
This commit is contained in:
parent
e601e2acca
commit
3a9d348cab
10 changed files with 113 additions and 52 deletions
|
@ -32,12 +32,17 @@
|
|||
|
||||
(defn- calculate-size
|
||||
[frame zoom]
|
||||
(let [{:keys [_ _ width height]} (filters/get-filters-bounds frame)]
|
||||
(let [{:keys [_ _ width height]} (filters/get-filters-bounds frame)
|
||||
padding (filters/calculate-padding frame)
|
||||
x (- (:horizontal padding))
|
||||
y (- (:vertical padding))
|
||||
width (+ width (* 2 (:horizontal padding)))
|
||||
height (+ height (* 2 (:vertical padding)))]
|
||||
{:base-width width
|
||||
:base-height height
|
||||
:width (* width zoom)
|
||||
:height (* height zoom)
|
||||
:vbox (str "0 0 " width " " height)}))
|
||||
:vbox (str x " " y " " width " " height)}))
|
||||
|
||||
(defn- calculate-wrapper
|
||||
[size1 size2 zoom]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue