0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
Commit graph

277 commits

Author SHA1 Message Date
Andrey Antukh
eabee221b6 Render selrect for shapes that are not direct descendents of page.
Shapes that forms part of one group or subgroup also can
be selected.
2016-01-20 22:46:33 +02:00
Andrey Antukh
e353d67b02 Add helper for resolve/translate shape position into real canvas coords.
This is necesary to know the real shape position in a canves
when shape is part of group or subgroup and each group has its
own coordinate system.
2016-01-20 22:41:37 +02:00
Andrey Antukh
b65e0d754a Remove println. 2016-01-20 22:41:27 +02:00
Andrey Antukh
aa5cbcce0d Add debug attrs to group shape element. 2016-01-20 22:41:03 +02:00
Andrey Antukh
2124aba21f Fix group deletion mechanism. 2016-01-20 21:45:22 +02:00
Andrey Antukh
a4d3136707 Add useful coment. 2016-01-20 21:45:13 +02:00
Andrey Antukh
d89dad3827 Minor fixes on colorpalette. 2016-01-20 20:03:48 +02:00
Andrey Antukh
12980b63f6 Remove some printlns. 2016-01-20 20:03:37 +02:00
Andrey Antukh
6183e5ef00 Add recent colors component. 2016-01-20 20:03:25 +02:00
Andrey Antukh
0de4f9074d Remove commented code. 2016-01-20 19:29:31 +02:00
Andrey Antukh
293aef9085 Add color picker to element options. 2016-01-20 19:26:02 +02:00
Andrey Antukh
49cff5429e Add missing attributes on shape svg rendering. 2016-01-20 19:25:35 +02:00
Andrey Antukh
a832bf89b4 Pass proper parameters to colorpicker on colores page. 2016-01-20 19:24:41 +02:00
Andrey Antukh
75656b442c Make parametrizable the colorpicker dimensions. 2016-01-20 19:24:27 +02:00
Andrey Antukh
73a8829e1c Add more validators to schema. 2016-01-20 19:24:08 +02:00
Andrey Antukh
7327bfba76 Update readme. 2016-01-20 18:48:23 +02:00
Andrey Antukh
2f39cc08dc Remove comment. 2016-01-20 18:46:33 +02:00
Andrey Antukh
196b4dd89b Reimplement colorpicker. 2016-01-20 18:43:31 +02:00
Andrey Antukh
fd1d6e1420 Add floor/ceil/round functions to math utils ns. 2016-01-20 18:42:55 +02:00
Andrey Antukh
9b3e41432c Set clojure 1.8.0 as default clojure. 2016-01-19 22:40:32 +02:00
Andrey Antukh
1f642548e9 Make aware of rotation the shape selrect. 2016-01-19 22:01:01 +02:00
Andrey Antukh
6a3372f22f Remove some restrictions on matrix constructor. 2016-01-19 22:00:44 +02:00
Andrey Antukh
b00e2118bc Fix typo on radians function name. 2016-01-19 22:00:21 +02:00
Andrey Antukh
8b26da4e36 Add abs function to math tools. 2016-01-19 22:00:06 +02:00
Andrey Antukh
0eec54fc30 Move some lenses from layers to icons. 2016-01-19 21:59:46 +02:00
Andrey Antukh
9f512abaeb Fix bug introduced in previous commit. 2016-01-19 18:16:28 +02:00
Andrey Antukh
48cb96221e Refactor mouse and selected shapes selrect rendering. 2016-01-19 18:13:10 +02:00
Andrey Antukh
d5bc6bb16a Move selrect into separate ns and rename it to mouse-selrect. 2016-01-19 17:05:48 +02:00
Andrey Antukh
89cc964f54 Move each toolbox into separated namespace. 2016-01-19 16:50:39 +02:00
Andrey Antukh
5ab9cb4c53 Relocate some useful functions that operates on shapes. 2016-01-18 23:24:43 +02:00
Andrey Antukh
7fb990495a Remove commented code. 2016-01-18 23:13:46 +02:00
Andrey Antukh
304a8ab74f Add some interactions to group entry on layers toolbox. 2016-01-18 23:10:15 +02:00
Andrey Antukh
0d0a94e594 Minor refactor on group-selected (shapes) event implementation. 2016-01-18 22:56:12 +02:00
Andrey Antukh
7933955a69 Attach debug related attrs to rendered shapes. 2016-01-17 23:54:34 +02:00
Andrey Antukh
db73b0787b Move matrix math and svg under uxbox.util ns. 2016-01-17 23:40:42 +02:00
Andrey Antukh
ce5675639f Add group initial impl for groups rendering. 2016-01-17 23:36:10 +02:00
Andrey Antukh
ff56734801 Add basic menu rendering for groups of shapes. 2016-01-17 23:35:38 +02:00
Andrey Antukh
7fa7213e77 Reimplement shapes rendering (using new matrix based transformations). 2016-01-17 23:35:01 +02:00
Andrey Antukh
68c153ac5d Use render-svg on render icons on the library. 2016-01-17 23:33:05 +02:00
Andrey Antukh
3b687be9b4 Add debug message for ui rendering. 2016-01-17 23:32:55 +02:00
Andrey Antukh
0f9742a83b Implement svg transform/matrix attribute calculation. 2016-01-17 23:32:28 +02:00
Andrey Antukh
669cdd1395 Add -render-svg method to shapes ns. 2016-01-17 23:32:14 +02:00
Andrey Antukh
d402442785 Remove some dead code. 2016-01-17 23:31:25 +02:00
Andrey Antukh
4f057756ee Add :builtin/group as part of shapes hierarchy. 2016-01-17 23:30:59 +02:00
Andrey Antukh
c324755f24 Add event for group selected shapes. 2016-01-17 23:30:46 +02:00
Andrey Antukh
ee838a8a2e Remove printlns. 2016-01-17 23:29:45 +02:00
Andrey Antukh
8c47d216b1 Remove required validator from shape props schema. 2016-01-17 23:29:27 +02:00
Andrey Antukh
1dc85c00c6 Minor change on code on core ns. 2016-01-17 23:29:14 +02:00
Andrey Antukh
d62a6922be Enable rerendering when new code is loaded. 2016-01-17 23:28:10 +02:00
Andrey Antukh
1725f51818 Add math utils namespace. 2016-01-17 23:27:44 +02:00