@rdlabo/capacitor-brotherprint 6.2.0-0 → 6.2.0-2

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.
@@ -43,3 +43,72 @@ export declare enum BRLMPrinterLabelName {
43
43
  W62H60 = "W62H60",
44
44
  W62H75 = "W62H75"
45
45
  }
46
+ export declare type BRLMPrinterAutoCutType = boolean;
47
+ export declare type BRLMPrinterScaleValueType = number;
48
+ export declare type BRLMPrinterHalftoneThresholdType = number;
49
+ export declare type BRLMPrinterNumberOfCopies = number;
50
+ /**
51
+ * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
52
+ */
53
+ export declare enum BRLMPrinterImageRotation {
54
+ Rotate0 = "Rotate0",
55
+ Rotate90 = "Rotate90",
56
+ Rotate180 = "Rotate180",
57
+ Rotate270 = "Rotate270"
58
+ }
59
+ /**
60
+ * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode
61
+ */
62
+ export declare enum BRLMPrinterScaleMode {
63
+ ActualSize = "ActualSize",
64
+ FitPageAspect = "FitPageAspect",
65
+ FitPaperAspect = "FitPaperAspect",
66
+ ScaleValue = "ScaleValue"
67
+ }
68
+ /**
69
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone
70
+ */
71
+ export declare enum BRLMPrinterHalftone {
72
+ Threshold = "Threshold",
73
+ ErrorDiffusion = "ErrorDiffusion",
74
+ PatternDither = "PatternDither"
75
+ }
76
+ /**
77
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment
78
+ */
79
+ export declare enum BRLMPrinterVerticalAlignment {
80
+ Top = "Top",
81
+ Center = "Center",
82
+ Bottom = "Bottom"
83
+ }
84
+ /**
85
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment
86
+ */
87
+ export declare enum BRLMPrinterHorizontalAlignment {
88
+ Left = "Left",
89
+ Center = "Center",
90
+ Right = "Right"
91
+ }
92
+ /**
93
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode
94
+ */
95
+ export declare enum BRLMPrinterCompressMode {
96
+ None = "None",
97
+ Tiff = "Tiff",
98
+ Mode9 = "Mode9"
99
+ }
100
+ /**
101
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality
102
+ */
103
+ export declare enum BRLMPrinterPrintQuality {
104
+ Best = "Best",
105
+ Fast = "Fast"
106
+ }
107
+ /**
108
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
109
+ */
110
+ export declare enum BRLMPrinterPrintResolution {
111
+ Low = "Low",
112
+ Normal = "Normal",
113
+ High = "High"
114
+ }
@@ -45,4 +45,77 @@ export var BRLMPrinterLabelName;
45
45
  BRLMPrinterLabelName["W62H60"] = "W62H60";
46
46
  BRLMPrinterLabelName["W62H75"] = "W62H75";
47
47
  })(BRLMPrinterLabelName || (BRLMPrinterLabelName = {}));
48
+ /**
49
+ * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
50
+ */
51
+ export var BRLMPrinterImageRotation;
52
+ (function (BRLMPrinterImageRotation) {
53
+ BRLMPrinterImageRotation["Rotate0"] = "Rotate0";
54
+ BRLMPrinterImageRotation["Rotate90"] = "Rotate90";
55
+ BRLMPrinterImageRotation["Rotate180"] = "Rotate180";
56
+ BRLMPrinterImageRotation["Rotate270"] = "Rotate270";
57
+ })(BRLMPrinterImageRotation || (BRLMPrinterImageRotation = {}));
58
+ /**
59
+ * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode
60
+ */
61
+ export var BRLMPrinterScaleMode;
62
+ (function (BRLMPrinterScaleMode) {
63
+ BRLMPrinterScaleMode["ActualSize"] = "ActualSize";
64
+ BRLMPrinterScaleMode["FitPageAspect"] = "FitPageAspect";
65
+ BRLMPrinterScaleMode["FitPaperAspect"] = "FitPaperAspect";
66
+ BRLMPrinterScaleMode["ScaleValue"] = "ScaleValue";
67
+ })(BRLMPrinterScaleMode || (BRLMPrinterScaleMode = {}));
68
+ /**
69
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone
70
+ */
71
+ export var BRLMPrinterHalftone;
72
+ (function (BRLMPrinterHalftone) {
73
+ BRLMPrinterHalftone["Threshold"] = "Threshold";
74
+ BRLMPrinterHalftone["ErrorDiffusion"] = "ErrorDiffusion";
75
+ BRLMPrinterHalftone["PatternDither"] = "PatternDither";
76
+ })(BRLMPrinterHalftone || (BRLMPrinterHalftone = {}));
77
+ /**
78
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment
79
+ */
80
+ export var BRLMPrinterVerticalAlignment;
81
+ (function (BRLMPrinterVerticalAlignment) {
82
+ BRLMPrinterVerticalAlignment["Top"] = "Top";
83
+ BRLMPrinterVerticalAlignment["Center"] = "Center";
84
+ BRLMPrinterVerticalAlignment["Bottom"] = "Bottom";
85
+ })(BRLMPrinterVerticalAlignment || (BRLMPrinterVerticalAlignment = {}));
86
+ /**
87
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment
88
+ */
89
+ export var BRLMPrinterHorizontalAlignment;
90
+ (function (BRLMPrinterHorizontalAlignment) {
91
+ BRLMPrinterHorizontalAlignment["Left"] = "Left";
92
+ BRLMPrinterHorizontalAlignment["Center"] = "Center";
93
+ BRLMPrinterHorizontalAlignment["Right"] = "Right";
94
+ })(BRLMPrinterHorizontalAlignment || (BRLMPrinterHorizontalAlignment = {}));
95
+ /**
96
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode
97
+ */
98
+ export var BRLMPrinterCompressMode;
99
+ (function (BRLMPrinterCompressMode) {
100
+ BRLMPrinterCompressMode["None"] = "None";
101
+ BRLMPrinterCompressMode["Tiff"] = "Tiff";
102
+ BRLMPrinterCompressMode["Mode9"] = "Mode9";
103
+ })(BRLMPrinterCompressMode || (BRLMPrinterCompressMode = {}));
104
+ /**
105
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality
106
+ */
107
+ export var BRLMPrinterPrintQuality;
108
+ (function (BRLMPrinterPrintQuality) {
109
+ BRLMPrinterPrintQuality["Best"] = "Best";
110
+ BRLMPrinterPrintQuality["Fast"] = "Fast";
111
+ })(BRLMPrinterPrintQuality || (BRLMPrinterPrintQuality = {}));
112
+ /**
113
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
114
+ */
115
+ export var BRLMPrinterPrintResolution;
116
+ (function (BRLMPrinterPrintResolution) {
117
+ BRLMPrinterPrintResolution["Low"] = "Low";
118
+ BRLMPrinterPrintResolution["Normal"] = "Normal";
119
+ BRLMPrinterPrintResolution["High"] = "High";
120
+ })(BRLMPrinterPrintResolution || (BRLMPrinterPrintResolution = {}));
48
121
  //# 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","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"]}
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;;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,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IACpC,yCAAW,CAAA;IACX,+CAAiB,CAAA;IACjB,2CAAa,CAAA;AACf,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC","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 */\nexport 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 } from './brother-printer.enum';
2
+ import type { BRLMPrinterLabelName, BRLMPrinterModelName, BRLMPrinterAutoCutType, BRLMPrinterCompressMode, BRLMPrinterHalftone, BRLMPrinterHalftoneThresholdType, BRLMPrinterHorizontalAlignment, BRLMPrinterNumberOfCopies, BRLMPrinterPrintQuality, BRLMPrinterPrintResolution, 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';
@@ -12,35 +12,69 @@ export declare type BRLMChannelResult = {
12
12
  };
13
13
  export declare type BRLMPrintOptions = {
14
14
  encodedImage: string;
15
- numberOfCopies: number;
16
- autoCut: boolean;
17
15
  /**
18
- * Should use getPlatformName.label function.
19
- * ex: getPlatformName.label('android', 'BRLMQLPrintSettingsLabelSizeRollW62')
16
+ * Should use enum BRLMPrinterLabelName
20
17
  */
21
18
  labelName: BRLMPrinterLabelName;
22
19
  /**
23
- * Should use getPlatformName.model function.
24
- * ex: getPlatformName.model('android', 'BRLMPrinterModelQL_820NWB')
20
+ * Should use enum BRLMPrinterModelName
25
21
  */
26
22
  modelName: BRLMPrinterModelName;
23
+ } & Partial<BRLMChannelResult> & BRLMPrinterSettings;
24
+ /**
25
+ * These are optional. If these are not set, default values are assigned by the printer.
26
+ */
27
+ export declare type BRLMPrinterSettings = {
27
28
  /**
28
- * These are get from search result. mostly, it is like below.
29
- * BrotherPrint.printImage({
30
- * ...defaultPrintSettings,
31
- * ...{
32
- * port: selectPrinter.port,
33
- * ipAddress: selectPrinter.ipAddress,
34
- * localName: selectPrinter.nodeName,
35
- * macAddress: selectPrinter.macAddress,
36
- * serialNumber: selectPrinter.serialNumber,
37
- * },
38
- * })
39
- */
40
- port?: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy' | 'usb';
41
- ipAddress?: string;
42
- localName?: string;
43
- serialNumber?: string;
29
+ * The number of copies you print.
30
+ */
31
+ numberOfCopies?: BRLMPrinterNumberOfCopies;
32
+ /**
33
+ * Whether the auto-cut is enabled or not. If true, your printer cut the paper each page.
34
+ */
35
+ autoCut?: BRLMPrinterAutoCutType;
36
+ /**
37
+ * A scale mode that specifies how your data is scaled in a print area of your printer.
38
+ */
39
+ scaleMode?: BRLMPrinterScaleMode;
40
+ /**
41
+ * A scale value. This is effective when ScaleMode is ScaleValue.
42
+ */
43
+ scaleValue?: BRLMPrinterScaleValueType;
44
+ /**
45
+ * A way to rasterize your data.
46
+ */
47
+ halftone?: BRLMPrinterHalftone;
48
+ /**
49
+ * A threshold value. This is effective when the Halftone is Threshold.
50
+ */
51
+ halftoneThreshold?: BRLMPrinterHalftoneThresholdType;
52
+ /**
53
+ * An image rotation that specifies the angle in which your data is placed in the print area. Rotation direction is clockwise.
54
+ */
55
+ imageRotation?: BRLMPrinterImageRotation;
56
+ /**
57
+ * A vertical alignment that specifies how your data is placed in the printable area.
58
+ */
59
+ verticalAlignment?: BRLMPrinterVerticalAlignment;
60
+ /**
61
+ * A horizontal alignment that specifies how your data is placed in the printable area.
62
+ */
63
+ horizontalAlignment?: BRLMPrinterHorizontalAlignment;
64
+ /**
65
+ * A compress mode that specifies how to compress your data.
66
+ * note: This is ios only.
67
+ */
68
+ compressMode?: BRLMPrinterCompressMode;
69
+ /**
70
+ * A priority that is print speed or print quality. Whether or not this has an effect is depend on your printer.
71
+ */
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;
44
78
  };
45
79
  export declare type BRLMSearchOption = {
46
80
  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} 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 numberOfCopies: number;\n autoCut: boolean;\n\n /**\n * Should use getPlatformName.label function.\n * ex: getPlatformName.label('android', 'BRLMQLPrintSettingsLabelSizeRollW62')\n */\n labelName: BRLMPrinterLabelName;\n\n /**\n * Should use getPlatformName.model function.\n * ex: getPlatformName.model('android', 'BRLMPrinterModelQL_820NWB')\n */\n modelName: BRLMPrinterModelName;\n\n /**\n * These are get from search result. mostly, it is like below.\n * BrotherPrint.printImage({\n * ...defaultPrintSettings,\n * ...{\n * port: selectPrinter.port,\n * ipAddress: selectPrinter.ipAddress,\n * localName: selectPrinter.nodeName,\n * macAddress: selectPrinter.macAddress,\n * serialNumber: selectPrinter.serialNumber,\n * },\n * })\n */\n port?: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy' | 'usb';\n ipAddress?: string;\n localName?: string;\n serialNumber?: string;\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"]}
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 BRLMPrinterPrintResolution,\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.\n */\n resolution?: BRLMPrinterPrintResolution;\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"]}
@@ -79,6 +79,79 @@ exports.BRLMPrinterLabelName = void 0;
79
79
  BRLMPrinterLabelName["W62H60"] = "W62H60";
80
80
  BRLMPrinterLabelName["W62H75"] = "W62H75";
81
81
  })(exports.BRLMPrinterLabelName || (exports.BRLMPrinterLabelName = {}));
82
+ /**
83
+ * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
84
+ */
85
+ exports.BRLMPrinterImageRotation = void 0;
86
+ (function (BRLMPrinterImageRotation) {
87
+ BRLMPrinterImageRotation["Rotate0"] = "Rotate0";
88
+ BRLMPrinterImageRotation["Rotate90"] = "Rotate90";
89
+ BRLMPrinterImageRotation["Rotate180"] = "Rotate180";
90
+ BRLMPrinterImageRotation["Rotate270"] = "Rotate270";
91
+ })(exports.BRLMPrinterImageRotation || (exports.BRLMPrinterImageRotation = {}));
92
+ /**
93
+ * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode
94
+ */
95
+ exports.BRLMPrinterScaleMode = void 0;
96
+ (function (BRLMPrinterScaleMode) {
97
+ BRLMPrinterScaleMode["ActualSize"] = "ActualSize";
98
+ BRLMPrinterScaleMode["FitPageAspect"] = "FitPageAspect";
99
+ BRLMPrinterScaleMode["FitPaperAspect"] = "FitPaperAspect";
100
+ BRLMPrinterScaleMode["ScaleValue"] = "ScaleValue";
101
+ })(exports.BRLMPrinterScaleMode || (exports.BRLMPrinterScaleMode = {}));
102
+ /**
103
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone
104
+ */
105
+ exports.BRLMPrinterHalftone = void 0;
106
+ (function (BRLMPrinterHalftone) {
107
+ BRLMPrinterHalftone["Threshold"] = "Threshold";
108
+ BRLMPrinterHalftone["ErrorDiffusion"] = "ErrorDiffusion";
109
+ BRLMPrinterHalftone["PatternDither"] = "PatternDither";
110
+ })(exports.BRLMPrinterHalftone || (exports.BRLMPrinterHalftone = {}));
111
+ /**
112
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment
113
+ */
114
+ exports.BRLMPrinterVerticalAlignment = void 0;
115
+ (function (BRLMPrinterVerticalAlignment) {
116
+ BRLMPrinterVerticalAlignment["Top"] = "Top";
117
+ BRLMPrinterVerticalAlignment["Center"] = "Center";
118
+ BRLMPrinterVerticalAlignment["Bottom"] = "Bottom";
119
+ })(exports.BRLMPrinterVerticalAlignment || (exports.BRLMPrinterVerticalAlignment = {}));
120
+ /**
121
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment
122
+ */
123
+ exports.BRLMPrinterHorizontalAlignment = void 0;
124
+ (function (BRLMPrinterHorizontalAlignment) {
125
+ BRLMPrinterHorizontalAlignment["Left"] = "Left";
126
+ BRLMPrinterHorizontalAlignment["Center"] = "Center";
127
+ BRLMPrinterHorizontalAlignment["Right"] = "Right";
128
+ })(exports.BRLMPrinterHorizontalAlignment || (exports.BRLMPrinterHorizontalAlignment = {}));
129
+ /**
130
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode
131
+ */
132
+ exports.BRLMPrinterCompressMode = void 0;
133
+ (function (BRLMPrinterCompressMode) {
134
+ BRLMPrinterCompressMode["None"] = "None";
135
+ BRLMPrinterCompressMode["Tiff"] = "Tiff";
136
+ BRLMPrinterCompressMode["Mode9"] = "Mode9";
137
+ })(exports.BRLMPrinterCompressMode || (exports.BRLMPrinterCompressMode = {}));
138
+ /**
139
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality
140
+ */
141
+ exports.BRLMPrinterPrintQuality = void 0;
142
+ (function (BRLMPrinterPrintQuality) {
143
+ BRLMPrinterPrintQuality["Best"] = "Best";
144
+ BRLMPrinterPrintQuality["Fast"] = "Fast";
145
+ })(exports.BRLMPrinterPrintQuality || (exports.BRLMPrinterPrintQuality = {}));
146
+ /**
147
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
148
+ */
149
+ exports.BRLMPrinterPrintResolution = void 0;
150
+ (function (BRLMPrinterPrintResolution) {
151
+ BRLMPrinterPrintResolution["Low"] = "Low";
152
+ BRLMPrinterPrintResolution["Normal"] = "Normal";
153
+ BRLMPrinterPrintResolution["High"] = "High";
154
+ })(exports.BRLMPrinterPrintResolution || (exports.BRLMPrinterPrintResolution = {}));
82
155
 
83
156
  const BrotherPrint = core.registerPlugin('BrotherPrint', {
84
157
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
@@ -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//# 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","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,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,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 */\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,CAAC,GAAG,cAAc,CAAC;AAC5D,CAAC,EAAEA,8BAAsB,KAAKA,8BAAsB,GAAG,EAAE,CAAC,CAAC;;ACN3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACWC,sCAAqB;AAChC,CAAC,UAAU,oBAAoB,EAAE;AACjC,IAAI,oBAAoB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAChD,IAAI,oBAAoB,CAAC,WAAW,CAAC,GAAG,WAAW,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AO,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;;;;;"}
package/dist/plugin.js CHANGED
@@ -76,6 +76,79 @@ var BrotherPrint = (function (exports, core) {
76
76
  BRLMPrinterLabelName["W62H60"] = "W62H60";
77
77
  BRLMPrinterLabelName["W62H75"] = "W62H75";
78
78
  })(exports.BRLMPrinterLabelName || (exports.BRLMPrinterLabelName = {}));
79
+ /**
80
+ * @url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#imagerotation
81
+ */
82
+ exports.BRLMPrinterImageRotation = void 0;
83
+ (function (BRLMPrinterImageRotation) {
84
+ BRLMPrinterImageRotation["Rotate0"] = "Rotate0";
85
+ BRLMPrinterImageRotation["Rotate90"] = "Rotate90";
86
+ BRLMPrinterImageRotation["Rotate180"] = "Rotate180";
87
+ BRLMPrinterImageRotation["Rotate270"] = "Rotate270";
88
+ })(exports.BRLMPrinterImageRotation || (exports.BRLMPrinterImageRotation = {}));
89
+ /**
90
+ * url https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#scalemode
91
+ */
92
+ exports.BRLMPrinterScaleMode = void 0;
93
+ (function (BRLMPrinterScaleMode) {
94
+ BRLMPrinterScaleMode["ActualSize"] = "ActualSize";
95
+ BRLMPrinterScaleMode["FitPageAspect"] = "FitPageAspect";
96
+ BRLMPrinterScaleMode["FitPaperAspect"] = "FitPaperAspect";
97
+ BRLMPrinterScaleMode["ScaleValue"] = "ScaleValue";
98
+ })(exports.BRLMPrinterScaleMode || (exports.BRLMPrinterScaleMode = {}));
99
+ /**
100
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#halftone
101
+ */
102
+ exports.BRLMPrinterHalftone = void 0;
103
+ (function (BRLMPrinterHalftone) {
104
+ BRLMPrinterHalftone["Threshold"] = "Threshold";
105
+ BRLMPrinterHalftone["ErrorDiffusion"] = "ErrorDiffusion";
106
+ BRLMPrinterHalftone["PatternDither"] = "PatternDither";
107
+ })(exports.BRLMPrinterHalftone || (exports.BRLMPrinterHalftone = {}));
108
+ /**
109
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#verticalalignment
110
+ */
111
+ exports.BRLMPrinterVerticalAlignment = void 0;
112
+ (function (BRLMPrinterVerticalAlignment) {
113
+ BRLMPrinterVerticalAlignment["Top"] = "Top";
114
+ BRLMPrinterVerticalAlignment["Center"] = "Center";
115
+ BRLMPrinterVerticalAlignment["Bottom"] = "Bottom";
116
+ })(exports.BRLMPrinterVerticalAlignment || (exports.BRLMPrinterVerticalAlignment = {}));
117
+ /**
118
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#horizontalalignment
119
+ */
120
+ exports.BRLMPrinterHorizontalAlignment = void 0;
121
+ (function (BRLMPrinterHorizontalAlignment) {
122
+ BRLMPrinterHorizontalAlignment["Left"] = "Left";
123
+ BRLMPrinterHorizontalAlignment["Center"] = "Center";
124
+ BRLMPrinterHorizontalAlignment["Right"] = "Right";
125
+ })(exports.BRLMPrinterHorizontalAlignment || (exports.BRLMPrinterHorizontalAlignment = {}));
126
+ /**
127
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#compressmode
128
+ */
129
+ exports.BRLMPrinterCompressMode = void 0;
130
+ (function (BRLMPrinterCompressMode) {
131
+ BRLMPrinterCompressMode["None"] = "None";
132
+ BRLMPrinterCompressMode["Tiff"] = "Tiff";
133
+ BRLMPrinterCompressMode["Mode9"] = "Mode9";
134
+ })(exports.BRLMPrinterCompressMode || (exports.BRLMPrinterCompressMode = {}));
135
+ /**
136
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#printquality
137
+ */
138
+ exports.BRLMPrinterPrintQuality = void 0;
139
+ (function (BRLMPrinterPrintQuality) {
140
+ BRLMPrinterPrintQuality["Best"] = "Best";
141
+ BRLMPrinterPrintQuality["Fast"] = "Fast";
142
+ })(exports.BRLMPrinterPrintQuality || (exports.BRLMPrinterPrintQuality = {}));
143
+ /**
144
+ * url: https://support.brother.co.jp/j/s/support/html/mobilesdk/reference/android_v4/printimagesettings.html#resolution
145
+ */
146
+ exports.BRLMPrinterPrintResolution = void 0;
147
+ (function (BRLMPrinterPrintResolution) {
148
+ BRLMPrinterPrintResolution["Low"] = "Low";
149
+ BRLMPrinterPrintResolution["Normal"] = "Normal";
150
+ BRLMPrinterPrintResolution["High"] = "High";
151
+ })(exports.BRLMPrinterPrintResolution || (exports.BRLMPrinterPrintResolution = {}));
79
152
 
80
153
  const BrotherPrint = core.registerPlugin('BrotherPrint', {
81
154
  web: () => Promise.resolve().then(function () { return web; }).then(m => new m.BrotherPrintWeb()),
@@ -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//# 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","BRLMPrinterModel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IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,IAAI,oBAAoB,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAC9C,CAAC,EAAEA,4BAAoB,KAAKA,4BAAoB,GAAG,EAAE,CAAC,CAAC;;AC7ClD,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 */\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,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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mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;;;;;;;;;;;;"}
@@ -126,7 +126,7 @@ enum PrinterModel: String, CaseIterable {
126
126
  // case PJ_862 = "PJ-862" // swiftlint:disable:this identifier_name
127
127
  // case PJ_863 = "PJ-863" // swiftlint:disable:this identifier_name
128
128
  // case PJ_883 = "PJ-883" // swiftlint:disable:this identifier_name
129
- case TD_2030A = "TD-2030A" // swiftlint:disable:this identifier_name
129
+ case TD_2030A = "TD-2030A" // swiftlint:disable:this identifier_name
130
130
  // case TD_2125N = "TD-2125N" // swiftlint:disable:this identifier_name
131
131
  // case TD_2125NWB = "TD-2125NWB" // swiftlint:disable:this identifier_name
132
132
  // case TD_2135N = "TD-2135N" // swiftlint:disable:this identifier_name
@@ -136,13 +136,13 @@ enum PrinterModel: String, CaseIterable {
136
136
  // case PT_E560BT = "PT-E560BT" // swiftlint:disable:this identifier_name
137
137
  // case TD_2310D_203 = "TD-2310D_203" // swiftlint:disable:this identifier_name
138
138
  // case TD_2310D_300 = "TD-2310D_300" // swiftlint:disable:this identifier_name
139
- case TD_2320D_203 = "TD-2320D_203" // swiftlint:disable:this identifier_name
139
+ case TD_2320D_203 = "TD-2320D_203" // swiftlint:disable:this identifier_name
140
140
  // case TD_2320D_300 = "TD-2320D_300" // swiftlint:disable:this identifier_name
141
141
  // case TD_2320DF_203 = "TD-2320DF_203" // swiftlint:disable:this identifier_name
142
142
  // case TD_2320DF_300 = "TD-2320DF_300" // swiftlint:disable:this identifier_name
143
143
  // case TD_2320DSA_203 = "TD-2320DSA_203" // swiftlint:disable:this identifier_name
144
144
  // case TD_2320DSA_300 = "TD-2320DSA_300" // swiftlint:disable:this identifier_name
145
- case TD_2350D_203 = "TD-2350D_203" // swiftlint:disable:this identifier_name
145
+ case TD_2350D_203 = "TD-2350D_203" // swiftlint:disable:this identifier_name
146
146
  // case TD_2350D_300 = "TD-2350D_300" // swiftlint:disable:this identifier_name
147
147
  // case TD_2350DF_203 = "TD-2350DF_203" // swiftlint:disable:this identifier_name
148
148
  // case TD_2350DF_300 = "TD-2350DF_300" // swiftlint:disable:this identifier_name
@@ -235,7 +235,7 @@ enum PrinterModel: String, CaseIterable {
235
235
  // case .PJ_862: return .PJ_862
236
236
  // case .PJ_863: return .PJ_863
237
237
  // case .PJ_883: return .PJ_883
238
- case .TD_2030A: return .TD_2030A
238
+ case .TD_2030A: return .TD_2030A
239
239
  // case .TD_2125N: return .TD_2125N
240
240
  // case .TD_2125NWB: return .TD_2125NWB
241
241
  // case .TD_2135N: return .TD_2135N
@@ -245,13 +245,13 @@ enum PrinterModel: String, CaseIterable {
245
245
  // case .PT_E560BT: return .PT_E560BT
246
246
  // case .TD_2310D_203: return .TD_2310D_203
247
247
  // case .TD_2310D_300: return .TD_2310D_300
248
- case .TD_2320D_203: return .TD_2320D_203
248
+ case .TD_2320D_203: return .TD_2320D_203
249
249
  // case .TD_2320D_300: return .TD_2320D_300
250
250
  // case .TD_2320DF_203: return .TD_2320DF_203
251
251
  // case .TD_2320DF_300: return .TD_2320DF_300
252
252
  // case .TD_2320DSA_203: return .TD_2320DSA_203
253
253
  // case .TD_2320DSA_300: return .TD_2320DSA_300
254
- case .TD_2350D_203: return .TD_2350D_203
254
+ case .TD_2350D_203: return .TD_2350D_203
255
255
  // case .TD_2350D_300: return .TD_2350D_300
256
256
  // case .TD_2350DF_203: return .TD_2350DF_203
257
257
  // case .TD_2350DF_300: return .TD_2350DF_300