Fix bug on zoom with free shape.
--- a/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Thu May 18 10:37:26 2017 +0200
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Thu May 18 11:06:56 2017 +0200
@@ -1,5 +1,5 @@
<template>
- <svg>
+ <g>
<defs>
<path v-bind:id="annotationHref" ref="path" v-bind:d="path" class="path"></path>
</defs>
@@ -18,15 +18,15 @@
v-bind:stroke-width="strokeWidth"
v-bind:class="{ handler: true, 'handler--first': key === 0 && !closed }"></circle>
<text ref="text"
- v-if="!originalAnnotation && !closed && points.length > 3"
v-bind:x="text.x" v-bind:y="text.y"
- font-family="Verdana"
+ v-show="!originalAnnotation && !closed && points.length > 3"
+ font-family="Open Sans"
v-bind:font-size="strokeWidth * 4"
class="text">
Double-cliquez pour fermer la zone
</text>
<g>
- </svg>
+ </g>
</template>
<script>