@thermal-label/brother-ql-core 0.4.0 → 0.5.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/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,13 @@ export { flipHorizontal, renderImage, renderMultiPlaneImage, renderText, rotateB
|
|
|
3
3
|
export type { DeviceEntry, DeviceRegistry, DeviceTransports, MediaDescriptor, PreviewOptions, PreviewPlane, PreviewResult, PrintEngine, PrintEngineCapabilities, PrintOptions, PrinterAdapter, PrinterError, PrinterStatus, RotateDirection, Transport, TransportType, UsbTransport, } from '@thermal-label/contracts';
|
|
4
4
|
export { MediaNotSpecifiedError, pickRotation, UnsupportedOperationError, } from '@thermal-label/contracts';
|
|
5
5
|
export { DEVICE_REGISTRY, DEVICES, findDevice, getUsbIds, isMassStorageMode } from './devices.js';
|
|
6
|
+
/**
|
|
7
|
+
* Protocols this core's encoder produces correct wire bytes for.
|
|
8
|
+
* Pair with `DEVICE_REGISTRY` and pass to `resolveSupportedDevices`
|
|
9
|
+
* from `@thermal-label/contracts` to filter a device list down to
|
|
10
|
+
* what this runtime can actually drive.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PROTOCOLS: ReadonlySet<string>;
|
|
6
13
|
export { DEFAULT_MEDIA, DEFAULT_PT_MEDIA, MEDIA, defaultMediaForEngine, findMedia, findMediaByDimensions, findMediaByWidth, resolveTapeGeometry, } from './media.js';
|
|
7
14
|
export { ROTATE_DIRECTION } from './orientation.js';
|
|
8
15
|
export { encodeJob, encodeJobForEngine, PT_PROTOCOL_CONFIG, QL_PROTOCOL_CONFIG, } from './protocol.js';
|
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,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EACL,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,SAAS,EACT,aAAa,EACb,YAAY,GACb,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAElG;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CAAuC,CAAC;AAClF,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,YAAY,EACV,yBAAyB,EACzB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAU,GACX,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export { flipHorizontal, renderImage, renderMultiPlaneImage, renderText, rotateBitmap, } from '@mbtech-nl/bitmap';
|
|
2
2
|
export { MediaNotSpecifiedError, pickRotation, UnsupportedOperationError, } from '@thermal-label/contracts';
|
|
3
3
|
export { DEVICE_REGISTRY, DEVICES, findDevice, getUsbIds, isMassStorageMode } from './devices.js';
|
|
4
|
+
/**
|
|
5
|
+
* Protocols this core's encoder produces correct wire bytes for.
|
|
6
|
+
* Pair with `DEVICE_REGISTRY` and pass to `resolveSupportedDevices`
|
|
7
|
+
* from `@thermal-label/contracts` to filter a device list down to
|
|
8
|
+
* what this runtime can actually drive.
|
|
9
|
+
*/
|
|
10
|
+
export const PROTOCOLS = new Set(['ql-raster', 'pt-raster']);
|
|
4
11
|
export { DEFAULT_MEDIA, DEFAULT_PT_MEDIA, MEDIA, defaultMediaForEngine, findMedia, findMediaByDimensions, findMediaByWidth, resolveTapeGeometry, } from './media.js';
|
|
5
12
|
export { ROTATE_DIRECTION } from './orientation.js';
|
|
6
13
|
export { encodeJob, encodeJobForEngine, PT_PROTOCOL_CONFIG, QL_PROTOCOL_CONFIG, } from './protocol.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAsB3B,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,YAAY,GACb,MAAM,mBAAmB,CAAC;AAsB3B,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAElG;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAwB,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAClF,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thermal-label/brother-ql-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Protocol encoding, device registry, and media registry for Brother QL label printers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"brother",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@mbtech-nl/bitmap": "^1.3.0",
|
|
59
|
-
"@thermal-label/contracts": "^0.
|
|
59
|
+
"@thermal-label/contracts": "^0.5.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@mbtech-nl/tsconfig": "^1.1.0",
|
package/src/index.ts
CHANGED
|
@@ -34,6 +34,14 @@ export {
|
|
|
34
34
|
} from '@thermal-label/contracts';
|
|
35
35
|
|
|
36
36
|
export { DEVICE_REGISTRY, DEVICES, findDevice, getUsbIds, isMassStorageMode } from './devices.js';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Protocols this core's encoder produces correct wire bytes for.
|
|
40
|
+
* Pair with `DEVICE_REGISTRY` and pass to `resolveSupportedDevices`
|
|
41
|
+
* from `@thermal-label/contracts` to filter a device list down to
|
|
42
|
+
* what this runtime can actually drive.
|
|
43
|
+
*/
|
|
44
|
+
export const PROTOCOLS: ReadonlySet<string> = new Set(['ql-raster', 'pt-raster']);
|
|
37
45
|
export {
|
|
38
46
|
DEFAULT_MEDIA,
|
|
39
47
|
DEFAULT_PT_MEDIA,
|