reykit 1.0.139 → 1.0.140

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/dist/index.js CHANGED
@@ -49440,7 +49440,10 @@ async function xI(a, i = "qrcode.png") {
49440
49440
  const u = await cC.toDataURL(a), m = await (await fetch(u)).blob();
49441
49441
  kj(m, i);
49442
49442
  }
49443
- async function SI(a, i, u, d = 4) {
49443
+ async function SI(a, i, {
49444
+ width: u,
49445
+ margin: d = 4
49446
+ }) {
49444
49447
  if (typeof i == "string") {
49445
49448
  const g = document.getElementById(i);
49446
49449
  if (!g) throw new Error("element id not exists");
@@ -22,7 +22,10 @@ export declare function downloadQrcode(text: string, fileName?: string): Promise
22
22
  *
23
23
  * @param text - QRCode Text.
24
24
  * @param element - Element instance or id.
25
- * @param width - Width of Minimum pixel.
26
- * @param margin - Number of margin blank square.
25
+ * @param options.width - Width of Minimum pixel.
26
+ * @param options.margin - Number of margin blank square.
27
27
  */
28
- export declare function setElementQrcode(text: string, element: HTMLElement | string, width?: number, margin?: number): Promise<void>;
28
+ export declare function setElementQrcode(text: string, element: HTMLElement | string, { width, margin }: {
29
+ width?: number;
30
+ margin?: number;
31
+ }): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.139",
3
+ "version": "1.0.140",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [