Merge branch 'release-1.2.0' into develop

This commit is contained in:
Andrey Antukh 2021-02-15 13:29:11 +01:00
commit 101027e6b8
7 changed files with 22 additions and 16 deletions

View file

@ -164,11 +164,10 @@
(not= (:id common-frame-id) uuid/zero))
(-> (get objects common-frame-id)
:shapes)
(let [frames (cp/select-frames objects)]
(->> (if (seq frames)
frames
(cp/select-toplevel-shapes objects))
(map :id)))))
(->> (cp/select-toplevel-shapes objects
{:include-frames? true
:include-frame-children? false})
(map :id))))
is-not-blocked (fn [shape-id] (not (get-in state [:workspace-data
:pages-index page-id

View file

@ -96,6 +96,9 @@
(def current-hover
(l/derived :hover workspace-local))
(def editors
(l/derived :editors workspace-local))
(def workspace-layout
(l/derived :workspace-layout st/state))

View file

@ -45,11 +45,11 @@
auto-height? (= grow-type :auto-height)
base #js {:display "inline-flex"
:flex-direction "column"
:justify-content "inherit"
:min-height (when-not (or auto-width? auto-height?) "100%")
:min-width (when-not auto-width? "100%")
:vertical-align "top"}]
:flexDirection "column"
:justifyContent "inherit"
:minHeight (when-not (or auto-width? auto-height?) "100%")
:minWidth (when-not auto-width? "100%")
:verticalAlign "top"}]
base)))
(defn generate-paragraph-styles

View file

@ -285,8 +285,8 @@
(let [ids [(:id shape)]
type (:type shape)
local (deref refs/workspace-local)
editor (get-in local [:editors (:id shape)])
editors (mf/deref refs/editors)
editor (get editors (:id shape))
measure-values (select-keys shape measure-attrs)