@thermal-label/brother-ql-core 0.0.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/LICENSE +21 -0
- package/README.md +23 -0
- package/dist/__tests__/devices.test.d.ts +2 -0
- package/dist/__tests__/devices.test.d.ts.map +1 -0
- package/dist/__tests__/devices.test.js +63 -0
- package/dist/__tests__/devices.test.js.map +1 -0
- package/dist/__tests__/media.test.d.ts +2 -0
- package/dist/__tests__/media.test.d.ts.map +1 -0
- package/dist/__tests__/media.test.js +62 -0
- package/dist/__tests__/media.test.js.map +1 -0
- package/dist/__tests__/protocol.test.d.ts +2 -0
- package/dist/__tests__/protocol.test.d.ts.map +1 -0
- package/dist/__tests__/protocol.test.js +202 -0
- package/dist/__tests__/protocol.test.js.map +1 -0
- package/dist/__tests__/status.test.d.ts +2 -0
- package/dist/__tests__/status.test.d.ts.map +1 -0
- package/dist/__tests__/status.test.js +74 -0
- package/dist/__tests__/status.test.js.map +1 -0
- package/dist/devices.d.ts +255 -0
- package/dist/devices.d.ts.map +1 -0
- package/dist/devices.js +260 -0
- package/dist/devices.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/media.d.ts +5 -0
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +247 -0
- package/dist/media.js.map +1 -0
- package/dist/protocol.d.ts +17 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +173 -0
- package/dist/protocol.js.map +1 -0
- package/dist/status.d.ts +4 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.js +61 -0
- package/dist/status.js.map +1 -0
- package/dist/types.d.ts +69 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +71 -0
- package/src/__tests__/devices.test.ts +73 -0
- package/src/__tests__/media.test.ts +70 -0
- package/src/__tests__/protocol.test.ts +241 -0
- package/src/__tests__/status.test.ts +95 -0
- package/src/devices.ts +263 -0
- package/src/index.ts +22 -0
- package/src/media.ts +250 -0
- package/src/protocol.ts +213 -0
- package/src/status.ts +67 -0
- package/src/types.ts +77 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { type DeviceDescriptor } from './types.js';
|
|
2
|
+
export declare const DEVICES: {
|
|
3
|
+
readonly QL_820NWB: {
|
|
4
|
+
readonly name: "QL-820NWB";
|
|
5
|
+
readonly vid: 1273;
|
|
6
|
+
readonly pid: 8359;
|
|
7
|
+
readonly headPins: 720;
|
|
8
|
+
readonly bytesPerRow: 90;
|
|
9
|
+
readonly twoColor: true;
|
|
10
|
+
readonly network: "wifi+wired";
|
|
11
|
+
readonly bluetooth: false;
|
|
12
|
+
readonly autocut: true;
|
|
13
|
+
readonly compression: true;
|
|
14
|
+
readonly editorLite: true;
|
|
15
|
+
};
|
|
16
|
+
readonly QL_820NWBc: {
|
|
17
|
+
readonly name: "QL-820NWBc";
|
|
18
|
+
readonly vid: 1273;
|
|
19
|
+
readonly pid: 8349;
|
|
20
|
+
readonly headPins: 720;
|
|
21
|
+
readonly bytesPerRow: 90;
|
|
22
|
+
readonly twoColor: true;
|
|
23
|
+
readonly network: "wifi+wired";
|
|
24
|
+
readonly bluetooth: false;
|
|
25
|
+
readonly autocut: true;
|
|
26
|
+
readonly compression: true;
|
|
27
|
+
readonly editorLite: true;
|
|
28
|
+
};
|
|
29
|
+
readonly QL_810W: {
|
|
30
|
+
readonly name: "QL-810W";
|
|
31
|
+
readonly vid: 1273;
|
|
32
|
+
readonly pid: 8348;
|
|
33
|
+
readonly headPins: 720;
|
|
34
|
+
readonly bytesPerRow: 90;
|
|
35
|
+
readonly twoColor: true;
|
|
36
|
+
readonly network: "wifi";
|
|
37
|
+
readonly bluetooth: false;
|
|
38
|
+
readonly autocut: true;
|
|
39
|
+
readonly compression: true;
|
|
40
|
+
readonly editorLite: true;
|
|
41
|
+
};
|
|
42
|
+
readonly QL_800: {
|
|
43
|
+
readonly name: "QL-800";
|
|
44
|
+
readonly vid: 1273;
|
|
45
|
+
readonly pid: 8347;
|
|
46
|
+
readonly headPins: 720;
|
|
47
|
+
readonly bytesPerRow: 90;
|
|
48
|
+
readonly twoColor: true;
|
|
49
|
+
readonly network: "none";
|
|
50
|
+
readonly bluetooth: false;
|
|
51
|
+
readonly autocut: true;
|
|
52
|
+
readonly compression: true;
|
|
53
|
+
readonly editorLite: true;
|
|
54
|
+
};
|
|
55
|
+
readonly QL_720NW: {
|
|
56
|
+
readonly name: "QL-720NW";
|
|
57
|
+
readonly vid: 1273;
|
|
58
|
+
readonly pid: 8261;
|
|
59
|
+
readonly headPins: 720;
|
|
60
|
+
readonly bytesPerRow: 90;
|
|
61
|
+
readonly twoColor: false;
|
|
62
|
+
readonly network: "wired";
|
|
63
|
+
readonly bluetooth: false;
|
|
64
|
+
readonly autocut: true;
|
|
65
|
+
readonly compression: true;
|
|
66
|
+
readonly editorLite: false;
|
|
67
|
+
};
|
|
68
|
+
readonly QL_710W: {
|
|
69
|
+
readonly name: "QL-710W";
|
|
70
|
+
readonly vid: 1273;
|
|
71
|
+
readonly pid: 8260;
|
|
72
|
+
readonly headPins: 720;
|
|
73
|
+
readonly bytesPerRow: 90;
|
|
74
|
+
readonly twoColor: false;
|
|
75
|
+
readonly network: "wifi";
|
|
76
|
+
readonly bluetooth: false;
|
|
77
|
+
readonly autocut: true;
|
|
78
|
+
readonly compression: true;
|
|
79
|
+
readonly editorLite: true;
|
|
80
|
+
};
|
|
81
|
+
readonly QL_700: {
|
|
82
|
+
readonly name: "QL-700";
|
|
83
|
+
readonly vid: 1273;
|
|
84
|
+
readonly pid: 8258;
|
|
85
|
+
readonly headPins: 720;
|
|
86
|
+
readonly bytesPerRow: 90;
|
|
87
|
+
readonly twoColor: false;
|
|
88
|
+
readonly network: "none";
|
|
89
|
+
readonly bluetooth: false;
|
|
90
|
+
readonly autocut: true;
|
|
91
|
+
readonly compression: true;
|
|
92
|
+
readonly editorLite: true;
|
|
93
|
+
};
|
|
94
|
+
readonly QL_600: {
|
|
95
|
+
readonly name: "QL-600";
|
|
96
|
+
readonly vid: 1273;
|
|
97
|
+
readonly pid: 8448;
|
|
98
|
+
readonly headPins: 720;
|
|
99
|
+
readonly bytesPerRow: 90;
|
|
100
|
+
readonly twoColor: false;
|
|
101
|
+
readonly network: "none";
|
|
102
|
+
readonly bluetooth: false;
|
|
103
|
+
readonly autocut: true;
|
|
104
|
+
readonly compression: true;
|
|
105
|
+
readonly editorLite: false;
|
|
106
|
+
};
|
|
107
|
+
readonly QL_580N: {
|
|
108
|
+
readonly name: "QL-580N";
|
|
109
|
+
readonly vid: 1273;
|
|
110
|
+
readonly pid: 8219;
|
|
111
|
+
readonly headPins: 720;
|
|
112
|
+
readonly bytesPerRow: 90;
|
|
113
|
+
readonly twoColor: false;
|
|
114
|
+
readonly network: "wired";
|
|
115
|
+
readonly bluetooth: false;
|
|
116
|
+
readonly autocut: true;
|
|
117
|
+
readonly compression: true;
|
|
118
|
+
readonly editorLite: false;
|
|
119
|
+
};
|
|
120
|
+
readonly QL_570: {
|
|
121
|
+
readonly name: "QL-570";
|
|
122
|
+
readonly vid: 1273;
|
|
123
|
+
readonly pid: 8217;
|
|
124
|
+
readonly headPins: 720;
|
|
125
|
+
readonly bytesPerRow: 90;
|
|
126
|
+
readonly twoColor: false;
|
|
127
|
+
readonly network: "none";
|
|
128
|
+
readonly bluetooth: false;
|
|
129
|
+
readonly autocut: true;
|
|
130
|
+
readonly compression: true;
|
|
131
|
+
readonly editorLite: false;
|
|
132
|
+
};
|
|
133
|
+
readonly QL_560: {
|
|
134
|
+
readonly name: "QL-560";
|
|
135
|
+
readonly vid: 1273;
|
|
136
|
+
readonly pid: 8216;
|
|
137
|
+
readonly headPins: 720;
|
|
138
|
+
readonly bytesPerRow: 90;
|
|
139
|
+
readonly twoColor: false;
|
|
140
|
+
readonly network: "none";
|
|
141
|
+
readonly bluetooth: false;
|
|
142
|
+
readonly autocut: true;
|
|
143
|
+
readonly compression: false;
|
|
144
|
+
readonly editorLite: false;
|
|
145
|
+
};
|
|
146
|
+
readonly QL_550: {
|
|
147
|
+
readonly name: "QL-550";
|
|
148
|
+
readonly vid: 1273;
|
|
149
|
+
readonly pid: 8214;
|
|
150
|
+
readonly headPins: 720;
|
|
151
|
+
readonly bytesPerRow: 90;
|
|
152
|
+
readonly twoColor: false;
|
|
153
|
+
readonly network: "none";
|
|
154
|
+
readonly bluetooth: false;
|
|
155
|
+
readonly autocut: false;
|
|
156
|
+
readonly compression: false;
|
|
157
|
+
readonly editorLite: false;
|
|
158
|
+
};
|
|
159
|
+
readonly QL_500: {
|
|
160
|
+
readonly name: "QL-500";
|
|
161
|
+
readonly vid: 1273;
|
|
162
|
+
readonly pid: 8211;
|
|
163
|
+
readonly headPins: 720;
|
|
164
|
+
readonly bytesPerRow: 90;
|
|
165
|
+
readonly twoColor: false;
|
|
166
|
+
readonly network: "none";
|
|
167
|
+
readonly bluetooth: false;
|
|
168
|
+
readonly autocut: false;
|
|
169
|
+
readonly compression: false;
|
|
170
|
+
readonly editorLite: false;
|
|
171
|
+
};
|
|
172
|
+
readonly QL_650TD: {
|
|
173
|
+
readonly name: "QL-650TD";
|
|
174
|
+
readonly vid: 1273;
|
|
175
|
+
readonly pid: 8220;
|
|
176
|
+
readonly headPins: 720;
|
|
177
|
+
readonly bytesPerRow: 90;
|
|
178
|
+
readonly twoColor: false;
|
|
179
|
+
readonly network: "none";
|
|
180
|
+
readonly bluetooth: false;
|
|
181
|
+
readonly autocut: true;
|
|
182
|
+
readonly compression: true;
|
|
183
|
+
readonly editorLite: false;
|
|
184
|
+
};
|
|
185
|
+
readonly QL_1100: {
|
|
186
|
+
readonly name: "QL-1100";
|
|
187
|
+
readonly vid: 1273;
|
|
188
|
+
readonly pid: 8360;
|
|
189
|
+
readonly headPins: 1296;
|
|
190
|
+
readonly bytesPerRow: 162;
|
|
191
|
+
readonly twoColor: false;
|
|
192
|
+
readonly network: "none";
|
|
193
|
+
readonly bluetooth: false;
|
|
194
|
+
readonly autocut: true;
|
|
195
|
+
readonly compression: true;
|
|
196
|
+
readonly editorLite: true;
|
|
197
|
+
readonly massStoragePid: 8362;
|
|
198
|
+
};
|
|
199
|
+
readonly QL_1110NWB: {
|
|
200
|
+
readonly name: "QL-1110NWB";
|
|
201
|
+
readonly vid: 1273;
|
|
202
|
+
readonly pid: 8361;
|
|
203
|
+
readonly headPins: 1296;
|
|
204
|
+
readonly bytesPerRow: 162;
|
|
205
|
+
readonly twoColor: false;
|
|
206
|
+
readonly network: "wifi+wired";
|
|
207
|
+
readonly bluetooth: false;
|
|
208
|
+
readonly autocut: true;
|
|
209
|
+
readonly compression: true;
|
|
210
|
+
readonly editorLite: true;
|
|
211
|
+
readonly massStoragePid: 8363;
|
|
212
|
+
};
|
|
213
|
+
readonly QL_1115NWB: {
|
|
214
|
+
readonly name: "QL-1115NWB";
|
|
215
|
+
readonly vid: 1273;
|
|
216
|
+
readonly pid: 8364;
|
|
217
|
+
readonly headPins: 1296;
|
|
218
|
+
readonly bytesPerRow: 162;
|
|
219
|
+
readonly twoColor: false;
|
|
220
|
+
readonly network: "wifi+wired";
|
|
221
|
+
readonly bluetooth: false;
|
|
222
|
+
readonly autocut: true;
|
|
223
|
+
readonly compression: true;
|
|
224
|
+
readonly editorLite: true;
|
|
225
|
+
};
|
|
226
|
+
readonly QL_1050: {
|
|
227
|
+
readonly name: "QL-1050";
|
|
228
|
+
readonly vid: 1273;
|
|
229
|
+
readonly pid: 8231;
|
|
230
|
+
readonly headPins: 1296;
|
|
231
|
+
readonly bytesPerRow: 162;
|
|
232
|
+
readonly twoColor: false;
|
|
233
|
+
readonly network: "none";
|
|
234
|
+
readonly bluetooth: false;
|
|
235
|
+
readonly autocut: true;
|
|
236
|
+
readonly compression: true;
|
|
237
|
+
readonly editorLite: false;
|
|
238
|
+
};
|
|
239
|
+
readonly QL_1060N: {
|
|
240
|
+
readonly name: "QL-1060N";
|
|
241
|
+
readonly vid: 1273;
|
|
242
|
+
readonly pid: 8232;
|
|
243
|
+
readonly headPins: 1296;
|
|
244
|
+
readonly bytesPerRow: 162;
|
|
245
|
+
readonly twoColor: false;
|
|
246
|
+
readonly network: "wired";
|
|
247
|
+
readonly bluetooth: false;
|
|
248
|
+
readonly autocut: true;
|
|
249
|
+
readonly compression: true;
|
|
250
|
+
readonly editorLite: false;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
export declare function findDevice(vid: number, pid: number): DeviceDescriptor | undefined;
|
|
254
|
+
export declare function isMassStorageMode(pid: number): boolean;
|
|
255
|
+
//# sourceMappingURL=devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PiC,CAAC;AAEtD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAEjF;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
package/dist/devices.js
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import {} from './types.js';
|
|
2
|
+
const MASS_STORAGE_PIDS = new Set([0x20aa, 0x20ab]);
|
|
3
|
+
export const DEVICES = {
|
|
4
|
+
QL_820NWB: {
|
|
5
|
+
name: 'QL-820NWB',
|
|
6
|
+
vid: 0x04f9,
|
|
7
|
+
pid: 0x20a7,
|
|
8
|
+
headPins: 720,
|
|
9
|
+
bytesPerRow: 90,
|
|
10
|
+
twoColor: true,
|
|
11
|
+
network: 'wifi+wired',
|
|
12
|
+
bluetooth: false,
|
|
13
|
+
autocut: true,
|
|
14
|
+
compression: true,
|
|
15
|
+
editorLite: true,
|
|
16
|
+
},
|
|
17
|
+
QL_820NWBc: {
|
|
18
|
+
name: 'QL-820NWBc',
|
|
19
|
+
vid: 0x04f9,
|
|
20
|
+
pid: 0x209d,
|
|
21
|
+
headPins: 720,
|
|
22
|
+
bytesPerRow: 90,
|
|
23
|
+
twoColor: true,
|
|
24
|
+
network: 'wifi+wired',
|
|
25
|
+
bluetooth: false,
|
|
26
|
+
autocut: true,
|
|
27
|
+
compression: true,
|
|
28
|
+
editorLite: true,
|
|
29
|
+
},
|
|
30
|
+
QL_810W: {
|
|
31
|
+
name: 'QL-810W',
|
|
32
|
+
vid: 0x04f9,
|
|
33
|
+
pid: 0x209c,
|
|
34
|
+
headPins: 720,
|
|
35
|
+
bytesPerRow: 90,
|
|
36
|
+
twoColor: true,
|
|
37
|
+
network: 'wifi',
|
|
38
|
+
bluetooth: false,
|
|
39
|
+
autocut: true,
|
|
40
|
+
compression: true,
|
|
41
|
+
editorLite: true,
|
|
42
|
+
},
|
|
43
|
+
QL_800: {
|
|
44
|
+
name: 'QL-800',
|
|
45
|
+
vid: 0x04f9,
|
|
46
|
+
pid: 0x209b,
|
|
47
|
+
headPins: 720,
|
|
48
|
+
bytesPerRow: 90,
|
|
49
|
+
twoColor: true,
|
|
50
|
+
network: 'none',
|
|
51
|
+
bluetooth: false,
|
|
52
|
+
autocut: true,
|
|
53
|
+
compression: true,
|
|
54
|
+
editorLite: true,
|
|
55
|
+
},
|
|
56
|
+
QL_720NW: {
|
|
57
|
+
name: 'QL-720NW',
|
|
58
|
+
vid: 0x04f9,
|
|
59
|
+
pid: 0x2045,
|
|
60
|
+
headPins: 720,
|
|
61
|
+
bytesPerRow: 90,
|
|
62
|
+
twoColor: false,
|
|
63
|
+
network: 'wired',
|
|
64
|
+
bluetooth: false,
|
|
65
|
+
autocut: true,
|
|
66
|
+
compression: true,
|
|
67
|
+
editorLite: false,
|
|
68
|
+
},
|
|
69
|
+
QL_710W: {
|
|
70
|
+
name: 'QL-710W',
|
|
71
|
+
vid: 0x04f9,
|
|
72
|
+
pid: 0x2044,
|
|
73
|
+
headPins: 720,
|
|
74
|
+
bytesPerRow: 90,
|
|
75
|
+
twoColor: false,
|
|
76
|
+
network: 'wifi',
|
|
77
|
+
bluetooth: false,
|
|
78
|
+
autocut: true,
|
|
79
|
+
compression: true,
|
|
80
|
+
editorLite: true,
|
|
81
|
+
},
|
|
82
|
+
QL_700: {
|
|
83
|
+
name: 'QL-700',
|
|
84
|
+
vid: 0x04f9,
|
|
85
|
+
pid: 0x2042,
|
|
86
|
+
headPins: 720,
|
|
87
|
+
bytesPerRow: 90,
|
|
88
|
+
twoColor: false,
|
|
89
|
+
network: 'none',
|
|
90
|
+
bluetooth: false,
|
|
91
|
+
autocut: true,
|
|
92
|
+
compression: true,
|
|
93
|
+
editorLite: true,
|
|
94
|
+
},
|
|
95
|
+
QL_600: {
|
|
96
|
+
name: 'QL-600',
|
|
97
|
+
vid: 0x04f9,
|
|
98
|
+
pid: 0x2100,
|
|
99
|
+
headPins: 720,
|
|
100
|
+
bytesPerRow: 90,
|
|
101
|
+
twoColor: false,
|
|
102
|
+
network: 'none',
|
|
103
|
+
bluetooth: false,
|
|
104
|
+
autocut: true,
|
|
105
|
+
compression: true,
|
|
106
|
+
editorLite: false,
|
|
107
|
+
},
|
|
108
|
+
QL_580N: {
|
|
109
|
+
name: 'QL-580N',
|
|
110
|
+
vid: 0x04f9,
|
|
111
|
+
pid: 0x201b,
|
|
112
|
+
headPins: 720,
|
|
113
|
+
bytesPerRow: 90,
|
|
114
|
+
twoColor: false,
|
|
115
|
+
network: 'wired',
|
|
116
|
+
bluetooth: false,
|
|
117
|
+
autocut: true,
|
|
118
|
+
compression: true,
|
|
119
|
+
editorLite: false,
|
|
120
|
+
},
|
|
121
|
+
QL_570: {
|
|
122
|
+
name: 'QL-570',
|
|
123
|
+
vid: 0x04f9,
|
|
124
|
+
pid: 0x2019,
|
|
125
|
+
headPins: 720,
|
|
126
|
+
bytesPerRow: 90,
|
|
127
|
+
twoColor: false,
|
|
128
|
+
network: 'none',
|
|
129
|
+
bluetooth: false,
|
|
130
|
+
autocut: true,
|
|
131
|
+
compression: true,
|
|
132
|
+
editorLite: false,
|
|
133
|
+
},
|
|
134
|
+
QL_560: {
|
|
135
|
+
name: 'QL-560',
|
|
136
|
+
vid: 0x04f9,
|
|
137
|
+
pid: 0x2018,
|
|
138
|
+
headPins: 720,
|
|
139
|
+
bytesPerRow: 90,
|
|
140
|
+
twoColor: false,
|
|
141
|
+
network: 'none',
|
|
142
|
+
bluetooth: false,
|
|
143
|
+
autocut: true,
|
|
144
|
+
compression: false,
|
|
145
|
+
editorLite: false,
|
|
146
|
+
},
|
|
147
|
+
QL_550: {
|
|
148
|
+
name: 'QL-550',
|
|
149
|
+
vid: 0x04f9,
|
|
150
|
+
pid: 0x2016,
|
|
151
|
+
headPins: 720,
|
|
152
|
+
bytesPerRow: 90,
|
|
153
|
+
twoColor: false,
|
|
154
|
+
network: 'none',
|
|
155
|
+
bluetooth: false,
|
|
156
|
+
autocut: false,
|
|
157
|
+
compression: false,
|
|
158
|
+
editorLite: false,
|
|
159
|
+
},
|
|
160
|
+
QL_500: {
|
|
161
|
+
name: 'QL-500',
|
|
162
|
+
vid: 0x04f9,
|
|
163
|
+
pid: 0x2013,
|
|
164
|
+
headPins: 720,
|
|
165
|
+
bytesPerRow: 90,
|
|
166
|
+
twoColor: false,
|
|
167
|
+
network: 'none',
|
|
168
|
+
bluetooth: false,
|
|
169
|
+
autocut: false,
|
|
170
|
+
compression: false,
|
|
171
|
+
editorLite: false,
|
|
172
|
+
},
|
|
173
|
+
QL_650TD: {
|
|
174
|
+
name: 'QL-650TD',
|
|
175
|
+
vid: 0x04f9,
|
|
176
|
+
pid: 0x201c,
|
|
177
|
+
headPins: 720,
|
|
178
|
+
bytesPerRow: 90,
|
|
179
|
+
twoColor: false,
|
|
180
|
+
network: 'none',
|
|
181
|
+
bluetooth: false,
|
|
182
|
+
autocut: true,
|
|
183
|
+
compression: true,
|
|
184
|
+
editorLite: false,
|
|
185
|
+
},
|
|
186
|
+
QL_1100: {
|
|
187
|
+
name: 'QL-1100',
|
|
188
|
+
vid: 0x04f9,
|
|
189
|
+
pid: 0x20a8,
|
|
190
|
+
headPins: 1296,
|
|
191
|
+
bytesPerRow: 162,
|
|
192
|
+
twoColor: false,
|
|
193
|
+
network: 'none',
|
|
194
|
+
bluetooth: false,
|
|
195
|
+
autocut: true,
|
|
196
|
+
compression: true,
|
|
197
|
+
editorLite: true,
|
|
198
|
+
massStoragePid: 0x20aa,
|
|
199
|
+
},
|
|
200
|
+
QL_1110NWB: {
|
|
201
|
+
name: 'QL-1110NWB',
|
|
202
|
+
vid: 0x04f9,
|
|
203
|
+
pid: 0x20a9,
|
|
204
|
+
headPins: 1296,
|
|
205
|
+
bytesPerRow: 162,
|
|
206
|
+
twoColor: false,
|
|
207
|
+
network: 'wifi+wired',
|
|
208
|
+
bluetooth: false,
|
|
209
|
+
autocut: true,
|
|
210
|
+
compression: true,
|
|
211
|
+
editorLite: true,
|
|
212
|
+
massStoragePid: 0x20ab,
|
|
213
|
+
},
|
|
214
|
+
QL_1115NWB: {
|
|
215
|
+
name: 'QL-1115NWB',
|
|
216
|
+
vid: 0x04f9,
|
|
217
|
+
pid: 0x20ac,
|
|
218
|
+
headPins: 1296,
|
|
219
|
+
bytesPerRow: 162,
|
|
220
|
+
twoColor: false,
|
|
221
|
+
network: 'wifi+wired',
|
|
222
|
+
bluetooth: false,
|
|
223
|
+
autocut: true,
|
|
224
|
+
compression: true,
|
|
225
|
+
editorLite: true,
|
|
226
|
+
},
|
|
227
|
+
QL_1050: {
|
|
228
|
+
name: 'QL-1050',
|
|
229
|
+
vid: 0x04f9,
|
|
230
|
+
pid: 0x2027,
|
|
231
|
+
headPins: 1296,
|
|
232
|
+
bytesPerRow: 162,
|
|
233
|
+
twoColor: false,
|
|
234
|
+
network: 'none',
|
|
235
|
+
bluetooth: false,
|
|
236
|
+
autocut: true,
|
|
237
|
+
compression: true,
|
|
238
|
+
editorLite: false,
|
|
239
|
+
},
|
|
240
|
+
QL_1060N: {
|
|
241
|
+
name: 'QL-1060N',
|
|
242
|
+
vid: 0x04f9,
|
|
243
|
+
pid: 0x2028,
|
|
244
|
+
headPins: 1296,
|
|
245
|
+
bytesPerRow: 162,
|
|
246
|
+
twoColor: false,
|
|
247
|
+
network: 'wired',
|
|
248
|
+
bluetooth: false,
|
|
249
|
+
autocut: true,
|
|
250
|
+
compression: true,
|
|
251
|
+
editorLite: false,
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
export function findDevice(vid, pid) {
|
|
255
|
+
return Object.values(DEVICES).find(d => d.vid === vid && d.pid === pid);
|
|
256
|
+
}
|
|
257
|
+
export function isMassStorageMode(pid) {
|
|
258
|
+
return MASS_STORAGE_PIDS.has(pid);
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=devices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../src/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,MAAM,YAAY,CAAC;AAEnD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,GAAG;QACb,WAAW,EAAE,EAAE;QACf,Q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AAI;QACjB,UAAU,EAAE,KAAK;KAClB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,GAAG;QAChB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;KAClB;CACkD,CAAC;AAEtD,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
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { LabelBitmap, RawImageData } from '@mbtech-nl/bitmap';
|
|
2
|
+
export { renderText, renderImage, rotateBitmap, flipHorizontal } from '@mbtech-nl/bitmap';
|
|
3
|
+
export { DEVICES, findDevice, isMassStorageMode } from './devices.js';
|
|
4
|
+
export { MEDIA, findMedia, findMediaByWidth } from './media.js';
|
|
5
|
+
export { encodeJob } from './protocol.js';
|
|
6
|
+
export { parseStatus, STATUS_REQUEST } from './status.js';
|
|
7
|
+
export type { MediaType, HeadWidth, ColorMode, NetworkSupport, DeviceDescriptor, MediaDescriptor, PageData, PageOptions, JobOptions, PrinterStatus, TextPrintOptions, ImagePrintOptions, } from './types.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D,YAAY,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { renderText, renderImage, rotateBitmap, flipHorizontal } from '@mbtech-nl/bitmap';
|
|
2
|
+
export { DEVICES, findDevice, isMassStorageMode } from './devices.js';
|
|
3
|
+
export { MEDIA, findMedia, findMediaByWidth } from './media.js';
|
|
4
|
+
export { encodeJob } from './protocol.js';
|
|
5
|
+
export { parseStatus, STATUS_REQUEST } from './status.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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;AAE1F,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/media.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type MediaDescriptor, type MediaType } from './types.js';
|
|
2
|
+
export declare const MEDIA: Record<number, MediaDescriptor>;
|
|
3
|
+
export declare function findMedia(id: number): MediaDescriptor | undefined;
|
|
4
|
+
export declare function findMediaByWidth(widthMm: number, type: MediaType): MediaDescriptor[];
|
|
5
|
+
//# sourceMappingURL=media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../src/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAElE,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CA+OjD,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEjE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,eAAe,EAAE,CAEpF"}
|