@flexem/fc-gui 3.0.0-alpha.50 → 3.0.0-alpha.52
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/CHANGELOG.md +7 -2
- package/bundles/@flexem/fc-gui.umd.js +9 -8
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/historical-curve/historical-curve.element.js +7 -6
- package/elements/numerical-display/numerical-display-element.js +1 -1
- package/modal/write-value/write-value-modal.component.js +1 -1
- package/package.json +1 -1
|
@@ -280,12 +280,13 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
|
|
|
280
280
|
.text((d) => d);
|
|
281
281
|
const focusWrap = this.rootElement.selectAll('.nv-focusWrap');
|
|
282
282
|
if (focusWrap.size()) {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
.split(',')[1];
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
283
|
+
let h = focusWrap.attr('transform');
|
|
284
|
+
if (h && h.length && h.indexOf(',') !== -1) {
|
|
285
|
+
h = h.slice(0, -1).split(',')[1];
|
|
286
|
+
this.rootElement
|
|
287
|
+
.selectAll('.nv-focusWrap')
|
|
288
|
+
.attr('transform', `translate(0,${Number(h) + 15})`);
|
|
289
|
+
}
|
|
289
290
|
}
|
|
290
291
|
const resizeObserver = new window.MutationObserver(() => {
|
|
291
292
|
this.rootElement
|
|
@@ -194,7 +194,7 @@ export class NumericalDisplayElement extends ReadableElement {
|
|
|
194
194
|
this.writeValue = writeValue;
|
|
195
195
|
this.showValue = result.showValue;
|
|
196
196
|
if (+this.displayText !== +this.showValue) {
|
|
197
|
-
if (this.numericalOperation) {
|
|
197
|
+
if (this.numericalOperation || result.enableNumericalOperation) {
|
|
198
198
|
this.writeValueMmodalRef.hide();
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
@@ -110,7 +110,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
110
110
|
value = this.formatWriteValue();
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
this.onClosed({ value, showValue });
|
|
113
|
+
this.onClosed({ value, showValue, enableNumericalOperation: this.enableNumericalOperation });
|
|
114
114
|
}
|
|
115
115
|
close() {
|
|
116
116
|
this.bsModalRef.hide();
|