File tree Expand file tree Collapse file tree 5 files changed +6
-19
lines changed Expand file tree Collapse file tree 5 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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))))
Original file line number Diff line number Diff line change 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 ))))
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 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 " " )))))
You can’t perform that action at this time.
0 commit comments