@rdlabo/capacitor-brotherprint 6.4.1 → 6.4.3
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/README.md +50 -41
- package/dist/docs.json +72 -13
- package/dist/esm/brother-printer.enum.d.ts +17 -4
- package/dist/esm/brother-printer.enum.js +31 -18
- package/dist/esm/brother-printer.enum.js.map +1 -1
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js +31 -18
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +31 -18
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -386,7 +386,7 @@ Make all properties in T optional
|
|
|
386
386
|
|
|
387
387
|
#### BRLMChannelResult
|
|
388
388
|
|
|
389
|
-
<code>{ port: <a href="#
|
|
389
|
+
<code>{ port: <a href="#brlmprinterport">BRLMPrinterPort</a>; modelName: string; serialNumber: string; macAddress: string; nodeName: string; location: string; /** * This need to connect to the printer. * wifi: IP Address * bluetooth: macAddress * bluetoothLowEnergy: modelName for bluetoothLowEnergy */ channelInfo: string; }</code>
|
|
390
390
|
|
|
391
391
|
|
|
392
392
|
#### BRLMPrinterQLModelSettings
|
|
@@ -423,12 +423,12 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
423
423
|
|
|
424
424
|
#### BRLMPrinterTDModelSettings
|
|
425
425
|
|
|
426
|
-
<code>{ /** * Should use enum
|
|
426
|
+
<code>{ /** * Should use enum BRKMPrinterCustomPaperType */ paperType: <a href="#brlmprintercustompapertype">BRLMPrinterCustomPaperType</a>; /** * The width of the label. For example, the RD-U04J1 is 60.0 wide. */ tapeWidth: number; /** * The length of the label. For example, the RD-U04J1 is 60.0 wide. */ tapeLength: number; /** * It is the difference between a sticker and a mount. * For example, the RD-U04J1 is `1.0, 2.0, 1.0, 2.0` */ marginTop: number; marginRight: number; marginBottom: number; marginLeft: number; /** * The spacing between seals. For example, the RD-U04J1 is 0.2. */ gapLength: number; paperMarkPosition: number; paperMarkLength: number; /** * Should use enum BRKMPrinterCustomPaperUnit. * For example, the RD-U04J1 is mm. */ paperUnit: <a href="#brlmprintercustompaperunit">BRLMPrinterCustomPaperUnit</a>; }</code>
|
|
427
427
|
|
|
428
428
|
|
|
429
429
|
#### BRLMSearchOption
|
|
430
430
|
|
|
431
|
-
<code>{ /** * 'usb' is android only, and now developing. */ port: <a href="#
|
|
431
|
+
<code>{ /** * 'usb' is android only, and now developing. */ port: <a href="#brlmprinterport">BRLMPrinterPort</a>; /** * searchDuration is the time to end search for devices. * default is 15 seconds. * use only port is 'wifi' or 'bluetoothLowEnergy'. */ searchDuration: number; }</code>
|
|
432
432
|
|
|
433
433
|
|
|
434
434
|
#### ErrorInfo
|
|
@@ -451,7 +451,7 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
451
451
|
| **`TD_2350D_300`** | <code>'TD_2350D_300'</code> |
|
|
452
452
|
|
|
453
453
|
|
|
454
|
-
####
|
|
454
|
+
#### BRLMPrinterPort
|
|
455
455
|
|
|
456
456
|
| Members | Value |
|
|
457
457
|
| ------------------------ | --------------------------------- |
|
|
@@ -463,41 +463,50 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
463
463
|
|
|
464
464
|
#### BRLMPrinterLabelName
|
|
465
465
|
|
|
466
|
-
| Members
|
|
467
|
-
|
|
|
468
|
-
| **`DieCutW17H54`**
|
|
469
|
-
| **`DieCutW17H87`**
|
|
470
|
-
| **`DieCutW23H23`**
|
|
471
|
-
| **`DieCutW29H42`**
|
|
472
|
-
| **`DieCutW29H90`**
|
|
473
|
-
| **`DieCutW38H90`**
|
|
474
|
-
| **`DieCutW39H48`**
|
|
475
|
-
| **`DieCutW52H29`**
|
|
476
|
-
| **`DieCutW62H29`**
|
|
477
|
-
| **`DieCutW62H60`**
|
|
478
|
-
| **`DieCutW62H75`**
|
|
479
|
-
| **`DieCutW62H100`**
|
|
480
|
-
| **`DieCutW60H86`**
|
|
481
|
-
| **`DieCutW54H29`**
|
|
482
|
-
| **`DieCutW102H51`**
|
|
483
|
-
| **`DieCutW102H152`**
|
|
484
|
-
| **`DieCutW103H164`**
|
|
485
|
-
| **`RollW12`**
|
|
486
|
-
| **`RollW29`**
|
|
487
|
-
| **`RollW38`**
|
|
488
|
-
| **`RollW50`**
|
|
489
|
-
| **`RollW54`**
|
|
490
|
-
| **`RollW62`**
|
|
491
|
-
| **`RollW62RB`**
|
|
492
|
-
| **`RollW102`**
|
|
493
|
-
| **`RollW103`**
|
|
494
|
-
| **`DTRollW90`**
|
|
495
|
-
| **`DTRollW102`**
|
|
496
|
-
| **`DTRollW102H51`**
|
|
497
|
-
| **`DTRollW102H152`**
|
|
498
|
-
| **`RoundW12DIA`**
|
|
499
|
-
| **`RoundW24DIA`**
|
|
500
|
-
| **`RoundW58DIA`**
|
|
466
|
+
| Members | Value | Description |
|
|
467
|
+
| --------------------- | ------------------------------ | ------------- |
|
|
468
|
+
| **`DieCutW17H54`** | <code>'DieCutW17H54'</code> | |
|
|
469
|
+
| **`DieCutW17H87`** | <code>'DieCutW17H87'</code> | |
|
|
470
|
+
| **`DieCutW23H23`** | <code>'DieCutW23H23'</code> | |
|
|
471
|
+
| **`DieCutW29H42`** | <code>'DieCutW29H42'</code> | |
|
|
472
|
+
| **`DieCutW29H90`** | <code>'DieCutW29H90'</code> | |
|
|
473
|
+
| **`DieCutW38H90`** | <code>'DieCutW38H90'</code> | |
|
|
474
|
+
| **`DieCutW39H48`** | <code>'DieCutW39H48'</code> | |
|
|
475
|
+
| **`DieCutW52H29`** | <code>'DieCutW52H29'</code> | |
|
|
476
|
+
| **`DieCutW62H29`** | <code>'DieCutW62H29'</code> | |
|
|
477
|
+
| **`DieCutW62H60`** | <code>'DieCutW62H60'</code> | |
|
|
478
|
+
| **`DieCutW62H75`** | <code>'DieCutW62H75'</code> | |
|
|
479
|
+
| **`DieCutW62H100`** | <code>'DieCutW62H100'</code> | |
|
|
480
|
+
| **`DieCutW60H86`** | <code>'DieCutW60H86'</code> | |
|
|
481
|
+
| **`DieCutW54H29`** | <code>'DieCutW54H29'</code> | |
|
|
482
|
+
| **`DieCutW102H51`** | <code>'DieCutW102H51'</code> | |
|
|
483
|
+
| **`DieCutW102H152`** | <code>'DieCutW102H152'</code> | |
|
|
484
|
+
| **`DieCutW103H164`** | <code>'DieCutW103H164'</code> | |
|
|
485
|
+
| **`RollW12`** | <code>'RollW12'</code> | |
|
|
486
|
+
| **`RollW29`** | <code>'RollW29'</code> | |
|
|
487
|
+
| **`RollW38`** | <code>'RollW38'</code> | |
|
|
488
|
+
| **`RollW50`** | <code>'RollW50'</code> | |
|
|
489
|
+
| **`RollW54`** | <code>'RollW54'</code> | |
|
|
490
|
+
| **`RollW62`** | <code>'RollW62'</code> | |
|
|
491
|
+
| **`RollW62RB`** | <code>'RollW62RB'</code> | |
|
|
492
|
+
| **`RollW102`** | <code>'RollW102'</code> | |
|
|
493
|
+
| **`RollW103`** | <code>'RollW103'</code> | |
|
|
494
|
+
| **`DTRollW90`** | <code>'DTRollW90'</code> | |
|
|
495
|
+
| **`DTRollW102`** | <code>'DTRollW102'</code> | |
|
|
496
|
+
| **`DTRollW102H51`** | <code>'DTRollW102H51'</code> | |
|
|
497
|
+
| **`DTRollW102H152`** | <code>'DTRollW102H152'</code> | |
|
|
498
|
+
| **`RoundW12DIA`** | <code>'RoundW12DIA'</code> | |
|
|
499
|
+
| **`RoundW24DIA`** | <code>'RoundW24DIA'</code> | |
|
|
500
|
+
| **`RoundW58DIA`** | <code>'RoundW58DIA'</code> | |
|
|
501
|
+
| **`RDDieCutW60H60`** | <code>'RDDieCutW60H60'</code> | For TD series |
|
|
502
|
+
| **`RDDieCutW50H30`** | <code>'RDDieCutW50H30'</code> | |
|
|
503
|
+
| **`RDDieCutW40H60`** | <code>'RDDieCutW40H60'</code> | |
|
|
504
|
+
| **`RDDieCutW40H50`** | <code>'RDDieCutW40H50'</code> | |
|
|
505
|
+
| **`RDDieCutW40H40`** | <code>'RDDieCutW40H40'</code> | |
|
|
506
|
+
| **`RDDieCutW30H30`** | <code>'RDDieCutW30H30'</code> | |
|
|
507
|
+
| **`RDDieCutW50H35`** | <code>'RDDieCutW50H35'</code> | |
|
|
508
|
+
| **`RDDieCutW60H80`** | <code>'RDDieCutW60H80'</code> | |
|
|
509
|
+
| **`RDDieCutW60H100`** | <code>'RDDieCutW60H100'</code> | |
|
|
501
510
|
|
|
502
511
|
|
|
503
512
|
#### BRLMPrinterScaleMode
|
|
@@ -564,7 +573,7 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
564
573
|
| **`Fast`** | <code>'Fast'</code> |
|
|
565
574
|
|
|
566
575
|
|
|
567
|
-
####
|
|
576
|
+
#### BRLMPrinterCustomPaperType
|
|
568
577
|
|
|
569
578
|
| Members | Value |
|
|
570
579
|
| ------------------- | ---------------------------- |
|
|
@@ -573,7 +582,7 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
573
582
|
| **`markRollPaper`** | <code>'markRollPaper'</code> |
|
|
574
583
|
|
|
575
584
|
|
|
576
|
-
####
|
|
585
|
+
#### BRLMPrinterCustomPaperUnit
|
|
577
586
|
|
|
578
587
|
| Members | Value |
|
|
579
588
|
| ---------- | ------------------- |
|
package/dist/docs.json
CHANGED
|
@@ -225,8 +225,8 @@
|
|
|
225
225
|
]
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
"name": "
|
|
229
|
-
"slug": "
|
|
228
|
+
"name": "BRLMPrinterPort",
|
|
229
|
+
"slug": "brlmprinterport",
|
|
230
230
|
"members": [
|
|
231
231
|
{
|
|
232
232
|
"name": "usb",
|
|
@@ -455,6 +455,65 @@
|
|
|
455
455
|
"value": "'RoundW58DIA'",
|
|
456
456
|
"tags": [],
|
|
457
457
|
"docs": ""
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "RDDieCutW60H60",
|
|
461
|
+
"value": "'RDDieCutW60H60'",
|
|
462
|
+
"tags": [
|
|
463
|
+
{
|
|
464
|
+
"text": "https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx",
|
|
465
|
+
"name": "url"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"docs": "For TD series"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "RDDieCutW50H30",
|
|
472
|
+
"value": "'RDDieCutW50H30'",
|
|
473
|
+
"tags": [],
|
|
474
|
+
"docs": ""
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "RDDieCutW40H60",
|
|
478
|
+
"value": "'RDDieCutW40H60'",
|
|
479
|
+
"tags": [],
|
|
480
|
+
"docs": ""
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "RDDieCutW40H50",
|
|
484
|
+
"value": "'RDDieCutW40H50'",
|
|
485
|
+
"tags": [],
|
|
486
|
+
"docs": ""
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "RDDieCutW40H40",
|
|
490
|
+
"value": "'RDDieCutW40H40'",
|
|
491
|
+
"tags": [],
|
|
492
|
+
"docs": ""
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "RDDieCutW30H30",
|
|
496
|
+
"value": "'RDDieCutW30H30'",
|
|
497
|
+
"tags": [],
|
|
498
|
+
"docs": ""
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "RDDieCutW50H35",
|
|
502
|
+
"value": "'RDDieCutW50H35'",
|
|
503
|
+
"tags": [],
|
|
504
|
+
"docs": ""
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "RDDieCutW60H80",
|
|
508
|
+
"value": "'RDDieCutW60H80'",
|
|
509
|
+
"tags": [],
|
|
510
|
+
"docs": ""
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "RDDieCutW60H100",
|
|
514
|
+
"value": "'RDDieCutW60H100'",
|
|
515
|
+
"tags": [],
|
|
516
|
+
"docs": ""
|
|
458
517
|
}
|
|
459
518
|
]
|
|
460
519
|
},
|
|
@@ -633,8 +692,8 @@
|
|
|
633
692
|
]
|
|
634
693
|
},
|
|
635
694
|
{
|
|
636
|
-
"name": "
|
|
637
|
-
"slug": "
|
|
695
|
+
"name": "BRLMPrinterCustomPaperType",
|
|
696
|
+
"slug": "brlmprintercustompapertype",
|
|
638
697
|
"members": [
|
|
639
698
|
{
|
|
640
699
|
"name": "rollPaper",
|
|
@@ -657,8 +716,8 @@
|
|
|
657
716
|
]
|
|
658
717
|
},
|
|
659
718
|
{
|
|
660
|
-
"name": "
|
|
661
|
-
"slug": "
|
|
719
|
+
"name": "BRLMPrinterCustomPaperUnit",
|
|
720
|
+
"slug": "brlmprintercustompaperunit",
|
|
662
721
|
"members": [
|
|
663
722
|
{
|
|
664
723
|
"name": "mm",
|
|
@@ -743,9 +802,9 @@
|
|
|
743
802
|
"docs": "",
|
|
744
803
|
"types": [
|
|
745
804
|
{
|
|
746
|
-
"text": "{\n port:
|
|
805
|
+
"text": "{\n port: BRLMPrinterPort;\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n\n /**\n * This need to connect to the printer.\n * wifi: IP Address\n * bluetooth: macAddress\n * bluetoothLowEnergy: modelName for bluetoothLowEnergy\n */\n channelInfo: string;\n}",
|
|
747
806
|
"complexTypes": [
|
|
748
|
-
"
|
|
807
|
+
"BRLMPrinterPort"
|
|
749
808
|
]
|
|
750
809
|
}
|
|
751
810
|
]
|
|
@@ -837,10 +896,10 @@
|
|
|
837
896
|
"docs": "",
|
|
838
897
|
"types": [
|
|
839
898
|
{
|
|
840
|
-
"text": "{\n /**\n * Should use enum BRKMPrinterCustomPaperType\n */\n paperType:
|
|
899
|
+
"text": "{\n /**\n * Should use enum BRKMPrinterCustomPaperType\n */\n paperType: BRLMPrinterCustomPaperType;\n\n /**\n * The width of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeWidth: number;\n\n /**\n * The length of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeLength: number;\n\n /**\n * It is the difference between a sticker and a mount.\n * For example, the RD-U04J1 is `1.0, 2.0, 1.0, 2.0`\n */\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n\n /**\n * The spacing between seals. For example, the RD-U04J1 is 0.2.\n */\n gapLength: number;\n\n paperMarkPosition: number;\n paperMarkLength: number;\n\n /**\n * Should use enum BRKMPrinterCustomPaperUnit.\n * For example, the RD-U04J1 is mm.\n */\n paperUnit: BRLMPrinterCustomPaperUnit;\n}",
|
|
841
900
|
"complexTypes": [
|
|
842
|
-
"
|
|
843
|
-
"
|
|
901
|
+
"BRLMPrinterCustomPaperType",
|
|
902
|
+
"BRLMPrinterCustomPaperUnit"
|
|
844
903
|
]
|
|
845
904
|
}
|
|
846
905
|
]
|
|
@@ -851,9 +910,9 @@
|
|
|
851
910
|
"docs": "",
|
|
852
911
|
"types": [
|
|
853
912
|
{
|
|
854
|
-
"text": "{\n /**\n * 'usb' is android only, and now developing.\n */\n port:
|
|
913
|
+
"text": "{\n /**\n * 'usb' is android only, and now developing.\n */\n port: BRLMPrinterPort;\n\n /**\n * searchDuration is the time to end search for devices.\n * default is 15 seconds.\n * use only port is 'wifi' or 'bluetoothLowEnergy'.\n */\n searchDuration: number;\n}",
|
|
855
914
|
"complexTypes": [
|
|
856
|
-
"
|
|
915
|
+
"BRLMPrinterPort"
|
|
857
916
|
]
|
|
858
917
|
}
|
|
859
918
|
]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum BRLMPrinterPort {
|
|
2
2
|
usb = "usb",
|
|
3
3
|
wifi = "wifi",
|
|
4
4
|
bluetooth = "bluetooth",
|
|
5
5
|
bluetoothLowEnergy = "bluetoothLowEnergy"
|
|
6
6
|
}
|
|
7
|
-
export declare enum
|
|
7
|
+
export declare enum BRLMPrinterCustomPaperUnit {
|
|
8
8
|
mm = "mm",
|
|
9
9
|
inch = "inch"
|
|
10
10
|
}
|
|
11
|
-
export declare enum
|
|
11
|
+
export declare enum BRLMPrinterCustomPaperType {
|
|
12
12
|
rollPaper = "rollPaper",
|
|
13
13
|
dieCutPaper = "dieCutPaper",
|
|
14
14
|
markRollPaper = "markRollPaper"
|
|
@@ -64,7 +64,20 @@ export declare enum BRLMPrinterLabelName {
|
|
|
64
64
|
DTRollW102H152 = "DTRollW102H152",
|
|
65
65
|
RoundW12DIA = "RoundW12DIA",
|
|
66
66
|
RoundW24DIA = "RoundW24DIA",
|
|
67
|
-
RoundW58DIA = "RoundW58DIA"
|
|
67
|
+
RoundW58DIA = "RoundW58DIA",
|
|
68
|
+
/**
|
|
69
|
+
* For TD series
|
|
70
|
+
* @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx
|
|
71
|
+
*/
|
|
72
|
+
RDDieCutW60H60 = "RDDieCutW60H60",
|
|
73
|
+
RDDieCutW50H30 = "RDDieCutW50H30",
|
|
74
|
+
RDDieCutW40H60 = "RDDieCutW40H60",
|
|
75
|
+
RDDieCutW40H50 = "RDDieCutW40H50",
|
|
76
|
+
RDDieCutW40H40 = "RDDieCutW40H40",
|
|
77
|
+
RDDieCutW30H30 = "RDDieCutW30H30",
|
|
78
|
+
RDDieCutW50H35 = "RDDieCutW50H35",
|
|
79
|
+
RDDieCutW60H80 = "RDDieCutW60H80",
|
|
80
|
+
RDDieCutW60H100 = "RDDieCutW60H100"
|
|
68
81
|
}
|
|
69
82
|
export declare type BRLMPrinterAutoCutType = boolean;
|
|
70
83
|
export declare type BRLMPrinterScaleValueType = number;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})(
|
|
8
|
-
export var
|
|
9
|
-
(function (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})(
|
|
13
|
-
export var
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(
|
|
1
|
+
export var BRLMPrinterPort;
|
|
2
|
+
(function (BRLMPrinterPort) {
|
|
3
|
+
BRLMPrinterPort["usb"] = "usb";
|
|
4
|
+
BRLMPrinterPort["wifi"] = "wifi";
|
|
5
|
+
BRLMPrinterPort["bluetooth"] = "bluetooth";
|
|
6
|
+
BRLMPrinterPort["bluetoothLowEnergy"] = "bluetoothLowEnergy";
|
|
7
|
+
})(BRLMPrinterPort || (BRLMPrinterPort = {}));
|
|
8
|
+
export var BRLMPrinterCustomPaperUnit;
|
|
9
|
+
(function (BRLMPrinterCustomPaperUnit) {
|
|
10
|
+
BRLMPrinterCustomPaperUnit["mm"] = "mm";
|
|
11
|
+
BRLMPrinterCustomPaperUnit["inch"] = "inch";
|
|
12
|
+
})(BRLMPrinterCustomPaperUnit || (BRLMPrinterCustomPaperUnit = {}));
|
|
13
|
+
export var BRLMPrinterCustomPaperType;
|
|
14
|
+
(function (BRLMPrinterCustomPaperType) {
|
|
15
|
+
BRLMPrinterCustomPaperType["rollPaper"] = "rollPaper";
|
|
16
|
+
BRLMPrinterCustomPaperType["dieCutPaper"] = "dieCutPaper";
|
|
17
|
+
BRLMPrinterCustomPaperType["markRollPaper"] = "markRollPaper";
|
|
18
|
+
})(BRLMPrinterCustomPaperType || (BRLMPrinterCustomPaperType = {}));
|
|
19
19
|
/**
|
|
20
20
|
* Note: If you update this file, you should update the following files:
|
|
21
21
|
* - ios/Plugin/Model/PrinterModel.swift
|
|
@@ -70,6 +70,19 @@ export var BRLMPrinterLabelName;
|
|
|
70
70
|
BRLMPrinterLabelName["RoundW12DIA"] = "RoundW12DIA";
|
|
71
71
|
BRLMPrinterLabelName["RoundW24DIA"] = "RoundW24DIA";
|
|
72
72
|
BRLMPrinterLabelName["RoundW58DIA"] = "RoundW58DIA";
|
|
73
|
+
/**
|
|
74
|
+
* For TD series
|
|
75
|
+
* @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx
|
|
76
|
+
*/
|
|
77
|
+
BRLMPrinterLabelName["RDDieCutW60H60"] = "RDDieCutW60H60";
|
|
78
|
+
BRLMPrinterLabelName["RDDieCutW50H30"] = "RDDieCutW50H30";
|
|
79
|
+
BRLMPrinterLabelName["RDDieCutW40H60"] = "RDDieCutW40H60";
|
|
80
|
+
BRLMPrinterLabelName["RDDieCutW40H50"] = "RDDieCutW40H50";
|
|
81
|
+
BRLMPrinterLabelName["RDDieCutW40H40"] = "RDDieCutW40H40";
|
|
82
|
+
BRLMPrinterLabelName["RDDieCutW30H30"] = "RDDieCutW30H30";
|
|
83
|
+
BRLMPrinterLabelName["RDDieCutW50H35"] = "RDDieCutW50H35";
|
|
84
|
+
BRLMPrinterLabelName["RDDieCutW60H80"] = "RDDieCutW60H80";
|
|
85
|
+
BRLMPrinterLabelName["RDDieCutW60H100"] = "RDDieCutW60H100";
|
|
73
86
|
})(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));
|
|
74
87
|
/**
|
|
75
88
|
* @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brother-printer.enum.js","sourceRoot":"","sources":["../../src/brother-printer.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,4DAAyC,CAAA;AAC3C,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,uCAAS,CAAA;IACT,2CAAa,CAAA;AACf,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC;AAED,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,qDAAuB,CAAA;IACvB,yDAA2B,CAAA;IAC3B,6DAA+B,CAAA;AACjC,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"brother-printer.enum.js","sourceRoot":"","sources":["../../src/brother-printer.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,4DAAyC,CAAA;AAC3C,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,uCAAS,CAAA;IACT,2CAAa,CAAA;AACf,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC;AAED,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,qDAAuB,CAAA;IACvB,yDAA2B,CAAA;IAC3B,6DAA+B,CAAA;AACjC,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,oBAiDX;AAjDD,WAAY,oBAAoB;IAC9B,qDAA6B,CAAA;IAC7B,qDAA6B,CAAA;IAC7B,qDAA6B,CAAA;IA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EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,8CAAuB,CAAA;IACvB,wDAAiC,CAAA;IACjC,sDAA+B,CAAA;AACjC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,4BAIX;AAJD,WAAY,4BAA4B;IACtC,2CAAW,CAAA;IACX,iDAAiB,CAAA;IACjB,iDAAiB,CAAA;AACnB,CAAC,EAJW,4BAA4B,KAA5B,4BAA4B,QAIvC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,+CAAa,CAAA;IACb,mDAAiB,CAAA;IACjB,iDAAe,CAAA;AACjB,CAAC,EAJW,8BAA8B,KAA9B,8BAA8B,QAIzC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;IACb,wCAAa,CAAA;IACb,0CAAe,CAAA;AACjB,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;IACb,wCAAa,CAAA;AACf,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED;;GAEG;AACH,2CAA2C;AAC3C,iBAAiB;AACjB,uBAAuB;AACvB,mBAAmB;AACnB,IAAI","sourcesContent":["export enum BRLMPrinterPort {\n usb = 'usb',\n wifi = 'wifi',\n bluetooth = 'bluetooth',\n bluetoothLowEnergy = 'bluetoothLowEnergy',\n}\n\nexport enum BRLMPrinterCustomPaperUnit {\n mm = 'mm',\n inch = 'inch',\n}\n\nexport enum BRLMPrinterCustomPaperType {\n rollPaper = 'rollPaper',\n dieCutPaper = 'dieCutPaper',\n markRollPaper = 'markRollPaper',\n}\n\n/**\n * Note: If you update this file, you should update the following files:\n * - ios/Plugin/Model/PrinterModel.swift\n *\n * And name is follow android naming convention.\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport enum BRLMPrinterModelName {\n QL_800 = 'QL_800',\n QL_810W = 'QL_810W',\n QL_820NWB = 'QL_820NWB',\n TD_2320D_203 = 'TD_2320D_203',\n TD_2030AD = 'TD_2030AD',\n TD_2350D_300 = 'TD_2350D_300',\n}\n\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android/labelinfo.html\n */\nexport enum BRLMPrinterLabelName {\n DieCutW17H54 = 'DieCutW17H54',\n DieCutW17H87 = 'DieCutW17H87',\n DieCutW23H23 = 'DieCutW23H23',\n DieCutW29H42 = 'DieCutW29H42',\n DieCutW29H90 = 'DieCutW29H90',\n DieCutW38H90 = 'DieCutW38H90',\n DieCutW39H48 = 'DieCutW39H48',\n DieCutW52H29 = 'DieCutW52H29',\n DieCutW62H29 = 'DieCutW62H29',\n DieCutW62H60 = 'DieCutW62H60',\n DieCutW62H75 = 'DieCutW62H75',\n DieCutW62H100 = 'DieCutW62H100',\n DieCutW60H86 = 'DieCutW60H86',\n DieCutW54H29 = 'DieCutW54H29',\n DieCutW102H51 = 'DieCutW102H51',\n DieCutW102H152 = 'DieCutW102H152',\n DieCutW103H164 = 'DieCutW103H164',\n\n RollW12 = 'RollW12',\n RollW29 = 'RollW29',\n RollW38 = 'RollW38',\n RollW50 = 'RollW50',\n RollW54 = 'RollW54',\n RollW62 = 'RollW62',\n RollW62RB = 'RollW62RB',\n RollW102 = 'RollW102',\n RollW103 = 'RollW103',\n DTRollW90 = 'DTRollW90',\n DTRollW102 = 'DTRollW102',\n DTRollW102H51 = 'DTRollW102H51',\n DTRollW102H152 = 'DTRollW102H152',\n RoundW12DIA = 'RoundW12DIA',\n RoundW24DIA = 'RoundW24DIA',\n RoundW58DIA = 'RoundW58DIA',\n\n /**\n * For TD series\n * @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx\n */\n RDDieCutW60H60 = 'RDDieCutW60H60',\n RDDieCutW50H30 = 'RDDieCutW50H30',\n RDDieCutW40H60 = 'RDDieCutW40H60',\n RDDieCutW40H50 = 'RDDieCutW40H50',\n RDDieCutW40H40 = 'RDDieCutW40H40',\n RDDieCutW30H30 = 'RDDieCutW30H30',\n RDDieCutW50H35 = 'RDDieCutW50H35',\n RDDieCutW60H80 = 'RDDieCutW60H80',\n RDDieCutW60H100 = 'RDDieCutW60H100',\n}\n\nexport type BRLMPrinterAutoCutType = boolean;\nexport type BRLMPrinterScaleValueType = number;\nexport type BRLMPrinterHalftoneThresholdType = number;\nexport type BRLMPrinterNumberOfCopies = number;\n\n/**\n * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation\n */\nexport enum BRLMPrinterImageRotation {\n Rotate0 = 'Rotate0',\n Rotate90 = 'Rotate90',\n Rotate180 = 'Rotate180',\n Rotate270 = 'Rotate270',\n}\n\n/**\n * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode\n */\nexport enum BRLMPrinterScaleMode {\n ActualSize = 'ActualSize',\n FitPageAspect = 'FitPageAspect',\n FitPaperAspect = 'FitPaperAspect',\n ScaleValue = 'ScaleValue',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone\n */\nexport enum BRLMPrinterHalftone {\n Threshold = 'Threshold',\n ErrorDiffusion = 'ErrorDiffusion',\n PatternDither = 'PatternDither',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment\n */\nexport enum BRLMPrinterVerticalAlignment {\n Top = 'Top',\n Center = 'Center',\n Bottom = 'Bottom',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment\n */\nexport enum BRLMPrinterHorizontalAlignment {\n Left = 'Left',\n Center = 'Center',\n Right = 'Right',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode\n */\nexport enum BRLMPrinterCompressMode {\n None = 'None',\n Tiff = 'Tiff',\n Mode9 = 'Mode9',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality\n */\nexport enum BRLMPrinterPrintQuality {\n Best = 'Best',\n Fast = 'Fast',\n}\n\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution\n */\n// export enum BRLMPrinterPrintResolution {\n// Low = 'Low',\n// Normal = 'Normal',\n// High = 'High',\n// }\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PluginListenerHandle } from '@capacitor/core';
|
|
2
|
-
import type { BRLMPrinterLabelName, BRLMPrinterModelName, BRLMPrinterAutoCutType, BRLMPrinterCompressMode, BRLMPrinterHalftone, BRLMPrinterHalftoneThresholdType, BRLMPrinterHorizontalAlignment, BRLMPrinterNumberOfCopies, BRLMPrinterPrintQuality, BRLMPrinterImageRotation, BRLMPrinterScaleMode, BRLMPrinterScaleValueType, BRLMPrinterVerticalAlignment,
|
|
2
|
+
import type { BRLMPrinterLabelName, BRLMPrinterModelName, BRLMPrinterAutoCutType, BRLMPrinterCompressMode, BRLMPrinterHalftone, BRLMPrinterHalftoneThresholdType, BRLMPrinterHorizontalAlignment, BRLMPrinterNumberOfCopies, BRLMPrinterPrintQuality, BRLMPrinterImageRotation, BRLMPrinterScaleMode, BRLMPrinterScaleValueType, BRLMPrinterVerticalAlignment, BRLMPrinterCustomPaperType, BRLMPrinterCustomPaperUnit, BRLMPrinterPort } from './brother-printer.enum';
|
|
3
3
|
import type { BrotherPrintEventsEnum } from './events.enum';
|
|
4
4
|
export declare type BRLMChannelResult = {
|
|
5
|
-
port:
|
|
5
|
+
port: BRLMPrinterPort;
|
|
6
6
|
modelName: string;
|
|
7
7
|
serialNumber: string;
|
|
8
8
|
macAddress: string;
|
|
@@ -27,7 +27,7 @@ export declare type BRLMPrinterTDModelSettings = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Should use enum BRKMPrinterCustomPaperType
|
|
29
29
|
*/
|
|
30
|
-
paperType:
|
|
30
|
+
paperType: BRLMPrinterCustomPaperType;
|
|
31
31
|
/**
|
|
32
32
|
* The width of the label. For example, the RD-U04J1 is 60.0 wide.
|
|
33
33
|
*/
|
|
@@ -54,7 +54,7 @@ export declare type BRLMPrinterTDModelSettings = {
|
|
|
54
54
|
* Should use enum BRKMPrinterCustomPaperUnit.
|
|
55
55
|
* For example, the RD-U04J1 is mm.
|
|
56
56
|
*/
|
|
57
|
-
paperUnit:
|
|
57
|
+
paperUnit: BRLMPrinterCustomPaperUnit;
|
|
58
58
|
};
|
|
59
59
|
export declare type BRLMPrinterQLModelSettings = {
|
|
60
60
|
/**
|
|
@@ -116,7 +116,7 @@ export declare type BRLMSearchOption = {
|
|
|
116
116
|
/**
|
|
117
117
|
* 'usb' is android only, and now developing.
|
|
118
118
|
*/
|
|
119
|
-
port:
|
|
119
|
+
port: BRLMPrinterPort;
|
|
120
120
|
/**
|
|
121
121
|
* searchDuration is the time to end search for devices.
|
|
122
122
|
* default is 15 seconds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nimport type {\n BRLMPrinterLabelName,\n BRLMPrinterModelName,\n BRLMPrinterAutoCutType,\n BRLMPrinterCompressMode,\n BRLMPrinterHalftone,\n BRLMPrinterHalftoneThresholdType,\n BRLMPrinterHorizontalAlignment,\n BRLMPrinterNumberOfCopies,\n BRLMPrinterPrintQuality,\n BRLMPrinterImageRotation,\n BRLMPrinterScaleMode,\n BRLMPrinterScaleValueType,\n BRLMPrinterVerticalAlignment,\n
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nimport type {\n BRLMPrinterLabelName,\n BRLMPrinterModelName,\n BRLMPrinterAutoCutType,\n BRLMPrinterCompressMode,\n BRLMPrinterHalftone,\n BRLMPrinterHalftoneThresholdType,\n BRLMPrinterHorizontalAlignment,\n BRLMPrinterNumberOfCopies,\n BRLMPrinterPrintQuality,\n BRLMPrinterImageRotation,\n BRLMPrinterScaleMode,\n BRLMPrinterScaleValueType,\n BRLMPrinterVerticalAlignment,\n BRLMPrinterCustomPaperType,\n BRLMPrinterCustomPaperUnit,\n BRLMPrinterPort,\n} from './brother-printer.enum';\nimport type { BrotherPrintEventsEnum } from './events.enum';\n\nexport type BRLMChannelResult = {\n port: BRLMPrinterPort;\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n\n /**\n * This need to connect to the printer.\n * wifi: IP Address\n * bluetooth: macAddress\n * bluetoothLowEnergy: modelName for bluetoothLowEnergy\n */\n channelInfo: string;\n};\n\nexport type BRLMPrintOptions = {\n encodedImage: string;\n\n /**\n * Should use enum BRLMPrinterModelName\n */\n modelName: BRLMPrinterModelName;\n} & Partial<BRLMChannelResult> &\n (BRLMPrinterQLModelSettings | BRLMPrinterTDModelSettings);\n\nexport type BRLMPrinterTDModelSettings = {\n /**\n * Should use enum BRKMPrinterCustomPaperType\n */\n paperType: BRLMPrinterCustomPaperType;\n\n /**\n * The width of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeWidth: number;\n\n /**\n * The length of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeLength: number;\n\n /**\n * It is the difference between a sticker and a mount.\n * For example, the RD-U04J1 is `1.0, 2.0, 1.0, 2.0`\n */\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n\n /**\n * The spacing between seals. For example, the RD-U04J1 is 0.2.\n */\n gapLength: number;\n\n paperMarkPosition: number;\n paperMarkLength: number;\n\n /**\n * Should use enum BRKMPrinterCustomPaperUnit.\n * For example, the RD-U04J1 is mm.\n */\n paperUnit: BRLMPrinterCustomPaperUnit;\n};\n\nexport type BRLMPrinterQLModelSettings = {\n /**\n * Should use enum BRLMPrinterLabelName\n */\n labelName: BRLMPrinterLabelName;\n} & BRLMPrinterSettings;\n\n/**\n * These are optional. If these are not set, default values are assigned by the printer.\n */\nexport type BRLMPrinterSettings = {\n /**\n * The number of copies you print.\n */\n numberOfCopies?: BRLMPrinterNumberOfCopies;\n\n /**\n * Whether the auto-cut is enabled or not. If true, your printer cut the paper each page.\n */\n autoCut?: BRLMPrinterAutoCutType;\n\n /**\n * A scale mode that specifies how your data is scaled in a print area of your printer.\n */\n scaleMode?: BRLMPrinterScaleMode;\n\n /**\n * A scale value. This is effective when ScaleMode is ScaleValue.\n */\n scaleValue?: BRLMPrinterScaleValueType;\n\n /**\n * A way to rasterize your data.\n */\n halftone?: BRLMPrinterHalftone;\n\n /**\n * A threshold value. This is effective when the Halftone is Threshold.\n */\n halftoneThreshold?: BRLMPrinterHalftoneThresholdType;\n\n /**\n * An image rotation that specifies the angle in which your data is placed in the print area. Rotation direction is clockwise.\n */\n imageRotation?: BRLMPrinterImageRotation;\n\n /**\n * A vertical alignment that specifies how your data is placed in the printable area.\n */\n verticalAlignment?: BRLMPrinterVerticalAlignment;\n\n /**\n * A horizontal alignment that specifies how your data is placed in the printable area.\n */\n horizontalAlignment?: BRLMPrinterHorizontalAlignment;\n\n /**\n * A compress mode that specifies how to compress your data.\n * note: This is ios only.\n */\n compressMode?: BRLMPrinterCompressMode;\n\n /**\n * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.\n */\n printQuality?: BRLMPrinterPrintQuality;\n};\n\nexport type BRLMSearchOption = {\n /**\n * 'usb' is android only, and now developing.\n */\n port: BRLMPrinterPort;\n\n /**\n * searchDuration is the time to end search for devices.\n * default is 15 seconds.\n * use only port is 'wifi' or 'bluetoothLowEnergy'.\n */\n searchDuration: number;\n};\n\nexport type ErrorInfo = {\n message: string;\n code: number;\n};\n\nexport interface BrotherPrintPlugin {\n printImage(options: BRLMPrintOptions): Promise<void>;\n\n /**\n * Search for printers. If not found, it will return an empty array.(not error)\n */\n search(option: BRLMSearchOption): Promise<void>;\n\n /**\n * Basically, it times out, so there is no need to use it. Use it when you want to run multiple connectType searches at the same time and time out any of them manually.\n */\n cancelSearchWiFiPrinter(): Promise<void>;\n\n /**\n * Basically, it times out, so there is no need to use it. Use it when you want to run multiple connectType searches at the same time and time out any of them manually.\n */\n cancelSearchBluetoothPrinter(): Promise<void>;\n\n /**\n * Find the printer that can connected to the device.\n */\n addListener(\n eventName: BrotherPrintEventsEnum.onPrinterAvailable,\n listenerFunc: (printers: BRLMChannelResult) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Success Print Event\n */\n addListener(\n eventName: BrotherPrintEventsEnum.onPrint,\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Failed to connect to the printer.\n * ex: Bluetooth is off, Printer is off, etc.\n */\n addListener(\n eventName: BrotherPrintEventsEnum.onPrintFailedCommunication,\n listenerFunc: (info: ErrorInfo) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Failed to print.\n */\n addListener(\n eventName: BrotherPrintEventsEnum.onPrintError,\n listenerFunc: (info: ErrorInfo) => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -32,24 +32,24 @@ exports.BrotherPrintEventsEnum = void 0;
|
|
|
32
32
|
BrotherPrintEventsEnum["onPrintError"] = "onPrintError";
|
|
33
33
|
})(exports.BrotherPrintEventsEnum || (exports.BrotherPrintEventsEnum = {}));
|
|
34
34
|
|
|
35
|
-
exports.
|
|
36
|
-
(function (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})(exports.
|
|
42
|
-
exports.
|
|
43
|
-
(function (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})(exports.
|
|
47
|
-
exports.
|
|
48
|
-
(function (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
})(exports.
|
|
35
|
+
exports.BRLMPrinterPort = void 0;
|
|
36
|
+
(function (BRLMPrinterPort) {
|
|
37
|
+
BRLMPrinterPort["usb"] = "usb";
|
|
38
|
+
BRLMPrinterPort["wifi"] = "wifi";
|
|
39
|
+
BRLMPrinterPort["bluetooth"] = "bluetooth";
|
|
40
|
+
BRLMPrinterPort["bluetoothLowEnergy"] = "bluetoothLowEnergy";
|
|
41
|
+
})(exports.BRLMPrinterPort || (exports.BRLMPrinterPort = {}));
|
|
42
|
+
exports.BRLMPrinterCustomPaperUnit = void 0;
|
|
43
|
+
(function (BRLMPrinterCustomPaperUnit) {
|
|
44
|
+
BRLMPrinterCustomPaperUnit["mm"] = "mm";
|
|
45
|
+
BRLMPrinterCustomPaperUnit["inch"] = "inch";
|
|
46
|
+
})(exports.BRLMPrinterCustomPaperUnit || (exports.BRLMPrinterCustomPaperUnit = {}));
|
|
47
|
+
exports.BRLMPrinterCustomPaperType = void 0;
|
|
48
|
+
(function (BRLMPrinterCustomPaperType) {
|
|
49
|
+
BRLMPrinterCustomPaperType["rollPaper"] = "rollPaper";
|
|
50
|
+
BRLMPrinterCustomPaperType["dieCutPaper"] = "dieCutPaper";
|
|
51
|
+
BRLMPrinterCustomPaperType["markRollPaper"] = "markRollPaper";
|
|
52
|
+
})(exports.BRLMPrinterCustomPaperType || (exports.BRLMPrinterCustomPaperType = {}));
|
|
53
53
|
/**
|
|
54
54
|
* Note: If you update this file, you should update the following files:
|
|
55
55
|
* - ios/Plugin/Model/PrinterModel.swift
|
|
@@ -104,6 +104,19 @@ exports.BRLMPrinterLabelName = void 0;
|
|
|
104
104
|
BRLMPrinterLabelName["RoundW12DIA"] = "RoundW12DIA";
|
|
105
105
|
BRLMPrinterLabelName["RoundW24DIA"] = "RoundW24DIA";
|
|
106
106
|
BRLMPrinterLabelName["RoundW58DIA"] = "RoundW58DIA";
|
|
107
|
+
/**
|
|
108
|
+
* For TD series
|
|
109
|
+
* @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx
|
|
110
|
+
*/
|
|
111
|
+
BRLMPrinterLabelName["RDDieCutW60H60"] = "RDDieCutW60H60";
|
|
112
|
+
BRLMPrinterLabelName["RDDieCutW50H30"] = "RDDieCutW50H30";
|
|
113
|
+
BRLMPrinterLabelName["RDDieCutW40H60"] = "RDDieCutW40H60";
|
|
114
|
+
BRLMPrinterLabelName["RDDieCutW40H50"] = "RDDieCutW40H50";
|
|
115
|
+
BRLMPrinterLabelName["RDDieCutW40H40"] = "RDDieCutW40H40";
|
|
116
|
+
BRLMPrinterLabelName["RDDieCutW30H30"] = "RDDieCutW30H30";
|
|
117
|
+
BRLMPrinterLabelName["RDDieCutW50H35"] = "RDDieCutW50H35";
|
|
118
|
+
BRLMPrinterLabelName["RDDieCutW60H80"] = "RDDieCutW60H80";
|
|
119
|
+
BRLMPrinterLabelName["RDDieCutW60H100"] = "RDDieCutW60H100";
|
|
107
120
|
})(exports.BRLMPrinterLabelName || (exports.BRLMPrinterLabelName = {}));
|
|
108
121
|
/**
|
|
109
122
|
* @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/web.js","esm/events.enum.js","esm/brother-printer.enum.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n async printImage(options) {\n console.log('printImage', options);\n }\n async search(options) {\n console.log('search', options);\n }\n async cancelSearchWiFiPrinter() {\n console.log('cancelSearchWiFiPrinter');\n }\n async cancelSearchBluetoothPrinter() {\n console.log('cancelSearchBluetoothPrinter');\n }\n}\n//# sourceMappingURL=web.js.map","export var BrotherPrintEventsEnum;\n(function (BrotherPrintEventsEnum) {\n BrotherPrintEventsEnum[\"onPrinterAvailable\"] = \"onPrinterAvailable\";\n BrotherPrintEventsEnum[\"onPrint\"] = \"onPrint\";\n BrotherPrintEventsEnum[\"onPrintFailedCommunication\"] = \"onPrintFailedCommunication\";\n BrotherPrintEventsEnum[\"onPrintError\"] = \"onPrintError\";\n})(BrotherPrintEventsEnum || (BrotherPrintEventsEnum = {}));\n//# sourceMappingURL=events.enum.js.map","export var BRKMPrinterPort;\n(function (BRKMPrinterPort) {\n BRKMPrinterPort[\"usb\"] = \"usb\";\n BRKMPrinterPort[\"wifi\"] = \"wifi\";\n BRKMPrinterPort[\"bluetooth\"] = \"bluetooth\";\n BRKMPrinterPort[\"bluetoothLowEnergy\"] = \"bluetoothLowEnergy\";\n})(BRKMPrinterPort || (BRKMPrinterPort = {}));\nexport var BRKMPrinterCustomPaperUnit;\n(function (BRKMPrinterCustomPaperUnit) {\n BRKMPrinterCustomPaperUnit[\"mm\"] = \"mm\";\n BRKMPrinterCustomPaperUnit[\"inch\"] = \"inch\";\n})(BRKMPrinterCustomPaperUnit || (BRKMPrinterCustomPaperUnit = {}));\nexport var BRKMPrinterCustomPaperType;\n(function (BRKMPrinterCustomPaperType) {\n BRKMPrinterCustomPaperType[\"rollPaper\"] = \"rollPaper\";\n BRKMPrinterCustomPaperType[\"dieCutPaper\"] = \"dieCutPaper\";\n BRKMPrinterCustomPaperType[\"markRollPaper\"] = \"markRollPaper\";\n})(BRKMPrinterCustomPaperType || (BRKMPrinterCustomPaperType = {}));\n/**\n * Note: If you update this file, you should update the following files:\n * - ios/Plugin/Model/PrinterModel.swift\n *\n * And name is follow android naming convention.\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport var BRLMPrinterModelName;\n(function (BRLMPrinterModelName) {\n BRLMPrinterModelName[\"QL_800\"] = \"QL_800\";\n BRLMPrinterModelName[\"QL_810W\"] = \"QL_810W\";\n BRLMPrinterModelName[\"QL_820NWB\"] = \"QL_820NWB\";\n BRLMPrinterModelName[\"TD_2320D_203\"] = \"TD_2320D_203\";\n BRLMPrinterModelName[\"TD_2030AD\"] = \"TD_2030AD\";\n BRLMPrinterModelName[\"TD_2350D_300\"] = \"TD_2350D_300\";\n})(BRLMPrinterModelName || (BRLMPrinterModelName = {}));\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android/labelinfo.html\n */\nexport var BRLMPrinterLabelName;\n(function (BRLMPrinterLabelName) {\n BRLMPrinterLabelName[\"DieCutW17H54\"] = \"DieCutW17H54\";\n BRLMPrinterLabelName[\"DieCutW17H87\"] = \"DieCutW17H87\";\n BRLMPrinterLabelName[\"DieCutW23H23\"] = \"DieCutW23H23\";\n BRLMPrinterLabelName[\"DieCutW29H42\"] = \"DieCutW29H42\";\n BRLMPrinterLabelName[\"DieCutW29H90\"] = \"DieCutW29H90\";\n BRLMPrinterLabelName[\"DieCutW38H90\"] = \"DieCutW38H90\";\n BRLMPrinterLabelName[\"DieCutW39H48\"] = \"DieCutW39H48\";\n BRLMPrinterLabelName[\"DieCutW52H29\"] = \"DieCutW52H29\";\n BRLMPrinterLabelName[\"DieCutW62H29\"] = \"DieCutW62H29\";\n BRLMPrinterLabelName[\"DieCutW62H60\"] = \"DieCutW62H60\";\n BRLMPrinterLabelName[\"DieCutW62H75\"] = \"DieCutW62H75\";\n BRLMPrinterLabelName[\"DieCutW62H100\"] = \"DieCutW62H100\";\n BRLMPrinterLabelName[\"DieCutW60H86\"] = \"DieCutW60H86\";\n BRLMPrinterLabelName[\"DieCutW54H29\"] = \"DieCutW54H29\";\n BRLMPrinterLabelName[\"DieCutW102H51\"] = \"DieCutW102H51\";\n BRLMPrinterLabelName[\"DieCutW102H152\"] = \"DieCutW102H152\";\n BRLMPrinterLabelName[\"DieCutW103H164\"] = \"DieCutW103H164\";\n BRLMPrinterLabelName[\"RollW12\"] = \"RollW12\";\n BRLMPrinterLabelName[\"RollW29\"] = \"RollW29\";\n BRLMPrinterLabelName[\"RollW38\"] = \"RollW38\";\n BRLMPrinterLabelName[\"RollW50\"] = \"RollW50\";\n BRLMPrinterLabelName[\"RollW54\"] = \"RollW54\";\n BRLMPrinterLabelName[\"RollW62\"] = \"RollW62\";\n BRLMPrinterLabelName[\"RollW62RB\"] = \"RollW62RB\";\n BRLMPrinterLabelName[\"RollW102\"] = \"RollW102\";\n BRLMPrinterLabelName[\"RollW103\"] = \"RollW103\";\n BRLMPrinterLabelName[\"DTRollW90\"] = \"DTRollW90\";\n BRLMPrinterLabelName[\"DTRollW102\"] = \"DTRollW102\";\n BRLMPrinterLabelName[\"DTRollW102H51\"] = \"DTRollW102H51\";\n BRLMPrinterLabelName[\"DTRollW102H152\"] = \"DTRollW102H152\";\n BRLMPrinterLabelName[\"RoundW12DIA\"] = \"RoundW12DIA\";\n BRLMPrinterLabelName[\"RoundW24DIA\"] = \"RoundW24DIA\";\n BRLMPrinterLabelName[\"RoundW58DIA\"] = \"RoundW58DIA\";\n})(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));\n/**\n * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation\n */\nexport var BRLMPrinterImageRotation;\n(function (BRLMPrinterImageRotation) {\n BRLMPrinterImageRotation[\"Rotate0\"] = \"Rotate0\";\n BRLMPrinterImageRotation[\"Rotate90\"] = \"Rotate90\";\n BRLMPrinterImageRotation[\"Rotate180\"] = \"Rotate180\";\n BRLMPrinterImageRotation[\"Rotate270\"] = \"Rotate270\";\n})(BRLMPrinterImageRotation || (BRLMPrinterImageRotation = {}));\n/**\n * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode\n */\nexport var BRLMPrinterScaleMode;\n(function (BRLMPrinterScaleMode) {\n BRLMPrinterScaleMode[\"ActualSize\"] = \"ActualSize\";\n BRLMPrinterScaleMode[\"FitPageAspect\"] = \"FitPageAspect\";\n BRLMPrinterScaleMode[\"FitPaperAspect\"] = \"FitPaperAspect\";\n BRLMPrinterScaleMode[\"ScaleValue\"] = \"ScaleValue\";\n})(BRLMPrinterScaleMode || (BRLMPrinterScaleMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone\n */\nexport var BRLMPrinterHalftone;\n(function (BRLMPrinterHalftone) {\n BRLMPrinterHalftone[\"Threshold\"] = \"Threshold\";\n BRLMPrinterHalftone[\"ErrorDiffusion\"] = \"ErrorDiffusion\";\n BRLMPrinterHalftone[\"PatternDither\"] = \"PatternDither\";\n})(BRLMPrinterHalftone || (BRLMPrinterHalftone = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment\n */\nexport var BRLMPrinterVerticalAlignment;\n(function (BRLMPrinterVerticalAlignment) {\n BRLMPrinterVerticalAlignment[\"Top\"] = \"Top\";\n BRLMPrinterVerticalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterVerticalAlignment[\"Bottom\"] = \"Bottom\";\n})(BRLMPrinterVerticalAlignment || (BRLMPrinterVerticalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment\n */\nexport var BRLMPrinterHorizontalAlignment;\n(function (BRLMPrinterHorizontalAlignment) {\n BRLMPrinterHorizontalAlignment[\"Left\"] = \"Left\";\n BRLMPrinterHorizontalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterHorizontalAlignment[\"Right\"] = \"Right\";\n})(BRLMPrinterHorizontalAlignment || (BRLMPrinterHorizontalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode\n */\nexport var BRLMPrinterCompressMode;\n(function (BRLMPrinterCompressMode) {\n BRLMPrinterCompressMode[\"None\"] = \"None\";\n BRLMPrinterCompressMode[\"Tiff\"] = \"Tiff\";\n BRLMPrinterCompressMode[\"Mode9\"] = \"Mode9\";\n})(BRLMPrinterCompressMode || (BRLMPrinterCompressMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality\n */\nexport var BRLMPrinterPrintQuality;\n(function (BRLMPrinterPrintQuality) {\n BRLMPrinterPrintQuality[\"Best\"] = \"Best\";\n BRLMPrinterPrintQuality[\"Fast\"] = \"Fast\";\n})(BRLMPrinterPrintQuality || (BRLMPrinterPrintQuality = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution\n */\n// export enum BRLMPrinterPrintResolution {\n// Low = 'Low',\n// Normal = 'Normal',\n// High = 'High',\n// }\n//# sourceMappingURL=brother-printer.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('BrotherPrint', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport * from './events.enum';\nexport * from './brother-printer.enum';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","BrotherPrintEventsEnum","BRKMPrinterPort","BRKMPrinterCustomPaperUnit","BRKMPrinterCustomPaperType","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","registerPlugin"],"mappings":";;;;;;AACO,MAAM,eAAe,SAASA,cAAS,CAAC;AAC/C,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC3C,KAAK;AACL,IAAI,MAAM,MAAM,CAAC,OAAO,EAAE;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,O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AAC;AAC7C,CAAC,EAAEA,+BAAuB,KAAKA,+BAAuB,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/IK,MAAC,YAAY,GAAGC,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/web.js","esm/events.enum.js","esm/brother-printer.enum.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n async printImage(options) {\n console.log('printImage', options);\n }\n async search(options) {\n console.log('search', options);\n }\n async cancelSearchWiFiPrinter() {\n console.log('cancelSearchWiFiPrinter');\n }\n async cancelSearchBluetoothPrinter() {\n console.log('cancelSearchBluetoothPrinter');\n }\n}\n//# sourceMappingURL=web.js.map","export var BrotherPrintEventsEnum;\n(function (BrotherPrintEventsEnum) {\n BrotherPrintEventsEnum[\"onPrinterAvailable\"] = \"onPrinterAvailable\";\n BrotherPrintEventsEnum[\"onPrint\"] = \"onPrint\";\n BrotherPrintEventsEnum[\"onPrintFailedCommunication\"] = \"onPrintFailedCommunication\";\n BrotherPrintEventsEnum[\"onPrintError\"] = \"onPrintError\";\n})(BrotherPrintEventsEnum || (BrotherPrintEventsEnum = {}));\n//# sourceMappingURL=events.enum.js.map","export var BRLMPrinterPort;\n(function (BRLMPrinterPort) {\n BRLMPrinterPort[\"usb\"] = \"usb\";\n BRLMPrinterPort[\"wifi\"] = \"wifi\";\n BRLMPrinterPort[\"bluetooth\"] = \"bluetooth\";\n BRLMPrinterPort[\"bluetoothLowEnergy\"] = \"bluetoothLowEnergy\";\n})(BRLMPrinterPort || (BRLMPrinterPort = {}));\nexport var BRLMPrinterCustomPaperUnit;\n(function (BRLMPrinterCustomPaperUnit) {\n BRLMPrinterCustomPaperUnit[\"mm\"] = \"mm\";\n BRLMPrinterCustomPaperUnit[\"inch\"] = \"inch\";\n})(BRLMPrinterCustomPaperUnit || (BRLMPrinterCustomPaperUnit = {}));\nexport var BRLMPrinterCustomPaperType;\n(function (BRLMPrinterCustomPaperType) {\n BRLMPrinterCustomPaperType[\"rollPaper\"] = \"rollPaper\";\n BRLMPrinterCustomPaperType[\"dieCutPaper\"] = \"dieCutPaper\";\n BRLMPrinterCustomPaperType[\"markRollPaper\"] = \"markRollPaper\";\n})(BRLMPrinterCustomPaperType || (BRLMPrinterCustomPaperType = {}));\n/**\n * Note: If you update this file, you should update the following files:\n * - ios/Plugin/Model/PrinterModel.swift\n *\n * And name is follow android naming convention.\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport var BRLMPrinterModelName;\n(function (BRLMPrinterModelName) {\n BRLMPrinterModelName[\"QL_800\"] = \"QL_800\";\n BRLMPrinterModelName[\"QL_810W\"] = \"QL_810W\";\n BRLMPrinterModelName[\"QL_820NWB\"] = \"QL_820NWB\";\n BRLMPrinterModelName[\"TD_2320D_203\"] = \"TD_2320D_203\";\n BRLMPrinterModelName[\"TD_2030AD\"] = \"TD_2030AD\";\n BRLMPrinterModelName[\"TD_2350D_300\"] = \"TD_2350D_300\";\n})(BRLMPrinterModelName || (BRLMPrinterModelName = {}));\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android/labelinfo.html\n */\nexport var BRLMPrinterLabelName;\n(function (BRLMPrinterLabelName) {\n BRLMPrinterLabelName[\"DieCutW17H54\"] = \"DieCutW17H54\";\n BRLMPrinterLabelName[\"DieCutW17H87\"] = \"DieCutW17H87\";\n BRLMPrinterLabelName[\"DieCutW23H23\"] = \"DieCutW23H23\";\n BRLMPrinterLabelName[\"DieCutW29H42\"] = \"DieCutW29H42\";\n BRLMPrinterLabelName[\"DieCutW29H90\"] = \"DieCutW29H90\";\n BRLMPrinterLabelName[\"DieCutW38H90\"] = \"DieCutW38H90\";\n BRLMPrinterLabelName[\"DieCutW39H48\"] = \"DieCutW39H48\";\n BRLMPrinterLabelName[\"DieCutW52H29\"] = \"DieCutW52H29\";\n BRLMPrinterLabelName[\"DieCutW62H29\"] = \"DieCutW62H29\";\n BRLMPrinterLabelName[\"DieCutW62H60\"] = \"DieCutW62H60\";\n BRLMPrinterLabelName[\"DieCutW62H75\"] = \"DieCutW62H75\";\n BRLMPrinterLabelName[\"DieCutW62H100\"] = \"DieCutW62H100\";\n BRLMPrinterLabelName[\"DieCutW60H86\"] = \"DieCutW60H86\";\n BRLMPrinterLabelName[\"DieCutW54H29\"] = \"DieCutW54H29\";\n BRLMPrinterLabelName[\"DieCutW102H51\"] = \"DieCutW102H51\";\n BRLMPrinterLabelName[\"DieCutW102H152\"] = \"DieCutW102H152\";\n BRLMPrinterLabelName[\"DieCutW103H164\"] = \"DieCutW103H164\";\n BRLMPrinterLabelName[\"RollW12\"] = \"RollW12\";\n BRLMPrinterLabelName[\"RollW29\"] = \"RollW29\";\n BRLMPrinterLabelName[\"RollW38\"] = \"RollW38\";\n BRLMPrinterLabelName[\"RollW50\"] = \"RollW50\";\n BRLMPrinterLabelName[\"RollW54\"] = \"RollW54\";\n BRLMPrinterLabelName[\"RollW62\"] = \"RollW62\";\n BRLMPrinterLabelName[\"RollW62RB\"] = \"RollW62RB\";\n BRLMPrinterLabelName[\"RollW102\"] = \"RollW102\";\n BRLMPrinterLabelName[\"RollW103\"] = \"RollW103\";\n BRLMPrinterLabelName[\"DTRollW90\"] = \"DTRollW90\";\n BRLMPrinterLabelName[\"DTRollW102\"] = \"DTRollW102\";\n BRLMPrinterLabelName[\"DTRollW102H51\"] = \"DTRollW102H51\";\n BRLMPrinterLabelName[\"DTRollW102H152\"] = \"DTRollW102H152\";\n BRLMPrinterLabelName[\"RoundW12DIA\"] = \"RoundW12DIA\";\n BRLMPrinterLabelName[\"RoundW24DIA\"] = \"RoundW24DIA\";\n BRLMPrinterLabelName[\"RoundW58DIA\"] = \"RoundW58DIA\";\n /**\n * For TD series\n * @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx\n */\n BRLMPrinterLabelName[\"RDDieCutW60H60\"] = \"RDDieCutW60H60\";\n BRLMPrinterLabelName[\"RDDieCutW50H30\"] = \"RDDieCutW50H30\";\n BRLMPrinterLabelName[\"RDDieCutW40H60\"] = \"RDDieCutW40H60\";\n BRLMPrinterLabelName[\"RDDieCutW40H50\"] = \"RDDieCutW40H50\";\n BRLMPrinterLabelName[\"RDDieCutW40H40\"] = \"RDDieCutW40H40\";\n BRLMPrinterLabelName[\"RDDieCutW30H30\"] = \"RDDieCutW30H30\";\n BRLMPrinterLabelName[\"RDDieCutW50H35\"] = \"RDDieCutW50H35\";\n BRLMPrinterLabelName[\"RDDieCutW60H80\"] = \"RDDieCutW60H80\";\n BRLMPrinterLabelName[\"RDDieCutW60H100\"] = \"RDDieCutW60H100\";\n})(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));\n/**\n * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation\n */\nexport var BRLMPrinterImageRotation;\n(function (BRLMPrinterImageRotation) {\n BRLMPrinterImageRotation[\"Rotate0\"] = \"Rotate0\";\n BRLMPrinterImageRotation[\"Rotate90\"] = \"Rotate90\";\n BRLMPrinterImageRotation[\"Rotate180\"] = \"Rotate180\";\n BRLMPrinterImageRotation[\"Rotate270\"] = \"Rotate270\";\n})(BRLMPrinterImageRotation || (BRLMPrinterImageRotation = {}));\n/**\n * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode\n */\nexport var BRLMPrinterScaleMode;\n(function (BRLMPrinterScaleMode) {\n BRLMPrinterScaleMode[\"ActualSize\"] = \"ActualSize\";\n BRLMPrinterScaleMode[\"FitPageAspect\"] = \"FitPageAspect\";\n BRLMPrinterScaleMode[\"FitPaperAspect\"] = \"FitPaperAspect\";\n BRLMPrinterScaleMode[\"ScaleValue\"] = \"ScaleValue\";\n})(BRLMPrinterScaleMode || (BRLMPrinterScaleMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone\n */\nexport var BRLMPrinterHalftone;\n(function (BRLMPrinterHalftone) {\n BRLMPrinterHalftone[\"Threshold\"] = \"Threshold\";\n BRLMPrinterHalftone[\"ErrorDiffusion\"] = \"ErrorDiffusion\";\n BRLMPrinterHalftone[\"PatternDither\"] = \"PatternDither\";\n})(BRLMPrinterHalftone || (BRLMPrinterHalftone = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment\n */\nexport var BRLMPrinterVerticalAlignment;\n(function (BRLMPrinterVerticalAlignment) {\n BRLMPrinterVerticalAlignment[\"Top\"] = \"Top\";\n BRLMPrinterVerticalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterVerticalAlignment[\"Bottom\"] = \"Bottom\";\n})(BRLMPrinterVerticalAlignment || (BRLMPrinterVerticalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment\n */\nexport var BRLMPrinterHorizontalAlignment;\n(function (BRLMPrinterHorizontalAlignment) {\n BRLMPrinterHorizontalAlignment[\"Left\"] = \"Left\";\n BRLMPrinterHorizontalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterHorizontalAlignment[\"Right\"] = \"Right\";\n})(BRLMPrinterHorizontalAlignment || (BRLMPrinterHorizontalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode\n */\nexport var BRLMPrinterCompressMode;\n(function (BRLMPrinterCompressMode) {\n BRLMPrinterCompressMode[\"None\"] = \"None\";\n BRLMPrinterCompressMode[\"Tiff\"] = \"Tiff\";\n BRLMPrinterCompressMode[\"Mode9\"] = \"Mode9\";\n})(BRLMPrinterCompressMode || (BRLMPrinterCompressMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality\n */\nexport var BRLMPrinterPrintQuality;\n(function (BRLMPrinterPrintQuality) {\n BRLMPrinterPrintQuality[\"Best\"] = \"Best\";\n BRLMPrinterPrintQuality[\"Fast\"] = \"Fast\";\n})(BRLMPrinterPrintQuality || (BRLMPrinterPrintQuality = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution\n */\n// export enum BRLMPrinterPrintResolution {\n// Low = 'Low',\n// Normal = 'Normal',\n// High = 'High',\n// }\n//# sourceMappingURL=brother-printer.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('BrotherPrint', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport * from './events.enum';\nexport * from './brother-printer.enum';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","BrotherPrintEventsEnum","BRLMPrinterPort","BRLMPrinterCustomPaperUnit","BRLMPrinterCustomPaperType","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","registerPlugin"],"mappings":";;;;;;AACO,MAAM,eAAe,SAASA,cAAS,CAAC;AAC/C,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAC3C,KAAK;AACL,IAAI,MAAM,MAAM,CAAC,OAAO,EAAE;AAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,uBAAuB,GAAG;AACp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8B,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5E;AACA;AACA;AACWC,yCAAwB;AACnC,CAAC,UAAU,uBAAuB,EAAE;AACpC,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,IAAI,uBAAuB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC/C,CAAC,EAAEA,+BAAuB,KAAKA,+BAAuB,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9D;AACA;AACA;AACWC,yCAAwB;AACnC,CAAC,UAAU,uBAAuB,EAAE;AACpC,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,CAAC,EAAEA,+BAAuB,KAAKA,+BAAuB,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5JK,MAAC,YAAY,GAAGC,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -29,24 +29,24 @@ var BrotherPrint = (function (exports, core) {
|
|
|
29
29
|
BrotherPrintEventsEnum["onPrintError"] = "onPrintError";
|
|
30
30
|
})(exports.BrotherPrintEventsEnum || (exports.BrotherPrintEventsEnum = {}));
|
|
31
31
|
|
|
32
|
-
exports.
|
|
33
|
-
(function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})(exports.
|
|
39
|
-
exports.
|
|
40
|
-
(function (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})(exports.
|
|
44
|
-
exports.
|
|
45
|
-
(function (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})(exports.
|
|
32
|
+
exports.BRLMPrinterPort = void 0;
|
|
33
|
+
(function (BRLMPrinterPort) {
|
|
34
|
+
BRLMPrinterPort["usb"] = "usb";
|
|
35
|
+
BRLMPrinterPort["wifi"] = "wifi";
|
|
36
|
+
BRLMPrinterPort["bluetooth"] = "bluetooth";
|
|
37
|
+
BRLMPrinterPort["bluetoothLowEnergy"] = "bluetoothLowEnergy";
|
|
38
|
+
})(exports.BRLMPrinterPort || (exports.BRLMPrinterPort = {}));
|
|
39
|
+
exports.BRLMPrinterCustomPaperUnit = void 0;
|
|
40
|
+
(function (BRLMPrinterCustomPaperUnit) {
|
|
41
|
+
BRLMPrinterCustomPaperUnit["mm"] = "mm";
|
|
42
|
+
BRLMPrinterCustomPaperUnit["inch"] = "inch";
|
|
43
|
+
})(exports.BRLMPrinterCustomPaperUnit || (exports.BRLMPrinterCustomPaperUnit = {}));
|
|
44
|
+
exports.BRLMPrinterCustomPaperType = void 0;
|
|
45
|
+
(function (BRLMPrinterCustomPaperType) {
|
|
46
|
+
BRLMPrinterCustomPaperType["rollPaper"] = "rollPaper";
|
|
47
|
+
BRLMPrinterCustomPaperType["dieCutPaper"] = "dieCutPaper";
|
|
48
|
+
BRLMPrinterCustomPaperType["markRollPaper"] = "markRollPaper";
|
|
49
|
+
})(exports.BRLMPrinterCustomPaperType || (exports.BRLMPrinterCustomPaperType = {}));
|
|
50
50
|
/**
|
|
51
51
|
* Note: If you update this file, you should update the following files:
|
|
52
52
|
* - ios/Plugin/Model/PrinterModel.swift
|
|
@@ -101,6 +101,19 @@ var BrotherPrint = (function (exports, core) {
|
|
|
101
101
|
BRLMPrinterLabelName["RoundW12DIA"] = "RoundW12DIA";
|
|
102
102
|
BRLMPrinterLabelName["RoundW24DIA"] = "RoundW24DIA";
|
|
103
103
|
BRLMPrinterLabelName["RoundW58DIA"] = "RoundW58DIA";
|
|
104
|
+
/**
|
|
105
|
+
* For TD series
|
|
106
|
+
* @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx
|
|
107
|
+
*/
|
|
108
|
+
BRLMPrinterLabelName["RDDieCutW60H60"] = "RDDieCutW60H60";
|
|
109
|
+
BRLMPrinterLabelName["RDDieCutW50H30"] = "RDDieCutW50H30";
|
|
110
|
+
BRLMPrinterLabelName["RDDieCutW40H60"] = "RDDieCutW40H60";
|
|
111
|
+
BRLMPrinterLabelName["RDDieCutW40H50"] = "RDDieCutW40H50";
|
|
112
|
+
BRLMPrinterLabelName["RDDieCutW40H40"] = "RDDieCutW40H40";
|
|
113
|
+
BRLMPrinterLabelName["RDDieCutW30H30"] = "RDDieCutW30H30";
|
|
114
|
+
BRLMPrinterLabelName["RDDieCutW50H35"] = "RDDieCutW50H35";
|
|
115
|
+
BRLMPrinterLabelName["RDDieCutW60H80"] = "RDDieCutW60H80";
|
|
116
|
+
BRLMPrinterLabelName["RDDieCutW60H100"] = "RDDieCutW60H100";
|
|
104
117
|
})(exports.BRLMPrinterLabelName || (exports.BRLMPrinterLabelName = {}));
|
|
105
118
|
/**
|
|
106
119
|
* @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/web.js","esm/events.enum.js","esm/brother-printer.enum.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n async printImage(options) {\n console.log('printImage', options);\n }\n async search(options) {\n console.log('search', options);\n }\n async cancelSearchWiFiPrinter() {\n console.log('cancelSearchWiFiPrinter');\n }\n async cancelSearchBluetoothPrinter() {\n console.log('cancelSearchBluetoothPrinter');\n }\n}\n//# sourceMappingURL=web.js.map","export var BrotherPrintEventsEnum;\n(function (BrotherPrintEventsEnum) {\n BrotherPrintEventsEnum[\"onPrinterAvailable\"] = \"onPrinterAvailable\";\n BrotherPrintEventsEnum[\"onPrint\"] = \"onPrint\";\n BrotherPrintEventsEnum[\"onPrintFailedCommunication\"] = \"onPrintFailedCommunication\";\n BrotherPrintEventsEnum[\"onPrintError\"] = \"onPrintError\";\n})(BrotherPrintEventsEnum || (BrotherPrintEventsEnum = {}));\n//# sourceMappingURL=events.enum.js.map","export var BRKMPrinterPort;\n(function (BRKMPrinterPort) {\n BRKMPrinterPort[\"usb\"] = \"usb\";\n BRKMPrinterPort[\"wifi\"] = \"wifi\";\n BRKMPrinterPort[\"bluetooth\"] = \"bluetooth\";\n BRKMPrinterPort[\"bluetoothLowEnergy\"] = \"bluetoothLowEnergy\";\n})(BRKMPrinterPort || (BRKMPrinterPort = {}));\nexport var BRKMPrinterCustomPaperUnit;\n(function (BRKMPrinterCustomPaperUnit) {\n BRKMPrinterCustomPaperUnit[\"mm\"] = \"mm\";\n BRKMPrinterCustomPaperUnit[\"inch\"] = \"inch\";\n})(BRKMPrinterCustomPaperUnit || (BRKMPrinterCustomPaperUnit = {}));\nexport var BRKMPrinterCustomPaperType;\n(function (BRKMPrinterCustomPaperType) {\n BRKMPrinterCustomPaperType[\"rollPaper\"] = \"rollPaper\";\n BRKMPrinterCustomPaperType[\"dieCutPaper\"] = \"dieCutPaper\";\n BRKMPrinterCustomPaperType[\"markRollPaper\"] = \"markRollPaper\";\n})(BRKMPrinterCustomPaperType || (BRKMPrinterCustomPaperType = {}));\n/**\n * Note: If you update this file, you should update the following files:\n * - ios/Plugin/Model/PrinterModel.swift\n *\n * And name is follow android naming convention.\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport var BRLMPrinterModelName;\n(function (BRLMPrinterModelName) {\n BRLMPrinterModelName[\"QL_800\"] = \"QL_800\";\n BRLMPrinterModelName[\"QL_810W\"] = \"QL_810W\";\n BRLMPrinterModelName[\"QL_820NWB\"] = \"QL_820NWB\";\n BRLMPrinterModelName[\"TD_2320D_203\"] = \"TD_2320D_203\";\n BRLMPrinterModelName[\"TD_2030AD\"] = \"TD_2030AD\";\n BRLMPrinterModelName[\"TD_2350D_300\"] = \"TD_2350D_300\";\n})(BRLMPrinterModelName || (BRLMPrinterModelName = {}));\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android/labelinfo.html\n */\nexport var BRLMPrinterLabelName;\n(function (BRLMPrinterLabelName) {\n BRLMPrinterLabelName[\"DieCutW17H54\"] = \"DieCutW17H54\";\n BRLMPrinterLabelName[\"DieCutW17H87\"] = \"DieCutW17H87\";\n BRLMPrinterLabelName[\"DieCutW23H23\"] = \"DieCutW23H23\";\n BRLMPrinterLabelName[\"DieCutW29H42\"] = \"DieCutW29H42\";\n BRLMPrinterLabelName[\"DieCutW29H90\"] = \"DieCutW29H90\";\n BRLMPrinterLabelName[\"DieCutW38H90\"] = \"DieCutW38H90\";\n BRLMPrinterLabelName[\"DieCutW39H48\"] = \"DieCutW39H48\";\n BRLMPrinterLabelName[\"DieCutW52H29\"] = \"DieCutW52H29\";\n BRLMPrinterLabelName[\"DieCutW62H29\"] = \"DieCutW62H29\";\n BRLMPrinterLabelName[\"DieCutW62H60\"] = \"DieCutW62H60\";\n BRLMPrinterLabelName[\"DieCutW62H75\"] = \"DieCutW62H75\";\n BRLMPrinterLabelName[\"DieCutW62H100\"] = \"DieCutW62H100\";\n BRLMPrinterLabelName[\"DieCutW60H86\"] = \"DieCutW60H86\";\n BRLMPrinterLabelName[\"DieCutW54H29\"] = \"DieCutW54H29\";\n BRLMPrinterLabelName[\"DieCutW102H51\"] = \"DieCutW102H51\";\n BRLMPrinterLabelName[\"DieCutW102H152\"] = \"DieCutW102H152\";\n BRLMPrinterLabelName[\"DieCutW103H164\"] = \"DieCutW103H164\";\n BRLMPrinterLabelName[\"RollW12\"] = \"RollW12\";\n BRLMPrinterLabelName[\"RollW29\"] = \"RollW29\";\n BRLMPrinterLabelName[\"RollW38\"] = \"RollW38\";\n BRLMPrinterLabelName[\"RollW50\"] = \"RollW50\";\n BRLMPrinterLabelName[\"RollW54\"] = \"RollW54\";\n BRLMPrinterLabelName[\"RollW62\"] = \"RollW62\";\n BRLMPrinterLabelName[\"RollW62RB\"] = \"RollW62RB\";\n BRLMPrinterLabelName[\"RollW102\"] = \"RollW102\";\n BRLMPrinterLabelName[\"RollW103\"] = \"RollW103\";\n BRLMPrinterLabelName[\"DTRollW90\"] = \"DTRollW90\";\n BRLMPrinterLabelName[\"DTRollW102\"] = \"DTRollW102\";\n BRLMPrinterLabelName[\"DTRollW102H51\"] = \"DTRollW102H51\";\n BRLMPrinterLabelName[\"DTRollW102H152\"] = \"DTRollW102H152\";\n BRLMPrinterLabelName[\"RoundW12DIA\"] = \"RoundW12DIA\";\n BRLMPrinterLabelName[\"RoundW24DIA\"] = \"RoundW24DIA\";\n BRLMPrinterLabelName[\"RoundW58DIA\"] = \"RoundW58DIA\";\n})(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));\n/**\n * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation\n */\nexport var BRLMPrinterImageRotation;\n(function (BRLMPrinterImageRotation) {\n BRLMPrinterImageRotation[\"Rotate0\"] = \"Rotate0\";\n BRLMPrinterImageRotation[\"Rotate90\"] = \"Rotate90\";\n BRLMPrinterImageRotation[\"Rotate180\"] = \"Rotate180\";\n BRLMPrinterImageRotation[\"Rotate270\"] = \"Rotate270\";\n})(BRLMPrinterImageRotation || (BRLMPrinterImageRotation = {}));\n/**\n * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode\n */\nexport var BRLMPrinterScaleMode;\n(function (BRLMPrinterScaleMode) {\n BRLMPrinterScaleMode[\"ActualSize\"] = \"ActualSize\";\n BRLMPrinterScaleMode[\"FitPageAspect\"] = \"FitPageAspect\";\n BRLMPrinterScaleMode[\"FitPaperAspect\"] = \"FitPaperAspect\";\n BRLMPrinterScaleMode[\"ScaleValue\"] = \"ScaleValue\";\n})(BRLMPrinterScaleMode || (BRLMPrinterScaleMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone\n */\nexport var BRLMPrinterHalftone;\n(function (BRLMPrinterHalftone) {\n BRLMPrinterHalftone[\"Threshold\"] = \"Threshold\";\n BRLMPrinterHalftone[\"ErrorDiffusion\"] = \"ErrorDiffusion\";\n BRLMPrinterHalftone[\"PatternDither\"] = \"PatternDither\";\n})(BRLMPrinterHalftone || (BRLMPrinterHalftone = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment\n */\nexport var BRLMPrinterVerticalAlignment;\n(function (BRLMPrinterVerticalAlignment) {\n BRLMPrinterVerticalAlignment[\"Top\"] = \"Top\";\n BRLMPrinterVerticalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterVerticalAlignment[\"Bottom\"] = \"Bottom\";\n})(BRLMPrinterVerticalAlignment || (BRLMPrinterVerticalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment\n */\nexport var BRLMPrinterHorizontalAlignment;\n(function (BRLMPrinterHorizontalAlignment) {\n BRLMPrinterHorizontalAlignment[\"Left\"] = \"Left\";\n BRLMPrinterHorizontalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterHorizontalAlignment[\"Right\"] = \"Right\";\n})(BRLMPrinterHorizontalAlignment || (BRLMPrinterHorizontalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode\n */\nexport var BRLMPrinterCompressMode;\n(function (BRLMPrinterCompressMode) {\n BRLMPrinterCompressMode[\"None\"] = \"None\";\n BRLMPrinterCompressMode[\"Tiff\"] = \"Tiff\";\n BRLMPrinterCompressMode[\"Mode9\"] = \"Mode9\";\n})(BRLMPrinterCompressMode || (BRLMPrinterCompressMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality\n */\nexport var BRLMPrinterPrintQuality;\n(function (BRLMPrinterPrintQuality) {\n BRLMPrinterPrintQuality[\"Best\"] = \"Best\";\n BRLMPrinterPrintQuality[\"Fast\"] = \"Fast\";\n})(BRLMPrinterPrintQuality || (BRLMPrinterPrintQuality = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution\n */\n// export enum BRLMPrinterPrintResolution {\n// Low = 'Low',\n// Normal = 'Normal',\n// High = 'High',\n// }\n//# sourceMappingURL=brother-printer.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('BrotherPrint', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport * from './events.enum';\nexport * from './brother-printer.enum';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","BrotherPrintEventsEnum","BRKMPrinterPort","BRKMPrinterCustomPaperUnit","BRKMPrinterCustomPaperType","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","registerPlugin"],"mappings":";;;IACO,MAAM,eAAe,SAASA,cAAS,CAAC;IAC/C,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;IAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3C,KAAK;IACL,IAAI,MAAM,MAAM,CAAC,OAAO,EAAE;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAC/C,KA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,UAAC,YAAY,GAAGC,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/web.js","esm/events.enum.js","esm/brother-printer.enum.js","esm/index.js"],"sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class BrotherPrintWeb extends WebPlugin {\n async printImage(options) {\n console.log('printImage', options);\n }\n async search(options) {\n console.log('search', options);\n }\n async cancelSearchWiFiPrinter() {\n console.log('cancelSearchWiFiPrinter');\n }\n async cancelSearchBluetoothPrinter() {\n console.log('cancelSearchBluetoothPrinter');\n }\n}\n//# sourceMappingURL=web.js.map","export var BrotherPrintEventsEnum;\n(function (BrotherPrintEventsEnum) {\n BrotherPrintEventsEnum[\"onPrinterAvailable\"] = \"onPrinterAvailable\";\n BrotherPrintEventsEnum[\"onPrint\"] = \"onPrint\";\n BrotherPrintEventsEnum[\"onPrintFailedCommunication\"] = \"onPrintFailedCommunication\";\n BrotherPrintEventsEnum[\"onPrintError\"] = \"onPrintError\";\n})(BrotherPrintEventsEnum || (BrotherPrintEventsEnum = {}));\n//# sourceMappingURL=events.enum.js.map","export var BRLMPrinterPort;\n(function (BRLMPrinterPort) {\n BRLMPrinterPort[\"usb\"] = \"usb\";\n BRLMPrinterPort[\"wifi\"] = \"wifi\";\n BRLMPrinterPort[\"bluetooth\"] = \"bluetooth\";\n BRLMPrinterPort[\"bluetoothLowEnergy\"] = \"bluetoothLowEnergy\";\n})(BRLMPrinterPort || (BRLMPrinterPort = {}));\nexport var BRLMPrinterCustomPaperUnit;\n(function (BRLMPrinterCustomPaperUnit) {\n BRLMPrinterCustomPaperUnit[\"mm\"] = \"mm\";\n BRLMPrinterCustomPaperUnit[\"inch\"] = \"inch\";\n})(BRLMPrinterCustomPaperUnit || (BRLMPrinterCustomPaperUnit = {}));\nexport var BRLMPrinterCustomPaperType;\n(function (BRLMPrinterCustomPaperType) {\n BRLMPrinterCustomPaperType[\"rollPaper\"] = \"rollPaper\";\n BRLMPrinterCustomPaperType[\"dieCutPaper\"] = \"dieCutPaper\";\n BRLMPrinterCustomPaperType[\"markRollPaper\"] = \"markRollPaper\";\n})(BRLMPrinterCustomPaperType || (BRLMPrinterCustomPaperType = {}));\n/**\n * Note: If you update this file, you should update the following files:\n * - ios/Plugin/Model/PrinterModel.swift\n *\n * And name is follow android naming convention.\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport var BRLMPrinterModelName;\n(function (BRLMPrinterModelName) {\n BRLMPrinterModelName[\"QL_800\"] = \"QL_800\";\n BRLMPrinterModelName[\"QL_810W\"] = \"QL_810W\";\n BRLMPrinterModelName[\"QL_820NWB\"] = \"QL_820NWB\";\n BRLMPrinterModelName[\"TD_2320D_203\"] = \"TD_2320D_203\";\n BRLMPrinterModelName[\"TD_2030AD\"] = \"TD_2030AD\";\n BRLMPrinterModelName[\"TD_2350D_300\"] = \"TD_2350D_300\";\n})(BRLMPrinterModelName || (BRLMPrinterModelName = {}));\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android/labelinfo.html\n */\nexport var BRLMPrinterLabelName;\n(function (BRLMPrinterLabelName) {\n BRLMPrinterLabelName[\"DieCutW17H54\"] = \"DieCutW17H54\";\n BRLMPrinterLabelName[\"DieCutW17H87\"] = \"DieCutW17H87\";\n BRLMPrinterLabelName[\"DieCutW23H23\"] = \"DieCutW23H23\";\n BRLMPrinterLabelName[\"DieCutW29H42\"] = \"DieCutW29H42\";\n BRLMPrinterLabelName[\"DieCutW29H90\"] = \"DieCutW29H90\";\n BRLMPrinterLabelName[\"DieCutW38H90\"] = \"DieCutW38H90\";\n BRLMPrinterLabelName[\"DieCutW39H48\"] = \"DieCutW39H48\";\n BRLMPrinterLabelName[\"DieCutW52H29\"] = \"DieCutW52H29\";\n BRLMPrinterLabelName[\"DieCutW62H29\"] = \"DieCutW62H29\";\n BRLMPrinterLabelName[\"DieCutW62H60\"] = \"DieCutW62H60\";\n BRLMPrinterLabelName[\"DieCutW62H75\"] = \"DieCutW62H75\";\n BRLMPrinterLabelName[\"DieCutW62H100\"] = \"DieCutW62H100\";\n BRLMPrinterLabelName[\"DieCutW60H86\"] = \"DieCutW60H86\";\n BRLMPrinterLabelName[\"DieCutW54H29\"] = \"DieCutW54H29\";\n BRLMPrinterLabelName[\"DieCutW102H51\"] = \"DieCutW102H51\";\n BRLMPrinterLabelName[\"DieCutW102H152\"] = \"DieCutW102H152\";\n BRLMPrinterLabelName[\"DieCutW103H164\"] = \"DieCutW103H164\";\n BRLMPrinterLabelName[\"RollW12\"] = \"RollW12\";\n BRLMPrinterLabelName[\"RollW29\"] = \"RollW29\";\n BRLMPrinterLabelName[\"RollW38\"] = \"RollW38\";\n BRLMPrinterLabelName[\"RollW50\"] = \"RollW50\";\n BRLMPrinterLabelName[\"RollW54\"] = \"RollW54\";\n BRLMPrinterLabelName[\"RollW62\"] = \"RollW62\";\n BRLMPrinterLabelName[\"RollW62RB\"] = \"RollW62RB\";\n BRLMPrinterLabelName[\"RollW102\"] = \"RollW102\";\n BRLMPrinterLabelName[\"RollW103\"] = \"RollW103\";\n BRLMPrinterLabelName[\"DTRollW90\"] = \"DTRollW90\";\n BRLMPrinterLabelName[\"DTRollW102\"] = \"DTRollW102\";\n BRLMPrinterLabelName[\"DTRollW102H51\"] = \"DTRollW102H51\";\n BRLMPrinterLabelName[\"DTRollW102H152\"] = \"DTRollW102H152\";\n BRLMPrinterLabelName[\"RoundW12DIA\"] = \"RoundW12DIA\";\n BRLMPrinterLabelName[\"RoundW24DIA\"] = \"RoundW24DIA\";\n BRLMPrinterLabelName[\"RoundW58DIA\"] = \"RoundW58DIA\";\n /**\n * For TD series\n * @url https://www.brother.co.jp/product/labelprinter/td2350d/accessory/index.aspx\n */\n BRLMPrinterLabelName[\"RDDieCutW60H60\"] = \"RDDieCutW60H60\";\n BRLMPrinterLabelName[\"RDDieCutW50H30\"] = \"RDDieCutW50H30\";\n BRLMPrinterLabelName[\"RDDieCutW40H60\"] = \"RDDieCutW40H60\";\n BRLMPrinterLabelName[\"RDDieCutW40H50\"] = \"RDDieCutW40H50\";\n BRLMPrinterLabelName[\"RDDieCutW40H40\"] = \"RDDieCutW40H40\";\n BRLMPrinterLabelName[\"RDDieCutW30H30\"] = \"RDDieCutW30H30\";\n BRLMPrinterLabelName[\"RDDieCutW50H35\"] = \"RDDieCutW50H35\";\n BRLMPrinterLabelName[\"RDDieCutW60H80\"] = \"RDDieCutW60H80\";\n BRLMPrinterLabelName[\"RDDieCutW60H100\"] = \"RDDieCutW60H100\";\n})(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));\n/**\n * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation\n */\nexport var BRLMPrinterImageRotation;\n(function (BRLMPrinterImageRotation) {\n BRLMPrinterImageRotation[\"Rotate0\"] = \"Rotate0\";\n BRLMPrinterImageRotation[\"Rotate90\"] = \"Rotate90\";\n BRLMPrinterImageRotation[\"Rotate180\"] = \"Rotate180\";\n BRLMPrinterImageRotation[\"Rotate270\"] = \"Rotate270\";\n})(BRLMPrinterImageRotation || (BRLMPrinterImageRotation = {}));\n/**\n * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode\n */\nexport var BRLMPrinterScaleMode;\n(function (BRLMPrinterScaleMode) {\n BRLMPrinterScaleMode[\"ActualSize\"] = \"ActualSize\";\n BRLMPrinterScaleMode[\"FitPageAspect\"] = \"FitPageAspect\";\n BRLMPrinterScaleMode[\"FitPaperAspect\"] = \"FitPaperAspect\";\n BRLMPrinterScaleMode[\"ScaleValue\"] = \"ScaleValue\";\n})(BRLMPrinterScaleMode || (BRLMPrinterScaleMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone\n */\nexport var BRLMPrinterHalftone;\n(function (BRLMPrinterHalftone) {\n BRLMPrinterHalftone[\"Threshold\"] = \"Threshold\";\n BRLMPrinterHalftone[\"ErrorDiffusion\"] = \"ErrorDiffusion\";\n BRLMPrinterHalftone[\"PatternDither\"] = \"PatternDither\";\n})(BRLMPrinterHalftone || (BRLMPrinterHalftone = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment\n */\nexport var BRLMPrinterVerticalAlignment;\n(function (BRLMPrinterVerticalAlignment) {\n BRLMPrinterVerticalAlignment[\"Top\"] = \"Top\";\n BRLMPrinterVerticalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterVerticalAlignment[\"Bottom\"] = \"Bottom\";\n})(BRLMPrinterVerticalAlignment || (BRLMPrinterVerticalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment\n */\nexport var BRLMPrinterHorizontalAlignment;\n(function (BRLMPrinterHorizontalAlignment) {\n BRLMPrinterHorizontalAlignment[\"Left\"] = \"Left\";\n BRLMPrinterHorizontalAlignment[\"Center\"] = \"Center\";\n BRLMPrinterHorizontalAlignment[\"Right\"] = \"Right\";\n})(BRLMPrinterHorizontalAlignment || (BRLMPrinterHorizontalAlignment = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode\n */\nexport var BRLMPrinterCompressMode;\n(function (BRLMPrinterCompressMode) {\n BRLMPrinterCompressMode[\"None\"] = \"None\";\n BRLMPrinterCompressMode[\"Tiff\"] = \"Tiff\";\n BRLMPrinterCompressMode[\"Mode9\"] = \"Mode9\";\n})(BRLMPrinterCompressMode || (BRLMPrinterCompressMode = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality\n */\nexport var BRLMPrinterPrintQuality;\n(function (BRLMPrinterPrintQuality) {\n BRLMPrinterPrintQuality[\"Best\"] = \"Best\";\n BRLMPrinterPrintQuality[\"Fast\"] = \"Fast\";\n})(BRLMPrinterPrintQuality || (BRLMPrinterPrintQuality = {}));\n/**\n * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution\n */\n// export enum BRLMPrinterPrintResolution {\n// Low = 'Low',\n// Normal = 'Normal',\n// High = 'High',\n// }\n//# sourceMappingURL=brother-printer.enum.js.map","import { registerPlugin } from '@capacitor/core';\nconst BrotherPrint = registerPlugin('BrotherPrint', {\n web: () => import('./web').then(m => new m.BrotherPrintWeb()),\n});\nexport * from './definitions';\nexport * from './web';\nexport * from './events.enum';\nexport * from './brother-printer.enum';\nexport { BrotherPrint };\n//# sourceMappingURL=index.js.map"],"names":["WebPlugin","BrotherPrintEventsEnum","BRLMPrinterPort","BRLMPrinterCustomPaperUnit","BRLMPrinterCustomPaperType","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","registerPlugin"],"mappings":";;;IACO,MAAM,eAAe,SAASA,cAAS,CAAC;IAC/C,IAAI,MAAM,UAAU,CAAC,OAAO,EAAE;IAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3C,KAAK;IACL,IAAI,MAAM,MAAM,CAAC,OAAO,EAAE;IAC1B,QAAQ,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,uBAAuB,GAAG;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAC/C,KAAK;IACL,IAAI,MAAM,4BAA4B,GAAG;IACzC,QAAQ,OAAO,CAAC,GA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