├── .DS_Store ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .node-version ├── .npmignore ├── .prettierrc.js ├── LICENSE ├── README.md ├── jest.config.js ├── package.json ├── src ├── assets │ ├── .DS_Store │ ├── facebook_example_new.png │ ├── instagram_example.png │ ├── qr_code_example.png │ ├── telegram_example_new.png │ └── test │ │ ├── image_from_readme.png │ │ ├── rounded_dots.png │ │ ├── simple_dots.png │ │ ├── simple_qr.png │ │ ├── simple_qr_with_image.png │ │ ├── simple_qr_with_image_margin.png │ │ ├── simple_qr_with_margin_canvas.png │ │ └── simple_square_dot.png ├── constants │ ├── cornerDotTypes.ts │ ├── cornerSquareTypes.ts │ ├── dotTypes.test.js │ ├── dotTypes.ts │ ├── drawTypes.ts │ ├── errorCorrectionLevels.test.js │ ├── errorCorrectionLevels.ts │ ├── errorCorrectionPercents.test.js │ ├── errorCorrectionPercents.ts │ ├── gradientTypes.ts │ ├── modes.test.js │ ├── modes.ts │ ├── qrTypes.test.js │ ├── qrTypes.ts │ └── shapeTypes.ts ├── core │ ├── QRCodeStyling.test.js │ ├── QRCodeStyling.ts │ ├── QROptions.test.js │ ├── QROptions.ts │ └── QRSVG.ts ├── figures │ ├── cornerDot │ │ └── QRCornerDot.ts │ ├── cornerSquare │ │ └── QRCornerSquare.ts │ └── dot │ │ └── QRDot.ts ├── index.html ├── index.test.js ├── index.ts ├── tools │ ├── calculateImageSize.test.js │ ├── calculateImageSize.ts │ ├── downloadURI.ts │ ├── getMode.test.js │ ├── getMode.ts │ ├── merge.test.js │ ├── merge.ts │ ├── sanitizeOptions.ts │ └── toDataUrl.ts └── types │ └── index.ts ├── tsconfig.json ├── webpack.config.build.js ├── webpack.config.common.js └── webpack.config.dev-server.js /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.DS_Store -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib 2 | node_modules 3 | coverage 4 | /*.* -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.gitignore -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | 16 -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/package.json -------------------------------------------------------------------------------- /src/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/.DS_Store -------------------------------------------------------------------------------- /src/assets/facebook_example_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/facebook_example_new.png -------------------------------------------------------------------------------- /src/assets/instagram_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/instagram_example.png -------------------------------------------------------------------------------- /src/assets/qr_code_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/qr_code_example.png -------------------------------------------------------------------------------- /src/assets/telegram_example_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/telegram_example_new.png -------------------------------------------------------------------------------- /src/assets/test/image_from_readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/image_from_readme.png -------------------------------------------------------------------------------- /src/assets/test/rounded_dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/rounded_dots.png -------------------------------------------------------------------------------- /src/assets/test/simple_dots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_dots.png -------------------------------------------------------------------------------- /src/assets/test/simple_qr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_qr.png -------------------------------------------------------------------------------- /src/assets/test/simple_qr_with_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_qr_with_image.png -------------------------------------------------------------------------------- /src/assets/test/simple_qr_with_image_margin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_qr_with_image_margin.png -------------------------------------------------------------------------------- /src/assets/test/simple_qr_with_margin_canvas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_qr_with_margin_canvas.png -------------------------------------------------------------------------------- /src/assets/test/simple_square_dot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/assets/test/simple_square_dot.png -------------------------------------------------------------------------------- /src/constants/cornerDotTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/cornerDotTypes.ts -------------------------------------------------------------------------------- /src/constants/cornerSquareTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/cornerSquareTypes.ts -------------------------------------------------------------------------------- /src/constants/dotTypes.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/dotTypes.test.js -------------------------------------------------------------------------------- /src/constants/dotTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/dotTypes.ts -------------------------------------------------------------------------------- /src/constants/drawTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/drawTypes.ts -------------------------------------------------------------------------------- /src/constants/errorCorrectionLevels.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/errorCorrectionLevels.test.js -------------------------------------------------------------------------------- /src/constants/errorCorrectionLevels.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/errorCorrectionLevels.ts -------------------------------------------------------------------------------- /src/constants/errorCorrectionPercents.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/errorCorrectionPercents.test.js -------------------------------------------------------------------------------- /src/constants/errorCorrectionPercents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/errorCorrectionPercents.ts -------------------------------------------------------------------------------- /src/constants/gradientTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/gradientTypes.ts -------------------------------------------------------------------------------- /src/constants/modes.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/modes.test.js -------------------------------------------------------------------------------- /src/constants/modes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/modes.ts -------------------------------------------------------------------------------- /src/constants/qrTypes.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/qrTypes.test.js -------------------------------------------------------------------------------- /src/constants/qrTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/qrTypes.ts -------------------------------------------------------------------------------- /src/constants/shapeTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/constants/shapeTypes.ts -------------------------------------------------------------------------------- /src/core/QRCodeStyling.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/core/QRCodeStyling.test.js -------------------------------------------------------------------------------- /src/core/QRCodeStyling.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/core/QRCodeStyling.ts -------------------------------------------------------------------------------- /src/core/QROptions.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/core/QROptions.test.js -------------------------------------------------------------------------------- /src/core/QROptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/core/QROptions.ts -------------------------------------------------------------------------------- /src/core/QRSVG.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/core/QRSVG.ts -------------------------------------------------------------------------------- /src/figures/cornerDot/QRCornerDot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/figures/cornerDot/QRCornerDot.ts -------------------------------------------------------------------------------- /src/figures/cornerSquare/QRCornerSquare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/figures/cornerSquare/QRCornerSquare.ts -------------------------------------------------------------------------------- /src/figures/dot/QRDot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/figures/dot/QRDot.ts -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/index.test.js -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tools/calculateImageSize.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/calculateImageSize.test.js -------------------------------------------------------------------------------- /src/tools/calculateImageSize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/calculateImageSize.ts -------------------------------------------------------------------------------- /src/tools/downloadURI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/downloadURI.ts -------------------------------------------------------------------------------- /src/tools/getMode.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/getMode.test.js -------------------------------------------------------------------------------- /src/tools/getMode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/getMode.ts -------------------------------------------------------------------------------- /src/tools/merge.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/merge.test.js -------------------------------------------------------------------------------- /src/tools/merge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/merge.ts -------------------------------------------------------------------------------- /src/tools/sanitizeOptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/sanitizeOptions.ts -------------------------------------------------------------------------------- /src/tools/toDataUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/tools/toDataUrl.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/webpack.config.build.js -------------------------------------------------------------------------------- /webpack.config.common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/webpack.config.common.js -------------------------------------------------------------------------------- /webpack.config.dev-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/qr-code-styling/HEAD/webpack.config.dev-server.js --------------------------------------------------------------------------------