@rdlabo/capacitor-brotherprint 6.2.0-2 → 6.2.0
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 +9 -21
- package/dist/docs.json +6 -31
- package/dist/esm/brother-printer.enum.d.ts +0 -5
- package/dist/esm/brother-printer.enum.js +5 -6
- package/dist/esm/brother-printer.enum.js.map +1 -1
- package/dist/esm/definitions.d.ts +1 -6
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js +5 -6
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +5 -6
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Model/PrinterSettingsModel.swift +15 -12
- package/ios/Plugin/module.modulemap +0 -3
- package/ios/Plugin.xcworkspace/xcuserdata/sakakibara.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ Each product link is an Amazon affiliate link. If you choose to make a purchase
|
|
|
9
9
|
| Product | Model | iOS/WiFi | iOS/BT | iOS/BLE | Android/USB | Android/WiFi | Android/BT | Android/BLE |
|
|
10
10
|
| ------------------------------------- | ------------ | -------- | ------ | ------- | ----------- | ------------ | ---------- | ----------- |
|
|
11
11
|
| QL-810W | QL_810W | ✗ | ✗ | ✗ | △ | ✗ | ✗ | ✗ |
|
|
12
|
-
| [QL-820NWB](https://amzn.to/3BXQ1aj) | QL_820NWB | ◯ |
|
|
13
|
-
| [QL-820NWBc](https://amzn.to/4fjhUIe) | QL_820NWB | ◯ | ※
|
|
12
|
+
| [QL-820NWB](https://amzn.to/3BXQ1aj) | QL_820NWB | ◯ | ※1 | ✗ | △ | ◯ | △ | ✗ |
|
|
13
|
+
| [QL-820NWBc](https://amzn.to/4fjhUIe) | QL_820NWB | ◯ | ※2 | ✗ | ✗ | ◯ | ◯ | ✗ |
|
|
14
14
|
| [TD-2320D](https://amzn.to/48EFCN3) | TD_2320D_203 | ✗ | ✗ | ✗ | △ | ✗ | ✗ | ✗ |
|
|
15
15
|
| [TD-2350D](https://amzn.to/48ma6TK) | TD_2350D_203 | △ | △ | △ | △ | △ | △ | △ |
|
|
16
16
|
|
|
@@ -26,11 +26,8 @@ Amazon Affiliate Links: **https://amzn.to/3AiiOFT**
|
|
|
26
26
|
| BT | Bluetooth |
|
|
27
27
|
| BLE | Bluetooth Low Energy |
|
|
28
28
|
|
|
29
|
-
※1
|
|
30
|
-
|
|
31
|
-
### Note
|
|
32
|
-
|
|
33
|
-
iOS `BRLMQLPrintSettingsLabelSize.dieCutW29H90` may work as `BRLMQLPrintSettingsLabelSize.dieCutW29H42`.
|
|
29
|
+
※1 Due to low Bluetooth version, connection is not possible with iOS. Ref: https://okbizcs.okwave.jp/brother/qa/q9932082.html
|
|
30
|
+
※2 The iOS/BT implementation for the QL-820NWBc is in place, but it’s uncertain if it functions correctly. It’s unclear whether this is an implementation issue, as Brother’s official app also doesn’t work well.
|
|
34
31
|
|
|
35
32
|
## How to install
|
|
36
33
|
|
|
@@ -231,10 +228,10 @@ export class BrotherComponent implements OnInit, OnDestroy {
|
|
|
231
228
|
* [`search(...)`](#search)
|
|
232
229
|
* [`cancelSearchWiFiPrinter()`](#cancelsearchwifiprinter)
|
|
233
230
|
* [`cancelSearchBluetoothPrinter()`](#cancelsearchbluetoothprinter)
|
|
234
|
-
* [`addListener(BrotherPrintEventsEnum.onPrinterAvailable, ...)`](#addlistenerbrotherprinteventsenumonprinteravailable)
|
|
235
|
-
* [`addListener(BrotherPrintEventsEnum.onPrint, ...)`](#addlistenerbrotherprinteventsenumonprint)
|
|
236
|
-
* [`addListener(BrotherPrintEventsEnum.onPrintFailedCommunication, ...)`](#addlistenerbrotherprinteventsenumonprintfailedcommunication)
|
|
237
|
-
* [`addListener(BrotherPrintEventsEnum.onPrintError, ...)`](#addlistenerbrotherprinteventsenumonprinterror)
|
|
231
|
+
* [`addListener(BrotherPrintEventsEnum.onPrinterAvailable, ...)`](#addlistenerbrotherprinteventsenumonprinteravailable-)
|
|
232
|
+
* [`addListener(BrotherPrintEventsEnum.onPrint, ...)`](#addlistenerbrotherprinteventsenumonprint-)
|
|
233
|
+
* [`addListener(BrotherPrintEventsEnum.onPrintFailedCommunication, ...)`](#addlistenerbrotherprinteventsenumonprintfailedcommunication-)
|
|
234
|
+
* [`addListener(BrotherPrintEventsEnum.onPrintError, ...)`](#addlistenerbrotherprinteventsenumonprinterror-)
|
|
238
235
|
* [Interfaces](#interfaces)
|
|
239
236
|
* [Type Aliases](#type-aliases)
|
|
240
237
|
* [Enums](#enums)
|
|
@@ -392,7 +389,7 @@ Make all properties in T optional
|
|
|
392
389
|
|
|
393
390
|
These are optional. If these are not set, default values are assigned by the printer.
|
|
394
391
|
|
|
395
|
-
<code>{ /** * The number of copies you print. */ numberOfCopies?: <a href="#brlmprinternumberofcopies">BRLMPrinterNumberOfCopies</a>; /** * Whether the auto-cut is enabled or not. If true, your printer cut the paper each page. */ autoCut?: <a href="#brlmprinterautocuttype">BRLMPrinterAutoCutType</a>; /** * A scale mode that specifies how your data is scaled in a print area of your printer. */ scaleMode?: <a href="#brlmprinterscalemode">BRLMPrinterScaleMode</a>; /** * A scale value. This is effective when ScaleMode is ScaleValue. */ scaleValue?: <a href="#brlmprinterscalevaluetype">BRLMPrinterScaleValueType</a>; /** * A way to rasterize your data. */ halftone?: <a href="#brlmprinterhalftone">BRLMPrinterHalftone</a>; /** * A threshold value. This is effective when the Halftone is Threshold. */ halftoneThreshold?: <a href="#brlmprinterhalftonethresholdtype">BRLMPrinterHalftoneThresholdType</a>; /** * An image rotation that specifies the angle in which your data is placed in the print area. Rotation direction is clockwise. */ imageRotation?: <a href="#brlmprinterimagerotation">BRLMPrinterImageRotation</a>; /** * A vertical alignment that specifies how your data is placed in the printable area. */ verticalAlignment?: <a href="#brlmprinterverticalalignment">BRLMPrinterVerticalAlignment</a>; /** * A horizontal alignment that specifies how your data is placed in the printable area. */ horizontalAlignment?: <a href="#brlmprinterhorizontalalignment">BRLMPrinterHorizontalAlignment</a>; /** * A compress mode that specifies how to compress your data. * note: This is ios only. */ compressMode?: <a href="#brlmprintercompressmode">BRLMPrinterCompressMode</a>; /** * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer. */ printQuality?: <a href="#brlmprinterprintquality">BRLMPrinterPrintQuality</a>; /** * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer. * note: This is ios only.
|
|
392
|
+
<code>{ /** * The number of copies you print. */ numberOfCopies?: <a href="#brlmprinternumberofcopies">BRLMPrinterNumberOfCopies</a>; /** * Whether the auto-cut is enabled or not. If true, your printer cut the paper each page. */ autoCut?: <a href="#brlmprinterautocuttype">BRLMPrinterAutoCutType</a>; /** * A scale mode that specifies how your data is scaled in a print area of your printer. */ scaleMode?: <a href="#brlmprinterscalemode">BRLMPrinterScaleMode</a>; /** * A scale value. This is effective when ScaleMode is ScaleValue. */ scaleValue?: <a href="#brlmprinterscalevaluetype">BRLMPrinterScaleValueType</a>; /** * A way to rasterize your data. */ halftone?: <a href="#brlmprinterhalftone">BRLMPrinterHalftone</a>; /** * A threshold value. This is effective when the Halftone is Threshold. */ halftoneThreshold?: <a href="#brlmprinterhalftonethresholdtype">BRLMPrinterHalftoneThresholdType</a>; /** * An image rotation that specifies the angle in which your data is placed in the print area. Rotation direction is clockwise. */ imageRotation?: <a href="#brlmprinterimagerotation">BRLMPrinterImageRotation</a>; /** * A vertical alignment that specifies how your data is placed in the printable area. */ verticalAlignment?: <a href="#brlmprinterverticalalignment">BRLMPrinterVerticalAlignment</a>; /** * A horizontal alignment that specifies how your data is placed in the printable area. */ horizontalAlignment?: <a href="#brlmprinterhorizontalalignment">BRLMPrinterHorizontalAlignment</a>; /** * A compress mode that specifies how to compress your data. * note: This is ios only. */ compressMode?: <a href="#brlmprintercompressmode">BRLMPrinterCompressMode</a>; /** * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer. */ printQuality?: <a href="#brlmprinterprintquality">BRLMPrinterPrintQuality</a>; /** * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer. * note: This is ios only. And for some reason, the aspect ratio is broken, so we do not provide this as an API. * resolution?: BRLMPrinterPrintResolution; */ }</code>
|
|
396
393
|
|
|
397
394
|
|
|
398
395
|
#### BRLMPrinterNumberOfCopies
|
|
@@ -533,15 +530,6 @@ These are optional. If these are not set, default values are assigned by the pri
|
|
|
533
530
|
| **`Fast`** | <code>'Fast'</code> |
|
|
534
531
|
|
|
535
532
|
|
|
536
|
-
#### BRLMPrinterPrintResolution
|
|
537
|
-
|
|
538
|
-
| Members | Value |
|
|
539
|
-
| ------------ | --------------------- |
|
|
540
|
-
| **`Low`** | <code>'Low'</code> |
|
|
541
|
-
| **`Normal`** | <code>'Normal'</code> |
|
|
542
|
-
| **`High`** | <code>'High'</code> |
|
|
543
|
-
|
|
544
|
-
|
|
545
533
|
#### BrotherPrintEventsEnum
|
|
546
534
|
|
|
547
535
|
| Members | Value |
|
package/dist/docs.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"BrotherPrintEventsEnum",
|
|
85
85
|
"BRLMChannelResult"
|
|
86
86
|
],
|
|
87
|
-
"slug": "addlistenerbrotherprinteventsenumonprinteravailable"
|
|
87
|
+
"slug": "addlistenerbrotherprinteventsenumonprinteravailable-"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "addListener",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"PluginListenerHandle",
|
|
109
109
|
"BrotherPrintEventsEnum"
|
|
110
110
|
],
|
|
111
|
-
"slug": "addlistenerbrotherprinteventsenumonprint"
|
|
111
|
+
"slug": "addlistenerbrotherprinteventsenumonprint-"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "addListener",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"BrotherPrintEventsEnum",
|
|
134
134
|
"ErrorInfo"
|
|
135
135
|
],
|
|
136
|
-
"slug": "addlistenerbrotherprinteventsenumonprintfailedcommunication"
|
|
136
|
+
"slug": "addlistenerbrotherprinteventsenumonprintfailedcommunication-"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "addListener",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"BrotherPrintEventsEnum",
|
|
159
159
|
"ErrorInfo"
|
|
160
160
|
],
|
|
161
|
-
"slug": "addlistenerbrotherprinteventsenumonprinterror"
|
|
161
|
+
"slug": "addlistenerbrotherprinteventsenumonprinterror-"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
"properties": []
|
|
@@ -542,30 +542,6 @@
|
|
|
542
542
|
}
|
|
543
543
|
]
|
|
544
544
|
},
|
|
545
|
-
{
|
|
546
|
-
"name": "BRLMPrinterPrintResolution",
|
|
547
|
-
"slug": "brlmprinterprintresolution",
|
|
548
|
-
"members": [
|
|
549
|
-
{
|
|
550
|
-
"name": "Low",
|
|
551
|
-
"value": "'Low'",
|
|
552
|
-
"tags": [],
|
|
553
|
-
"docs": ""
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"name": "Normal",
|
|
557
|
-
"value": "'Normal'",
|
|
558
|
-
"tags": [],
|
|
559
|
-
"docs": ""
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "High",
|
|
563
|
-
"value": "'High'",
|
|
564
|
-
"tags": [],
|
|
565
|
-
"docs": ""
|
|
566
|
-
}
|
|
567
|
-
]
|
|
568
|
-
},
|
|
569
545
|
{
|
|
570
546
|
"name": "BrotherPrintEventsEnum",
|
|
571
547
|
"slug": "brotherprinteventsenum",
|
|
@@ -646,7 +622,7 @@
|
|
|
646
622
|
"docs": "These are optional. If these are not set, default values are assigned by the printer.",
|
|
647
623
|
"types": [
|
|
648
624
|
{
|
|
649
|
-
"text": "{\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 /**\n * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.\n * note: This is ios only.\n
|
|
625
|
+
"text": "{\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 /**\n * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.\n * note: This is ios only. And for some reason, the aspect ratio is broken, so we do not provide this as an API.\n * resolution?: BRLMPrinterPrintResolution;\n */\n}",
|
|
650
626
|
"complexTypes": [
|
|
651
627
|
"BRLMPrinterNumberOfCopies",
|
|
652
628
|
"BRLMPrinterAutoCutType",
|
|
@@ -658,8 +634,7 @@
|
|
|
658
634
|
"BRLMPrinterVerticalAlignment",
|
|
659
635
|
"BRLMPrinterHorizontalAlignment",
|
|
660
636
|
"BRLMPrinterCompressMode",
|
|
661
|
-
"BRLMPrinterPrintQuality"
|
|
662
|
-
"BRLMPrinterPrintResolution"
|
|
637
|
+
"BRLMPrinterPrintQuality"
|
|
663
638
|
]
|
|
664
639
|
}
|
|
665
640
|
]
|
|
@@ -107,8 +107,3 @@ export declare enum BRLMPrinterPrintQuality {
|
|
|
107
107
|
/**
|
|
108
108
|
* url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
|
|
109
109
|
*/
|
|
110
|
-
export declare enum BRLMPrinterPrintResolution {
|
|
111
|
-
Low = "Low",
|
|
112
|
-
Normal = "Normal",
|
|
113
|
-
High = "High"
|
|
114
|
-
}
|
|
@@ -112,10 +112,9 @@ export var BRLMPrinterPrintQuality;
|
|
|
112
112
|
/**
|
|
113
113
|
* url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
|
|
114
114
|
*/
|
|
115
|
-
export
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})(BRLMPrinterPrintResolution || (BRLMPrinterPrintResolution = {}));
|
|
115
|
+
// export enum BRLMPrinterPrintResolution {
|
|
116
|
+
// Low = 'Low',
|
|
117
|
+
// Normal = 'Normal',
|
|
118
|
+
// High = 'High',
|
|
119
|
+
// }
|
|
121
120
|
//# sourceMappingURL=brother-printer.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brother-printer.enum.js","sourceRoot":"","sources":["../../src/brother-printer.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,oBAyBX;AAzBD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;AACnB,CAAC,EAzBW,oBAAoB,KAApB,oBAAoB,QAyB/B;AAOD;;GA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|
+
{"version":3,"file":"brother-printer.enum.js","sourceRoot":"","sources":["../../src/brother-printer.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;IAC7B,+CAAuB,CAAA;IACvB,qDAA6B,CAAA;AAC/B,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,oBAyBX;AAzBD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;AACnB,CAAC,EAzBW,oBAAoB,KAApB,oBAAoB,QAyB/B;AAOD;;GAEG;AACH,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;IACrB,mDAAuB,CAAA;IACvB,mDAAuB,CAAA;AACzB,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,iDAAyB,CAAA;IACzB,uDAA+B,CAAA;IAC/B,yDAAiC,CAAA;IACjC,iDAAyB,CAAA;AAC3B,CAAC,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":["/**\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 */\n\n/**\n * Android naming: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printermodel.html\n */\nexport enum BRLMPrinterModelName {\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_203 = 'TD_2350D_203',\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 W17H54 = 'W17H54',\n W17H87 = 'W17H87',\n W23H23 = 'W23H23',\n W29H42 = 'W29H42',\n W29H90 = 'W29H90',\n W38H90 = 'W38H90',\n W39H48 = 'W39H48',\n W52H29 = 'W52H29',\n W62H29 = 'W62H29',\n W62H100 = 'W62H100',\n W12 = 'W12',\n W29 = 'W29',\n W38 = 'W38',\n W50 = 'W50',\n W54 = 'W54',\n W62 = 'W62',\n W60H86 = 'W60H86',\n W62RB = 'W62RB',\n W54H29 = 'W54H29',\n W12DIA = 'W12DIA',\n W24DIA = 'W24DIA',\n W58DIA = 'W58DIA',\n W62H60 = 'W62H60',\n W62H75 = 'W62H75',\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,5 +1,5 @@
|
|
|
1
1
|
import type { PluginListenerHandle } from '@capacitor/core';
|
|
2
|
-
import type { BRLMPrinterLabelName, BRLMPrinterModelName, BRLMPrinterAutoCutType, BRLMPrinterCompressMode, BRLMPrinterHalftone, BRLMPrinterHalftoneThresholdType, BRLMPrinterHorizontalAlignment, BRLMPrinterNumberOfCopies, BRLMPrinterPrintQuality,
|
|
2
|
+
import type { BRLMPrinterLabelName, BRLMPrinterModelName, BRLMPrinterAutoCutType, BRLMPrinterCompressMode, BRLMPrinterHalftone, BRLMPrinterHalftoneThresholdType, BRLMPrinterHorizontalAlignment, BRLMPrinterNumberOfCopies, BRLMPrinterPrintQuality, BRLMPrinterImageRotation, BRLMPrinterScaleMode, BRLMPrinterScaleValueType, BRLMPrinterVerticalAlignment } from './brother-printer.enum';
|
|
3
3
|
import type { BrotherPrintEventsEnum } from './events.enum';
|
|
4
4
|
export declare type BRLMChannelResult = {
|
|
5
5
|
port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';
|
|
@@ -70,11 +70,6 @@ export declare type BRLMPrinterSettings = {
|
|
|
70
70
|
* A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.
|
|
71
71
|
*/
|
|
72
72
|
printQuality?: BRLMPrinterPrintQuality;
|
|
73
|
-
/**
|
|
74
|
-
* A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.
|
|
75
|
-
* note: This is ios only.
|
|
76
|
-
*/
|
|
77
|
-
resolution?: BRLMPrinterPrintResolution;
|
|
78
73
|
};
|
|
79
74
|
export declare type BRLMSearchOption = {
|
|
80
75
|
port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';
|
|
@@ -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
|
|
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} from './brother-printer.enum';\nimport type { BrotherPrintEventsEnum } from './events.enum';\n\nexport type BRLMChannelResult = {\n port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n ipAddress: string;\n};\n\nexport type BRLMPrintOptions = {\n encodedImage: string;\n\n /**\n * Should use enum BRLMPrinterLabelName\n */\n labelName: BRLMPrinterLabelName;\n\n /**\n * Should use enum BRLMPrinterModelName\n */\n modelName: BRLMPrinterModelName;\n} & Partial<BRLMChannelResult> &\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 /**\n * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.\n * note: This is ios only. And for some reason, the aspect ratio is broken, so we do not provide this as an API.\n * resolution?: BRLMPrinterPrintResolution;\n */\n};\n\nexport type BRLMSearchOption = {\n port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\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 addListener(\n eventName: BrotherPrintEventsEnum.onPrinterAvailable,\n listenerFunc: (printers: BRLMChannelResult) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: BrotherPrintEventsEnum.onPrint,\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: BrotherPrintEventsEnum.onPrintFailedCommunication,\n listenerFunc: (info: ErrorInfo) => void,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: BrotherPrintEventsEnum.onPrintError,\n listenerFunc: (info: ErrorInfo) => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -146,12 +146,11 @@ exports.BRLMPrinterPrintQuality = void 0;
|
|
|
146
146
|
/**
|
|
147
147
|
* url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
|
|
148
148
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
})(exports.BRLMPrinterPrintResolution || (exports.BRLMPrinterPrintResolution = {}));
|
|
149
|
+
// export enum BRLMPrinterPrintResolution {
|
|
150
|
+
// Low = 'Low',
|
|
151
|
+
// Normal = 'Normal',
|
|
152
|
+
// High = 'High',
|
|
153
|
+
// }
|
|
155
154
|
|
|
156
155
|
const BrotherPrint = core.registerPlugin('BrotherPrint', {
|
|
157
156
|
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
|
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","/**\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 */\n/**\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_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_203\"] = \"TD_2350D_203\";\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[\"W17H54\"] = \"W17H54\";\n BRLMPrinterLabelName[\"W17H87\"] = \"W17H87\";\n BRLMPrinterLabelName[\"W23H23\"] = \"W23H23\";\n BRLMPrinterLabelName[\"W29H42\"] = \"W29H42\";\n BRLMPrinterLabelName[\"W29H90\"] = \"W29H90\";\n BRLMPrinterLabelName[\"W38H90\"] = \"W38H90\";\n BRLMPrinterLabelName[\"W39H48\"] = \"W39H48\";\n BRLMPrinterLabelName[\"W52H29\"] = \"W52H29\";\n BRLMPrinterLabelName[\"W62H29\"] = \"W62H29\";\n BRLMPrinterLabelName[\"W62H100\"] = \"W62H100\";\n BRLMPrinterLabelName[\"W12\"] = \"W12\";\n BRLMPrinterLabelName[\"W29\"] = \"W29\";\n BRLMPrinterLabelName[\"W38\"] = \"W38\";\n BRLMPrinterLabelName[\"W50\"] = \"W50\";\n BRLMPrinterLabelName[\"W54\"] = \"W54\";\n BRLMPrinterLabelName[\"W62\"] = \"W62\";\n BRLMPrinterLabelName[\"W60H86\"] = \"W60H86\";\n BRLMPrinterLabelName[\"W62RB\"] = \"W62RB\";\n BRLMPrinterLabelName[\"W54H29\"] = \"W54H29\";\n BRLMPrinterLabelName[\"W12DIA\"] = \"W12DIA\";\n BRLMPrinterLabelName[\"W24DIA\"] = \"W24DIA\";\n BRLMPrinterLabelName[\"W58DIA\"] = \"W58DIA\";\n BRLMPrinterLabelName[\"W62H60\"] = \"W62H60\";\n BRLMPrinterLabelName[\"W62H75\"] = \"W62H75\";\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 */\nexport var BRLMPrinterPrintResolution;\n(function (BRLMPrinterPrintResolution) {\n BRLMPrinterPrintResolution[\"Low\"] = \"Low\";\n BRLMPrinterPrintResolution[\"Normal\"] = \"Normal\";\n BRLMPrinterPrintResolution[\"High\"] = \"High\";\n})(BRLMPrinterPrintResolution || (BRLMPrinterPrintResolution = {}));\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","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","BRLMPrinterPrintResolution","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;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;AAC/C,KAAK;AACL,IAAI,MAAM,4BAA4B,GAAG;AACzC,QAAQ,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AACpD,KAAK;AACL;;;;;;;ACdWC,wCAAuB;AAClC,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACxE,IAAI,sBAAsB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAClD,IAAI,sBAAsB,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAAC;AACxF,IAAI,sBAAsB,CAAC,cAAc,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CAAC,EAAEA,sCAA8B,KAAKA,sCAA8B,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;AACWC,4CAA2B;AACtC,CAAC,UAAU,0BAA0B,EAAE;AACvC,IAAI,0BAA0B,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC9C,IAAI,0BAA0B,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;AACpD,IAAI,0BAA0B,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAChD,CAAC,EAAEA,kCAA0B,KAAKA,kCAA0B,GAAG,EAAE,CAAC,CAAC;;ACtH9D,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","/**\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 */\n/**\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_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_203\"] = \"TD_2350D_203\";\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[\"W17H54\"] = \"W17H54\";\n BRLMPrinterLabelName[\"W17H87\"] = \"W17H87\";\n BRLMPrinterLabelName[\"W23H23\"] = \"W23H23\";\n BRLMPrinterLabelName[\"W29H42\"] = \"W29H42\";\n BRLMPrinterLabelName[\"W29H90\"] = \"W29H90\";\n BRLMPrinterLabelName[\"W38H90\"] = \"W38H90\";\n BRLMPrinterLabelName[\"W39H48\"] = \"W39H48\";\n BRLMPrinterLabelName[\"W52H29\"] = \"W52H29\";\n BRLMPrinterLabelName[\"W62H29\"] = \"W62H29\";\n BRLMPrinterLabelName[\"W62H100\"] = \"W62H100\";\n BRLMPrinterLabelName[\"W12\"] = \"W12\";\n BRLMPrinterLabelName[\"W29\"] = \"W29\";\n BRLMPrinterLabelName[\"W38\"] = \"W38\";\n BRLMPrinterLabelName[\"W50\"] = \"W50\";\n BRLMPrinterLabelName[\"W54\"] = \"W54\";\n BRLMPrinterLabelName[\"W62\"] = \"W62\";\n BRLMPrinterLabelName[\"W60H86\"] = \"W60H86\";\n BRLMPrinterLabelName[\"W62RB\"] = \"W62RB\";\n BRLMPrinterLabelName[\"W54H29\"] = \"W54H29\";\n BRLMPrinterLabelName[\"W12DIA\"] = \"W12DIA\";\n BRLMPrinterLabelName[\"W24DIA\"] = \"W24DIA\";\n BRLMPrinterLabelName[\"W58DIA\"] = \"W58DIA\";\n BRLMPrinterLabelName[\"W62H60\"] = \"W62H60\";\n BRLMPrinterLabelName[\"W62H75\"] = \"W62H75\";\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","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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;AACA;AACA;AACA;;ACrHK,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
|
@@ -143,12 +143,11 @@ var BrotherPrint = (function (exports, core) {
|
|
|
143
143
|
/**
|
|
144
144
|
* url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
|
|
145
145
|
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
})(exports.BRLMPrinterPrintResolution || (exports.BRLMPrinterPrintResolution = {}));
|
|
146
|
+
// export enum BRLMPrinterPrintResolution {
|
|
147
|
+
// Low = 'Low',
|
|
148
|
+
// Normal = 'Normal',
|
|
149
|
+
// High = 'High',
|
|
150
|
+
// }
|
|
152
151
|
|
|
153
152
|
const BrotherPrint = core.registerPlugin('BrotherPrint', {
|
|
154
153
|
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
|
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","/**\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 */\n/**\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_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_203\"] = \"TD_2350D_203\";\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[\"W17H54\"] = \"W17H54\";\n BRLMPrinterLabelName[\"W17H87\"] = \"W17H87\";\n BRLMPrinterLabelName[\"W23H23\"] = \"W23H23\";\n BRLMPrinterLabelName[\"W29H42\"] = \"W29H42\";\n BRLMPrinterLabelName[\"W29H90\"] = \"W29H90\";\n BRLMPrinterLabelName[\"W38H90\"] = \"W38H90\";\n BRLMPrinterLabelName[\"W39H48\"] = \"W39H48\";\n BRLMPrinterLabelName[\"W52H29\"] = \"W52H29\";\n BRLMPrinterLabelName[\"W62H29\"] = \"W62H29\";\n BRLMPrinterLabelName[\"W62H100\"] = \"W62H100\";\n BRLMPrinterLabelName[\"W12\"] = \"W12\";\n BRLMPrinterLabelName[\"W29\"] = \"W29\";\n BRLMPrinterLabelName[\"W38\"] = \"W38\";\n BRLMPrinterLabelName[\"W50\"] = \"W50\";\n BRLMPrinterLabelName[\"W54\"] = \"W54\";\n BRLMPrinterLabelName[\"W62\"] = \"W62\";\n BRLMPrinterLabelName[\"W60H86\"] = \"W60H86\";\n BRLMPrinterLabelName[\"W62RB\"] = \"W62RB\";\n BRLMPrinterLabelName[\"W54H29\"] = \"W54H29\";\n BRLMPrinterLabelName[\"W12DIA\"] = \"W12DIA\";\n BRLMPrinterLabelName[\"W24DIA\"] = \"W24DIA\";\n BRLMPrinterLabelName[\"W58DIA\"] = \"W58DIA\";\n BRLMPrinterLabelName[\"W62H60\"] = \"W62H60\";\n BRLMPrinterLabelName[\"W62H75\"] = \"W62H75\";\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 */\nexport var BRLMPrinterPrintResolution;\n(function (BRLMPrinterPrintResolution) {\n BRLMPrinterPrintResolution[\"Low\"] = \"Low\";\n BRLMPrinterPrintResolution[\"Normal\"] = \"Normal\";\n BRLMPrinterPrintResolution[\"High\"] = \"High\";\n})(BRLMPrinterPrintResolution || (BRLMPrinterPrintResolution = {}));\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","BRLMPrinterModelName","BRLMPrinterLabelName","BRLMPrinterImageRotation","BRLMPrinterScaleMode","BRLMPrinterHalftone","BRLMPrinterVerticalAlignment","BRLMPrinterHorizontalAlignment","BRLMPrinterCompressMode","BRLMPrinterPrintQuality","BRLMPrinterPrintResolution","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,CA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,CAAC,GAAG,MAAM,CAAC;IAChD,CAAC,EAAEA,kCAA0B,KAAKA,kCAA0B,GAAG,EAAE,CAAC,CAAC;;ACtH9D,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","/**\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 */\n/**\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_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_203\"] = \"TD_2350D_203\";\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[\"W17H54\"] = \"W17H54\";\n BRLMPrinterLabelName[\"W17H87\"] = \"W17H87\";\n BRLMPrinterLabelName[\"W23H23\"] = \"W23H23\";\n BRLMPrinterLabelName[\"W29H42\"] = \"W29H42\";\n BRLMPrinterLabelName[\"W29H90\"] = \"W29H90\";\n BRLMPrinterLabelName[\"W38H90\"] = \"W38H90\";\n BRLMPrinterLabelName[\"W39H48\"] = \"W39H48\";\n BRLMPrinterLabelName[\"W52H29\"] = \"W52H29\";\n BRLMPrinterLabelName[\"W62H29\"] = \"W62H29\";\n BRLMPrinterLabelName[\"W62H100\"] = \"W62H100\";\n BRLMPrinterLabelName[\"W12\"] = \"W12\";\n BRLMPrinterLabelName[\"W29\"] = \"W29\";\n BRLMPrinterLabelName[\"W38\"] = \"W38\";\n BRLMPrinterLabelName[\"W50\"] = \"W50\";\n BRLMPrinterLabelName[\"W54\"] = \"W54\";\n BRLMPrinterLabelName[\"W62\"] = \"W62\";\n BRLMPrinterLabelName[\"W60H86\"] = \"W60H86\";\n BRLMPrinterLabelName[\"W62RB\"] = \"W62RB\";\n BRLMPrinterLabelName[\"W54H29\"] = \"W54H29\";\n BRLMPrinterLabelName[\"W12DIA\"] = \"W12DIA\";\n BRLMPrinterLabelName[\"W24DIA\"] = \"W24DIA\";\n BRLMPrinterLabelName[\"W58DIA\"] = \"W58DIA\";\n BRLMPrinterLabelName[\"W62H60\"] = \"W62H60\";\n BRLMPrinterLabelName[\"W62H75\"] = \"W62H75\";\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","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,GAAG,CAAC,8BAA8B,CAAC,CAAC;IACpD,KAAK;IACL;;;;;;;ACdWC,4CAAuB;IAClC,CAAC,UAAU,sBAAsB,EAAE;IACnC,IAAI,sBAAsB,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;IACxE,IAAI,sBAAsB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAClD,IAAI,sBAAsB,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAAC;IACxF,IAAI,sBAAsB,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;IAC5D,CAAC,EAAEA,8BAAsB,KAAKA,8BAAsB,GAAG,EAAE,CAAC,CAAC;;ICN3D;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACWC,0CAAqB;IAChC,CAAC,UAAU,oBAAoB,EAAE;IACjC,IAAI,oBAAoB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAChD,IAAI,oBAAoB,C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B,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IAC/C,CAAC,EAAEA,+BAAuB,KAAKA,+BAAuB,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9D;IACA;IACA;AACWC,6CAAwB;IACnC,CAAC,UAAU,uBAAuB,EAAE;IACpC,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC7C,IAAI,uBAAuB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC7C,CAAC,EAAEA,+BAAuB,KAAKA,+BAAuB,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9D;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;ACrHK,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;;;;;;;;;;;;;"}
|
|
@@ -4,13 +4,14 @@ import Foundation
|
|
|
4
4
|
import Capacitor
|
|
5
5
|
|
|
6
6
|
class PrinterSettingsModel {
|
|
7
|
-
static func initialize(_ call: CAPPluginCall, printSettings: BRLMQLPrintSettings) ->
|
|
7
|
+
static func initialize(_ call: CAPPluginCall, printSettings: BRLMQLPrintSettings) -> BRLMPrintSettingsProtocol {
|
|
8
8
|
|
|
9
9
|
printSettings.labelSize = BrotherModel.getLabelSize(from: call.getString("labelName", "rollW62"))
|
|
10
10
|
printSettings.numCopies = UInt(call.getInt("numberOfCopies", 1))
|
|
11
11
|
|
|
12
12
|
if let autoCut = call.getBool("autoCut") ?? nil {
|
|
13
13
|
printSettings.autoCut = autoCut
|
|
14
|
+
printSettings.cutAtEnd = true
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
if let scaleMode = call.getString("scaleMode") ?? nil {
|
|
@@ -105,18 +106,20 @@ class PrinterSettingsModel {
|
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
if let resolution = call.getString("resolution") ?? nil {
|
|
109
|
-
switch resolution {
|
|
110
|
-
case "Low":
|
|
111
|
-
printSettings.resolution = BRLMPrintSettingsResolution.
|
|
112
|
-
case "Normal":
|
|
113
|
-
printSettings.resolution = BRLMPrintSettingsResolution.normal
|
|
114
|
-
case "High":
|
|
115
|
-
printSettings.resolution = BRLMPrintSettingsResolution.high
|
|
116
|
-
default: break
|
|
117
|
-
}
|
|
118
|
-
}
|
|
109
|
+
// if let resolution = call.getString("resolution") ?? nil {
|
|
110
|
+
// switch resolution {
|
|
111
|
+
// case "Low":
|
|
112
|
+
// printSettings.resolution = BRLMPrintSettingsResolution.low
|
|
113
|
+
// case "Normal":
|
|
114
|
+
// printSettings.resolution = BRLMPrintSettingsResolution.normal
|
|
115
|
+
// case "High":
|
|
116
|
+
// printSettings.resolution = BRLMPrintSettingsResolution.high
|
|
117
|
+
// default: break
|
|
118
|
+
// }
|
|
119
|
+
// }
|
|
119
120
|
|
|
121
|
+
let report = BRLMValidatePrintSettings.validate(printSettings)
|
|
122
|
+
NSLog(report.description())
|
|
120
123
|
return printSettings
|
|
121
124
|
}
|
|
122
125
|
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
module BRLMPrinterKit {
|
|
2
2
|
header "../../../../../ios/App/Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h"
|
|
3
|
-
// header "../Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRLMPrinterKit.h"
|
|
4
3
|
link "BRLMPrinterKit"
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
module BRPtouchPrinterKit {
|
|
8
7
|
header "../../../../../ios/App/Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h"
|
|
9
|
-
// header "../Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h"
|
|
10
8
|
link "BRPtouchPrinterKit"
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
module BMSPrinterKit {
|
|
14
12
|
header "../../../../../ios/App/Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BRPtouchPrinterKit.h"
|
|
15
|
-
// header "../Pods/BRLMPrinterKit_v4/BRLMPrinterKit/BRLMPrinterKit.xcframework/ios-arm64/BRLMPrinterKit.framework/Headers/BMSPrinterKit.h"
|
|
16
13
|
link "BMSPrinterKit"
|
|
17
14
|
}
|
package/ios/Plugin.xcworkspace/xcuserdata/sakakibara.xcuserdatad/UserInterfaceState.xcuserstate
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/capacitor-brotherprint",
|
|
3
|
-
"version": "6.2.0
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Capacitor plugin for Brother Print SDK",
|
|
5
5
|
"main": "dist/plugin.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -22,16 +22,17 @@
|
|
|
22
22
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
|
|
23
23
|
"clean": "rimraf ./dist",
|
|
24
24
|
"watch": "tsc --watch",
|
|
25
|
-
"prepublishOnly": "npm run build",
|
|
26
|
-
"release": "np --no-tests
|
|
27
|
-
"
|
|
25
|
+
"prepublishOnly": "npm run replace:production && npm run build",
|
|
26
|
+
"release": "np --no-tests && npm run replace:development",
|
|
27
|
+
"replace:production": "cp -f module_production.modulemap ios/Plugin/module.modulemap",
|
|
28
|
+
"replace:development": "cp -f module_development.modulemap ios/Plugin/module.modulemap"
|
|
28
29
|
},
|
|
29
30
|
"author": "Masahiko Sakakibara<sakakibara@rdlabo.jp>",
|
|
30
31
|
"license": "MIT",
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@capacitor/android": "^6.0.0",
|
|
33
34
|
"@capacitor/core": "^6.0.0",
|
|
34
|
-
"@capacitor/docgen": "^0.0
|
|
35
|
+
"@capacitor/docgen": "^0.3.0",
|
|
35
36
|
"@capacitor/ios": "^6.0.0",
|
|
36
37
|
"@ionic/eslint-config": "^0.3.0",
|
|
37
38
|
"@ionic/prettier-config": "^1.0.1",
|