Skip to content

Commit 8f9bad7

Browse files
committed
fix minor style issues
1 parent 5528aed commit 8f9bad7

File tree

5 files changed

+6
-19
lines changed

5 files changed

+6
-19
lines changed

src/electron/file.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888

8989
(defn print!
9090
[content]
91-
(let [window (BrowserWindow. #js {:show false
92-
:frame false})]
91+
(let [window (BrowserWindow. #js {:show false :frame false})]
9392
(js/Promise.
9493
(fn [res rej]
9594
(.on (.-webContents window) "did-finish-load"

src/renderer/app/effects.cljs

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@
4444
(array (js/ClipboardItem.
4545
(let [blob-array (js-obj)]
4646
(doseq
47-
[[data-type data]
48-
[["image/svg+xml" data]
49-
["text/html" data]]]
47+
[[data-type data] [["image/svg+xml" data]
48+
["text/html" data]]]
5049
(when (.supports js/ClipboardItem data-type)
5150
(aset blob-array data-type (js/Blob. (array data) #js {:type data-type}))))
5251
blob-array))))

src/renderer/document/events.cljs

+1-2
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,5 @@
314314
::set-active
315315
[persist]
316316
(fn [db [_ id]]
317-
(-> db
318-
(h/set-active id)
317+
(-> (h/set-active db id)
319318
(h/center))))

src/renderer/element/impl/shape/polyshape.cljs

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
(derive ::hierarchy/polyshape ::hierarchy/shape)
1414

1515
(def partition-to-px
16-
(comp
17-
(map length/unit->px)
18-
(partition-all 2)))
16+
(comp (map length/unit->px)
17+
(partition-all 2)))
1918

2019
(defn points->px
2120
[points]

src/renderer/element/impl/shape/rect.cljs

-9
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,12 @@
3535
(cond-> []
3636
:always (conj "M" (+ x rx) y
3737
"H" (- (+ x width) rx))
38-
3938
curved? (conj "A" rx ry 0 0 1 (+ x width) (+ y ry))
40-
4139
:always (conj "V" (- (+ y height) ry))
42-
4340
curved? (conj "A" rx ry 0 0 1 (- (+ x width) rx) (+ y height))
44-
4541
:always (conj "H" (+ x rx))
46-
4742
curved? (conj "A" rx ry 0 0 1 x (- (+ y height) ry))
48-
4943
:always (conj "V" (+ y ry))
50-
5144
curved? (conj "A" rx ry 0 0 1 (+ x rx) y)
52-
5345
:always (conj "z")
54-
5546
:always (->> (str/join " ")))))

0 commit comments

Comments
 (0)