@psdk/esc 0.3.3 → 0.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/build/args/backlinedot.js +10 -6
- package/build/args/basic.js +6 -2
- package/build/args/batteryvolume.js +6 -2
- package/build/args/bttype.js +6 -2
- package/build/args/enable.js +6 -2
- package/build/args/getpapertypeq3.js +6 -2
- package/build/args/getshutdowntime.js +6 -2
- package/build/args/image.js +21 -13
- package/build/args/index.js +41 -25
- package/build/args/info.js +6 -2
- package/build/args/learnlabelgap.js +6 -2
- package/build/args/line.js +12 -7
- package/build/args/linedot.js +10 -6
- package/build/args/location.js +10 -6
- package/build/args/mac.js +6 -2
- package/build/args/model.js +6 -2
- package/build/args/name.js +6 -2
- package/build/args/papertype.js +11 -7
- package/build/args/papertypeq3.js +11 -7
- package/build/args/position.js +6 -2
- package/build/args/printerversion.js +6 -2
- package/build/args/setshutdowntime.js +10 -6
- package/build/args/sn.js +6 -2
- package/build/args/state.js +6 -2
- package/build/args/stopjob.js +6 -2
- package/build/args/thickness.js +10 -6
- package/build/args/version.js +6 -2
- package/build/args/wakeup.js +6 -2
- package/build/impls/basic.js +41 -27
- package/build/impls/esc.js +7 -3
- package/build/impls/generic.js +6 -2
- package/build/impls/index.js +18 -2
- package/build/index.js +18 -2
- package/build/types/image.js +5 -2
- package/build/types/index.js +19 -3
- package/build/types/papertype.d.ts +9 -1
- package/build/types/papertype.d.ts.map +1 -1
- package/build/types/papertype.js +13 -2
- package/build/types/papertypeq3.js +5 -2
- package/package.json +8 -10
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBackLineDot = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
3
6
|
/**
|
|
4
7
|
* BackLineDot
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
class EBackLineDot extends basic_1.BasicESCArg {
|
|
10
|
+
dot;
|
|
7
11
|
constructor(options) {
|
|
8
|
-
var _a;
|
|
9
12
|
super();
|
|
10
|
-
this.dot =
|
|
13
|
+
this.dot = options.dot ?? 0;
|
|
11
14
|
}
|
|
12
15
|
clause() {
|
|
13
|
-
return BinaryCommand.with(this.header())
|
|
16
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
14
17
|
.appendNumber(this.dot).clause();
|
|
15
18
|
}
|
|
16
19
|
header() {
|
|
17
20
|
return new Uint8Array([0x10, 0xFF, 0x81]);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
exports.EBackLineDot = EBackLineDot;
|
package/build/args/basic.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasicESCArg = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class BasicESCArg extends frame_father_1.EasyArg {
|
|
3
6
|
append(arg) {
|
|
4
7
|
super.append(arg);
|
|
5
8
|
return this;
|
|
@@ -12,3 +15,4 @@ export class BasicESCArg extends EasyArg {
|
|
|
12
15
|
return false;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
exports.BasicESCArg = BasicESCArg;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBatteryVolume = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EBatteryVolume extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x50, 0xF1]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EBatteryVolume = EBatteryVolume;
|
package/build/args/bttype.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBTType = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EBTType extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x1F, 0xB2, 0x10]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EBTType = EBTType;
|
package/build/args/enable.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EEnable = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EEnable extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0xFE, 0x01]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EEnable = EEnable;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EGetPaperTypeQ3 = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EGetPaperTypeQ3 extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x85]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EGetPaperTypeQ3 = EGetPaperTypeQ3;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EGetShutdownTime = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EGetShutdownTime extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x13]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EGetShutdownTime = EGetShutdownTime;
|
package/build/args/image.js
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EImage = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
const frame_imageb_1 = require("@psdk/frame-imageb");
|
|
5
8
|
/**
|
|
6
9
|
* Image
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
class EImage extends basic_1.BasicESCArg {
|
|
12
|
+
compress;
|
|
13
|
+
mode;
|
|
14
|
+
image;
|
|
15
|
+
reverse;
|
|
16
|
+
threshold;
|
|
9
17
|
constructor(options) {
|
|
10
|
-
var _a, _b, _c, _d;
|
|
11
18
|
super();
|
|
12
|
-
this.compress =
|
|
13
|
-
this.reverse =
|
|
14
|
-
this.threshold =
|
|
15
|
-
this.mode =
|
|
19
|
+
this.compress = options.compress ?? false;
|
|
20
|
+
this.reverse = options.reverse ?? false;
|
|
21
|
+
this.threshold = options.threshold ?? 190;
|
|
22
|
+
this.mode = options.mode ?? types_1.EImageMode.NORMAL;
|
|
16
23
|
this.image = options.image;
|
|
17
24
|
}
|
|
18
25
|
clause() {
|
|
19
|
-
const processer = new Pbita({
|
|
26
|
+
const processer = new frame_imageb_1.Pbita({
|
|
20
27
|
command: 'esc',
|
|
21
28
|
threshold: this.threshold,
|
|
22
29
|
compress: this.compress,
|
|
@@ -32,7 +39,7 @@ export class EImage extends BasicESCArg {
|
|
|
32
39
|
let height = fimage.height;
|
|
33
40
|
const eWidth = Math.floor((width % 8 === 0) ? (width / 8) : (width / 8 + 1));
|
|
34
41
|
if (this.compress) {
|
|
35
|
-
return BinaryCommand.with(this.header())
|
|
42
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
36
43
|
.appendNumber(eWidth / 256)
|
|
37
44
|
.appendNumber(eWidth % 256)
|
|
38
45
|
.appendNumber(height / 256)
|
|
@@ -44,7 +51,7 @@ export class EImage extends BasicESCArg {
|
|
|
44
51
|
.appendU8A(fbytes.subarray(2, fbytes.length))
|
|
45
52
|
.clause();
|
|
46
53
|
}
|
|
47
|
-
return BinaryCommand.with(this.header())
|
|
54
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
48
55
|
.appendNumber(this.mode)
|
|
49
56
|
.appendNumber(eWidth % 256)
|
|
50
57
|
.appendNumber(eWidth / 256)
|
|
@@ -57,3 +64,4 @@ export class EImage extends BasicESCArg {
|
|
|
57
64
|
return new Uint8Array(this.compress ? [0x1F, 0x00] : [0x1D, 0x76, 0x30]);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
67
|
+
exports.EImage = EImage;
|
package/build/args/index.js
CHANGED
|
@@ -1,25 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./backlinedot"), exports);
|
|
18
|
+
__exportStar(require("./basic"), exports);
|
|
19
|
+
__exportStar(require("./batteryvolume"), exports);
|
|
20
|
+
__exportStar(require("./enable"), exports);
|
|
21
|
+
__exportStar(require("./getshutdowntime"), exports);
|
|
22
|
+
__exportStar(require("./image"), exports);
|
|
23
|
+
__exportStar(require("./learnlabelgap"), exports);
|
|
24
|
+
__exportStar(require("./line"), exports);
|
|
25
|
+
__exportStar(require("./linedot"), exports);
|
|
26
|
+
__exportStar(require("./location"), exports);
|
|
27
|
+
__exportStar(require("./mac"), exports);
|
|
28
|
+
__exportStar(require("./model"), exports);
|
|
29
|
+
__exportStar(require("./name"), exports);
|
|
30
|
+
__exportStar(require("./papertype"), exports);
|
|
31
|
+
__exportStar(require("./position"), exports);
|
|
32
|
+
__exportStar(require("./printerversion"), exports);
|
|
33
|
+
__exportStar(require("./setshutdowntime"), exports);
|
|
34
|
+
__exportStar(require("./sn"), exports);
|
|
35
|
+
__exportStar(require("./state"), exports);
|
|
36
|
+
__exportStar(require("./stopjob"), exports);
|
|
37
|
+
__exportStar(require("./thickness"), exports);
|
|
38
|
+
__exportStar(require("./version"), exports);
|
|
39
|
+
__exportStar(require("./wakeup"), exports);
|
|
40
|
+
__exportStar(require("./info"), exports);
|
|
41
|
+
__exportStar(require("./bttype"), exports);
|
package/build/args/info.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EInfo = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EInfo extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x70]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EInfo = EInfo;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ELearnLabelGap = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class ELearnLabelGap extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x03]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.ELearnLabelGap = ELearnLabelGap;
|
package/build/args/line.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ELine = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
3
6
|
/**
|
|
4
7
|
* Line
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
class ELine extends basic_1.BasicESCArg {
|
|
10
|
+
x;
|
|
11
|
+
y;
|
|
7
12
|
constructor(options) {
|
|
8
|
-
var _a, _b;
|
|
9
13
|
super();
|
|
10
|
-
this.x =
|
|
11
|
-
this.y =
|
|
14
|
+
this.x = options.x ?? 0;
|
|
15
|
+
this.y = options.y ?? 0;
|
|
12
16
|
}
|
|
13
17
|
clause() {
|
|
14
|
-
return BinaryCommand.with(this.header())
|
|
18
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
15
19
|
.appendNumber(this.x)
|
|
16
20
|
.appendNumber(this.y)
|
|
17
21
|
.clause();
|
|
@@ -20,3 +24,4 @@ export class ELine extends BasicESCArg {
|
|
|
20
24
|
return new Uint8Array([0x00, 0x01]);
|
|
21
25
|
}
|
|
22
26
|
}
|
|
27
|
+
exports.ELine = ELine;
|
package/build/args/linedot.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ELineDot = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
3
6
|
/**
|
|
4
7
|
* LineDot
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
class ELineDot extends basic_1.BasicESCArg {
|
|
10
|
+
dot;
|
|
7
11
|
constructor(options) {
|
|
8
|
-
var _a;
|
|
9
12
|
super();
|
|
10
|
-
this.dot =
|
|
13
|
+
this.dot = options.dot ?? 0;
|
|
11
14
|
}
|
|
12
15
|
clause() {
|
|
13
|
-
return BinaryCommand.with(this.header())
|
|
16
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
14
17
|
.appendNumber(this.dot).clause();
|
|
15
18
|
}
|
|
16
19
|
header() {
|
|
17
20
|
return new Uint8Array([0x1B, 0x4A]);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
exports.ELineDot = ELineDot;
|
package/build/args/location.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ELocation = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
3
6
|
/**
|
|
4
7
|
* Location
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
class ELocation extends basic_1.BasicESCArg {
|
|
10
|
+
location;
|
|
7
11
|
constructor(options) {
|
|
8
|
-
var _a;
|
|
9
12
|
super();
|
|
10
|
-
this.location =
|
|
13
|
+
this.location = options.location ?? 0;
|
|
11
14
|
}
|
|
12
15
|
clause() {
|
|
13
|
-
return BinaryCommand.with(this.header())
|
|
16
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
14
17
|
.appendNumber(this.location).clause();
|
|
15
18
|
}
|
|
16
19
|
header() {
|
|
17
20
|
return new Uint8Array([0x1b, 0x61]);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
exports.ELocation = ELocation;
|
package/build/args/mac.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMac = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EMac extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x30, 0x12]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EMac = EMac;
|
package/build/args/model.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EModel = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EModel extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x20, 0xF0]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EModel = EModel;
|
package/build/args/name.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EName = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EName extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x30, 0x11]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EName = EName;
|
package/build/args/papertype.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPaperType = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
class EPaperType extends basic_1.BasicESCArg {
|
|
8
|
+
paperType;
|
|
5
9
|
constructor(options) {
|
|
6
|
-
var _a;
|
|
7
10
|
super();
|
|
8
|
-
this.paperType =
|
|
11
|
+
this.paperType = options.paperType ?? types_1.PaperType.FOLDED_BLACK_LABEL_PAPER;
|
|
9
12
|
}
|
|
10
13
|
clause() {
|
|
11
|
-
return BinaryCommand.with(this.header())
|
|
14
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
12
15
|
.appendNumber(this.paperType).clause();
|
|
13
16
|
}
|
|
14
17
|
header() {
|
|
15
18
|
return new Uint8Array([0x10, 0xff, 0x10, 0x03]);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
21
|
+
exports.EPaperType = EPaperType;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPaperTypeQ3 = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
class EPaperTypeQ3 extends basic_1.BasicESCArg {
|
|
8
|
+
paperType;
|
|
5
9
|
constructor(options) {
|
|
6
|
-
var _a;
|
|
7
10
|
super();
|
|
8
|
-
this.paperType =
|
|
11
|
+
this.paperType = options.paperType ?? types_1.PaperTypeQ3.CONTINUOUS_REEL_PAPER;
|
|
9
12
|
}
|
|
10
13
|
clause() {
|
|
11
|
-
return BinaryCommand.with(this.header())
|
|
14
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
12
15
|
.appendNumber(this.paperType).clause();
|
|
13
16
|
}
|
|
14
17
|
header() {
|
|
15
18
|
return new Uint8Array([0x10, 0xff, 0x84]);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
21
|
+
exports.EPaperTypeQ3 = EPaperTypeQ3;
|
package/build/args/position.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPosition = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EPosition extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x1d, 0x0c]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EPosition = EPosition;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPrinterVersion = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EPrinterVersion extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x20, 0xF1]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EPrinterVersion = EPrinterVersion;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESetShutdownTime = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
6
|
+
class ESetShutdownTime extends basic_1.BasicESCArg {
|
|
7
|
+
time;
|
|
4
8
|
constructor(options) {
|
|
5
|
-
var _a;
|
|
6
9
|
super();
|
|
7
|
-
this.time =
|
|
10
|
+
this.time = options.time ?? 0;
|
|
8
11
|
}
|
|
9
12
|
clause() {
|
|
10
|
-
return BinaryCommand.with(this.header())
|
|
13
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
11
14
|
.appendNumber(this.time / 256)
|
|
12
15
|
.appendNumber(this.time % 256)
|
|
13
16
|
.clause();
|
|
@@ -16,3 +19,4 @@ export class ESetShutdownTime extends BasicESCArg {
|
|
|
16
19
|
return new Uint8Array([0x10, 0xFF, 0x12]);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
exports.ESetShutdownTime = ESetShutdownTime;
|
package/build/args/sn.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESN = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class ESN extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x20, 0xF2]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.ESN = ESN;
|
package/build/args/state.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EState = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EState extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x40]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EState = EState;
|
package/build/args/stopjob.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EStopJob = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EStopJob extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0xFE, 0x45]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EStopJob = EStopJob;
|
package/build/args/thickness.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EThickness = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
6
|
+
class EThickness extends basic_1.BasicESCArg {
|
|
7
|
+
thickness;
|
|
4
8
|
constructor(options) {
|
|
5
|
-
var _a;
|
|
6
9
|
super();
|
|
7
|
-
this.thickness =
|
|
10
|
+
this.thickness = options.thickness ?? 0;
|
|
8
11
|
}
|
|
9
12
|
clause() {
|
|
10
|
-
return BinaryCommand.with(this.header())
|
|
13
|
+
return frame_father_1.BinaryCommand.with(this.header())
|
|
11
14
|
.appendNumber(this.thickness).clause();
|
|
12
15
|
}
|
|
13
16
|
header() {
|
|
14
17
|
return new Uint8Array([0x10, 0xFF, 0x10, 0x00]);
|
|
15
18
|
}
|
|
16
19
|
}
|
|
20
|
+
exports.EThickness = EThickness;
|
package/build/args/version.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVersion = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EVersion extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([0x10, 0xFF, 0x30, 0x10]);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.EVersion = EVersion;
|
package/build/args/wakeup.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EWakeup = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
class EWakeup extends frame_father_1.OnlyBinaryHeaderArg {
|
|
3
6
|
header() {
|
|
4
7
|
return new Uint8Array([
|
|
5
8
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
@@ -7,3 +10,4 @@ export class EWakeup extends OnlyBinaryHeaderArg {
|
|
|
7
10
|
]);
|
|
8
11
|
}
|
|
9
12
|
}
|
|
13
|
+
exports.EWakeup = EWakeup;
|
package/build/impls/basic.js
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasicESC = void 0;
|
|
4
|
+
const frame_father_1 = require("@psdk/frame-father");
|
|
5
|
+
const args_1 = require("../args");
|
|
6
|
+
const getpapertypeq3_1 = require("../args/getpapertypeq3");
|
|
7
|
+
class BasicESC extends frame_father_1.PSDK {
|
|
8
|
+
/**
|
|
9
|
+
* lifecycle
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
_lifecycle;
|
|
13
|
+
/**
|
|
14
|
+
* commander
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
_commander;
|
|
5
18
|
constructor(lifecycle) {
|
|
6
19
|
super();
|
|
7
20
|
this._lifecycle = lifecycle;
|
|
8
|
-
this._commander = Commander.make();
|
|
21
|
+
this._commander = frame_father_1.Commander.make();
|
|
9
22
|
}
|
|
10
23
|
connectedDevice() {
|
|
11
24
|
return this._lifecycle.connectedDevice;
|
|
@@ -18,7 +31,7 @@ export class BasicESC extends PSDK {
|
|
|
18
31
|
* @param arg
|
|
19
32
|
*/
|
|
20
33
|
lineDot(arg) {
|
|
21
|
-
return super.push(new ELineDot({ dot: arg }));
|
|
34
|
+
return super.push(new args_1.ELineDot({ dot: arg }));
|
|
22
35
|
}
|
|
23
36
|
/**
|
|
24
37
|
* 回纸命令
|
|
@@ -26,25 +39,25 @@ export class BasicESC extends PSDK {
|
|
|
26
39
|
* @param arg
|
|
27
40
|
*/
|
|
28
41
|
backLineDot(arg) {
|
|
29
|
-
return super.push(new EBackLineDot({ dot: arg }));
|
|
42
|
+
return super.push(new args_1.EBackLineDot({ dot: arg }));
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
45
|
* 查询电量
|
|
33
46
|
*/
|
|
34
47
|
batteryVolume() {
|
|
35
|
-
return super.push(new EBatteryVolume());
|
|
48
|
+
return super.push(new args_1.EBatteryVolume());
|
|
36
49
|
}
|
|
37
50
|
/**
|
|
38
51
|
* 使能打印机
|
|
39
52
|
*/
|
|
40
53
|
enable() {
|
|
41
|
-
return super.push(new EEnable());
|
|
54
|
+
return super.push(new args_1.EEnable());
|
|
42
55
|
}
|
|
43
56
|
/**
|
|
44
57
|
* 获取关机时间
|
|
45
58
|
*/
|
|
46
59
|
getShutdownTime() {
|
|
47
|
-
return super.push(new EGetShutdownTime());
|
|
60
|
+
return super.push(new args_1.EGetShutdownTime());
|
|
48
61
|
}
|
|
49
62
|
/**
|
|
50
63
|
* 打印图片
|
|
@@ -56,7 +69,7 @@ export class BasicESC extends PSDK {
|
|
|
56
69
|
*学习缝隙
|
|
57
70
|
*/
|
|
58
71
|
learnLabelGap() {
|
|
59
|
-
return super.push(new ELearnLabelGap());
|
|
72
|
+
return super.push(new args_1.ELearnLabelGap());
|
|
60
73
|
}
|
|
61
74
|
/**
|
|
62
75
|
*画线
|
|
@@ -69,31 +82,31 @@ export class BasicESC extends PSDK {
|
|
|
69
82
|
* @param arg 0:居左 1:居中 2:居右
|
|
70
83
|
*/
|
|
71
84
|
location(arg) {
|
|
72
|
-
return super.push(new ELocation({ location: arg }));
|
|
85
|
+
return super.push(new args_1.ELocation({ location: arg }));
|
|
73
86
|
}
|
|
74
87
|
/**
|
|
75
88
|
*查询MAC
|
|
76
89
|
*/
|
|
77
90
|
mac() {
|
|
78
|
-
return super.push(new EMac());
|
|
91
|
+
return super.push(new args_1.EMac());
|
|
79
92
|
}
|
|
80
93
|
/**
|
|
81
94
|
* 查询打印机所有信息
|
|
82
95
|
*/
|
|
83
96
|
info() {
|
|
84
|
-
return super.push(new EInfo());
|
|
97
|
+
return super.push(new args_1.EInfo());
|
|
85
98
|
}
|
|
86
99
|
/**
|
|
87
100
|
*查询打印机型号
|
|
88
101
|
*/
|
|
89
102
|
model() {
|
|
90
|
-
return super.push(new EModel());
|
|
103
|
+
return super.push(new args_1.EModel());
|
|
91
104
|
}
|
|
92
105
|
/**
|
|
93
106
|
*查询蓝牙名称
|
|
94
107
|
*/
|
|
95
108
|
name() {
|
|
96
|
-
return super.push(new EName());
|
|
109
|
+
return super.push(new args_1.EName());
|
|
97
110
|
}
|
|
98
111
|
/**
|
|
99
112
|
*纸张类型
|
|
@@ -112,67 +125,68 @@ export class BasicESC extends PSDK {
|
|
|
112
125
|
* 返回值:0X01 黑标纸,0x02 连续纸,否则:间隙
|
|
113
126
|
*/
|
|
114
127
|
getPaperTypeQ3() {
|
|
115
|
-
return super.push(new EGetPaperTypeQ3());
|
|
128
|
+
return super.push(new getpapertypeq3_1.EGetPaperTypeQ3());
|
|
116
129
|
}
|
|
117
130
|
/**
|
|
118
131
|
* 打印定位
|
|
119
132
|
*/
|
|
120
133
|
position() {
|
|
121
|
-
return super.push(new EPosition());
|
|
134
|
+
return super.push(new args_1.EPosition());
|
|
122
135
|
}
|
|
123
136
|
/**
|
|
124
137
|
* 查询打印机固件版本
|
|
125
138
|
*/
|
|
126
139
|
printerVersion() {
|
|
127
|
-
return super.push(new EPrinterVersion());
|
|
140
|
+
return super.push(new args_1.EPrinterVersion());
|
|
128
141
|
}
|
|
129
142
|
/**
|
|
130
143
|
* 设置关机时间
|
|
131
144
|
*/
|
|
132
145
|
setShutdownTime(arg) {
|
|
133
|
-
return super.push(new ESetShutdownTime({ time: arg }));
|
|
146
|
+
return super.push(new args_1.ESetShutdownTime({ time: arg }));
|
|
134
147
|
}
|
|
135
148
|
/**
|
|
136
149
|
*查询SN
|
|
137
150
|
*/
|
|
138
151
|
sn() {
|
|
139
|
-
return super.push(new ESN());
|
|
152
|
+
return super.push(new args_1.ESN());
|
|
140
153
|
}
|
|
141
154
|
/**
|
|
142
155
|
*查询打印机状态
|
|
143
156
|
*/
|
|
144
157
|
state() {
|
|
145
|
-
return super.push(new EState());
|
|
158
|
+
return super.push(new args_1.EState());
|
|
146
159
|
}
|
|
147
160
|
/**
|
|
148
161
|
*结束打印任务
|
|
149
162
|
*/
|
|
150
163
|
stopJob() {
|
|
151
|
-
return super.push(new EStopJob());
|
|
164
|
+
return super.push(new args_1.EStopJob());
|
|
152
165
|
}
|
|
153
166
|
/**
|
|
154
167
|
* 设置打印机浓度(0-2)
|
|
155
168
|
* @param arg 0:低浓度 1:中浓度 2:高浓度
|
|
156
169
|
*/
|
|
157
170
|
thickness(arg) {
|
|
158
|
-
return super.push(new EThickness({ thickness: arg }));
|
|
171
|
+
return super.push(new args_1.EThickness({ thickness: arg }));
|
|
159
172
|
}
|
|
160
173
|
/**
|
|
161
174
|
*查询蓝牙固件版本
|
|
162
175
|
*/
|
|
163
176
|
version() {
|
|
164
|
-
return super.push(new EVersion());
|
|
177
|
+
return super.push(new args_1.EVersion());
|
|
165
178
|
}
|
|
166
179
|
/**
|
|
167
180
|
*唤醒打印机
|
|
168
181
|
*/
|
|
169
182
|
wakeup() {
|
|
170
|
-
return super.push(new EWakeup());
|
|
183
|
+
return super.push(new args_1.EWakeup());
|
|
171
184
|
}
|
|
172
185
|
/**
|
|
173
186
|
* 设置蓝牙类型(支持压缩的机器需要调用)
|
|
174
187
|
*/
|
|
175
188
|
setBTType() {
|
|
176
|
-
return super.push(new EBTType());
|
|
189
|
+
return super.push(new args_1.EBTType());
|
|
177
190
|
}
|
|
178
191
|
}
|
|
192
|
+
exports.BasicESC = BasicESC;
|
package/build/impls/esc.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ESC = void 0;
|
|
4
|
+
const generic_1 = require("./generic");
|
|
2
5
|
/**
|
|
3
6
|
* ESC entrypoint
|
|
4
7
|
*/
|
|
5
|
-
|
|
8
|
+
class ESC {
|
|
6
9
|
/**
|
|
7
10
|
* Generic esc command
|
|
8
11
|
* @param lifecycle lifecycle
|
|
9
12
|
*/
|
|
10
13
|
static generic(lifecycle) {
|
|
11
|
-
return new GenericESC(lifecycle);
|
|
14
|
+
return new generic_1.GenericESC(lifecycle);
|
|
12
15
|
}
|
|
13
16
|
}
|
|
17
|
+
exports.ESC = ESC;
|
package/build/impls/generic.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenericESC = void 0;
|
|
4
|
+
const basic_1 = require("./basic");
|
|
5
|
+
class GenericESC extends basic_1.BasicESC {
|
|
3
6
|
constructor(lifecycle) {
|
|
4
7
|
super(lifecycle);
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
exports.GenericESC = GenericESC;
|
package/build/impls/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./generic"), exports);
|
|
18
|
+
__exportStar(require("./esc"), exports);
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./impls"), exports);
|
|
18
|
+
__exportStar(require("./args"), exports);
|
package/build/types/image.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EImageMode = void 0;
|
|
4
|
+
var EImageMode;
|
|
2
5
|
(function (EImageMode) {
|
|
3
6
|
EImageMode[EImageMode["NORMAL"] = 0] = "NORMAL";
|
|
4
7
|
EImageMode[EImageMode["DOUBLE_WIDTH"] = 1] = "DOUBLE_WIDTH";
|
|
5
8
|
EImageMode[EImageMode["DOUBLE_HEIGHT"] = 2] = "DOUBLE_HEIGHT";
|
|
6
9
|
EImageMode[EImageMode["DOUBLE_WIDTH_HEIGHT"] = 3] = "DOUBLE_WIDTH_HEIGHT";
|
|
7
|
-
})(EImageMode || (EImageMode = {}));
|
|
10
|
+
})(EImageMode || (exports.EImageMode = EImageMode = {}));
|
package/build/types/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./image"), exports);
|
|
18
|
+
__exportStar(require("./papertype"), exports);
|
|
19
|
+
__exportStar(require("./papertypeq3"), exports);
|
|
@@ -10,6 +10,14 @@ export declare enum PaperType {
|
|
|
10
10
|
/**
|
|
11
11
|
* 不干胶缝隙纸
|
|
12
12
|
*/
|
|
13
|
-
NO_DRY_ADHESIVE_PAPER = 2
|
|
13
|
+
NO_DRY_ADHESIVE_PAPER = 2,
|
|
14
|
+
/**
|
|
15
|
+
* 打孔纸
|
|
16
|
+
*/
|
|
17
|
+
HOLE_PAPER = 3,
|
|
18
|
+
/**
|
|
19
|
+
* 纹身纸
|
|
20
|
+
*/
|
|
21
|
+
TATTOO_PAPER = 4
|
|
14
22
|
}
|
|
15
23
|
//# sourceMappingURL=papertype.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"papertype.d.ts","sourceRoot":"","sources":["../../src/types/papertype.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS;IAEnB;;OAEG;IACH,wBAAwB,IAAE;IAC1B;;OAEG;IACH,qBAAqB,IAAE;IACvB;;OAEG;IACH,qBAAqB,IAAE;
|
|
1
|
+
{"version":3,"file":"papertype.d.ts","sourceRoot":"","sources":["../../src/types/papertype.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS;IAEnB;;OAEG;IACH,wBAAwB,IAAE;IAC1B;;OAEG;IACH,qBAAqB,IAAE;IACvB;;OAEG;IACH,qBAAqB,IAAE;IACvB;;OAEG;IACH,UAAU,IAAE;IACZ;;OAEG;IACH,YAAY,IAAE;CACf"}
|
package/build/types/papertype.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaperType = void 0;
|
|
4
|
+
var PaperType;
|
|
2
5
|
(function (PaperType) {
|
|
3
6
|
/**
|
|
4
7
|
* 折叠黑标纸
|
|
@@ -12,4 +15,12 @@ export var PaperType;
|
|
|
12
15
|
* 不干胶缝隙纸
|
|
13
16
|
*/
|
|
14
17
|
PaperType[PaperType["NO_DRY_ADHESIVE_PAPER"] = 2] = "NO_DRY_ADHESIVE_PAPER";
|
|
15
|
-
|
|
18
|
+
/**
|
|
19
|
+
* 打孔纸
|
|
20
|
+
*/
|
|
21
|
+
PaperType[PaperType["HOLE_PAPER"] = 3] = "HOLE_PAPER";
|
|
22
|
+
/**
|
|
23
|
+
* 纹身纸
|
|
24
|
+
*/
|
|
25
|
+
PaperType[PaperType["TATTOO_PAPER"] = 4] = "TATTOO_PAPER";
|
|
26
|
+
})(PaperType || (exports.PaperType = PaperType = {}));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaperTypeQ3 = void 0;
|
|
4
|
+
var PaperTypeQ3;
|
|
2
5
|
(function (PaperTypeQ3) {
|
|
3
6
|
/**
|
|
4
7
|
* 不干胶缝隙纸
|
|
@@ -12,4 +15,4 @@ export var PaperTypeQ3;
|
|
|
12
15
|
* 连续卷筒纸
|
|
13
16
|
*/
|
|
14
17
|
PaperTypeQ3[PaperTypeQ3["CONTINUOUS_REEL_PAPER"] = 2] = "CONTINUOUS_REEL_PAPER";
|
|
15
|
-
})(PaperTypeQ3 || (PaperTypeQ3 = {}));
|
|
18
|
+
})(PaperTypeQ3 || (exports.PaperTypeQ3 = PaperTypeQ3 = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@psdk/esc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "psdk",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -15,23 +15,21 @@
|
|
|
15
15
|
},
|
|
16
16
|
"author": "",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@babel/core": "^7.24.5",
|
|
19
|
-
"@babel/preset-env": "^7.24.5",
|
|
20
|
-
"@babel/preset-typescript": "^7.24.1",
|
|
21
18
|
"@types/jest": "^29.5.12",
|
|
22
19
|
"@vercel/ncc": "^0.38.1",
|
|
23
|
-
"babel-jest": "^29.7.0",
|
|
24
20
|
"jest": "^29.7.0",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
21
|
+
"ts-jest": "^29.1.5",
|
|
22
|
+
"ts-node": "^10.9.2",
|
|
23
|
+
"typedoc": "^0.26.4",
|
|
24
|
+
"typescript": "^5.5.3"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
|
-
"@psdk/frame-father": "0.
|
|
30
|
-
"@psdk/frame-imageb": "0.
|
|
27
|
+
"@psdk/frame-father": "0.4.0",
|
|
28
|
+
"@psdk/frame-imageb": "0.4.0"
|
|
31
29
|
},
|
|
32
30
|
"files": [
|
|
33
31
|
"build",
|
|
34
32
|
"!build/browser/psdk*"
|
|
35
33
|
],
|
|
36
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "13fa8cc6aacbf8f6bacb5f485da11a7610001f61"
|
|
37
35
|
}
|