gps-global-types 1.0.19 → 1.0.21
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/mst.types.tsx +5 -2
- package/package.json +1 -1
- package/pie.types.tsx +2 -1
package/mst.types.tsx
CHANGED
|
@@ -17,8 +17,10 @@ export interface mstGlobalTypes {
|
|
|
17
17
|
slim?: boolean, //false //are the node labels collapsed or expanded?
|
|
18
18
|
|
|
19
19
|
//interactive nodes
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
checkedNodes:ObjectId[],
|
|
21
|
+
highlightedNodes:ObjectId[],
|
|
22
|
+
graph:MSTGraph
|
|
23
|
+
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export const colorFields = ['armordPatientId', 'mlst', 'sampleType', 'armordFacility', 'country', 'custom color'] as const; //no :string[] ! removes 'const'
|
|
@@ -41,6 +43,7 @@ export type CustomDict = Record<ObjectId, CustomDictEntry>
|
|
|
41
43
|
export interface LatestNodes { armordCultureDate: Date | string, isos: any[], _id: ObjectId[] }
|
|
42
44
|
export interface MSTGraph {
|
|
43
45
|
name?:string,
|
|
46
|
+
colorCalendar:Partial<Record<dateKey, Record<string, Color>>> //correctly color nodes based on dates
|
|
44
47
|
snapshotData?:SnapshotType
|
|
45
48
|
nodes: any //todo:temp//NodeType[] // core parameter of d3tree.js . keeps all isolates collection data
|
|
46
49
|
links: EdgeType[] // core parameter of d3tree.js
|
package/package.json
CHANGED
package/pie.types.tsx
CHANGED
|
@@ -11,7 +11,8 @@ export interface ColorField {//TYPES OF GRAPH FIELDS ColorField datefields becom
|
|
|
11
11
|
export type LabelField = string; //if n>1, seperated by '&' which are interpreted as newlines in front-end. var names ends with 'LBL'.
|
|
12
12
|
export interface ColorType {
|
|
13
13
|
color: Color, //unique hex of parameter
|
|
14
|
-
value: number //count of how many times value will be represented in the pie
|
|
14
|
+
value: number //count of how many times value will be represented in the pie,
|
|
15
|
+
latest?:'latest' //represents if slice belongs to the latest node
|
|
15
16
|
}
|
|
16
17
|
export type LabelType = RegexMatchedString<'(\w&)*'> // if many, seperated by '&' qhich are interpreted as newlines in front-end. var names ends with 'LBL'.
|
|
17
18
|
type DateType = string | Date; // must be able to be interpreted as date type by Date js object
|