@sumaris-net/ngx-components 2.4.35 → 2.4.36
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/esm2020/src/app/core/form/form.utils.mjs +2 -2
- package/esm2020/src/app/shared/graph/graph-colors.mjs +5 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +5 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +5 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4765,7 +4765,7 @@ class FormArrayHelper {
|
|
|
4765
4765
|
}
|
|
4766
4766
|
class AppFormArray extends UntypedFormArray {
|
|
4767
4767
|
constructor(createControl, equals, isEmpty, options) {
|
|
4768
|
-
super([], options);
|
|
4768
|
+
super([], options);
|
|
4769
4769
|
this.createControl = createControl;
|
|
4770
4770
|
this.equals = equals;
|
|
4771
4771
|
this.isEmpty = isEmpty;
|
|
@@ -21217,6 +21217,10 @@ class ColorScale {
|
|
|
21217
21217
|
return this.getLegendForValue(value).color;
|
|
21218
21218
|
}
|
|
21219
21219
|
getLegendForValue(value) {
|
|
21220
|
+
if (value <= this._min)
|
|
21221
|
+
return this._legendItems[0];
|
|
21222
|
+
if (value >= this._max)
|
|
21223
|
+
return this._legendItems[this._legendItems.length - 1];
|
|
21220
21224
|
const index = Math.floor(value * (this._legendItems.length - 1) / this._max);
|
|
21221
21225
|
return this._legendItems[index];
|
|
21222
21226
|
}
|