@visactor/vchart 1.13.13 → 1.13.14-alpha.0

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/build/index.es.js CHANGED
@@ -64240,7 +64240,7 @@ const registerVChartCore = () => {
64240
64240
  };
64241
64241
  registerVChartCore();
64242
64242
 
64243
- const version = "1.13.13";
64243
+ const version = "1.13.14-alpha.0";
64244
64244
 
64245
64245
  const addVChartProperty = (data, op) => {
64246
64246
  const context = op.beforeCall();
@@ -86099,7 +86099,7 @@ class SankeyLayout {
86099
86099
  }
86100
86100
  const isStartGap = "start" === this.options.gapPosition,
86101
86101
  isMiddleGap = !isStartGap && "end" !== this.options.gapPosition,
86102
- getNodeHeight = isNumber$1(this.options.nodeHeight) ? node => this.options.nodeHeight : isFunction$1(this.options.nodeHeight) ? this.options.nodeHeight : forceNodeHeight > 0 ? node => forceNodeHeight : node => Math.max(node.value * ky, 0),
86102
+ getNodeHeight = isNumber$1(this.options.nodeHeight) ? (node, columns) => this.options.nodeHeight : isFunction$1(this.options.nodeHeight) ? this.options.nodeHeight : forceNodeHeight > 0 ? (node, columns) => forceNodeHeight : node => Math.max(node.value * ky, 0),
86103
86103
  getLinkHeight = isNumber$1(this.options.linkHeight) ? () => this.options.linkHeight : isFunction$1(this.options.linkHeight) ? this.options.linkHeight : (link, sourceNode, sourceNodeHeight) => Math.min(Math.max(sourceNode.value ? sourceNodeHeight * linkClampe(link.value / sourceNode.value) : 0, minLinkHeight, 0), maxLinkHeight);
86104
86104
  for (let i = 0, columnCount = columns.length; i < columnCount; i++) {
86105
86105
  const nodes = columns[i];
@@ -86110,7 +86110,7 @@ class SankeyLayout {
86110
86110
  calculatedNodeHeight = 0;
86111
86111
  for (let j = 0, len = nodes.length; j < len; j++) {
86112
86112
  const node = nodes[j];
86113
- gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node), nodeHeight = Math.min(Math.max(calculatedNodeHeight, minNodeHeight), maxNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
86113
+ gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node, columns), nodeHeight = Math.min(Math.max(calculatedNodeHeight, minNodeHeight), maxNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
86114
86114
  for (let k = 0, linkLen = node.sourceLinks.length; k < linkLen; k++) {
86115
86115
  const link = node.sourceLinks[k];
86116
86116
  link.thickness = getLinkHeight(link, node, calculatedNodeHeight);
package/build/index.js CHANGED
@@ -64246,7 +64246,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64246
64246
  };
64247
64247
  registerVChartCore();
64248
64248
 
64249
- const version = "1.13.13";
64249
+ const version = "1.13.14-alpha.0";
64250
64250
 
64251
64251
  const addVChartProperty = (data, op) => {
64252
64252
  const context = op.beforeCall();
@@ -86105,7 +86105,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86105
86105
  }
86106
86106
  const isStartGap = "start" === this.options.gapPosition,
86107
86107
  isMiddleGap = !isStartGap && "end" !== this.options.gapPosition,
86108
- getNodeHeight = isNumber$1(this.options.nodeHeight) ? node => this.options.nodeHeight : isFunction$1(this.options.nodeHeight) ? this.options.nodeHeight : forceNodeHeight > 0 ? node => forceNodeHeight : node => Math.max(node.value * ky, 0),
86108
+ getNodeHeight = isNumber$1(this.options.nodeHeight) ? (node, columns) => this.options.nodeHeight : isFunction$1(this.options.nodeHeight) ? this.options.nodeHeight : forceNodeHeight > 0 ? (node, columns) => forceNodeHeight : node => Math.max(node.value * ky, 0),
86109
86109
  getLinkHeight = isNumber$1(this.options.linkHeight) ? () => this.options.linkHeight : isFunction$1(this.options.linkHeight) ? this.options.linkHeight : (link, sourceNode, sourceNodeHeight) => Math.min(Math.max(sourceNode.value ? sourceNodeHeight * linkClampe(link.value / sourceNode.value) : 0, minLinkHeight, 0), maxLinkHeight);
86110
86110
  for (let i = 0, columnCount = columns.length; i < columnCount; i++) {
86111
86111
  const nodes = columns[i];
@@ -86116,7 +86116,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
86116
86116
  calculatedNodeHeight = 0;
86117
86117
  for (let j = 0, len = nodes.length; j < len; j++) {
86118
86118
  const node = nodes[j];
86119
- gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node), nodeHeight = Math.min(Math.max(calculatedNodeHeight, minNodeHeight), maxNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
86119
+ gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node, columns), nodeHeight = Math.min(Math.max(calculatedNodeHeight, minNodeHeight), maxNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
86120
86120
  for (let k = 0, linkLen = node.sourceLinks.length; k < linkLen; k++) {
86121
86121
  const link = node.sourceLinks[k];
86122
86122
  link.thickness = getLinkHeight(link, node, calculatedNodeHeight);