src_js/iconolab-bundle/src/components/editor/Canvas.vue
changeset 330 64a8800e63eb
parent 325 8f158a4c7759
child 331 74cdfdfa9f22
equal deleted inserted replaced
329:3d9fc1b920ec 330:64a8800e63eb
     3         <div>
     3         <div>
     4             <svg ref="svg"
     4             <svg ref="svg"
     5                 v-bind:class="{ 'cut-canvas': true, 'canvas--rect': mode === 'rect', 'canvas--free': mode === 'free' }"
     5                 v-bind:class="{ 'cut-canvas': true, 'canvas--rect': mode === 'rect', 'canvas--free': mode === 'free' }"
     6                 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
     6                 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
     7                 <image ref="image" v-if="loaded" xmlns:xlink="http://www.w3.org/1999/xlink" v-bind:xlink:href="image" x="0" y="0" />
     7                 <image ref="image" v-if="loaded" xmlns:xlink="http://www.w3.org/1999/xlink" v-bind:xlink:href="image" x="0" y="0" />
     8                 <!-- This slot may contain annotation data -->
       
     9                 <slot></slot>
       
    10                 <shape-rect ref="rect" v-show="loaded &amp;&amp; mode == 'rect'"
     8                 <shape-rect ref="rect" v-show="loaded &amp;&amp; mode == 'rect'"
    11                     v-bind:paper="paper" v-bind:original-annotation="annotation"></shape-rect>
     9                     v-bind:paper="paper" v-bind:original-annotation="annotation"></shape-rect>
    12                 <shape-free ref="free" v-show="loaded &amp;&amp; mode == 'free'"
    10                 <shape-free ref="free" v-show="loaded &amp;&amp; mode == 'free'"
    13                     v-bind:paper="paper" v-bind:original-annotation="annotation"></shape-free>
    11                     v-bind:paper="paper" v-bind:original-annotation="annotation"></shape-free>
    14             </svg>
    12             </svg>