Comments (7)
Hi, you will need to set the url for the component to work. The default for this prop is ../vue.png so if this file does not exist in your vue project it will not load.
from vue-fabric-wrapper.
I noticed that upon looking further. Thank you for the reply.
I do have one more question.
If I put a string url in the :url section, it loads correctly, but if I have the url as a reactive property (ie a computed property), no image is loading.
Thank you for your responses :) I'm not a programmer by trade, learning out of budget necessity to build tools for my shop
from vue-fabric-wrapper.
Not sure what is wrong here is an example: https://codesandbox.io/s/debug-eqeyv
from vue-fabric-wrapper.
https://codesandbox.io/s/debug-4kfd1
I replicated the issue I'm having. Nothing throws in the console, the object updates correctly but the image doesn't.
Once again, thank you so much for your help :)
from vue-fabric-wrapper.
Ahh i see your problem. The url prop does not refresh the image. To get around this see below:
https://codesandbox.io/s/debug-gf460
Basically don't render the component unless the url is set.
If you wish to swap the url once rendered you will likely need to set the prop back to "" then wait for next tick before setting it again.
from vue-fabric-wrapper.
example: https://codesandbox.io/s/debug-f5buh
from vue-fabric-wrapper.
Thank you so much :)
from vue-fabric-wrapper.
Related Issues (20)
- How to use ITEXT HOT 2
- Resizing canvas and zooming content HOT 2
- Bringing objects to front/back HOT 1
- How to pass props as objects ? instead passing single props HOT 1
- adding an object the group via v-for after the group has moved HOT 1
- v-for on `fabric-canvas` component breaks the structure HOT 3
- Is there a prop for textColor, or a way to override the CSS?
- Why is the image not displayed when fabric-group‘s members initialize fabric-image? HOT 1
- svg-from-url is not positioned or displayed HOT 1
- Resize image from url by touch on mobile HOT 1
- How can I remove objects? HOT 1
- create object in canvas via js HOT 2
- How to add object dynamic
- Controls customization
- Fabric Version Is Old
- I am facing issue with Vue3 HOT 1
- Dependency Dashboard
- How can I serialize the state of the canvas and redraw later on?
- Images always go on top of text elements
- Programatic way of delesecting an element
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-fabric-wrapper.