-
-
Notifications
You must be signed in to change notification settings - Fork 43
plotly-graph PDF with electron's printToPDF #6
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
090b200
add util/remote + mucho plotly-dashboard tests
etpinard 54b4173
add printToPDF renderer logic for plotly-graph
etpinard 406b920
pass 'scale' to Plotly.toImage
etpinard f69172b
rewrite batik util
etpinard b2b3ea3
add pdftops util (to convert pdf2eps)
etpinard b90d7fc
add pretest script
etpinard 828d2a3
scale PDF pageSize in render
etpinard 1c9193e
update plotly-graph convert with new batik + pdftops logic
etpinard f104ad3
Merge branch 'master' into plotly-graph-pdf
etpinard 5992a8b
improve printToPDF page size logic
etpinard 135cb1b
new format=pdf strategy:
etpinard 649f97f
put pdf page image load timeout value in constants.js
etpinard 23cfc95
add plotGlPixelRatio to improve look of gl3d grid lines
etpinard acb007b
fixup tests
etpinard 96b1fbc
:hocho: batik as `printToPDF` :trophy:
etpinard f8708a2
add test convert + Pdftops instance test
etpinard 11b67c3
add circleci 2.0 config
etpinard 47614f9
:books:
etpinard f93bd57
rm unnecessary else branch
etpinard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
# see https://circleci.com/docs/2.0/circleci-images/ | ||
# use '-browsers' version to have access to xvfb wrappers | ||
- image: circleci/node:6.10.3-browsers | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: npm install | ||
|
||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
|
||
# install pdftops | ||
- run: sudo apt-get install poppler-utils | ||
|
||
- run: npm test | ||
|
||
- store_artifacts: | ||
path: build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
iframeLoadDelay: 5000, | ||
|
||
statusMsg: { | ||
525: 'print to PDF error' | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle 2.0 is blazing fast 🐎 - see https://circleci.com/docs/2.0/