You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at klass.getFontCache (fabric.js?bec3:25307)
at klass._measureChar (fabric.js?bec3:25342)
at klass._getGraphemeBox (fabric.js?bec3:25446)
at klass._measureLine (fabric.js?bec3:25418)
at klass.measureLine (fabric.js?bec3:25395)
at klass.getLineWidth (fabric.js?bec3:25807)
at klass.calcTextWidth (fabric.js?bec3:25206)
at klass.initDimensions (fabric.js?bec3:25069)
at klass.callSuper (fabric.js?bec3:2208)
at klass.initDimensions (fabric.js?bec3:26710)
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,
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.
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 ?
The text was updated successfully, but these errors were encountered: