diff --git a/package-lock.json b/package-lock.json
index 241098e..71f9f8d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "farmmaps-lib-app",
- "version": "4.0.0",
+ "version": "4.2.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "farmmaps-lib-app",
- "version": "4.0.0",
+ "version": "4.2.0",
"dependencies": {
"@angular-eslint/eslint-plugin": "^15.2.1",
"@angular/animations": "^14.1.3",
@@ -86,7 +86,7 @@
},
"dist/common": {
"name": "@farmmaps/common",
- "version": "3.5.1-prerelease.2385",
+ "version": "2.0.0",
"dependencies": {
"tslib": "^2.3.0"
},
diff --git a/package.json b/package.json
index 469ce12..4475899 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "farmmaps-lib-app",
- "version": "4.0.0",
+ "version": "4.2.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
diff --git a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html
index 210a026..34c8a54 100644
--- a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html
+++ b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html
@@ -1,15 +1,15 @@
Average:
-
{{histogram.mean| number:'1.0-2'}}
+
{{ getScaledValue(histogram.mean)| number:'1.0-2'}}
Standard deviation:
-
{{histogram.stddev| number:'1.0-2'}}
+
{{ getScaledValue(histogram.stddev)| number:'1.0-2'}}
Min:
-
{{histogram.min| number:'1.0-2'}}
+
{{ getScaledValue(histogram.min)| number:'1.0-2'}}
Max:
-
{{histogram.max| number:'1.0-2'}}
+
{{ getScaledValue(histogram.max)| number:'1.0-2'}}
Confidence interval:
- {{histogram.confidence * 100| number:'1.0-0'}}%
+ {{ getScaledValue(histogram.confidence * 100)| number:'1.0-0'}}%
diff --git a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.ts b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.ts
index e02a0cf..29cfa8e 100644
--- a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.ts
+++ b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.ts
@@ -14,6 +14,17 @@ export class HistogramDetailsComponent {
@Input()
histogram: IHistogram;
+ @Input()
+ scale: number | null;
+
+ public getScaledValue(value: number): number {
+ let v = value;
+ if (this.scale && this.scale != 0) {
+ v = this.scale * value;
+ }
+ return v;
+ }
+
showConfidenceInterval(): boolean {
return this.histogram.confidence != null && this.histogram.confidence !== 1;
}
diff --git a/projects/common-map/src/fm-map/components/legend/legend.component.html b/projects/common-map/src/fm-map/components/legend/legend.component.html
index e30e66a..f81496d 100644
--- a/projects/common-map/src/fm-map/components/legend/legend.component.html
+++ b/projects/common-map/src/fm-map/components/legend/legend.component.html
@@ -35,7 +35,7 @@
-
+