mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 22:28:32 +02:00
♻️ Refactor selrec generation
This commit is contained in:
parent
ed9400912c
commit
0f54e85b36
18 changed files with 187 additions and 186 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
(ns app.util.geom.grid
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.geom.point :as gpt]
|
||||
[app.common.math :as mth]))
|
||||
|
||||
|
@ -39,7 +40,7 @@
|
|||
|
||||
gutter (if (= :stretch type)
|
||||
(let [gutter (/ (- width (* width' size) (* margin 2)) (dec size))]
|
||||
(if (mth/finite? gutter) gutter 0))
|
||||
(if (d/num? gutter) gutter 0))
|
||||
gutter)
|
||||
|
||||
next-v (fn [cur-val]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue