lbrnts 0.0.16 → 0.0.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/dist/index.d.ts +4 -4
- package/dist/index.js +10 -9
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ interface CutSettingInit {
|
|
|
93
93
|
lineAngle?: number;
|
|
94
94
|
crossHatch?: boolean;
|
|
95
95
|
frequency?: number;
|
|
96
|
-
|
|
96
|
+
qPulseWidth?: number;
|
|
97
97
|
}
|
|
98
98
|
declare class CutSetting extends LightBurnBaseElement {
|
|
99
99
|
private _type;
|
|
@@ -120,7 +120,7 @@ declare class CutSetting extends LightBurnBaseElement {
|
|
|
120
120
|
private _lineAngle?;
|
|
121
121
|
private _crossHatch?;
|
|
122
122
|
private _frequency?;
|
|
123
|
-
private
|
|
123
|
+
private _qPulseWidth?;
|
|
124
124
|
constructor(init?: CutSettingInit);
|
|
125
125
|
get type(): string;
|
|
126
126
|
set type(value: string);
|
|
@@ -170,8 +170,8 @@ declare class CutSetting extends LightBurnBaseElement {
|
|
|
170
170
|
set crossHatch(value: boolean | undefined);
|
|
171
171
|
get frequency(): number | undefined;
|
|
172
172
|
set frequency(value: number | undefined);
|
|
173
|
-
get
|
|
174
|
-
set
|
|
173
|
+
get qPulseWidth(): number | undefined;
|
|
174
|
+
set qPulseWidth(value: number | undefined);
|
|
175
175
|
getXmlAttributes(): Record<string, string | number | boolean | undefined>;
|
|
176
176
|
getChildren(): LightBurnBaseElement[];
|
|
177
177
|
static fromXmlJson(node: XmlJsonElement): CutSetting;
|
package/dist/index.js
CHANGED
|
@@ -295,7 +295,7 @@ var CutSetting = class _CutSetting extends LightBurnBaseElement {
|
|
|
295
295
|
_lineAngle;
|
|
296
296
|
_crossHatch;
|
|
297
297
|
_frequency;
|
|
298
|
-
|
|
298
|
+
_qPulseWidth;
|
|
299
299
|
constructor(init) {
|
|
300
300
|
super();
|
|
301
301
|
this.token = "CutSetting";
|
|
@@ -326,7 +326,7 @@ var CutSetting = class _CutSetting extends LightBurnBaseElement {
|
|
|
326
326
|
if (init.lineAngle !== void 0) this._lineAngle = init.lineAngle;
|
|
327
327
|
if (init.crossHatch !== void 0) this._crossHatch = init.crossHatch;
|
|
328
328
|
if (init.frequency !== void 0) this._frequency = init.frequency;
|
|
329
|
-
if (init.
|
|
329
|
+
if (init.qPulseWidth !== void 0) this._qPulseWidth = init.qPulseWidth;
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
get type() {
|
|
@@ -473,11 +473,11 @@ var CutSetting = class _CutSetting extends LightBurnBaseElement {
|
|
|
473
473
|
set frequency(value) {
|
|
474
474
|
this._frequency = value;
|
|
475
475
|
}
|
|
476
|
-
get
|
|
477
|
-
return this.
|
|
476
|
+
get qPulseWidth() {
|
|
477
|
+
return this._qPulseWidth;
|
|
478
478
|
}
|
|
479
|
-
set
|
|
480
|
-
this.
|
|
479
|
+
set qPulseWidth(value) {
|
|
480
|
+
this._qPulseWidth = value;
|
|
481
481
|
}
|
|
482
482
|
getXmlAttributes() {
|
|
483
483
|
return {
|
|
@@ -510,7 +510,7 @@ var CutSetting = class _CutSetting extends LightBurnBaseElement {
|
|
|
510
510
|
"lineAngle",
|
|
511
511
|
"crossHatch",
|
|
512
512
|
"frequency",
|
|
513
|
-
"
|
|
513
|
+
"qPulseWidth"
|
|
514
514
|
];
|
|
515
515
|
for (const prop of props) {
|
|
516
516
|
const value = this[`_${prop}`];
|
|
@@ -552,7 +552,7 @@ var CutSetting = class _CutSetting extends LightBurnBaseElement {
|
|
|
552
552
|
cs.lineAngle = num(getChildValue("lineAngle"), void 0);
|
|
553
553
|
cs.crossHatch = boolish(getChildValue("crossHatch"), void 0);
|
|
554
554
|
cs.frequency = num(getChildValue("frequency"), void 0);
|
|
555
|
-
cs.
|
|
555
|
+
cs.qPulseWidth = num(getChildValue("QPulseWidth"), void 0);
|
|
556
556
|
return cs;
|
|
557
557
|
}
|
|
558
558
|
};
|
|
@@ -579,7 +579,8 @@ var CutSettingPropertyElement = class extends LightBurnBaseElement {
|
|
|
579
579
|
}
|
|
580
580
|
toXml(indent = 0) {
|
|
581
581
|
const indentStr = " ".repeat(indent);
|
|
582
|
-
|
|
582
|
+
const tagName = this.propName === "qPulseWidth" ? "QPulseWidth" : this.propName;
|
|
583
|
+
return `${indentStr}<${tagName} Value="${this.formatValue(this.propValue)}"/>`;
|
|
583
584
|
}
|
|
584
585
|
};
|
|
585
586
|
LightBurnBaseElement.register("CutSetting", CutSetting);
|
package/package.json
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
"name": "lbrnts",
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.18",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsup-node ./lib/index.ts --format esm --dts",
|
|
11
|
-
"
|
|
11
|
+
"dev:site": "bun run --cwd site dev",
|
|
12
|
+
"build:site": "bun run --cwd site build",
|
|
12
13
|
"format": "biome format --write .",
|
|
13
14
|
"format:check": "biome format ."
|
|
14
15
|
},
|