gps-global-types 1.0.25 → 1.0.26
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/link.types.tsx +2 -15
- package/mst.types.tsx +5 -5
- package/package.json +7 -2
package/link.types.tsx
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import type { BaseType, Selection, SimulationLinkDatum, SimulationNodeDatum } from 'd3';
|
|
2
2
|
import type { mstGlobalTypes } from './mst.types.tsx';
|
|
3
|
-
import type { NodeType } from './pie.types.
|
|
4
|
-
|
|
5
|
-
x: number,
|
|
6
|
-
y: number
|
|
7
|
-
}
|
|
3
|
+
import type { NodeType } from './pie.types.tsx';
|
|
4
|
+
|
|
8
5
|
export interface EdgeType extends SimulationLinkDatum<NodeType> { // extends SimulationLinkDatum<NodeType>} anything not defined here was added by d3 (or i fucked up)
|
|
9
6
|
source: NodeType // node _id edge to
|
|
10
7
|
target: NodeType // node _id edge from
|
|
11
8
|
value: number // distance between source and target
|
|
12
9
|
}
|
|
13
10
|
|
|
14
|
-
export type gLinkType = Selection<SVGGElement, EdgeType, BaseType, unknown>
|
|
15
|
-
export interface LinkType {
|
|
16
|
-
g: gLinkType
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface LinkProps {
|
|
20
|
-
data: EdgeType[],
|
|
21
|
-
force: mstGlobalTypes
|
|
22
|
-
}
|
|
23
|
-
export type svgSelection = Selection<BaseType, gLinkType, Element, LinkType>; //Selection<Element,LinkType,Element,any>
|
package/mst.types.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ClusterFields } from "./cluster.types.
|
|
2
|
-
import type { armordAccessionNumber, Color, mrsnId, ObjectId, RegexMatchedString } from "./global.types.
|
|
3
|
-
import type { IsolateFields } from "./isolate.types.
|
|
4
|
-
import type { EdgeType } from "./link.types.
|
|
5
|
-
import type { NodeType } from "./pie.types.
|
|
1
|
+
import type { ClusterFields } from "./cluster.types.tsx";
|
|
2
|
+
import type { armordAccessionNumber, Color, mrsnId, ObjectId, RegexMatchedString } from "./global.types.tsx";
|
|
3
|
+
import type { IsolateFields } from "./isolate.types.tsx";
|
|
4
|
+
import type { EdgeType } from "./link.types.tsx";
|
|
5
|
+
import type { NodeType } from "./pie.types.tsx";
|
|
6
6
|
|
|
7
7
|
export interface mstGlobalTypes {
|
|
8
8
|
//form values
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gps-global-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "types shared between front-end and back-end",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,5 +16,10 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/d3": "^7.4.3",
|
|
18
18
|
"typescript": "^5.9.2"
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"browserList": [
|
|
21
|
+
">0.2%",
|
|
22
|
+
"not dead",
|
|
23
|
+
"not op_mini all"
|
|
24
|
+
]
|
|
20
25
|
}
|