File tree 1 file changed +8
-9
lines changed
src/renderer/tool/impl/base
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 358
358
pivot-point @(rf/subscribe [::s/pivot-point ])
359
359
hovered-ids @(rf/subscribe [::element.s/hovered ])]
360
360
[:<>
361
- (when (not= state :scale )
362
- (for [el selected-elements]
363
- (when (:bounds el)
364
- ^{:key (str (:id el) " -bounds" )}
365
- [overlay/bounding-box (:bounds el) false ])))
361
+ (for [el selected-elements]
362
+ (when (:bounds el)
363
+ ^{:key (str (:id el) " -bounds" )}
364
+ [overlay/bounding-box (:bounds el) false ]))
366
365
367
366
(for [el hovered-ids]
368
367
(when (:bounds el)
375
374
(when (seq bounds)
376
375
[:<>
377
376
[handle.v/wrapping-bounding-box bounds]
378
- (if ( = state :scale )
379
- [overlay/size-label bounds]
380
- ( when ( not= state :translate )
381
- [handle.v/bounding-corners bounds]) )])
377
+ (case state
378
+ :scale [overlay/size-label bounds]
379
+ :idle [handle.v/bounding-corners bounds]
380
+ nil )])
382
381
383
382
(when pivot-point
384
383
[overlay/times pivot-point])]))
You can’t perform that action at this time.
0 commit comments