@node-projects/web-component-designer-zpl 0.1.9 → 0.1.11
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.
|
@@ -47,7 +47,8 @@ export class ZplParserService {
|
|
|
47
47
|
p = p.replaceAll("\n", "");
|
|
48
48
|
p = p.replaceAll("\r", "");
|
|
49
49
|
let command = p.substring(0, 2);
|
|
50
|
-
let
|
|
50
|
+
let fieldString = p.substring(2);
|
|
51
|
+
let fields = fieldString.split(",");
|
|
51
52
|
switch (command) {
|
|
52
53
|
case "XA":
|
|
53
54
|
case "XZ":
|
|
@@ -143,9 +144,9 @@ export class ZplParserService {
|
|
|
143
144
|
case "FD":
|
|
144
145
|
if (bc) {
|
|
145
146
|
if (qr)
|
|
146
|
-
barcode.setAttribute("content",
|
|
147
|
+
barcode.setAttribute("content", fieldString.substring(3));
|
|
147
148
|
else
|
|
148
|
-
barcode.setAttribute("content",
|
|
149
|
+
barcode.setAttribute("content", fieldString);
|
|
149
150
|
designItems.push(DesignItem.createDesignItemFromInstance(barcode, serviceContainer, instanceServiceContainer));
|
|
150
151
|
bc = false;
|
|
151
152
|
qr = false;
|
|
@@ -198,7 +199,7 @@ export class ZplParserService {
|
|
|
198
199
|
tx += "^XZ";
|
|
199
200
|
textWriter.writeLine("^XA");
|
|
200
201
|
textWriter.writeLine("^FX Comment for printersettings");
|
|
201
|
-
textWriter.writeLine("^FX For better view visit http://labelary.com/viewer.html?zpl=" + encodeURIComponent(tx));
|
|
202
|
+
// textWriter.writeLine("^FX For better view visit http://labelary.com/viewer.html?zpl=" + encodeURIComponent(tx));
|
|
202
203
|
for (let d of designItems) {
|
|
203
204
|
let start = textWriter.position;
|
|
204
205
|
//@ts-ignore
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon: Widgets and Services for creating a ZPL Designer",
|
|
3
3
|
"name": "@node-projects/web-component-designer-zpl",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|