@psdk/esc 0.7.16 → 0.7.18
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 +8 -2
- package/build/args/image.js +35 -9
- package/build/args/line.js +15 -4
- package/build/args/linedot.js +8 -2
- package/build/args/location.js +8 -2
- package/build/args/papertype.js +8 -2
- package/build/args/papertypeq3.js +8 -2
- package/build/args/setcurrenttime.js +50 -14
- package/build/args/setshutdowntime.js +8 -2
- package/build/args/thickness.js +8 -2
- package/build/impls/basic.js +20 -10
- package/dist/index.js +4 -4
- package/dist/index.js.map +3 -3
- package/package.json +4 -4
|
@@ -7,10 +7,16 @@ const frame_father_1 = require("@psdk/frame-father");
|
|
|
7
7
|
* BackLineDot
|
|
8
8
|
*/
|
|
9
9
|
class EBackLineDot extends basic_1.BasicESCArg {
|
|
10
|
-
dot;
|
|
11
10
|
constructor(options) {
|
|
11
|
+
var _a;
|
|
12
12
|
super();
|
|
13
|
-
this
|
|
13
|
+
Object.defineProperty(this, "dot", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
this.dot = (_a = options.dot) !== null && _a !== void 0 ? _a : 0;
|
|
14
20
|
}
|
|
15
21
|
clause() {
|
|
16
22
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/args/image.js
CHANGED
|
@@ -9,17 +9,43 @@ const frame_imageb_1 = require("@psdk/frame-imageb");
|
|
|
9
9
|
* Image
|
|
10
10
|
*/
|
|
11
11
|
class EImage extends basic_1.BasicESCArg {
|
|
12
|
-
compress;
|
|
13
|
-
mode;
|
|
14
|
-
image;
|
|
15
|
-
reverse;
|
|
16
|
-
threshold;
|
|
17
12
|
constructor(options) {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
18
14
|
super();
|
|
19
|
-
this
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
Object.defineProperty(this, "compress", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: void 0
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "mode", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "image", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: void 0
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(this, "reverse", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: void 0
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(this, "threshold", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: void 0
|
|
44
|
+
});
|
|
45
|
+
this.compress = (_a = options.compress) !== null && _a !== void 0 ? _a : false;
|
|
46
|
+
this.reverse = (_b = options.reverse) !== null && _b !== void 0 ? _b : false;
|
|
47
|
+
this.threshold = (_c = options.threshold) !== null && _c !== void 0 ? _c : 190;
|
|
48
|
+
this.mode = (_d = options.mode) !== null && _d !== void 0 ? _d : types_1.EImageMode.NORMAL;
|
|
23
49
|
this.image = options.image;
|
|
24
50
|
}
|
|
25
51
|
clause() {
|
package/build/args/line.js
CHANGED
|
@@ -7,12 +7,23 @@ const frame_father_1 = require("@psdk/frame-father");
|
|
|
7
7
|
* Line
|
|
8
8
|
*/
|
|
9
9
|
class ELine extends basic_1.BasicESCArg {
|
|
10
|
-
x;
|
|
11
|
-
y;
|
|
12
10
|
constructor(options) {
|
|
11
|
+
var _a, _b;
|
|
13
12
|
super();
|
|
14
|
-
this
|
|
15
|
-
|
|
13
|
+
Object.defineProperty(this, "x", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(this, "y", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
this.x = (_a = options.x) !== null && _a !== void 0 ? _a : 0;
|
|
26
|
+
this.y = (_b = options.y) !== null && _b !== void 0 ? _b : 0;
|
|
16
27
|
}
|
|
17
28
|
clause() {
|
|
18
29
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/args/linedot.js
CHANGED
|
@@ -7,10 +7,16 @@ const frame_father_1 = require("@psdk/frame-father");
|
|
|
7
7
|
* LineDot
|
|
8
8
|
*/
|
|
9
9
|
class ELineDot extends basic_1.BasicESCArg {
|
|
10
|
-
dot;
|
|
11
10
|
constructor(options) {
|
|
11
|
+
var _a;
|
|
12
12
|
super();
|
|
13
|
-
this
|
|
13
|
+
Object.defineProperty(this, "dot", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
this.dot = (_a = options.dot) !== null && _a !== void 0 ? _a : 0;
|
|
14
20
|
}
|
|
15
21
|
clause() {
|
|
16
22
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/args/location.js
CHANGED
|
@@ -7,10 +7,16 @@ const frame_father_1 = require("@psdk/frame-father");
|
|
|
7
7
|
* Location
|
|
8
8
|
*/
|
|
9
9
|
class ELocation extends basic_1.BasicESCArg {
|
|
10
|
-
location;
|
|
11
10
|
constructor(options) {
|
|
11
|
+
var _a;
|
|
12
12
|
super();
|
|
13
|
-
this
|
|
13
|
+
Object.defineProperty(this, "location", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
this.location = (_a = options.location) !== null && _a !== void 0 ? _a : 0;
|
|
14
20
|
}
|
|
15
21
|
clause() {
|
|
16
22
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/args/papertype.js
CHANGED
|
@@ -5,10 +5,16 @@ const basic_1 = require("./basic");
|
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
class EPaperType extends basic_1.BasicESCArg {
|
|
8
|
-
paperType;
|
|
9
8
|
constructor(options) {
|
|
9
|
+
var _a;
|
|
10
10
|
super();
|
|
11
|
-
this
|
|
11
|
+
Object.defineProperty(this, "paperType", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
this.paperType = (_a = options.paperType) !== null && _a !== void 0 ? _a : types_1.PaperType.FOLDED_BLACK_LABEL_PAPER;
|
|
12
18
|
}
|
|
13
19
|
clause() {
|
|
14
20
|
return frame_father_1.BinaryCommand.with(this.header())
|
|
@@ -5,10 +5,16 @@ const basic_1 = require("./basic");
|
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
class EPaperTypeQ3 extends basic_1.BasicESCArg {
|
|
8
|
-
paperType;
|
|
9
8
|
constructor(options) {
|
|
9
|
+
var _a;
|
|
10
10
|
super();
|
|
11
|
-
this
|
|
11
|
+
Object.defineProperty(this, "paperType", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
this.paperType = (_a = options.paperType) !== null && _a !== void 0 ? _a : types_1.PaperTypeQ3.CONTINUOUS_REEL_PAPER;
|
|
12
18
|
}
|
|
13
19
|
clause() {
|
|
14
20
|
return frame_father_1.BinaryCommand.with(this.header())
|
|
@@ -4,22 +4,58 @@ exports.ESetCurrentTime = void 0;
|
|
|
4
4
|
const basic_1 = require("./basic");
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
class ESetCurrentTime extends basic_1.BasicESCArg {
|
|
7
|
-
second;
|
|
8
|
-
minute;
|
|
9
|
-
hour;
|
|
10
|
-
day;
|
|
11
|
-
week;
|
|
12
|
-
month;
|
|
13
|
-
year;
|
|
14
7
|
constructor(options) {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
15
9
|
super();
|
|
16
|
-
this
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this
|
|
10
|
+
Object.defineProperty(this, "second", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "minute", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: void 0
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "hour", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: void 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "day", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "week", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(this, "month", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: void 0
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(this, "year", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: void 0
|
|
51
|
+
});
|
|
52
|
+
this.second = (_a = options.second) !== null && _a !== void 0 ? _a : 0;
|
|
53
|
+
this.minute = (_b = options.minute) !== null && _b !== void 0 ? _b : 0;
|
|
54
|
+
this.hour = (_c = options.hour) !== null && _c !== void 0 ? _c : 0;
|
|
55
|
+
this.day = (_d = options.day) !== null && _d !== void 0 ? _d : 0;
|
|
56
|
+
this.week = (_e = options.week) !== null && _e !== void 0 ? _e : 0;
|
|
57
|
+
this.month = (_f = options.mouth) !== null && _f !== void 0 ? _f : 0;
|
|
58
|
+
this.year = (_g = options.year) !== null && _g !== void 0 ? _g : 0;
|
|
23
59
|
}
|
|
24
60
|
clause() {
|
|
25
61
|
return frame_father_1.BinaryCommand.with(this.header())
|
|
@@ -4,10 +4,16 @@ exports.ESetShutdownTime = void 0;
|
|
|
4
4
|
const basic_1 = require("./basic");
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
class ESetShutdownTime extends basic_1.BasicESCArg {
|
|
7
|
-
time;
|
|
8
7
|
constructor(options) {
|
|
8
|
+
var _a;
|
|
9
9
|
super();
|
|
10
|
-
this
|
|
10
|
+
Object.defineProperty(this, "time", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
this.time = (_a = options.time) !== null && _a !== void 0 ? _a : 0;
|
|
11
17
|
}
|
|
12
18
|
clause() {
|
|
13
19
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/args/thickness.js
CHANGED
|
@@ -4,10 +4,16 @@ exports.EThickness = void 0;
|
|
|
4
4
|
const basic_1 = require("./basic");
|
|
5
5
|
const frame_father_1 = require("@psdk/frame-father");
|
|
6
6
|
class EThickness extends basic_1.BasicESCArg {
|
|
7
|
-
thickness;
|
|
8
7
|
constructor(options) {
|
|
8
|
+
var _a;
|
|
9
9
|
super();
|
|
10
|
-
this
|
|
10
|
+
Object.defineProperty(this, "thickness", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
this.thickness = (_a = options.thickness) !== null && _a !== void 0 ? _a : 0;
|
|
11
17
|
}
|
|
12
18
|
clause() {
|
|
13
19
|
return frame_father_1.BinaryCommand.with(this.header())
|
package/build/impls/basic.js
CHANGED
|
@@ -4,18 +4,28 @@ exports.BasicESC = void 0;
|
|
|
4
4
|
const frame_father_1 = require("@psdk/frame-father");
|
|
5
5
|
const args_1 = require("../args");
|
|
6
6
|
class BasicESC extends frame_father_1.PSDK {
|
|
7
|
-
/**
|
|
8
|
-
* lifecycle
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
_lifecycle;
|
|
12
|
-
/**
|
|
13
|
-
* commander
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
_commander;
|
|
17
7
|
constructor(lifecycle) {
|
|
18
8
|
super();
|
|
9
|
+
/**
|
|
10
|
+
* lifecycle
|
|
11
|
+
* @private
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(this, "_lifecycle", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* commander
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
Object.defineProperty(this, "_commander", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
19
29
|
this._lifecycle = lifecycle;
|
|
20
30
|
this._commander = frame_father_1.Commander.make();
|
|
21
31
|
}
|