gps-global-types 1.0.21 → 1.0.23
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 +4 -3
- package/mst.types.tsx +1 -1
- package/package.json +1 -1
package/link.types.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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.js';
|
|
3
4
|
interface coords {
|
|
4
5
|
x: number,
|
|
5
6
|
y: number
|
|
6
7
|
}
|
|
7
|
-
export interface EdgeType { // extends SimulationLinkDatum<NodeType>} anything not defined here was added by d3 (or i fucked up)
|
|
8
|
-
source:
|
|
9
|
-
target:
|
|
8
|
+
export interface EdgeType extends SimulationLinkDatum<NodeType> { // extends SimulationLinkDatum<NodeType>} anything not defined here was added by d3 (or i fucked up)
|
|
9
|
+
source: NodeType // node _id edge to
|
|
10
|
+
target: NodeType // node _id edge from
|
|
10
11
|
value: number // distance between source and target
|
|
11
12
|
}
|
|
12
13
|
|
package/mst.types.tsx
CHANGED