src_js/iconolab-bundle/src/components/editor/ShapeRect.vue
changeset 334 a0caf91c8374
parent 332 1670e5e1ed97
child 335 86dbf2cdeeeb
--- a/src_js/iconolab-bundle/src/components/editor/ShapeRect.vue	Tue Feb 21 15:34:27 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeRect.vue	Tue Feb 21 16:04:20 2017 +0100
@@ -155,6 +155,11 @@
                 bottomRightHandler.drag(handlerEvents.onMove, handlerEvents.onStart, handlerEvents.onEnd);
             },
 
+            getCenter: function() {
+                var shape = new Snap(this.$refs.shape);
+                console.log(shape.getBBox());
+            },
+
             fromSVGPath: function(pathString, tooltip) {
                 var bBox = Snap.path.getBBox(pathString);