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
Go to the link above, click add Square, click add Circle, great you can see these in my ordering list, click and drag, that should reorder the objects on the canvas by calling the moveTo method, but as it's false it doesn't work
In my nuxt 3 application:
onMounted(() => {
const options = {
backgroundColor: '#ffffff',
selectionBorderColor: '#666666'
};
// Initialize Fabric.js canvas
canvas = new fabric.Canvas(canvasEl.value, options);
canvas.renderAll();
if (canvas) {
console.log('Canvas initialized:', canvas);
// Add objects and other functionality
}
console.log("canvas.moveTo exists:", typeof canvas.moveTo === 'function');
console.log("Canvas has sendBackwards:", typeof canvas.sendBackwards === "function");
console.log("Canvas has bringForward:", typeof canvas.bringForward === "function");
});
in my console, I can see that Canvas is initialized but the next few lines are as follows:
canvas.moveTo exists: false
Canvas has sendBackwards: false
Canvas has bringForward: false
Expected Behavior
they should be true and the methods should be available for me to use but I am getting:
Actual Behavior
Uncaught (in promise) TypeError: canvas.moveTo is not a function
Error Message & Stack Trace
**Uncaught (in promise) TypeError: canvas.moveTo is not a function**
The text was updated successfully, but these errors were encountered:
CheckList
Version
6.0.2
In What environments are you experiencing the problem?
Chrome
Node Version (if applicable)
None
Link To Reproduction
https://stackblitz.com/edit/nuxt-starter-m2eymn?file=pages%2Findex.vue
Steps To Reproduce
In my nuxt 3 application:
in my console, I can see that Canvas is initialized but the next few lines are as follows:
canvas.moveTo exists: false
Canvas has sendBackwards: false
Canvas has bringForward: false
Expected Behavior
they should be true and the methods should be available for me to use but I am getting:
Actual Behavior
Uncaught (in promise) TypeError: canvas.moveTo is not a function
Error Message & Stack Trace
The text was updated successfully, but these errors were encountered: