equal
deleted
inserted
replaced
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 && mode == 'rect'" |
8 <shape-rect ref="rect" v-show="loaded && 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 && mode == 'free'" |
10 <shape-free ref="free" v-show="loaded && 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> |