apexsankey 1.1.1 → 1.1.2

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.
@@ -8,7 +8,7 @@
8
8
  <script src="../apexsankey.min.js"></script>
9
9
  </head>
10
10
  <body>
11
- <div id="svg-sankey" style="display: flex; justify-content: center"></div>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center; width: 100%; height: 300px"></div>
12
12
  <script>
13
13
  const data = {
14
14
  nodes: [
@@ -9,7 +9,7 @@
9
9
  </head>
10
10
 
11
11
  <body>
12
- <div id="svg-sankey" style="display: flex; justify-content: center"></div>
12
+ <div id="svg-sankey" style="display: flex; justify-content: center; width: 100%; height: 300px"></div>
13
13
  <script>
14
14
  const data = {
15
15
  nodes: [
@@ -8,7 +8,7 @@
8
8
  <script src="../apexsankey.min.js"></script>
9
9
  </head>
10
10
  <body>
11
- <div id="svg-sankey" style="display: flex; justify-content: center"></div>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center; width: 100%; height: 500px"></div>
12
12
  <script>
13
13
  const data = {
14
14
  nodes: [
@@ -8,7 +8,7 @@
8
8
  <script src="../apexsankey.min.js"></script>
9
9
  </head>
10
10
  <body>
11
- <div id="svg-sankey" style="display: flex; justify-content: center"></div>
11
+ <div id="svg-sankey" style="display: flex; justify-content: center; width: 100%; height: 300px"></div>
12
12
  <script>
13
13
  const data = {
14
14
  nodes: [
@@ -23,6 +23,7 @@ export interface Graph {
23
23
  }
24
24
  export declare class SankeyGraph extends Paper {
25
25
  graph: any;
26
+ maxRank: number;
26
27
  element: HTMLElement;
27
28
  options: SankeyOptions;
28
29
  constructor(element: HTMLElement, options: SankeyOptions);
@@ -1,3 +1,3 @@
1
1
  import { G } from '@svgdotjs/svg.js';
2
2
  import { FontOptions, NodeOptions } from './Options';
3
- export declare function renderNode(graphNode: any, options: Partial<NodeOptions & FontOptions>): G;
3
+ export declare function renderNode(graphNode: any, maxRank: number, options: Partial<NodeOptions & FontOptions>): G;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexsankey",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "dependencies": {
5
5
  "@svgdotjs/svg.js": "^3.2.0",
6
6
  "@svgdotjs/svg.panzoom.js": "^2.1.2",