We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b8e01 commit 468ef76Copy full SHA for 468ef76
src/renderer/tool/impl/transform/select.cljs
@@ -205,11 +205,12 @@
205
offset (cond-> offset in-place (mat/mul 2))
206
dimensions (bounds/->dimensions bounds)
207
ratio (mat/div (mat/add dimensions offset) dimensions)
208
- ratio (cond-> ratio ratio-locked (lock-ratio handle))]
+ ratio (cond-> ratio ratio-locked (lock-ratio handle))
209
+ ;; TODO: Handle negative ratio.
210
+ ratio (mapv #(max % 0.01) ratio)]
211
(-> db
212
(assoc :pivot-point pivot-point)
- ;; TODO: Handle negative ratio.
- (element.h/scale (mapv abs ratio) pivot-point recursive))))
213
+ (element.h/scale ratio pivot-point recursive))))
214
215
(mx/defn select-element
216
[db, multiple :- boolean?]
0 commit comments