8000 Fix Font Max Size · rurusyu/image-editor-vue@3a2adc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a2adc8

Browse files
committed
Fix Font Max Size
1 parent 889fce2 commit 3a2adc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/Canvas.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<input
44
type="range"
55
min="20"
6-
max="150"
6+
max="72"
77
v-model="fontSize"
88
@change="setFontSize"
99
/>
@@ -27,7 +27,6 @@
2727
<script>
2828
import { fabric } from 'fabric';
2929
import { Sketch } from 'vue-color';
30-
import axios from 'axios';// eslint-disable-line no-unused-vars
3130
import CanvasMixin from '@/mixin/canvasMixin';
3231
3332
export default {
@@ -189,7 +188,7 @@ export default {
189188
const parsedJSON = JSON.parse(json) // JSON을 load 할땐 파싱하면 인식못하기에 파싱된 데이터는 따로 저장
190189
191190
if(json) {
192-
this.canvas.loadFromJSON(json, this.canvas.renderAll.bind(this.canvas), (o, object) => {// eslint-disable-line no-unused-vars
191+
this.canvas.loadFromJSON(json, this.canvas.renderAll.bind(this.canvas), () => {
193192
if(parsedJSON.backgroundImage) {
194193
this.canvas.setHeight(parsedJSON.backgroundImage.height);
195194

0 commit comments

Comments
 (0)
0