--- a/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Wed Mar 15 17:11:48 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Wed Mar 15 17:34:53 2017 +0100
@@ -1,13 +1,11 @@
<template>
<svg>
<defs>
- <path v-bind:id="annotationHref" ref="path" v-bind:d="path"
- class="path"
- v-bind:stroke-width="handlerRadius / 2"></path>
+ <path v-bind:id="annotationHref" ref="path" v-bind:d="path" class="path"></path>
</defs>
<g ref="g" filter="url(#shadow)">
- <use v-bind:xlink:href="annotationSelector" v-bind:stroke-width="(handlerRadius / 2) * 2" class="stroke-bg" />
- <use v-bind:xlink:href="annotationSelector" v-bind:stroke-width="handlerRadius / 2" class="stroke-fg" />
+ <use v-bind:xlink:href="annotationSelector" v-bind:stroke-width="strokeWidth * 2" class="stroke-bg" />
+ <use v-bind:xlink:href="annotationSelector" v-bind:stroke-width="strokeWidth" class="stroke-fg" />
<circle ref="handlers"
v-for="(point, key) in points"
:key="key"
@@ -15,8 +13,8 @@
v-bind:data-key="key"
v-bind:cx="point.x"
v-bind:cy="point.y"
- v-bind:r="handlerRadius"
- v-bind:stroke-width="handlerRadius / 2"
+ v-bind:r="strokeWidth * 2"
+ v-bind:stroke-width="strokeWidth"
v-bind:class="{ handler: true, 'handler--first': key === 0 && !closed }"></circle>
<g>
</svg>
@@ -35,13 +33,13 @@
'original-annotation',
'original-path',
'readonly',
+ 'stroke-width',
],
data() {
return {
path: '',
closed: false,
points: [],
- handlerRadius: 30
}
},
computed: {