File tree 5 files changed +6
-19
lines changed
5 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 88
88
89
89
(defn print!
90
90
[content]
91
- (let [window (BrowserWindow. #js {:show false
92
- :frame false })]
91
+ (let [window (BrowserWindow. #js {:show false :frame false })]
93
92
(js/Promise.
94
93
(fn [res rej]
95
94
(.on (.-webContents window) " did-finish-load"
Original file line number Diff line number Diff line change 44
44
(array (js/ClipboardItem.
45
45
(let [blob-array (js-obj )]
46
46
(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]]]
50
49
(when (.supports js/ClipboardItem data-type)
51
50
(aset blob-array data-type (js/Blob. (array data) #js {:type data-type}))))
52
51
blob-array))))
Original file line number Diff line number Diff line change 314
314
::set-active
315
315
[persist]
316
316
(fn [db [_ id]]
317
- (-> db
318
- (h/set-active id)
317
+ (-> (h/set-active db id)
319
318
(h/center ))))
Original file line number Diff line number Diff line change 13
13
(derive ::hierarchy/polyshape ::hierarchy/shape )
14
14
15
15
(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 )))
19
18
20
19
(defn points->px
21
20
[points]
Original file line number Diff line number Diff line change 35
35
(cond-> []
36
36
:always (conj " M" (+ x rx) y
37
37
" H" (- (+ x width) rx))
38
-
39
38
curved? (conj " A" rx ry 0 0 1 (+ x width) (+ y ry))
40
-
41
39
:always (conj " V" (- (+ y height) ry))
42
-
43
40
curved? (conj " A" rx ry 0 0 1 (- (+ x width) rx) (+ y height))
44
-
45
41
:always (conj " H" (+ x rx))
46
-
47
42
curved? (conj " A" rx ry 0 0 1 x (- (+ y height) ry))
48
-
49
43
:always (conj " V" (+ y ry))
50
-
51
44
curved? (conj " A" rx ry 0 0 1 (+ x rx) y)
52
-
53
45
:always (conj " z" )
54
-
55
46
:always (->> (str/join " " )))))
You can’t perform that action at this time.
0 commit comments