@rdlabo/capacitor-brotherprint 6.2.0 → 6.4.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 +88 -38
- package/android/src/main/AndroidManifest.xml +2 -17
- package/android/src/main/java/jp/rdlabo/capacitor/plugin/brotherprint/BrotherPrint.kt +181 -88
- package/android/src/main/java/jp/rdlabo/capacitor/plugin/brotherprint/models/BrotherPrintSettings.kt +72 -28
- package/dist/docs.json +205 -75
- package/dist/esm/brother-printer.enum.d.ts +44 -25
- package/dist/esm/brother-printer.enum.js +46 -25
- package/dist/esm/brother-printer.enum.js.map +1 -1
- package/dist/esm/definitions.d.ts +66 -9
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js +46 -25
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +46 -25
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Model/PrintErrorModel.swift +19 -0
- package/ios/Plugin/Model/PrinterModel.swift +86 -30
- package/ios/Plugin/Model/PrinterSettingsModel.swift +54 -19
- package/ios/Plugin/Plugin.swift +61 -28
- package/ios/Plugin.xcworkspace/xcuserdata/sakakibara.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
package/android/src/main/java/jp/rdlabo/capacitor/plugin/brotherprint/models/BrotherPrintSettings.kt
CHANGED
|
@@ -1,63 +1,107 @@
|
|
|
1
1
|
package jp.rdlabo.capacitor.plugin.brotherprint.models
|
|
2
2
|
|
|
3
|
-
import com.brother.
|
|
4
|
-
import com.brother.
|
|
3
|
+
import com.brother.sdk.lmprinter.setting.CustomPaperSize
|
|
4
|
+
import com.brother.sdk.lmprinter.setting.PrintImageSettings
|
|
5
|
+
import com.brother.sdk.lmprinter.setting.QLPrintSettings
|
|
6
|
+
import com.brother.sdk.lmprinter.setting.TDPrintSettings
|
|
5
7
|
import com.getcapacitor.PluginCall
|
|
6
8
|
|
|
9
|
+
|
|
7
10
|
class BrotherPrintSettings {
|
|
8
|
-
public fun
|
|
9
|
-
val
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
public fun modelTDSettings(call: PluginCall, settings: TDPrintSettings): TDPrintSettings {
|
|
12
|
+
val baseSettings = this.baseSettings(call, settings);
|
|
13
|
+
|
|
14
|
+
val margins = CustomPaperSize.Margins(
|
|
15
|
+
call.getFloat("marginTop", 0f)!!,
|
|
16
|
+
call.getFloat("marginRight", 0f)!!,
|
|
17
|
+
call.getFloat("marginBottom", 0f)!!,
|
|
18
|
+
call.getFloat("marginLeft", 0f)!!,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
val unit: CustomPaperSize.Unit = when(call.getString("paperUnit", "mm")) {
|
|
22
|
+
"mm" -> CustomPaperSize.Unit.Mm
|
|
23
|
+
"inch" -> CustomPaperSize.Unit.Inch
|
|
24
|
+
else -> {
|
|
25
|
+
throw RuntimeException(call.getString("paperUnit") + " is not supported.")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
val customPaperSize: CustomPaperSize = when (call.getString("paperType")) {
|
|
30
|
+
"rollPaper" -> CustomPaperSize.newRollPaperSize(call.getFloat("tapeWidth", 0f)!!, margins, unit)
|
|
31
|
+
"dieCutPaper" -> CustomPaperSize.newDieCutPaperSize(call.getFloat("tapeWidth", 0f)!!, call.getFloat("tapeLength", 0f)!!, margins,
|
|
32
|
+
call.getFloat("gapLength", 0f)!!, unit)
|
|
33
|
+
"markRollPaper" -> CustomPaperSize.newMarkRollPaperSize(call.getFloat("tapeWidth", 0f)!!, call.getFloat("tapeLength", 0f)!!, margins,
|
|
34
|
+
call.getFloat("paperMarkPosition", 0f)!!, call.getFloat("paperMarkLength", 0f)!!, unit)
|
|
35
|
+
else -> {
|
|
36
|
+
throw RuntimeException(call.getString("paperType") + " is not supported.")
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
baseSettings.customPaperSize = customPaperSize
|
|
41
|
+
baseSettings.isAutoCut = call.getBoolean("autoCut", true)!!
|
|
42
|
+
|
|
43
|
+
return baseSettings
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public fun modelQLSettings(call: PluginCall, settings: QLPrintSettings): QLPrintSettings {
|
|
47
|
+
val baseSettings = this.baseSettings(call, settings);
|
|
48
|
+
|
|
49
|
+
baseSettings.isAutoCut = call.getBoolean("autoCut", true)!!
|
|
50
|
+
baseSettings.labelSize = QLPrintSettings.LabelSize.entries.find { it.name == call.getString("labelName", "W62") }
|
|
51
|
+
|
|
52
|
+
return baseSettings;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private fun <T: PrintImageSettings> baseSettings(call: PluginCall, settings: T): T {
|
|
56
|
+
settings.numCopies = call.getInt("numberOfCopies", 1)!!
|
|
13
57
|
|
|
14
58
|
when (call.getString("scaleMode")) {
|
|
15
|
-
"ActualSize" -> settings.
|
|
16
|
-
"FitPageAspect" -> settings.
|
|
17
|
-
"FitPaperAspect" -> settings.
|
|
59
|
+
"ActualSize" -> settings.scaleMode = PrintImageSettings.ScaleMode.ActualSize
|
|
60
|
+
"FitPageAspect" -> settings.scaleMode = PrintImageSettings.ScaleMode.FitPageAspect
|
|
61
|
+
"FitPaperAspect" -> settings.scaleMode = PrintImageSettings.ScaleMode.FitPaperAspect
|
|
18
62
|
"ScaleValue" -> {
|
|
19
|
-
settings.
|
|
63
|
+
settings.scaleMode = PrintImageSettings.ScaleMode.ScaleValue
|
|
20
64
|
if (call.getDouble("scaleValue") !== null) {
|
|
21
|
-
settings.scaleValue = call.
|
|
65
|
+
settings.scaleValue = call.getFloat("scaleValue")!!
|
|
22
66
|
}
|
|
23
67
|
}
|
|
24
68
|
}
|
|
25
69
|
|
|
26
70
|
when (call.getString("halftone")) {
|
|
27
71
|
"Threshold" -> {
|
|
28
|
-
settings.halftone =
|
|
72
|
+
settings.halftone = PrintImageSettings.Halftone.Threshold
|
|
29
73
|
if (call.getDouble("halftoneThreshold") !== null) {
|
|
30
|
-
settings.
|
|
74
|
+
settings.halftoneThreshold = call.getInt("halftoneThreshold")!!
|
|
31
75
|
}
|
|
32
76
|
}
|
|
33
|
-
"ErrorDiffusion" -> settings.halftone =
|
|
34
|
-
"PatternDither" -> settings.halftone =
|
|
77
|
+
"ErrorDiffusion" -> settings.halftone = PrintImageSettings.Halftone.ErrorDiffusion
|
|
78
|
+
"PatternDither" -> settings.halftone = PrintImageSettings.Halftone.PatternDither
|
|
35
79
|
}
|
|
36
80
|
|
|
37
81
|
when (call.getString("imageRotation")) {
|
|
38
|
-
"Rotate0" -> settings.
|
|
39
|
-
"Rotate90" -> settings.
|
|
40
|
-
"Rotate180" -> settings.
|
|
41
|
-
"Rotate270" -> settings.
|
|
82
|
+
"Rotate0" -> settings.imageRotation = PrintImageSettings.Rotation.Rotate0
|
|
83
|
+
"Rotate90" -> settings.imageRotation = PrintImageSettings.Rotation.Rotate90
|
|
84
|
+
"Rotate180" -> settings.imageRotation = PrintImageSettings.Rotation.Rotate180
|
|
85
|
+
"Rotate270" -> settings.imageRotation = PrintImageSettings.Rotation.Rotate270
|
|
42
86
|
}
|
|
43
87
|
|
|
44
88
|
when (call.getString("verticalAlignment")) {
|
|
45
|
-
"Top" -> settings.
|
|
46
|
-
"Center" -> settings.
|
|
47
|
-
"Bottom" -> settings.
|
|
89
|
+
"Top" -> settings.vAlignment = PrintImageSettings.VerticalAlignment.Top
|
|
90
|
+
"Center" -> settings.vAlignment = PrintImageSettings.VerticalAlignment.Center
|
|
91
|
+
"Bottom" -> settings.vAlignment = PrintImageSettings.VerticalAlignment.Bottom
|
|
48
92
|
}
|
|
49
93
|
|
|
50
94
|
when (call.getString("horizontalAlignment")) {
|
|
51
|
-
"Left" -> settings.
|
|
52
|
-
"Center" -> settings.
|
|
53
|
-
"Right" -> settings.
|
|
95
|
+
"Left" -> settings.hAlignment = PrintImageSettings.HorizontalAlignment.Left
|
|
96
|
+
"Center" -> settings.hAlignment = PrintImageSettings.HorizontalAlignment.Center
|
|
97
|
+
"Right" -> settings.hAlignment = PrintImageSettings.HorizontalAlignment.Right
|
|
54
98
|
}
|
|
55
99
|
|
|
56
100
|
// when (call.getString("compressMode")) { }
|
|
57
101
|
|
|
58
102
|
when (call.getString("printQuality")) {
|
|
59
|
-
"Best" -> settings.printQuality =
|
|
60
|
-
"Fast" -> settings.printQuality =
|
|
103
|
+
"Best" -> settings.printQuality = PrintImageSettings.PrintQuality.Best
|
|
104
|
+
"Fast" -> settings.printQuality = PrintImageSettings.PrintQuality.Fast
|
|
61
105
|
}
|
|
62
106
|
|
|
63
107
|
// when (call.getString("resolution")) { }
|
package/dist/docs.json
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
],
|
|
79
79
|
"returns": "Promise<PluginListenerHandle>",
|
|
80
80
|
"tags": [],
|
|
81
|
-
"docs": "",
|
|
81
|
+
"docs": "Find the printer that can connected to the device.",
|
|
82
82
|
"complexTypes": [
|
|
83
83
|
"PluginListenerHandle",
|
|
84
84
|
"BrotherPrintEventsEnum",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
],
|
|
104
104
|
"returns": "Promise<PluginListenerHandle>",
|
|
105
105
|
"tags": [],
|
|
106
|
-
"docs": "",
|
|
106
|
+
"docs": "Success Print Event",
|
|
107
107
|
"complexTypes": [
|
|
108
108
|
"PluginListenerHandle",
|
|
109
109
|
"BrotherPrintEventsEnum"
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
],
|
|
128
128
|
"returns": "Promise<PluginListenerHandle>",
|
|
129
129
|
"tags": [],
|
|
130
|
-
"docs": "",
|
|
130
|
+
"docs": "Failed to connect to the printer.\nex: Bluetooth is off, Printer is off, etc.",
|
|
131
131
|
"complexTypes": [
|
|
132
132
|
"PluginListenerHandle",
|
|
133
133
|
"BrotherPrintEventsEnum",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
],
|
|
153
153
|
"returns": "Promise<PluginListenerHandle>",
|
|
154
154
|
"tags": [],
|
|
155
|
-
"docs": "",
|
|
155
|
+
"docs": "Failed to print.",
|
|
156
156
|
"complexTypes": [
|
|
157
157
|
"PluginListenerHandle",
|
|
158
158
|
"BrotherPrintEventsEnum",
|
|
@@ -182,187 +182,247 @@
|
|
|
182
182
|
}
|
|
183
183
|
],
|
|
184
184
|
"enums": [
|
|
185
|
+
{
|
|
186
|
+
"name": "BRLMPrinterModelName",
|
|
187
|
+
"slug": "brlmprintermodelname",
|
|
188
|
+
"members": [
|
|
189
|
+
{
|
|
190
|
+
"name": "QL_800",
|
|
191
|
+
"value": "'QL_800'",
|
|
192
|
+
"tags": [],
|
|
193
|
+
"docs": ""
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "QL_810W",
|
|
197
|
+
"value": "'QL_810W'",
|
|
198
|
+
"tags": [],
|
|
199
|
+
"docs": ""
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "QL_820NWB",
|
|
203
|
+
"value": "'QL_820NWB'",
|
|
204
|
+
"tags": [],
|
|
205
|
+
"docs": ""
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "TD_2320D_203",
|
|
209
|
+
"value": "'TD_2320D_203'",
|
|
210
|
+
"tags": [],
|
|
211
|
+
"docs": ""
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "TD_2030AD",
|
|
215
|
+
"value": "'TD_2030AD'",
|
|
216
|
+
"tags": [],
|
|
217
|
+
"docs": ""
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "TD_2350D_300",
|
|
221
|
+
"value": "'TD_2350D_300'",
|
|
222
|
+
"tags": [],
|
|
223
|
+
"docs": ""
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
185
227
|
{
|
|
186
228
|
"name": "BRLMPrinterLabelName",
|
|
187
229
|
"slug": "brlmprinterlabelname",
|
|
188
230
|
"members": [
|
|
189
231
|
{
|
|
190
|
-
"name": "
|
|
191
|
-
"value": "'
|
|
232
|
+
"name": "DieCutW17H54",
|
|
233
|
+
"value": "'DieCutW17H54'",
|
|
192
234
|
"tags": [],
|
|
193
235
|
"docs": ""
|
|
194
236
|
},
|
|
195
237
|
{
|
|
196
|
-
"name": "
|
|
197
|
-
"value": "'
|
|
238
|
+
"name": "DieCutW17H87",
|
|
239
|
+
"value": "'DieCutW17H87'",
|
|
198
240
|
"tags": [],
|
|
199
241
|
"docs": ""
|
|
200
242
|
},
|
|
201
243
|
{
|
|
202
|
-
"name": "
|
|
203
|
-
"value": "'
|
|
244
|
+
"name": "DieCutW23H23",
|
|
245
|
+
"value": "'DieCutW23H23'",
|
|
204
246
|
"tags": [],
|
|
205
247
|
"docs": ""
|
|
206
248
|
},
|
|
207
249
|
{
|
|
208
|
-
"name": "
|
|
209
|
-
"value": "'
|
|
250
|
+
"name": "DieCutW29H42",
|
|
251
|
+
"value": "'DieCutW29H42'",
|
|
210
252
|
"tags": [],
|
|
211
253
|
"docs": ""
|
|
212
254
|
},
|
|
213
255
|
{
|
|
214
|
-
"name": "
|
|
215
|
-
"value": "'
|
|
256
|
+
"name": "DieCutW29H90",
|
|
257
|
+
"value": "'DieCutW29H90'",
|
|
216
258
|
"tags": [],
|
|
217
259
|
"docs": ""
|
|
218
260
|
},
|
|
219
261
|
{
|
|
220
|
-
"name": "
|
|
221
|
-
"value": "'
|
|
262
|
+
"name": "DieCutW38H90",
|
|
263
|
+
"value": "'DieCutW38H90'",
|
|
222
264
|
"tags": [],
|
|
223
265
|
"docs": ""
|
|
224
266
|
},
|
|
225
267
|
{
|
|
226
|
-
"name": "
|
|
227
|
-
"value": "'
|
|
268
|
+
"name": "DieCutW39H48",
|
|
269
|
+
"value": "'DieCutW39H48'",
|
|
228
270
|
"tags": [],
|
|
229
271
|
"docs": ""
|
|
230
272
|
},
|
|
231
273
|
{
|
|
232
|
-
"name": "
|
|
233
|
-
"value": "'
|
|
274
|
+
"name": "DieCutW52H29",
|
|
275
|
+
"value": "'DieCutW52H29'",
|
|
234
276
|
"tags": [],
|
|
235
277
|
"docs": ""
|
|
236
278
|
},
|
|
237
279
|
{
|
|
238
|
-
"name": "
|
|
239
|
-
"value": "'
|
|
280
|
+
"name": "DieCutW62H29",
|
|
281
|
+
"value": "'DieCutW62H29'",
|
|
240
282
|
"tags": [],
|
|
241
283
|
"docs": ""
|
|
242
284
|
},
|
|
243
285
|
{
|
|
244
|
-
"name": "
|
|
245
|
-
"value": "'
|
|
286
|
+
"name": "DieCutW62H60",
|
|
287
|
+
"value": "'DieCutW62H60'",
|
|
246
288
|
"tags": [],
|
|
247
289
|
"docs": ""
|
|
248
290
|
},
|
|
249
291
|
{
|
|
250
|
-
"name": "
|
|
251
|
-
"value": "'
|
|
292
|
+
"name": "DieCutW62H75",
|
|
293
|
+
"value": "'DieCutW62H75'",
|
|
252
294
|
"tags": [],
|
|
253
295
|
"docs": ""
|
|
254
296
|
},
|
|
255
297
|
{
|
|
256
|
-
"name": "
|
|
257
|
-
"value": "'
|
|
298
|
+
"name": "DieCutW62H100",
|
|
299
|
+
"value": "'DieCutW62H100'",
|
|
258
300
|
"tags": [],
|
|
259
301
|
"docs": ""
|
|
260
302
|
},
|
|
261
303
|
{
|
|
262
|
-
"name": "
|
|
263
|
-
"value": "'
|
|
304
|
+
"name": "DieCutW60H86",
|
|
305
|
+
"value": "'DieCutW60H86'",
|
|
264
306
|
"tags": [],
|
|
265
307
|
"docs": ""
|
|
266
308
|
},
|
|
267
309
|
{
|
|
268
|
-
"name": "
|
|
269
|
-
"value": "'
|
|
310
|
+
"name": "DieCutW54H29",
|
|
311
|
+
"value": "'DieCutW54H29'",
|
|
270
312
|
"tags": [],
|
|
271
313
|
"docs": ""
|
|
272
314
|
},
|
|
273
315
|
{
|
|
274
|
-
"name": "
|
|
275
|
-
"value": "'
|
|
316
|
+
"name": "DieCutW102H51",
|
|
317
|
+
"value": "'DieCutW102H51'",
|
|
276
318
|
"tags": [],
|
|
277
319
|
"docs": ""
|
|
278
320
|
},
|
|
279
321
|
{
|
|
280
|
-
"name": "
|
|
281
|
-
"value": "'
|
|
322
|
+
"name": "DieCutW102H152",
|
|
323
|
+
"value": "'DieCutW102H152'",
|
|
282
324
|
"tags": [],
|
|
283
325
|
"docs": ""
|
|
284
326
|
},
|
|
285
327
|
{
|
|
286
|
-
"name": "
|
|
287
|
-
"value": "'
|
|
328
|
+
"name": "DieCutW103H164",
|
|
329
|
+
"value": "'DieCutW103H164'",
|
|
288
330
|
"tags": [],
|
|
289
331
|
"docs": ""
|
|
290
332
|
},
|
|
291
333
|
{
|
|
292
|
-
"name": "
|
|
293
|
-
"value": "'
|
|
334
|
+
"name": "RollW12",
|
|
335
|
+
"value": "'RollW12'",
|
|
294
336
|
"tags": [],
|
|
295
337
|
"docs": ""
|
|
296
338
|
},
|
|
297
339
|
{
|
|
298
|
-
"name": "
|
|
299
|
-
"value": "'
|
|
340
|
+
"name": "RollW29",
|
|
341
|
+
"value": "'RollW29'",
|
|
300
342
|
"tags": [],
|
|
301
343
|
"docs": ""
|
|
302
344
|
},
|
|
303
345
|
{
|
|
304
|
-
"name": "
|
|
305
|
-
"value": "'
|
|
346
|
+
"name": "RollW38",
|
|
347
|
+
"value": "'RollW38'",
|
|
306
348
|
"tags": [],
|
|
307
349
|
"docs": ""
|
|
308
350
|
},
|
|
309
351
|
{
|
|
310
|
-
"name": "
|
|
311
|
-
"value": "'
|
|
352
|
+
"name": "RollW50",
|
|
353
|
+
"value": "'RollW50'",
|
|
312
354
|
"tags": [],
|
|
313
355
|
"docs": ""
|
|
314
356
|
},
|
|
315
357
|
{
|
|
316
|
-
"name": "
|
|
317
|
-
"value": "'
|
|
358
|
+
"name": "RollW54",
|
|
359
|
+
"value": "'RollW54'",
|
|
318
360
|
"tags": [],
|
|
319
361
|
"docs": ""
|
|
320
362
|
},
|
|
321
363
|
{
|
|
322
|
-
"name": "
|
|
323
|
-
"value": "'
|
|
364
|
+
"name": "RollW62",
|
|
365
|
+
"value": "'RollW62'",
|
|
324
366
|
"tags": [],
|
|
325
367
|
"docs": ""
|
|
326
368
|
},
|
|
327
369
|
{
|
|
328
|
-
"name": "
|
|
329
|
-
"value": "'
|
|
370
|
+
"name": "RollW62RB",
|
|
371
|
+
"value": "'RollW62RB'",
|
|
330
372
|
"tags": [],
|
|
331
373
|
"docs": ""
|
|
332
|
-
}
|
|
333
|
-
]
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"name": "BRLMPrinterModelName",
|
|
337
|
-
"slug": "brlmprintermodelname",
|
|
338
|
-
"members": [
|
|
374
|
+
},
|
|
339
375
|
{
|
|
340
|
-
"name": "
|
|
341
|
-
"value": "'
|
|
376
|
+
"name": "RollW102",
|
|
377
|
+
"value": "'RollW102'",
|
|
342
378
|
"tags": [],
|
|
343
379
|
"docs": ""
|
|
344
380
|
},
|
|
345
381
|
{
|
|
346
|
-
"name": "
|
|
347
|
-
"value": "'
|
|
382
|
+
"name": "RollW103",
|
|
383
|
+
"value": "'RollW103'",
|
|
348
384
|
"tags": [],
|
|
349
385
|
"docs": ""
|
|
350
386
|
},
|
|
351
387
|
{
|
|
352
|
-
"name": "
|
|
353
|
-
"value": "'
|
|
388
|
+
"name": "DTRollW90",
|
|
389
|
+
"value": "'DTRollW90'",
|
|
354
390
|
"tags": [],
|
|
355
391
|
"docs": ""
|
|
356
392
|
},
|
|
357
393
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"value": "'
|
|
394
|
+
"name": "DTRollW102",
|
|
395
|
+
"value": "'DTRollW102'",
|
|
396
|
+
"tags": [],
|
|
397
|
+
"docs": ""
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "DTRollW102H51",
|
|
401
|
+
"value": "'DTRollW102H51'",
|
|
360
402
|
"tags": [],
|
|
361
403
|
"docs": ""
|
|
362
404
|
},
|
|
363
405
|
{
|
|
364
|
-
"name": "
|
|
365
|
-
"value": "'
|
|
406
|
+
"name": "DTRollW102H152",
|
|
407
|
+
"value": "'DTRollW102H152'",
|
|
408
|
+
"tags": [],
|
|
409
|
+
"docs": ""
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "RoundW12DIA",
|
|
413
|
+
"value": "'RoundW12DIA'",
|
|
414
|
+
"tags": [],
|
|
415
|
+
"docs": ""
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "RoundW24DIA",
|
|
419
|
+
"value": "'RoundW24DIA'",
|
|
420
|
+
"tags": [],
|
|
421
|
+
"docs": ""
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "RoundW58DIA",
|
|
425
|
+
"value": "'RoundW58DIA'",
|
|
366
426
|
"tags": [],
|
|
367
427
|
"docs": ""
|
|
368
428
|
}
|
|
@@ -542,6 +602,48 @@
|
|
|
542
602
|
}
|
|
543
603
|
]
|
|
544
604
|
},
|
|
605
|
+
{
|
|
606
|
+
"name": "BRKMPrinterCustomPaperType",
|
|
607
|
+
"slug": "brkmprintercustompapertype",
|
|
608
|
+
"members": [
|
|
609
|
+
{
|
|
610
|
+
"name": "rollPaper",
|
|
611
|
+
"value": "'rollPaper'",
|
|
612
|
+
"tags": [],
|
|
613
|
+
"docs": ""
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "dieCutPaper",
|
|
617
|
+
"value": "'dieCutPaper'",
|
|
618
|
+
"tags": [],
|
|
619
|
+
"docs": ""
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "markRollPaper",
|
|
623
|
+
"value": "'markRollPaper'",
|
|
624
|
+
"tags": [],
|
|
625
|
+
"docs": ""
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "BRKMPrinterCustomPaperUnit",
|
|
631
|
+
"slug": "brkmprintercustompaperunit",
|
|
632
|
+
"members": [
|
|
633
|
+
{
|
|
634
|
+
"name": "mm",
|
|
635
|
+
"value": "'mm'",
|
|
636
|
+
"tags": [],
|
|
637
|
+
"docs": ""
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "inch",
|
|
641
|
+
"value": "'inch'",
|
|
642
|
+
"tags": [],
|
|
643
|
+
"docs": ""
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
},
|
|
545
647
|
{
|
|
546
648
|
"name": "BrotherPrintEventsEnum",
|
|
547
649
|
"slug": "brotherprinteventsenum",
|
|
@@ -580,13 +682,13 @@
|
|
|
580
682
|
"docs": "",
|
|
581
683
|
"types": [
|
|
582
684
|
{
|
|
583
|
-
"text": "{\n encodedImage: string;\n\n /**\n * Should use enum
|
|
685
|
+
"text": "{\n encodedImage: string;\n\n /**\n * Should use enum BRLMPrinterModelName\n */\n modelName: BRLMPrinterModelName;\n} & Partial<BRLMChannelResult> &\n (BRLMPrinterQLModelSettings | BRLMPrinterTDModelSettings)",
|
|
584
686
|
"complexTypes": [
|
|
585
|
-
"BRLMPrinterLabelName",
|
|
586
687
|
"BRLMPrinterModelName",
|
|
587
688
|
"Partial",
|
|
588
689
|
"BRLMChannelResult",
|
|
589
|
-
"
|
|
690
|
+
"BRLMPrinterQLModelSettings",
|
|
691
|
+
"BRLMPrinterTDModelSettings"
|
|
590
692
|
]
|
|
591
693
|
}
|
|
592
694
|
]
|
|
@@ -611,18 +713,32 @@
|
|
|
611
713
|
"docs": "",
|
|
612
714
|
"types": [
|
|
613
715
|
{
|
|
614
|
-
"text": "{\n port: 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n
|
|
716
|
+
"text": "{\n port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n modelName: string;\n serialNumber: string;\n macAddress: string;\n nodeName: string;\n location: string;\n\n /**\n * This need to connect to the printer.\n * wifi: IP Address\n * bluetooth: macAddress\n * bluetoothLowEnergy: modelName for bluetoothLowEnergy\n */\n channelInfo: string;\n}",
|
|
615
717
|
"complexTypes": []
|
|
616
718
|
}
|
|
617
719
|
]
|
|
618
720
|
},
|
|
721
|
+
{
|
|
722
|
+
"name": "BRLMPrinterQLModelSettings",
|
|
723
|
+
"slug": "brlmprinterqlmodelsettings",
|
|
724
|
+
"docs": "",
|
|
725
|
+
"types": [
|
|
726
|
+
{
|
|
727
|
+
"text": "{\n /**\n * Should use enum BRLMPrinterLabelName\n */\n labelName: BRLMPrinterLabelName;\n} & BRLMPrinterSettings",
|
|
728
|
+
"complexTypes": [
|
|
729
|
+
"BRLMPrinterLabelName",
|
|
730
|
+
"BRLMPrinterSettings"
|
|
731
|
+
]
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
},
|
|
619
735
|
{
|
|
620
736
|
"name": "BRLMPrinterSettings",
|
|
621
737
|
"slug": "brlmprintersettings",
|
|
622
738
|
"docs": "These are optional. If these are not set, default values are assigned by the printer.",
|
|
623
739
|
"types": [
|
|
624
740
|
{
|
|
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
|
|
741
|
+
"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}",
|
|
626
742
|
"complexTypes": [
|
|
627
743
|
"BRLMPrinterNumberOfCopies",
|
|
628
744
|
"BRLMPrinterAutoCutType",
|
|
@@ -683,13 +799,27 @@
|
|
|
683
799
|
}
|
|
684
800
|
]
|
|
685
801
|
},
|
|
802
|
+
{
|
|
803
|
+
"name": "BRLMPrinterTDModelSettings",
|
|
804
|
+
"slug": "brlmprintertdmodelsettings",
|
|
805
|
+
"docs": "",
|
|
806
|
+
"types": [
|
|
807
|
+
{
|
|
808
|
+
"text": "{\n /**\n * Should use enum BRKMPrinterCustomPaperType\n */\n paperType: BRKMPrinterCustomPaperType;\n\n /**\n * The width of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeWidth: number;\n\n /**\n * The length of the label. For example, the RD-U04J1 is 60.0 wide.\n */\n tapeLength: number;\n\n /**\n * It is the difference between a sticker and a mount.\n * For example, the RD-U04J1 is `1.0, 2.0, 1.0, 2.0`\n */\n marginTop: number;\n marginRight: number;\n marginBottom: number;\n marginLeft: number;\n\n /**\n * The spacing between seals. For example, the RD-U04J1 is 0.2.\n */\n gapLength: number;\n\n paperMarkPosition: number;\n paperMarkLength: number;\n\n /**\n * Should use enum BRKMPrinterCustomPaperUnit.\n * For example, the RD-U04J1 is mm.\n */\n paperUnit: BRKMPrinterCustomPaperUnit;\n}",
|
|
809
|
+
"complexTypes": [
|
|
810
|
+
"BRKMPrinterCustomPaperType",
|
|
811
|
+
"BRKMPrinterCustomPaperUnit"
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
]
|
|
815
|
+
},
|
|
686
816
|
{
|
|
687
817
|
"name": "BRLMSearchOption",
|
|
688
818
|
"slug": "brlmsearchoption",
|
|
689
819
|
"docs": "",
|
|
690
820
|
"types": [
|
|
691
821
|
{
|
|
692
|
-
"text": "{\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}",
|
|
822
|
+
"text": "{\n /**\n * 'usb' is android only, and now developing.\n */\n port: 'usb' | 'wifi' | 'bluetooth' | 'bluetoothLowEnergy';\n\n /**\n * searchDuration is the time to end search for devices.\n * default is 15 seconds.\n * use only port is 'wifi' or 'bluetoothLowEnergy'.\n */\n searchDuration: number;\n}",
|
|
693
823
|
"complexTypes": []
|
|
694
824
|
}
|
|
695
825
|
]
|