New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot render server side image that contains a Picture #80
Comments
We'll investigate. |
It seems that, in puppeteer, the Additionally, it seems in puppeteer that getting the value of |
This has been fixed for SVG, but not for This may be a puppeteer issue, where puppeteer needs the images loaded on the page in order to work correctly. From what I've seen so far, images created in JavaScript in Puppeteer, even after loading, always have a width/height/naturalWidth/naturalHeight of 0, which is unfortunate. |
We've just released GoJS 2.0.14, which might fix this issue. It at least, I think, fixes the SVG version of the issue. Below is the script I have used to test. If you have an example of puppeteer correctly drawing images to a canvas but not to GoJS, I would be interested to see why, and try to find out what's different.
|
Description
I have followed the example from the documentation to render server side images with puppeteer. I have tried to render both png and svg, but it did not work. I have used the following code:
I am using:
Desired behaviour
The two files should be PNG and SVG file containing the picture. If I specify the
desiredSize
property, the diagram should contain the picture with the right dimensions.Observerd behaviour
The files do not contain the picture. The SVG file contains:
If I specify the
desiredSize
property, I get the following error message:The issue is possibly related to issue #46.
The text was updated successfully, but these errors were encountered: