0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Alejandro Alonso 2023-04-11 06:52:35 +02:00
commit 4d8f471eca
4 changed files with 17 additions and 11 deletions

View file

@ -12,6 +12,10 @@
### :heart: Community contributions by (Thank you!)
## 1.18.2
- Fix problem with frame title rotation
## 1.18.1
### :bug: Bugs fixed

View file

@ -983,10 +983,12 @@
(defn open-path?
[shape]
(and (= :path (:type shape))
(not (->> shape
:content
(sp/close-subpaths)
(sp/get-subpaths)
(every? sp/is-closed?)))))
(let [svg? (contains? shape :svg-attrs)
;; No close subpaths for svgs imported
maybe-close (if svg? identity sp/close-subpaths)]
(and (= :path (:type shape))
(not (->> shape
:content
(maybe-close)
(sp/get-subpaths)
(every? sp/is-closed?))))))

View file

@ -140,10 +140,10 @@ services:
- PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-smtp enable-prepl-server
## Penpot SECRET KEY. It serves as a master key from which other keys for subsystems
## (eg http sessions) are derived.
## (eg http sessions, or invitations) are derived.
##
## Leave it comment if it is ok for you to have to login again after each backend
## restart.
## If you leve it commented, all created sessions and invitations will
## become invalid on container restart.
##
## If you going to uncomment this, we recommend use here a trully randomly generated
## 512 bits base64 encoded string. You can generate one with:

View file

@ -44,7 +44,7 @@
(defn left?
[cur cand]
(let [closex? (mth/close? (:x cand) (:x cur))]
(let [closex? (mth/close? (:x cand) (:x cur) 0.01)]
(cond
(and closex? (< (:y cand) (:y cur))) cand
closex? cur