@qr-platform/qr-code.js 0.10.4 → 0.10.6

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.
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient.js';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -130,4 +128,3 @@ export declare const codes: {
130
128
  };
131
129
  };
132
130
  }[];
133
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -126,4 +124,3 @@ export declare const codes: {
126
124
  };
127
125
  };
128
126
  }[];
129
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -1,7 +1,5 @@
1
- import * as _browserUtils from '../tools/browser-utils.js';
2
1
  export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
3
2
  export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
4
- export { FileExtension } from '../tools/browser-utils.js';
5
3
  export { type RecursivePartial } from '../types/helper.js';
6
4
  export { type CanvasOptions } from '../utils/canvas-options.js';
7
5
  export { GradientType, type Gradient } from '../utils/gradient';
@@ -127,4 +125,3 @@ export declare const codes: {
127
125
  };
128
126
  };
129
127
  }[];
130
- export declare const browserUtils: typeof _browserUtils | undefined;
@@ -2,6 +2,9 @@ export interface CanvasOptions {
2
2
  width: number;
3
3
  height: number;
4
4
  margin: number;
5
+ antialias: boolean;
6
+ antialiasLevel: 'low' | 'medium' | 'high';
7
+ antialiasFactor: number;
5
8
  }
6
9
  export declare const defaultCanvasOptions: CanvasOptions;
7
10
  export declare function sanitizeCanvasOptions(options: CanvasOptions): CanvasOptions;
@@ -3,6 +3,12 @@ import { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinim
3
3
  import { QRBorderPluginStyleOptions } from '../plugins/QRBorderPlugin';
4
4
  import { browserImageTools } from '../tools/browser-image-tools';
5
5
  import { Gradient } from './gradient';
6
+ export declare enum FileExtension {
7
+ svg = "svg",
8
+ png = "png",
9
+ jpeg = "jpeg",
10
+ webp = "webp"
11
+ }
6
12
  export interface DecorationOption {
7
13
  disabled?: boolean;
8
14
  offset?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qr-platform/qr-code.js",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "description": "QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you to design unique, visually appealing QR codes that work flawlessly with standard scanners. QRCode.js is part of QR-Platform: All-in-One QR Codes Management Solution.",
5
5
  "type": "module",
6
6
  "main": "./lib/node.js",
@@ -1,18 +0,0 @@
1
- import { QRCodeJs } from '../core/qr-code-js.js';
2
- import { RecursivePartial } from '../types/helper.js';
3
- import { CanvasOptions } from '../utils/canvas-options.js';
4
- export declare enum FileExtension {
5
- svg = "svg",
6
- png = "png",
7
- jpeg = "jpeg",
8
- webp = "webp"
9
- }
10
- export declare function drawToCanvas(qrCode: QRCodeJs, options?: RecursivePartial<CanvasOptions>): {
11
- canvas: HTMLCanvasElement;
12
- canvasDrawingPromise: Promise<void> | undefined;
13
- } | undefined;
14
- export declare function download(qrCode: QRCodeJs, downloadOptions?: {
15
- name?: string;
16
- extension: `${FileExtension}`;
17
- }, options?: RecursivePartial<CanvasOptions>): Promise<void>;
18
- export declare function downloadURI(uri: string, name: string): void;
@@ -1,18 +0,0 @@
1
- import { QRCodeJs } from '../core/qr-code-js.js';
2
- import { RecursivePartial } from '../types/helper.js';
3
- import { CanvasOptions } from '../utils/canvas-options.js';
4
- export declare enum FileExtension {
5
- svg = "svg",
6
- png = "png",
7
- jpeg = "jpeg",
8
- webp = "webp"
9
- }
10
- export declare function drawToCanvas(qrCode: QRCodeJs, options?: RecursivePartial<CanvasOptions>): {
11
- canvas: HTMLCanvasElement;
12
- canvasDrawingPromise: Promise<void> | undefined;
13
- } | undefined;
14
- export declare function download(qrCode: QRCodeJs, downloadOptions?: {
15
- name?: string;
16
- extension: `${FileExtension}`;
17
- }, options?: RecursivePartial<CanvasOptions>): Promise<void>;
18
- export declare function downloadURI(uri: string, name: string): void;