@rowengine/common 1.0.96 → 1.0.98
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/interfaces/activity.d.ts +3 -7
- package/build/interfaces/field.d.ts +2 -0
- package/build/interfaces/grade.d.ts +5 -0
- package/build/interfaces/grade.js +2 -0
- package/build/interfaces/index.d.ts +1 -0
- package/build/interfaces/index.js +1 -0
- package/build/interfaces/project.d.ts +1 -0
- package/build/utils/grades.d.ts +2 -0
- package/build/utils/grades.js +10 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +17 -0
- package/package.json +9 -1
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -22,16 +22,12 @@ export interface Activity {
|
|
|
22
22
|
project: {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
area
|
|
26
|
-
center
|
|
25
|
+
area?: number;
|
|
26
|
+
center?: Center;
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
28
|
+
* The project final status.
|
|
29
29
|
*/
|
|
30
30
|
finalStatus?: ActivityFinalStatus;
|
|
31
|
-
/**
|
|
32
|
-
* The percentage of good points on the points cloud.
|
|
33
|
-
*/
|
|
34
|
-
goodPointsPercentage?: number;
|
|
35
31
|
/**
|
|
36
32
|
* Processing time in seconds.
|
|
37
33
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Center } from "./center";
|
|
2
|
+
import { Grade } from "./grade";
|
|
2
3
|
export interface FieldResult {
|
|
3
4
|
success: boolean;
|
|
4
5
|
quantity: number;
|
|
@@ -10,6 +11,7 @@ export interface Field {
|
|
|
10
11
|
area: number;
|
|
11
12
|
center: Center;
|
|
12
13
|
gapsClass: number;
|
|
14
|
+
grade?: Grade;
|
|
13
15
|
rows?: FieldResult;
|
|
14
16
|
gaps?: FieldResult;
|
|
15
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gradeColors = exports.gradeClasses = void 0;
|
|
4
|
+
exports.gradeClasses = [0, 0.4, 0.6, 0.8];
|
|
5
|
+
exports.gradeColors = [
|
|
6
|
+
"#f44336", // Red
|
|
7
|
+
"#ff9800", // Orange
|
|
8
|
+
"#ffc107", // Yellow
|
|
9
|
+
"#4caf50", // Green
|
|
10
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./grades";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./grades"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowengine/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.98",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"default": "./build/interfaces/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./build/interfaces/index.js"
|
|
22
|
+
],
|
|
23
|
+
"./utils": [
|
|
24
|
+
{
|
|
25
|
+
"import": "./build/utils/index.js",
|
|
26
|
+
"require": "./build/utils/index.js",
|
|
27
|
+
"default": "./build/utils/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./build/utils/index.js"
|
|
22
30
|
]
|
|
23
31
|
},
|
|
24
32
|
"types": "./build/index.d.ts",
|