@duet3d/objectmodel 3.7.0-beta.12 → 3.7.0-beta.14
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.
|
@@ -7,6 +7,11 @@ export type ItemFactory<T> = (index: number) => T;
|
|
|
7
7
|
* Class for storing model object items in an array
|
|
8
8
|
*/
|
|
9
9
|
export declare class ModelCollection<T extends IModelObject | null> extends Array<T> implements IModelObject {
|
|
10
|
+
/**
|
|
11
|
+
* Derived arrays from filter, map, slice etc. would otherwise be constructed as
|
|
12
|
+
* new ModelCollection(length), leaving $itemConstructor set to a number
|
|
13
|
+
*/
|
|
14
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
10
15
|
/**
|
|
11
16
|
* Constructor of this class
|
|
12
17
|
* @param itemConstructor Item constructor type that items must derive from
|
package/dist/ModelCollection.js
CHANGED
|
@@ -14,6 +14,13 @@ function createItem(collection, index) {
|
|
|
14
14
|
* Class for storing model object items in an array
|
|
15
15
|
*/
|
|
16
16
|
export class ModelCollection extends Array {
|
|
17
|
+
/**
|
|
18
|
+
* Derived arrays from filter, map, slice etc. would otherwise be constructed as
|
|
19
|
+
* new ModelCollection(length), leaving $itemConstructor set to a number
|
|
20
|
+
*/
|
|
21
|
+
static get [Symbol.species]() {
|
|
22
|
+
return Array;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
* Constructor of this class
|
|
19
26
|
* @param itemConstructor Item constructor type that items must derive from
|
package/dist/documentation.json
CHANGED
|
@@ -972,6 +972,8 @@
|
|
|
972
972
|
"sensors.probes[].disablesHeaters": "Whether probing disables the heater(s)",
|
|
973
973
|
"sensors.probes[].diveHeight": "Dive height of the probe (in mm)",
|
|
974
974
|
"sensors.probes[].diveHeights": "Dive heights of the probe (in mm). The first element is the dive height for the first tap; the second element is used for subsequent taps when multi-tapping",
|
|
975
|
+
"sensors.probes[].force": "Force measured by the probe (in g), or null if it is not a force-sensing probe",
|
|
976
|
+
"sensors.probes[].gramsPerCount": "Scale of a force-sensing probe (in g per count), or null if it has not been calibrated",
|
|
975
977
|
"sensors.probes[].isCalibrated": "Indicates if the scanning probe is calibrated",
|
|
976
978
|
"sensors.probes[].lastStopHeight": "Height of the probe where it stopped last time (in mm)",
|
|
977
979
|
"sensors.probes[].maxProbeCount": "Maximum number of times to probe after a bad reading was determined",
|
|
@@ -1005,7 +1007,7 @@
|
|
|
1005
1007
|
"9": "A BLTouch probe",
|
|
1006
1008
|
"10": "Z motor stall detection",
|
|
1007
1009
|
"11": "Analog scanning probe",
|
|
1008
|
-
"12":
|
|
1010
|
+
"12": "Load cell probe measuring the contact force"
|
|
1009
1011
|
}
|
|
1010
1012
|
},
|
|
1011
1013
|
"sensors.probes[].value": "Current analog values of the probe",
|
package/dist/sensors/Probe.d.ts
CHANGED
package/dist/sensors/Probe.js
CHANGED