@thermal-label/brother-ql-core 0.0.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/colour.test.d.ts +2 -0
- package/dist/__tests__/colour.test.d.ts.map +1 -0
- package/dist/__tests__/colour.test.js +106 -0
- package/dist/__tests__/colour.test.js.map +1 -0
- package/dist/__tests__/devices.test.js +16 -2
- package/dist/__tests__/devices.test.js.map +1 -1
- package/dist/__tests__/media.test.js +17 -6
- package/dist/__tests__/media.test.js.map +1 -1
- package/dist/__tests__/preview.test.d.ts +2 -0
- package/dist/__tests__/preview.test.d.ts.map +1 -0
- package/dist/__tests__/preview.test.js +41 -0
- package/dist/__tests__/preview.test.js.map +1 -0
- package/dist/__tests__/status.test.js +28 -22
- package/dist/__tests__/status.test.js.map +1 -1
- package/dist/colour.d.ts +26 -0
- package/dist/colour.d.ts.map +1 -0
- package/dist/colour.js +84 -0
- package/dist/colour.js.map +1 -0
- package/dist/devices.d.ts +40 -21
- package/dist/devices.d.ts.map +1 -1
- package/dist/devices.js +38 -19
- package/dist/devices.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/media.d.ts +31 -4
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +73 -23
- package/dist/media.js.map +1 -1
- package/dist/preview.d.ts +13 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +32 -0
- package/dist/preview.js.map +1 -0
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +4 -4
- package/dist/protocol.js.map +1 -1
- package/dist/status.d.ts +20 -2
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +59 -44
- package/dist/status.js.map +1 -1
- package/dist/types.d.ts +36 -30
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +3 -2
- package/src/__tests__/colour.test.ts +126 -0
- package/src/__tests__/devices.test.ts +18 -2
- package/src/__tests__/media.test.ts +17 -6
- package/src/__tests__/preview.test.ts +52 -0
- package/src/__tests__/status.test.ts +31 -22
- package/src/colour.ts +101 -0
- package/src/devices.ts +41 -22
- package/src/index.ts +31 -9
- package/src/media.ts +86 -27
- package/src/preview.ts +34 -0
- package/src/protocol.ts +6 -6
- package/src/status.ts +63 -47
- package/src/types.ts +38 -33
package/dist/devices.d.ts
CHANGED
|
@@ -1,196 +1,211 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type BrotherQLDevice } from './types.js';
|
|
2
2
|
export declare const DEVICES: {
|
|
3
3
|
readonly QL_820NWB: {
|
|
4
4
|
readonly name: "QL-820NWB";
|
|
5
|
+
readonly family: "brother-ql";
|
|
6
|
+
readonly transports: ["usb", "webusb", "tcp", "serial", "web-serial"];
|
|
5
7
|
readonly vid: 1273;
|
|
6
8
|
readonly pid: 8359;
|
|
7
9
|
readonly headPins: 720;
|
|
8
10
|
readonly bytesPerRow: 90;
|
|
9
11
|
readonly twoColor: true;
|
|
10
12
|
readonly network: "wifi+wired";
|
|
11
|
-
readonly bluetooth: false;
|
|
12
13
|
readonly autocut: true;
|
|
13
14
|
readonly compression: true;
|
|
14
15
|
readonly editorLite: true;
|
|
15
16
|
};
|
|
16
17
|
readonly QL_820NWBc: {
|
|
17
18
|
readonly name: "QL-820NWBc";
|
|
19
|
+
readonly family: "brother-ql";
|
|
20
|
+
readonly transports: ["usb", "webusb", "tcp", "serial", "web-serial"];
|
|
18
21
|
readonly vid: 1273;
|
|
19
22
|
readonly pid: 8349;
|
|
20
23
|
readonly headPins: 720;
|
|
21
24
|
readonly bytesPerRow: 90;
|
|
22
25
|
readonly twoColor: true;
|
|
23
26
|
readonly network: "wifi+wired";
|
|
24
|
-
readonly bluetooth: false;
|
|
25
27
|
readonly autocut: true;
|
|
26
28
|
readonly compression: true;
|
|
27
29
|
readonly editorLite: true;
|
|
28
30
|
};
|
|
29
31
|
readonly QL_810W: {
|
|
30
32
|
readonly name: "QL-810W";
|
|
33
|
+
readonly family: "brother-ql";
|
|
34
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
31
35
|
readonly vid: 1273;
|
|
32
36
|
readonly pid: 8348;
|
|
33
37
|
readonly headPins: 720;
|
|
34
38
|
readonly bytesPerRow: 90;
|
|
35
39
|
readonly twoColor: true;
|
|
36
40
|
readonly network: "wifi";
|
|
37
|
-
readonly bluetooth: false;
|
|
38
41
|
readonly autocut: true;
|
|
39
42
|
readonly compression: true;
|
|
40
43
|
readonly editorLite: true;
|
|
41
44
|
};
|
|
42
45
|
readonly QL_800: {
|
|
43
46
|
readonly name: "QL-800";
|
|
47
|
+
readonly family: "brother-ql";
|
|
48
|
+
readonly transports: ["usb", "webusb"];
|
|
44
49
|
readonly vid: 1273;
|
|
45
50
|
readonly pid: 8347;
|
|
46
51
|
readonly headPins: 720;
|
|
47
52
|
readonly bytesPerRow: 90;
|
|
48
53
|
readonly twoColor: true;
|
|
49
54
|
readonly network: "none";
|
|
50
|
-
readonly bluetooth: false;
|
|
51
55
|
readonly autocut: true;
|
|
52
56
|
readonly compression: true;
|
|
53
57
|
readonly editorLite: true;
|
|
54
58
|
};
|
|
55
59
|
readonly QL_720NW: {
|
|
56
60
|
readonly name: "QL-720NW";
|
|
61
|
+
readonly family: "brother-ql";
|
|
62
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
57
63
|
readonly vid: 1273;
|
|
58
64
|
readonly pid: 8261;
|
|
59
65
|
readonly headPins: 720;
|
|
60
66
|
readonly bytesPerRow: 90;
|
|
61
67
|
readonly twoColor: false;
|
|
62
68
|
readonly network: "wired";
|
|
63
|
-
readonly bluetooth: false;
|
|
64
69
|
readonly autocut: true;
|
|
65
70
|
readonly compression: true;
|
|
66
71
|
readonly editorLite: false;
|
|
67
72
|
};
|
|
68
73
|
readonly QL_710W: {
|
|
69
74
|
readonly name: "QL-710W";
|
|
75
|
+
readonly family: "brother-ql";
|
|
76
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
70
77
|
readonly vid: 1273;
|
|
71
78
|
readonly pid: 8260;
|
|
72
79
|
readonly headPins: 720;
|
|
73
80
|
readonly bytesPerRow: 90;
|
|
74
81
|
readonly twoColor: false;
|
|
75
82
|
readonly network: "wifi";
|
|
76
|
-
readonly bluetooth: false;
|
|
77
83
|
readonly autocut: true;
|
|
78
84
|
readonly compression: true;
|
|
79
85
|
readonly editorLite: true;
|
|
80
86
|
};
|
|
81
87
|
readonly QL_700: {
|
|
82
88
|
readonly name: "QL-700";
|
|
89
|
+
readonly family: "brother-ql";
|
|
90
|
+
readonly transports: ["usb", "webusb"];
|
|
83
91
|
readonly vid: 1273;
|
|
84
92
|
readonly pid: 8258;
|
|
85
93
|
readonly headPins: 720;
|
|
86
94
|
readonly bytesPerRow: 90;
|
|
87
95
|
readonly twoColor: false;
|
|
88
96
|
readonly network: "none";
|
|
89
|
-
readonly bluetooth: false;
|
|
90
97
|
readonly autocut: true;
|
|
91
98
|
readonly compression: true;
|
|
92
99
|
readonly editorLite: true;
|
|
93
100
|
};
|
|
94
101
|
readonly QL_600: {
|
|
95
102
|
readonly name: "QL-600";
|
|
103
|
+
readonly family: "brother-ql";
|
|
104
|
+
readonly transports: ["usb", "webusb"];
|
|
96
105
|
readonly vid: 1273;
|
|
97
106
|
readonly pid: 8448;
|
|
98
107
|
readonly headPins: 720;
|
|
99
108
|
readonly bytesPerRow: 90;
|
|
100
109
|
readonly twoColor: false;
|
|
101
110
|
readonly network: "none";
|
|
102
|
-
readonly bluetooth: false;
|
|
103
111
|
readonly autocut: true;
|
|
104
112
|
readonly compression: true;
|
|
105
113
|
readonly editorLite: false;
|
|
106
114
|
};
|
|
107
115
|
readonly QL_580N: {
|
|
108
116
|
readonly name: "QL-580N";
|
|
117
|
+
readonly family: "brother-ql";
|
|
118
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
109
119
|
readonly vid: 1273;
|
|
110
120
|
readonly pid: 8219;
|
|
111
121
|
readonly headPins: 720;
|
|
112
122
|
readonly bytesPerRow: 90;
|
|
113
123
|
readonly twoColor: false;
|
|
114
124
|
readonly network: "wired";
|
|
115
|
-
readonly bluetooth: false;
|
|
116
125
|
readonly autocut: true;
|
|
117
126
|
readonly compression: true;
|
|
118
127
|
readonly editorLite: false;
|
|
119
128
|
};
|
|
120
129
|
readonly QL_570: {
|
|
121
130
|
readonly name: "QL-570";
|
|
131
|
+
readonly family: "brother-ql";
|
|
132
|
+
readonly transports: ["usb", "webusb"];
|
|
122
133
|
readonly vid: 1273;
|
|
123
134
|
readonly pid: 8217;
|
|
124
135
|
readonly headPins: 720;
|
|
125
136
|
readonly bytesPerRow: 90;
|
|
126
137
|
readonly twoColor: false;
|
|
127
138
|
readonly network: "none";
|
|
128
|
-
readonly bluetooth: false;
|
|
129
139
|
readonly autocut: true;
|
|
130
140
|
readonly compression: true;
|
|
131
141
|
readonly editorLite: false;
|
|
132
142
|
};
|
|
133
143
|
readonly QL_560: {
|
|
134
144
|
readonly name: "QL-560";
|
|
145
|
+
readonly family: "brother-ql";
|
|
146
|
+
readonly transports: ["usb", "webusb"];
|
|
135
147
|
readonly vid: 1273;
|
|
136
148
|
readonly pid: 8216;
|
|
137
149
|
readonly headPins: 720;
|
|
138
150
|
readonly bytesPerRow: 90;
|
|
139
151
|
readonly twoColor: false;
|
|
140
152
|
readonly network: "none";
|
|
141
|
-
readonly bluetooth: false;
|
|
142
153
|
readonly autocut: true;
|
|
143
154
|
readonly compression: false;
|
|
144
155
|
readonly editorLite: false;
|
|
145
156
|
};
|
|
146
157
|
readonly QL_550: {
|
|
147
158
|
readonly name: "QL-550";
|
|
159
|
+
readonly family: "brother-ql";
|
|
160
|
+
readonly transports: ["usb", "webusb"];
|
|
148
161
|
readonly vid: 1273;
|
|
149
162
|
readonly pid: 8214;
|
|
150
163
|
readonly headPins: 720;
|
|
151
164
|
readonly bytesPerRow: 90;
|
|
152
165
|
readonly twoColor: false;
|
|
153
166
|
readonly network: "none";
|
|
154
|
-
readonly bluetooth: false;
|
|
155
167
|
readonly autocut: false;
|
|
156
168
|
readonly compression: false;
|
|
157
169
|
readonly editorLite: false;
|
|
158
170
|
};
|
|
159
171
|
readonly QL_500: {
|
|
160
172
|
readonly name: "QL-500";
|
|
173
|
+
readonly family: "brother-ql";
|
|
174
|
+
readonly transports: ["usb", "webusb"];
|
|
161
175
|
readonly vid: 1273;
|
|
162
176
|
readonly pid: 8211;
|
|
163
177
|
readonly headPins: 720;
|
|
164
178
|
readonly bytesPerRow: 90;
|
|
165
179
|
readonly twoColor: false;
|
|
166
180
|
readonly network: "none";
|
|
167
|
-
readonly bluetooth: false;
|
|
168
181
|
readonly autocut: false;
|
|
169
182
|
readonly compression: false;
|
|
170
183
|
readonly editorLite: false;
|
|
171
184
|
};
|
|
172
185
|
readonly QL_650TD: {
|
|
173
186
|
readonly name: "QL-650TD";
|
|
187
|
+
readonly family: "brother-ql";
|
|
188
|
+
readonly transports: ["usb", "webusb"];
|
|
174
189
|
readonly vid: 1273;
|
|
175
190
|
readonly pid: 8220;
|
|
176
191
|
readonly headPins: 720;
|
|
177
192
|
readonly bytesPerRow: 90;
|
|
178
193
|
readonly twoColor: false;
|
|
179
194
|
readonly network: "none";
|
|
180
|
-
readonly bluetooth: false;
|
|
181
195
|
readonly autocut: true;
|
|
182
196
|
readonly compression: true;
|
|
183
197
|
readonly editorLite: false;
|
|
184
198
|
};
|
|
185
199
|
readonly QL_1100: {
|
|
186
200
|
readonly name: "QL-1100";
|
|
201
|
+
readonly family: "brother-ql";
|
|
202
|
+
readonly transports: ["usb", "webusb"];
|
|
187
203
|
readonly vid: 1273;
|
|
188
204
|
readonly pid: 8360;
|
|
189
205
|
readonly headPins: 1296;
|
|
190
206
|
readonly bytesPerRow: 162;
|
|
191
207
|
readonly twoColor: false;
|
|
192
208
|
readonly network: "none";
|
|
193
|
-
readonly bluetooth: false;
|
|
194
209
|
readonly autocut: true;
|
|
195
210
|
readonly compression: true;
|
|
196
211
|
readonly editorLite: true;
|
|
@@ -198,13 +213,14 @@ export declare const DEVICES: {
|
|
|
198
213
|
};
|
|
199
214
|
readonly QL_1110NWB: {
|
|
200
215
|
readonly name: "QL-1110NWB";
|
|
216
|
+
readonly family: "brother-ql";
|
|
217
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
201
218
|
readonly vid: 1273;
|
|
202
219
|
readonly pid: 8361;
|
|
203
220
|
readonly headPins: 1296;
|
|
204
221
|
readonly bytesPerRow: 162;
|
|
205
222
|
readonly twoColor: false;
|
|
206
223
|
readonly network: "wifi+wired";
|
|
207
|
-
readonly bluetooth: false;
|
|
208
224
|
readonly autocut: true;
|
|
209
225
|
readonly compression: true;
|
|
210
226
|
readonly editorLite: true;
|
|
@@ -212,44 +228,47 @@ export declare const DEVICES: {
|
|
|
212
228
|
};
|
|
213
229
|
readonly QL_1115NWB: {
|
|
214
230
|
readonly name: "QL-1115NWB";
|
|
231
|
+
readonly family: "brother-ql";
|
|
232
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
215
233
|
readonly vid: 1273;
|
|
216
234
|
readonly pid: 8364;
|
|
217
235
|
readonly headPins: 1296;
|
|
218
236
|
readonly bytesPerRow: 162;
|
|
219
237
|
readonly twoColor: false;
|
|
220
238
|
readonly network: "wifi+wired";
|
|
221
|
-
readonly bluetooth: false;
|
|
222
239
|
readonly autocut: true;
|
|
223
240
|
readonly compression: true;
|
|
224
241
|
readonly editorLite: true;
|
|
225
242
|
};
|
|
226
243
|
readonly QL_1050: {
|
|
227
244
|
readonly name: "QL-1050";
|
|
245
|
+
readonly family: "brother-ql";
|
|
246
|
+
readonly transports: ["usb", "webusb"];
|
|
228
247
|
readonly vid: 1273;
|
|
229
248
|
readonly pid: 8231;
|
|
230
249
|
readonly headPins: 1296;
|
|
231
250
|
readonly bytesPerRow: 162;
|
|
232
251
|
readonly twoColor: false;
|
|
233
252
|
readonly network: "none";
|
|
234
|
-
readonly bluetooth: false;
|
|
235
253
|
readonly autocut: true;
|
|
236
254
|
readonly compression: true;
|
|
237
255
|
readonly editorLite: false;
|
|
238
256
|
};
|
|
239
257
|
readonly QL_1060N: {
|
|
240
258
|
readonly name: "QL-1060N";
|
|
259
|
+
readonly family: "brother-ql";
|
|
260
|
+
readonly transports: ["usb", "webusb", "tcp"];
|
|
241
261
|
readonly vid: 1273;
|
|
242
262
|
readonly pid: 8232;
|
|
243
263
|
readonly headPins: 1296;
|
|
244
264
|
readonly bytesPerRow: 162;
|
|
245
265
|
readonly twoColor: false;
|
|
246
266
|
readonly network: "wired";
|
|
247
|
-
readonly bluetooth: false;
|
|
248
267
|
readonly autocut: true;
|
|
249
268
|
readonly compression: true;
|
|
250
269
|
readonly editorLite: false;
|
|
251
270
|
};
|
|
252
271
|
};
|
|
253
|
-
export declare function findDevice(vid: number, pid: number):
|
|
272
|
+
export declare function findDevice(vid: number, pid: number): BrotherQLDevice | undefined;
|
|
254
273
|
export declare function isMassStorageMode(pid: number): boolean;
|
|
255
274
|
//# sourceMappingURL=devices.d.ts.map
|
package/dist/devices.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6QgC,CAAC;AAErD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEhF;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
package/dist/devices.js
CHANGED
|
@@ -3,195 +3,210 @@ const MASS_STORAGE_PIDS = new Set([0x20aa, 0x20ab]);
|
|
|
3
3
|
export const DEVICES = {
|
|
4
4
|
QL_820NWB: {
|
|
5
5
|
name: 'QL-820NWB',
|
|
6
|
+
family: 'brother-ql',
|
|
7
|
+
transports: ['usb', 'webusb', 'tcp', 'serial', 'web-serial'],
|
|
6
8
|
vid: 0x04f9,
|
|
7
9
|
pid: 0x20a7,
|
|
8
10
|
headPins: 720,
|
|
9
11
|
bytesPerRow: 90,
|
|
10
12
|
twoColor: true,
|
|
11
13
|
network: 'wifi+wired',
|
|
12
|
-
bluetooth: false,
|
|
13
14
|
autocut: true,
|
|
14
15
|
compression: true,
|
|
15
16
|
editorLite: true,
|
|
16
17
|
},
|
|
17
18
|
QL_820NWBc: {
|
|
18
19
|
name: 'QL-820NWBc',
|
|
20
|
+
family: 'brother-ql',
|
|
21
|
+
transports: ['usb', 'webusb', 'tcp', 'serial', 'web-serial'],
|
|
19
22
|
vid: 0x04f9,
|
|
20
23
|
pid: 0x209d,
|
|
21
24
|
headPins: 720,
|
|
22
25
|
bytesPerRow: 90,
|
|
23
26
|
twoColor: true,
|
|
24
27
|
network: 'wifi+wired',
|
|
25
|
-
bluetooth: false,
|
|
26
28
|
autocut: true,
|
|
27
29
|
compression: true,
|
|
28
30
|
editorLite: true,
|
|
29
31
|
},
|
|
30
32
|
QL_810W: {
|
|
31
33
|
name: 'QL-810W',
|
|
34
|
+
family: 'brother-ql',
|
|
35
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
32
36
|
vid: 0x04f9,
|
|
33
37
|
pid: 0x209c,
|
|
34
38
|
headPins: 720,
|
|
35
39
|
bytesPerRow: 90,
|
|
36
40
|
twoColor: true,
|
|
37
41
|
network: 'wifi',
|
|
38
|
-
bluetooth: false,
|
|
39
42
|
autocut: true,
|
|
40
43
|
compression: true,
|
|
41
44
|
editorLite: true,
|
|
42
45
|
},
|
|
43
46
|
QL_800: {
|
|
44
47
|
name: 'QL-800',
|
|
48
|
+
family: 'brother-ql',
|
|
49
|
+
transports: ['usb', 'webusb'],
|
|
45
50
|
vid: 0x04f9,
|
|
46
51
|
pid: 0x209b,
|
|
47
52
|
headPins: 720,
|
|
48
53
|
bytesPerRow: 90,
|
|
49
54
|
twoColor: true,
|
|
50
55
|
network: 'none',
|
|
51
|
-
bluetooth: false,
|
|
52
56
|
autocut: true,
|
|
53
57
|
compression: true,
|
|
54
58
|
editorLite: true,
|
|
55
59
|
},
|
|
56
60
|
QL_720NW: {
|
|
57
61
|
name: 'QL-720NW',
|
|
62
|
+
family: 'brother-ql',
|
|
63
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
58
64
|
vid: 0x04f9,
|
|
59
65
|
pid: 0x2045,
|
|
60
66
|
headPins: 720,
|
|
61
67
|
bytesPerRow: 90,
|
|
62
68
|
twoColor: false,
|
|
63
69
|
network: 'wired',
|
|
64
|
-
bluetooth: false,
|
|
65
70
|
autocut: true,
|
|
66
71
|
compression: true,
|
|
67
72
|
editorLite: false,
|
|
68
73
|
},
|
|
69
74
|
QL_710W: {
|
|
70
75
|
name: 'QL-710W',
|
|
76
|
+
family: 'brother-ql',
|
|
77
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
71
78
|
vid: 0x04f9,
|
|
72
79
|
pid: 0x2044,
|
|
73
80
|
headPins: 720,
|
|
74
81
|
bytesPerRow: 90,
|
|
75
82
|
twoColor: false,
|
|
76
83
|
network: 'wifi',
|
|
77
|
-
bluetooth: false,
|
|
78
84
|
autocut: true,
|
|
79
85
|
compression: true,
|
|
80
86
|
editorLite: true,
|
|
81
87
|
},
|
|
82
88
|
QL_700: {
|
|
83
89
|
name: 'QL-700',
|
|
90
|
+
family: 'brother-ql',
|
|
91
|
+
transports: ['usb', 'webusb'],
|
|
84
92
|
vid: 0x04f9,
|
|
85
93
|
pid: 0x2042,
|
|
86
94
|
headPins: 720,
|
|
87
95
|
bytesPerRow: 90,
|
|
88
96
|
twoColor: false,
|
|
89
97
|
network: 'none',
|
|
90
|
-
bluetooth: false,
|
|
91
98
|
autocut: true,
|
|
92
99
|
compression: true,
|
|
93
100
|
editorLite: true,
|
|
94
101
|
},
|
|
95
102
|
QL_600: {
|
|
96
103
|
name: 'QL-600',
|
|
104
|
+
family: 'brother-ql',
|
|
105
|
+
transports: ['usb', 'webusb'],
|
|
97
106
|
vid: 0x04f9,
|
|
98
107
|
pid: 0x2100,
|
|
99
108
|
headPins: 720,
|
|
100
109
|
bytesPerRow: 90,
|
|
101
110
|
twoColor: false,
|
|
102
111
|
network: 'none',
|
|
103
|
-
bluetooth: false,
|
|
104
112
|
autocut: true,
|
|
105
113
|
compression: true,
|
|
106
114
|
editorLite: false,
|
|
107
115
|
},
|
|
108
116
|
QL_580N: {
|
|
109
117
|
name: 'QL-580N',
|
|
118
|
+
family: 'brother-ql',
|
|
119
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
110
120
|
vid: 0x04f9,
|
|
111
121
|
pid: 0x201b,
|
|
112
122
|
headPins: 720,
|
|
113
123
|
bytesPerRow: 90,
|
|
114
124
|
twoColor: false,
|
|
115
125
|
network: 'wired',
|
|
116
|
-
bluetooth: false,
|
|
117
126
|
autocut: true,
|
|
118
127
|
compression: true,
|
|
119
128
|
editorLite: false,
|
|
120
129
|
},
|
|
121
130
|
QL_570: {
|
|
122
131
|
name: 'QL-570',
|
|
132
|
+
family: 'brother-ql',
|
|
133
|
+
transports: ['usb', 'webusb'],
|
|
123
134
|
vid: 0x04f9,
|
|
124
135
|
pid: 0x2019,
|
|
125
136
|
headPins: 720,
|
|
126
137
|
bytesPerRow: 90,
|
|
127
138
|
twoColor: false,
|
|
128
139
|
network: 'none',
|
|
129
|
-
bluetooth: false,
|
|
130
140
|
autocut: true,
|
|
131
141
|
compression: true,
|
|
132
142
|
editorLite: false,
|
|
133
143
|
},
|
|
134
144
|
QL_560: {
|
|
135
145
|
name: 'QL-560',
|
|
146
|
+
family: 'brother-ql',
|
|
147
|
+
transports: ['usb', 'webusb'],
|
|
136
148
|
vid: 0x04f9,
|
|
137
149
|
pid: 0x2018,
|
|
138
150
|
headPins: 720,
|
|
139
151
|
bytesPerRow: 90,
|
|
140
152
|
twoColor: false,
|
|
141
153
|
network: 'none',
|
|
142
|
-
bluetooth: false,
|
|
143
154
|
autocut: true,
|
|
144
155
|
compression: false,
|
|
145
156
|
editorLite: false,
|
|
146
157
|
},
|
|
147
158
|
QL_550: {
|
|
148
159
|
name: 'QL-550',
|
|
160
|
+
family: 'brother-ql',
|
|
161
|
+
transports: ['usb', 'webusb'],
|
|
149
162
|
vid: 0x04f9,
|
|
150
163
|
pid: 0x2016,
|
|
151
164
|
headPins: 720,
|
|
152
165
|
bytesPerRow: 90,
|
|
153
166
|
twoColor: false,
|
|
154
167
|
network: 'none',
|
|
155
|
-
bluetooth: false,
|
|
156
168
|
autocut: false,
|
|
157
169
|
compression: false,
|
|
158
170
|
editorLite: false,
|
|
159
171
|
},
|
|
160
172
|
QL_500: {
|
|
161
173
|
name: 'QL-500',
|
|
174
|
+
family: 'brother-ql',
|
|
175
|
+
transports: ['usb', 'webusb'],
|
|
162
176
|
vid: 0x04f9,
|
|
163
177
|
pid: 0x2013,
|
|
164
178
|
headPins: 720,
|
|
165
179
|
bytesPerRow: 90,
|
|
166
180
|
twoColor: false,
|
|
167
181
|
network: 'none',
|
|
168
|
-
bluetooth: false,
|
|
169
182
|
autocut: false,
|
|
170
183
|
compression: false,
|
|
171
184
|
editorLite: false,
|
|
172
185
|
},
|
|
173
186
|
QL_650TD: {
|
|
174
187
|
name: 'QL-650TD',
|
|
188
|
+
family: 'brother-ql',
|
|
189
|
+
transports: ['usb', 'webusb'],
|
|
175
190
|
vid: 0x04f9,
|
|
176
191
|
pid: 0x201c,
|
|
177
192
|
headPins: 720,
|
|
178
193
|
bytesPerRow: 90,
|
|
179
194
|
twoColor: false,
|
|
180
195
|
network: 'none',
|
|
181
|
-
bluetooth: false,
|
|
182
196
|
autocut: true,
|
|
183
197
|
compression: true,
|
|
184
198
|
editorLite: false,
|
|
185
199
|
},
|
|
186
200
|
QL_1100: {
|
|
187
201
|
name: 'QL-1100',
|
|
202
|
+
family: 'brother-ql',
|
|
203
|
+
transports: ['usb', 'webusb'],
|
|
188
204
|
vid: 0x04f9,
|
|
189
205
|
pid: 0x20a8,
|
|
190
206
|
headPins: 1296,
|
|
191
207
|
bytesPerRow: 162,
|
|
192
208
|
twoColor: false,
|
|
193
209
|
network: 'none',
|
|
194
|
-
bluetooth: false,
|
|
195
210
|
autocut: true,
|
|
196
211
|
compression: true,
|
|
197
212
|
editorLite: true,
|
|
@@ -199,13 +214,14 @@ export const DEVICES = {
|
|
|
199
214
|
},
|
|
200
215
|
QL_1110NWB: {
|
|
201
216
|
name: 'QL-1110NWB',
|
|
217
|
+
family: 'brother-ql',
|
|
218
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
202
219
|
vid: 0x04f9,
|
|
203
220
|
pid: 0x20a9,
|
|
204
221
|
headPins: 1296,
|
|
205
222
|
bytesPerRow: 162,
|
|
206
223
|
twoColor: false,
|
|
207
224
|
network: 'wifi+wired',
|
|
208
|
-
bluetooth: false,
|
|
209
225
|
autocut: true,
|
|
210
226
|
compression: true,
|
|
211
227
|
editorLite: true,
|
|
@@ -213,39 +229,42 @@ export const DEVICES = {
|
|
|
213
229
|
},
|
|
214
230
|
QL_1115NWB: {
|
|
215
231
|
name: 'QL-1115NWB',
|
|
232
|
+
family: 'brother-ql',
|
|
233
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
216
234
|
vid: 0x04f9,
|
|
217
235
|
pid: 0x20ac,
|
|
218
236
|
headPins: 1296,
|
|
219
237
|
bytesPerRow: 162,
|
|
220
238
|
twoColor: false,
|
|
221
239
|
network: 'wifi+wired',
|
|
222
|
-
bluetooth: false,
|
|
223
240
|
autocut: true,
|
|
224
241
|
compression: true,
|
|
225
242
|
editorLite: true,
|
|
226
243
|
},
|
|
227
244
|
QL_1050: {
|
|
228
245
|
name: 'QL-1050',
|
|
246
|
+
family: 'brother-ql',
|
|
247
|
+
transports: ['usb', 'webusb'],
|
|
229
248
|
vid: 0x04f9,
|
|
230
249
|
pid: 0x2027,
|
|
231
250
|
headPins: 1296,
|
|
232
251
|
bytesPerRow: 162,
|
|
233
252
|
twoColor: false,
|
|
234
253
|
network: 'none',
|
|
235
|
-
bluetooth: false,
|
|
236
254
|
autocut: true,
|
|
237
255
|
compression: true,
|
|
238
256
|
editorLite: false,
|
|
239
257
|
},
|
|
240
258
|
QL_1060N: {
|
|
241
259
|
name: 'QL-1060N',
|
|
260
|
+
family: 'brother-ql',
|
|
261
|
+
transports: ['usb', 'webusb', 'tcp'],
|
|
242
262
|
vid: 0x04f9,
|
|
243
263
|
pid: 0x2028,
|
|
244
264
|
headPins: 1296,
|
|
245
265
|
bytesPerRow: 162,
|
|
246
266
|
twoColor: false,
|
|
247
267
|
network: 'wired',
|
|
248
|
-
bluetooth: false,
|
|
249
268
|
autocut: true,
|
|
250
269
|
compression: true,
|
|
251
270
|
editorLite: false,
|
package/dist/devices.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,YAAY,CAAC;AAElD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;A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ACjB,UAAU,EAAE,KAAK;KAClB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;QACpC,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,GAAG;QAChB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;KAClB;CACiD,CAAC;AAErD,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,GAAW;IACjD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAC3C,OAAO,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export type { LabelBitmap, RawImageData } from '@mbtech-nl/bitmap';
|
|
2
2
|
export { renderText, renderImage, rotateBitmap, flipHorizontal } from '@mbtech-nl/bitmap';
|
|
3
|
+
export type { DeviceDescriptor, MediaDescriptor, PreviewOptions, PreviewPlane, PreviewResult, PrintOptions, PrinterAdapter, PrinterError, PrinterStatus, Transport, TransportType, } from '@thermal-label/contracts';
|
|
4
|
+
export { MediaNotSpecifiedError, UnsupportedOperationError } from '@thermal-label/contracts';
|
|
3
5
|
export { DEVICES, findDevice, isMassStorageMode } from './devices.js';
|
|
4
|
-
export { MEDIA, findMedia, findMediaByWidth } from './media.js';
|
|
6
|
+
export { DEFAULT_MEDIA, MEDIA, findMedia, findMediaByDimensions, findMediaByWidth, } from './media.js';
|
|
5
7
|
export { encodeJob } from './protocol.js';
|
|
6
8
|
export { parseStatus, STATUS_REQUEST } from './status.js';
|
|
7
|
-
export
|
|
9
|
+
export { isRedish, splitTwoColor, type TwoColorOptions, type TwoColorResult } from './colour.js';
|
|
10
|
+
export { createPreviewOffline } from './preview.js';
|
|
11
|
+
export type { BrotherQLDevice, BrotherQLMedia, BrotherQLStatus, ColorMode, HeadWidth, JobOptions, MediaType, NetworkSupport, PageData, PageOptions, } from './types.js';
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE1F,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,EACb,SAAS,EACT,aAAa,GACd,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,YAAY,EACV,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,cAAc,EACd,QAAQ,EACR,WAAW,GACZ,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { renderText, renderImage, rotateBitmap, flipHorizontal } from '@mbtech-nl/bitmap';
|
|
2
|
+
export { MediaNotSpecifiedError, UnsupportedOperationError } from '@thermal-label/contracts';
|
|
2
3
|
export { DEVICES, findDevice, isMassStorageMode } from './devices.js';
|
|
3
|
-
export { MEDIA, findMedia, findMediaByWidth } from './media.js';
|
|
4
|
+
export { DEFAULT_MEDIA, MEDIA, findMedia, findMediaByDimensions, findMediaByWidth, } from './media.js';
|
|
4
5
|
export { encodeJob } from './protocol.js';
|
|
5
6
|
export { parseStatus, STATUS_REQUEST } from './status.js';
|
|
7
|
+
export { isRedish, splitTwoColor } from './colour.js';
|
|
8
|
+
export { createPreviewOffline } from './preview.js';
|
|
6
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgB1F,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAA6C,MAAM,aAAa,CAAC;AACjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
|