0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

Add missing -move impl for group.

This commit is contained in:
Andrey Antukh 2016-01-30 13:49:48 +02:00
parent e1a15aed9a
commit 17597ced08

View file

@ -164,6 +164,12 @@
:x (+ (:x shape) dx)
:y (+ (:y shape) dy)))
(defmethod -move :builtin/group
[shape [dx dy]]
(assoc shape
:dx (+ (:dx shape 0) dx)
:dy (+ (:dy shape 0) dy)))
(defmethod -move :builtin/line
[shape [dx dy]]
(assoc shape