-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* maintain scale of current selections * stateful scaling + device zoom adjustments * centered pdf with no scaling * use container size for intial width * final scale adjustments on the sidepanel * better scalling + atom * test scaling helper * fix scaling on entity view * better scalling calculation * move necessary styles to sheet * minimal scaling * update spec * refactor + scale new selections * type update + metadata extractor new selections * make excepition for empty rectangles * refactor and test handler * adjust existing selections in main pdf view * cover with snaptshot * display existing references * handle new references * add document scale to redux for toc * effectivly scaling regardless of dpr * include scaling in test * adjust container padding * optional parameter * refactor * revert unnecessary normalization * fix lint * Revert "revert unnecessary normalization" This reverts commit 1279aed. * adjustments to styles & selections * avoid scaling twice * better prop for pdf container width + test update * safely adjust selections for scale * extract event bus and reduce rerenders * update snapshot * scroll element into view * adjust selector and snapshot * refactor pdf page rendering * optimize rendering * optimize pdf rendering * adjusted e2e * remove duplicated class * wip unit test for v2 pdf * use e2e instead of unit test * add responsive checks * remove unused dep * removed unused package * use realClick * extract method for testing * unit test + remove cavas dev dep * increase timeout to avoid failure * remove odd console.log * use smaller snapshots * make sure video exists before saving * stabilze e2e * stabilize new e2e
- Loading branch information
Showing
55 changed files
with
3,977 additions
and
482 deletions.
There are no files selected for viewing
This file contains 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,22 @@ | ||
#pdf-container { | ||
margin: auto; | ||
width: fit-content; | ||
|
||
.pdf-page { | ||
position: relative; | ||
} | ||
|
||
& .canvasWrapper { | ||
margin: 0; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
|
||
& canvas { | ||
margin: 0; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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 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 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.