mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 14:09:17 +00:00
🐛 Fix trailing comma in matrix->str and remove duplicate dispatch
matrix->str was producing malformed strings like '1,0,0,1,0,0,' instead of '1,0,0,1,0,0', breaking string serialization of matrix values used in transit and print-dup handlers. Also remove the first pp/simple-dispatch registration for Matrix at line 362 which was dead code shadowed by the identical registration further down in the file. Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
a7e362dbfe
commit
3d4c914daa
@ -101,7 +101,7 @@
|
|||||||
(dm/get-prop o :c) ","
|
(dm/get-prop o :c) ","
|
||||||
(dm/get-prop o :d) ","
|
(dm/get-prop o :d) ","
|
||||||
(dm/get-prop o :e) ","
|
(dm/get-prop o :e) ","
|
||||||
(dm/get-prop o :f) ",")
|
(dm/get-prop o :f))
|
||||||
o))
|
o))
|
||||||
|
|
||||||
(defn- matrix->json
|
(defn- matrix->json
|
||||||
@ -359,8 +359,6 @@
|
|||||||
(th-eq m1e m2e)
|
(th-eq m1e m2e)
|
||||||
(th-eq m1f m2f))))
|
(th-eq m1f m2f))))
|
||||||
|
|
||||||
(defmethod pp/simple-dispatch Matrix [obj] (pr obj))
|
|
||||||
|
|
||||||
(defn transform-in [pt mtx]
|
(defn transform-in [pt mtx]
|
||||||
(if (and (some? pt) (some? mtx))
|
(if (and (some? pt) (some? mtx))
|
||||||
(-> (matrix)
|
(-> (matrix)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user