Open pierretsap opened 2 years ago
Hi, you need to set the editor dimensions in mounted before setting the drawing mode:
this.$refs.editor.canvas.setDimensions({ width: this.canvasWidth, height: this.canvasHeight, });
Also apply
:canvasWidth="canvasWidth" :canvasHeight="canvasHeight"
to the editor and increase both to around
canvasWidth: 1000, canvasHeight: 1000,
Having the same issue. Moreover, this error happens when re-setting the 'text' tool while editing a text object. Any idea how to fix it ?
Also having the same issue as described by @aloggnet. Changing/updating a param while the text tool is specified and the text content/placeholder is highlighted causes the toLowerCase error as above.
@aloggnet @SethnBardsley @pierretsap I have found that specifically setting the fontStyle param to the default 'normal' fixes this issue for me.
It works in this project's demo (https://image-markup.lionix-team.com) but we don't have access to the code is there a way to see it ?