@qr-platform/qr-code.js 0.20.6 → 0.20.8

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.
@@ -63,7 +63,7 @@ export declare class QRSVG {
63
63
  dotSize: number;
64
64
  radius?: string | number;
65
65
  }): Promise<void>;
66
- createColor({ options, borderOptions, color, additionalRotation, x, y, height, width, name, returnSVGGroup }: {
66
+ createColor({ options, borderOptions, color, additionalRotation, x, y, height, width, name, returnSVGGroup, clipPathId }: {
67
67
  options?: Gradient;
68
68
  borderOptions?: BorderOptions;
69
69
  color?: string;
@@ -74,6 +74,7 @@ export declare class QRSVG {
74
74
  width: number;
75
75
  name: string;
76
76
  returnSVGGroup?: boolean;
77
+ clipPathId?: string;
77
78
  }): void | SVGElement;
78
79
  private createMask;
79
80
  }
@@ -0,0 +1,43 @@
1
+ export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
2
+ export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
3
+ export { type RecursivePartial } from '../types/helper.js';
4
+ export { type CanvasOptions } from '../utils/canvas-options.js';
5
+ export { GradientType, type Gradient } from '../utils/gradient';
6
+ export { CornerDotType, CornerSquareType, DotType, ImageMode, ShapeType, type Options } from '../utils/options.js';
7
+ export { ErrorCorrectionPercents } from '../utils/qrcode.js';
8
+ export declare const codes: {
9
+ backgroundOptions: {
10
+ round: number;
11
+ color: string;
12
+ gradient: {
13
+ type: string;
14
+ colorStops: {
15
+ offset: number;
16
+ color: string;
17
+ }[];
18
+ };
19
+ };
20
+ name: string;
21
+ description: string;
22
+ data: string;
23
+ scale: number;
24
+ margin: number;
25
+ width: number;
26
+ height: number;
27
+ shape: string;
28
+ dotsOptions: {
29
+ type: string;
30
+ color: string;
31
+ };
32
+ cornersSquareOptions: {
33
+ type: string;
34
+ color: string;
35
+ };
36
+ cornersDotOptions: {
37
+ type: string;
38
+ color: string;
39
+ };
40
+ borderOptions: {
41
+ hasBorder: boolean;
42
+ };
43
+ }[];
@@ -0,0 +1,269 @@
1
+ export { ErrorCorrectionLevel, Mode, TypeNumber } from '~/lib/qrcode/QRCodeMinimal.js';
2
+ export { QRCodeJs, type ExtensionFunction } from '../core/qr-code-js.js';
3
+ export { type RecursivePartial } from '../types/helper.js';
4
+ export { type CanvasOptions } from '../utils/canvas-options.js';
5
+ export { GradientType, type Gradient } from '../utils/gradient';
6
+ export { CornerDotType, CornerSquareType, DotType, ImageMode, ShapeType, type Options } from '../utils/options.js';
7
+ export { ErrorCorrectionPercents } from '../utils/qrcode.js';
8
+ export declare const codes: ({
9
+ backgroundOptions: {
10
+ color: string;
11
+ round: number;
12
+ };
13
+ data: string;
14
+ scale: number;
15
+ margin: number;
16
+ width: number;
17
+ height: number;
18
+ shape: string;
19
+ dotsOptions: {
20
+ color: string;
21
+ };
22
+ cornersSquareOptions: {
23
+ color: string;
24
+ };
25
+ cornersDotOptions: {
26
+ color: string;
27
+ };
28
+ borderOptions: {
29
+ hasBorder: boolean;
30
+ };
31
+ } | {
32
+ backgroundOptions: {
33
+ color: string;
34
+ round?: undefined;
35
+ };
36
+ borderOptions: {
37
+ hasBorder: boolean;
38
+ thickness: number;
39
+ color: string;
40
+ radius: string;
41
+ decorations: {
42
+ top: {
43
+ offset: number;
44
+ value: string;
45
+ enableText: boolean;
46
+ style: {
47
+ fontColor: string;
48
+ };
49
+ };
50
+ bottom: {
51
+ offset: number;
52
+ value: string;
53
+ enableText: boolean;
54
+ style: {
55
+ fontColor: string;
56
+ };
57
+ };
58
+ };
59
+ borderOuter?: undefined;
60
+ borderInner?: undefined;
61
+ };
62
+ data: string;
63
+ scale: number;
64
+ margin: number;
65
+ width: number;
66
+ height: number;
67
+ shape: string;
68
+ dotsOptions: {
69
+ color: string;
70
+ };
71
+ cornersSquareOptions: {
72
+ color: string;
73
+ };
74
+ cornersDotOptions: {
75
+ color: string;
76
+ };
77
+ } | {
78
+ backgroundOptions: {
79
+ color: string;
80
+ round?: undefined;
81
+ };
82
+ borderOptions: {
83
+ hasBorder: boolean;
84
+ thickness: number;
85
+ color: string;
86
+ radius: string;
87
+ decorations: {
88
+ top: {
89
+ value: string;
90
+ offset: number;
91
+ enableText: boolean;
92
+ style: {
93
+ fontColor: string;
94
+ };
95
+ };
96
+ bottom: {
97
+ offset: number;
98
+ value: string;
99
+ enableText: boolean;
100
+ style: {
101
+ fontColor: string;
102
+ };
103
+ };
104
+ };
105
+ borderOuter: {
106
+ thickness: number;
107
+ color: string;
108
+ };
109
+ borderInner: {
110
+ thickness: number;
111
+ color: string;
112
+ };
113
+ };
114
+ data: string;
115
+ scale: number;
116
+ margin: number;
117
+ width: number;
118
+ height: number;
119
+ shape: string;
120
+ dotsOptions: {
121
+ color: string;
122
+ };
123
+ cornersSquareOptions: {
124
+ color: string;
125
+ };
126
+ cornersDotOptions: {
127
+ color: string;
128
+ };
129
+ } | {
130
+ backgroundOptions: {
131
+ color: string;
132
+ round?: undefined;
133
+ };
134
+ borderOptions: {
135
+ hasBorder: boolean;
136
+ thickness: number;
137
+ color: string;
138
+ radius: string;
139
+ borderOuter: {
140
+ thickness: number;
141
+ color: string;
142
+ };
143
+ borderInner: {
144
+ thickness: number;
145
+ color: string;
146
+ };
147
+ decorations?: undefined;
148
+ };
149
+ dotsOptions: {
150
+ type: string;
151
+ color: string;
152
+ gradient?: undefined;
153
+ };
154
+ data: string;
155
+ scale: number;
156
+ margin: number;
157
+ width: number;
158
+ height: number;
159
+ shape: string;
160
+ cornersSquareOptions: {
161
+ color: string;
162
+ };
163
+ cornersDotOptions: {
164
+ color: string;
165
+ };
166
+ } | {
167
+ backgroundOptions: {
168
+ color: string;
169
+ round?: undefined;
170
+ };
171
+ borderOptions: {
172
+ hasBorder: boolean;
173
+ thickness: number;
174
+ color: string;
175
+ radius: string;
176
+ borderOuter: {
177
+ thickness: number;
178
+ color: string;
179
+ };
180
+ borderInner: {
181
+ thickness: number;
182
+ color: string;
183
+ };
184
+ decorations?: undefined;
185
+ };
186
+ data: string;
187
+ scale: number;
188
+ margin: number;
189
+ width: number;
190
+ height: number;
191
+ shape: string;
192
+ dotsOptions: {
193
+ color: string;
194
+ };
195
+ cornersSquareOptions: {
196
+ color: string;
197
+ };
198
+ cornersDotOptions: {
199
+ color: string;
200
+ };
201
+ } | {
202
+ backgroundOptions: {
203
+ color: string;
204
+ round?: undefined;
205
+ };
206
+ dotsOptions: {
207
+ type: string;
208
+ gradient: {
209
+ type: string;
210
+ rotation: number;
211
+ colorStops: {
212
+ offset: number;
213
+ color: string;
214
+ }[];
215
+ };
216
+ color?: undefined;
217
+ };
218
+ cornersSquareOptions: {
219
+ type: string;
220
+ gradient: {
221
+ type: string;
222
+ colorStops: {
223
+ offset: number;
224
+ color: string;
225
+ }[];
226
+ };
227
+ color?: undefined;
228
+ };
229
+ data: string;
230
+ scale: number;
231
+ margin: number;
232
+ width: number;
233
+ height: number;
234
+ shape: string;
235
+ cornersDotOptions: {
236
+ color: string;
237
+ };
238
+ borderOptions: {
239
+ hasBorder: boolean;
240
+ };
241
+ } | {
242
+ backgroundOptions: {
243
+ color: string;
244
+ round: number;
245
+ };
246
+ dotsOptions: {
247
+ type: string;
248
+ color: string;
249
+ gradient?: undefined;
250
+ };
251
+ cornersSquareOptions: {
252
+ type: string;
253
+ color: string;
254
+ gradient?: undefined;
255
+ };
256
+ cornersDotOptions: {
257
+ type: string;
258
+ color: string;
259
+ };
260
+ data: string;
261
+ scale: number;
262
+ margin: number;
263
+ width: number;
264
+ height: number;
265
+ shape: string;
266
+ borderOptions: {
267
+ hasBorder: boolean;
268
+ };
269
+ })[];
@@ -1,2 +1,3 @@
1
1
  export declare function numToAttr(value: number): string;
2
2
  export declare function svgPath(strings: TemplateStringsArray, ...values: unknown[]): string;
3
+ export declare function isTransparent(color?: string): boolean;