temporarily change cropper stencil back to rectangle

This commit is contained in:
MarcZierle 2022-05-04 18:52:40 +02:00
parent 82cd293f59
commit d3e44220c7

View File

@ -4,7 +4,7 @@
<cropper <cropper
class="cropper" class="cropper"
:src="snap_to_inters ? srcImageIntersections : src" :src="snap_to_inters ? srcImageIntersections : src"
:stencil-component="this.$options.components.FreeSnapStencil" :stencil-component="this.$options.components.RectangleStencil"
:stencil-props="stencilProps" :stencil-props="stencilProps"
:auto-zoom="true" :auto-zoom="true"
@change="change" @change="change"
@ -35,7 +35,7 @@
</template> </template>
<script> <script>
import {Cropper} from 'vue-advanced-cropper' import {Cropper, RectangleStencil} from 'vue-advanced-cropper'
import FreeSnapStencil from '../components/FreeSnapStencil.vue' import FreeSnapStencil from '../components/FreeSnapStencil.vue'
import 'vue-advanced-cropper/dist/style.css' import 'vue-advanced-cropper/dist/style.css'
@ -45,6 +45,7 @@ export default {
components: { components: {
Cropper, Cropper,
FreeSnapStencil, FreeSnapStencil,
RectangleStencil
}, },
props: { props: {
src: { src: {