src_js/iconolab-bundle/src/components/editor/ShapeRect.vue
changeset 408 159042869b47
parent 350 7c0b98b10e00
child 418 a04c55054afe
equal deleted inserted replaced
407:74e0a5ea614a 408:159042869b47
     1 <template>
     1 <template>
     2 <g ref="g" v-bind:transform="transform">
     2 <g ref="g" filter="url(#shadow)" v-bind:transform="transform">
     3     <rect
     3     <rect
     4         ref="shape"
     4         ref="shape"
     5         x="0" y="0"
     5         x="0" y="0"
     6         v-bind:width="width" v-bind:height="height"
     6         v-bind:width="width" v-bind:height="height"
     7         v-bind:stroke-width="handlerSize / 5"
     7         v-bind:stroke-width="handlerSize / 5"
     8         v-bind:stroke-dasharray="(handlerSize / 5) + ',' + (handlerSize / 5)"
       
     9         class="shape"
     8         class="shape"
    10         v-bind:class="{ 'shape--draggable': !readonly }"></rect>
     9         v-bind:class="{ 'shape--draggable': !readonly }"></rect>
    11     <rect
    10     <rect
    12         ref="topLeft"
    11         ref="topLeft"
    13         v-show="showResizeHandlers"
    12         v-show="showResizeHandlers"
   206 
   205 
   207 </script>
   206 </script>
   208 
   207 
   209 <style scoped>
   208 <style scoped>
   210 .shape {
   209 .shape {
   211     fill: #bdc3c7;
   210     fill: transparent;
   212     stroke: #000;
   211     stroke: #000;
   213     opacity: 0.6;
   212     opacity: 0.6;
   214 }
   213 }
   215 .shape--draggable:hover {
   214 .shape--draggable:hover {
   216     cursor: move;
   215     cursor: move;