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
let sheet = window.document.styleSheets[0];
sheet.insertRule(.ptro-center-tablecell { background-image: url("${imgURL}"); background-repeat : no-repeat; background-position: center center; background-size = ${width}px ${height}px}, sheet.cssRules.length);
Screenshots
When I draw it, over this image
And I save with the saveHandler the secondImgURL, I can continue with my draw the next time I open painterro with the code in Expected behavior.
However, when I simply apply this: **Painterro({backplateImgUrl : imgURL}).show(secondImgURL); ** secondImgURL does not charge:
Browser
Google Chrome version 92.0.4515.131 on Windows
The text was updated successfully, but these errors were encountered:
Describe the bug
backplateImgUrl property nullifies the openImage parameter of .show()
Painterro version
v1.2.58
To Reproduce
// secondImageURL does not appears
Painterro({backplateImgUrl : imgURL}).show(secondImgURL);
// secondImageURL appears
Painterro().show(secondImgURL);
Expected behavior
// What happens when:
Painterro({/backplateImgUrl : imgURL,/ backgroundFillColorAlpha : 0.0,
defaultSize :
${width}x${heigth}
}).show(this.secondImgURL);let sheet = window.document.styleSheets[0];
sheet.insertRule(
.ptro-center-tablecell { background-image: url("${imgURL}"); background-repeat : no-repeat; background-position: center center; background-size = ${width}px ${height}px}
, sheet.cssRules.length);Screenshots
When I draw it, over this image
And I save with the saveHandler the secondImgURL, I can continue with my draw the next time I open painterro with the code in Expected behavior.
However, when I simply apply this: **Painterro({backplateImgUrl : imgURL}).show(secondImgURL); ** secondImgURL does not charge:
Browser
Google Chrome version 92.0.4515.131 on Windows
The text was updated successfully, but these errors were encountered: