@liquid-js/qr-code-styling 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -0
- package/README.md +3 -5
- package/lib/core/QRCodeStyling.d.ts +2 -2
- package/lib/core/QROptions.d.ts +1 -1
- package/lib/core/QRSVG.d.ts +2 -2
- package/lib/figures/cornerDot/QRCornerDot.d.ts +1 -1
- package/lib/figures/cornerSquare/QRCornerSquare.d.ts +1 -1
- package/lib/figures/dot/QRDot.d.ts +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/node.d.ts +5 -5
- package/lib/qr-code-styling-node.js.map +1 -1
- package/lib/qr-code-styling.js.map +1 -1
- package/lib/tools/browserImageTools.d.ts +1 -1
- package/lib/tools/browserUtils.d.ts +2 -2
- package/lib/tools/getMode.d.ts +1 -1
- package/lib/tools/merge.d.ts +1 -1
- package/lib/tools/sanitizeOptions.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +6 -4
package/LICENSE
CHANGED
|
@@ -2,6 +2,8 @@ MIT License
|
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2019 Denys Kozak
|
|
4
4
|
|
|
5
|
+
Copyright (c) 2023 Liquid-JS
|
|
6
|
+
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
8
|
of this software and associated documentation files (the "Software"), to deal
|
|
7
9
|
in the Software without restriction, including without limitation the rights
|
package/README.md
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/@liquid-js/qr-code-styling)
|
|
4
4
|
|
|
5
|
-
JavaScript library for generating QR codes with
|
|
5
|
+
JavaScript library for generating QR codes with customizable styling.
|
|
6
6
|
|
|
7
|
-
Try it here <https://qr
|
|
8
|
-
|
|
9
|
-
If you have issues / suggestions / notes / questions, please open an issue or contact me. Let's create a cool library together.
|
|
7
|
+
Try it here <https://styled-qr.liquidjs.io/>
|
|
10
8
|
|
|
11
9
|
## Examples
|
|
12
10
|
|
|
@@ -130,7 +128,7 @@ const qrCode = new QRCodeStyling({
|
|
|
130
128
|
qrOptions: {
|
|
131
129
|
mode: Mode.kanji
|
|
132
130
|
},
|
|
133
|
-
stringToBytesFuncs
|
|
131
|
+
stringToBytesFuncs
|
|
134
132
|
// ...other options
|
|
135
133
|
});
|
|
136
134
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtensionFunction, Options, QRCode } from "../types";
|
|
2
|
-
import { RequiredOptions } from "./QROptions";
|
|
1
|
+
import { ExtensionFunction, Options, QRCode } from "../types/index.js";
|
|
2
|
+
import { RequiredOptions } from "./QROptions.js";
|
|
3
3
|
export declare class QRCodeStyling {
|
|
4
4
|
/** @ignore */
|
|
5
5
|
_options: RequiredOptions;
|
package/lib/core/QROptions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanvasOptions, DotType, ErrorCorrectionLevel, Gradient, Mode, Options, ShapeType, TypeNumber } from "../types";
|
|
1
|
+
import { CanvasOptions, DotType, ErrorCorrectionLevel, Gradient, Mode, Options, ShapeType, TypeNumber } from "../types/index.js";
|
|
2
2
|
export interface RequiredOptions extends Options {
|
|
3
3
|
document: Document;
|
|
4
4
|
shape: ShapeType;
|
package/lib/core/QRSVG.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterFunction, Gradient, QRCode } from "../types";
|
|
2
|
-
import { RequiredOptions } from "./QROptions";
|
|
1
|
+
import { FilterFunction, Gradient, QRCode } from "../types/index.js";
|
|
2
|
+
import { RequiredOptions } from "./QROptions.js";
|
|
3
3
|
export declare class QRSVG {
|
|
4
4
|
/** @ignore */
|
|
5
5
|
_element: SVGElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicFigureDrawArgs, CornerDotType, DrawArgs, RotateFigureArgs } from "../../types";
|
|
1
|
+
import { BasicFigureDrawArgs, CornerDotType, DrawArgs, RotateFigureArgs } from "../../types/index.js";
|
|
2
2
|
export declare class QRCornerDot {
|
|
3
3
|
_element?: SVGElement;
|
|
4
4
|
_svg: SVGElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CornerSquareType, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types";
|
|
1
|
+
import { CornerSquareType, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types/index.js";
|
|
2
2
|
export declare class QRCornerSquare {
|
|
3
3
|
_element?: SVGElement;
|
|
4
4
|
_svg: SVGElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DotType, GetNeighbor, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types";
|
|
1
|
+
import { DotType, GetNeighbor, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types/index.js";
|
|
2
2
|
export declare class QRDot {
|
|
3
3
|
_element?: SVGElement;
|
|
4
4
|
_svg: SVGElement;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents";
|
|
2
|
-
import { QRCodeStyling } from "./core/QRCodeStyling";
|
|
3
|
-
import * as _browserUtils from "./tools/browserUtils";
|
|
1
|
+
import { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents.js";
|
|
2
|
+
import { QRCodeStyling } from "./core/QRCodeStyling.js";
|
|
3
|
+
import * as _browserUtils from "./tools/browserUtils.js";
|
|
4
4
|
export declare const browserUtils: typeof _browserUtils | undefined;
|
|
5
|
-
export * from "./types";
|
|
5
|
+
export * from "./types/index.js";
|
|
6
6
|
export { ErrorCorrectionPercents, QRCodeStyling };
|
package/lib/node.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RequiredOptions } from "./core/QROptions";
|
|
2
|
-
import { QRCodeStyling as _QRCodeStyling } from "./index";
|
|
3
|
-
export { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents";
|
|
4
|
-
export * from "./types";
|
|
5
|
-
import type * as _browserUtils from "./tools/browserUtils";
|
|
1
|
+
import { RequiredOptions } from "./core/QROptions.js";
|
|
2
|
+
import { QRCodeStyling as _QRCodeStyling } from "./index.js";
|
|
3
|
+
export { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents.js";
|
|
4
|
+
export * from "./types/index.js";
|
|
5
|
+
import type * as _browserUtils from "./tools/browserUtils.js";
|
|
6
6
|
export declare const browserUtils: typeof _browserUtils | undefined;
|
|
7
7
|
export declare class QRCodeStyling extends _QRCodeStyling {
|
|
8
8
|
constructor(options: RequiredOptions);
|