apexsankey 1.1.3 → 1.2.1

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.
@@ -9,4 +9,4 @@ export declare function findSpanningTree(G: any, v0: any): Graph;
9
9
  * Returns 1 if w is a descendent of v, -1 if v is a descendent of w, and 0 if
10
10
  * they are unrelated.
11
11
  */
12
- export declare function nodeRelationship(tree: any, v: any, w: any): 1 | 0 | -1;
12
+ export declare function nodeRelationship(tree: any, v: any, w: any): 1 | -1 | 0;
@@ -21,7 +21,7 @@ export interface FontOptions {
21
21
  readonly fontColor: string;
22
22
  readonly fontFamily: string;
23
23
  readonly fontSize: string;
24
- readonly fontWeight: number;
24
+ readonly fontWeight: string;
25
25
  }
26
26
  export interface TooltipOptions {
27
27
  readonly enableTooltip: boolean;
@@ -9,9 +9,9 @@ export declare class Paper {
9
9
  private getYShift;
10
10
  add(element: Element): void;
11
11
  clear(): void;
12
+ exportToSvg(): void;
12
13
  resetViewBox(): void;
13
14
  updateViewBox(x: number, y: number, width: number, height: number): void;
14
- zoom(zoomFactor: number): void;
15
15
  get height(): number;
16
16
  get spacing(): number;
17
17
  get width(): number;
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "apexsankey",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "dependencies": {
5
- "@apex/graph-utils": "*",
6
- "@svgdotjs/svg.js": "^3.2.0",
7
- "@svgdotjs/svg.panzoom.js": "^2.1.2",
8
5
  "defined": "^1.0.1",
9
6
  "graphlib": "~2.1.0",
10
7
  "lodash": "^4.17.21"
@@ -12,11 +9,17 @@
12
9
  "type": "module",
13
10
  "main": "./apexsankey.min.js",
14
11
  "module": "./apexsankey.es.min.js",
15
- "typings": "./index.d.ts",
12
+ "types": "./index.d.ts",
16
13
  "exports": {
17
14
  ".": {
18
- "import": "./apexsankey.es.min.js",
19
- "require": "./apexsankey.min.js"
15
+ "import": {
16
+ "types": "./index.d.ts",
17
+ "default": "./apexsankey.es.min.js"
18
+ },
19
+ "require": {
20
+ "types": "./index.d.ts",
21
+ "default": "./apexsankey.min.js"
22
+ }
20
23
  }
21
24
  }
22
25
  }