-
Notifications
You must be signed in to change notification settings - Fork 0
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
"Include in Report Button" for external Apps #46
Comments
This has to be included in csis-helper module. Modules are for functionality themes for looking nice :-) May be I missed something on glimpsing on html2canvas. But how do we get an Imagefile from that to upload to the server? |
Here is an example: https://github.com/clarity-h2020/scenario-analysis/blob/dev/app/scripts/controllers/mainController.js#L170
See also https://html2canvas.hertzen.com/ |
Ah thank you. |
@fgeyer16 Any progress, plans, suggestions, ... here :-) Is this the 'Snapshot' Field? |
@patrickkaleta @fgeyer16 |
Screenshots of maps and table are now being stored as Report images, which are linked to the corresponding GL-Step and can be viewed in the Summary tab and printed out in the report. @p-a-s-c-a-l So the whole approach looks like this:
|
I wouldn't close this issue just yet, since @DenoBeno suggested that we show to the user an Edit-form, where he/she can enter a description for the Report image, when they click on the "Include in Report" Button. |
Any progress to report here? |
Already done. Suggestions by @DenoBeno have been implemented. I forgot to update & close the issue. |
The Button does not work for the Study Area Map. |
As described in this issue, we have to extend ReactMount and iFrame Content Types by an "Include in report" button that uses html2canvas to create a screenshot of the whole embedded app (e.g. map component with all layers as shown on the screen, table component or scenario-analysis component) and stores it in the GL-Step.
We could either add html2canvas.min.js to csis.libraries.yml in csis-theme and add a
<button>
+ the respective REST calls to the Drupal API directly in an HTML field. Or we integrate the functionality (JS function) in the csis-helpers-module.In any case, the "Include in Report Button" needs to be parametrised with the following contextual information:
The text was updated successfully, but these errors were encountered: