I have 3 layers in my product: background image, "container" phone case, and upload zone.
I want to "replace" source image for background image and refresh my view... Change one layer of my product for another image...
How can I do this?
I have this JS, where thumbnail is just a new image url.
fabric.util.loadImage(thumbnail, function (img) { var fondo = fancyProductDesigner.currentViewInstance.getElementByTitle('Fondo'); if ( fondo ) { fondo.setElement(img); fancyProductDesigner.currentViewInstance.stage.renderAll(); fondo.bringForward(); } });
Issue in this code is that my "fondo" ksclass bring to top hiding all elements of my design.
How could you achieve this funcionality? Change a layer url image for another one with no change in the rest of elements-
Daniel Ruiz
Hi!
I have 3 layers in my product: background image, "container" phone case, and upload zone.
I want to "replace" source image for background image and refresh my view... Change one layer of my product for another image...
How can I do this?
I have this JS, where thumbnail is just a new image url.
Issue in this code is that my "fondo" ksclass bring to top hiding all elements of my design.
How could you achieve this funcionality? Change a layer url image for another one with no change in the rest of elements-
Did you try to use the replace option:
https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.elementParameters.html#property_replace
- Oldest First
- Popular
- Newest First
Sorted by Oldest Firstrady kal
Did you try to use the replace option:
https://jquerydoc.fancyproductdesigner.com/classes/Options.defaults.elementParameters.html#property_replace
Daniel Ruiz
Oh, you right, thank you for your reply!
-
Adding Fancy Products to Categories
-
Shortcode for specfic product designer
-
What theme is recommended to use with FPD ?
-
Exclude Image from export
-
Google Font Family adds extras
-
Floating Dialog box
-
Uploadzone not working
-
Image transparency like in T-shirt demo
-
How do I get clipart
-
What does the LOAD button do / what is it for?
See all 2204 topics