We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd96e9 commit 45caee1Copy full SHA for 45caee1
src/dspf.js
@@ -78,10 +78,19 @@ class DisplayFile {
78
this.currentField.handleKeywords();
79
this.currentFields.push(this.currentField);
80
}
81
+
82
+ let totalX = Number(x);
83
+ if (x.startsWith(`+`)) {
84
+ totalX = this.currentFields[this.currentFields.length - 1].position.x + Number(x.substring(1));
85
86
+ if (this.currentFields[this.currentFields.length - 1].value) {
87
+ totalX += this.currentFields[this.currentFields.length - 1].value.length;
88
+ }
89
90
91
this.currentField = new FieldInfo();
92
this.currentField.position = {
- x: Number(x),
93
+ x: totalX,
94
y: 0
95
};
96
0 commit comments