generated from Open-Attestation/react-component-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/add w3c svg render method shiyu proposal (#133)
* refactor: new discrimated union typings for display results * fix: use new display results and new higher level methods to update display results * refactor: shift render svg method out of the render fn * fix: ignoring of exhuastive deps eslint * fix: handle state where svg is malformed * fix: handle loading state * refactor: remove explict handle of default case * refactor: make adaptor props extends from svg renderer directly * test: fix tests and added a new test for malformed svg * chore: use onResult and loading component in example application * fix: should reset state on document change * fix: hide img until it is resolved * chore: use new interface and show malformed as an example * refactor: remove one unnecessary dep * chore: use type import to prevent importing crypto module * fix: typings in adapter * fix: should not alter svg width * chore: remove crypto fallback to avoid bundling it in the future * refactor: use imports instead * fix: load error can also be caused by cors --------- Co-authored-by: Phan Shi Yu <[email protected]>
- Loading branch information
Showing
9 changed files
with
233 additions
and
85 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
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.