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 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: coords // node _id edge to
9
- target: coords // node _id edge from
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
@@ -19,7 +19,7 @@ export interface mstGlobalTypes {
19
19
  //interactive nodes
20
20
  checkedNodes:ObjectId[],
21
21
  highlightedNodes:ObjectId[],
22
- graph:MSTGraph
22
+ graph?:MSTGraph
23
23
 
24
24
  }
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {