@hpcc-js/graph 2.83.2 → 2.84.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/dist/index.es6.js +25 -25
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +7 -7
- package/src/__package__.ts +2 -2
- package/src/graph2/graph.ts +1 -6
- package/src/graph2/graphT.ts +9 -5
- package/src/graph2/index.ts +1 -0
- package/src/graph2/layouts/dagre.ts +7 -6
- package/src/graph2/layouts/graphviz.ts +1 -1
- package/src/graph2/layouts/placeholders.ts +5 -5
- package/types/__package__.d.ts +2 -2
- package/types/graph2/graph.d.ts +0 -2
- package/types/graph2/graph.d.ts.map +1 -1
- package/types/graph2/graphT.d.ts +2 -1
- package/types/graph2/graphT.d.ts.map +1 -1
- package/types/graph2/index.d.ts +1 -0
- package/types/graph2/index.d.ts.map +1 -1
- package/types/graph2/layouts/dagre.d.ts.map +1 -1
- package/types/graph2/layouts/placeholders.d.ts +5 -5
- package/types/graph2/layouts/placeholders.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/graph2/graph.d.ts +0 -2
- package/types-3.4/graph2/graphT.d.ts +2 -1
- package/types-3.4/graph2/index.d.ts +1 -0
- package/types-3.4/graph2/layouts/placeholders.d.ts +5 -5
package/dist/index.es6.js
CHANGED
|
@@ -5,8 +5,8 @@ import { render, Icons, React, Text as Text$1, Subgraph as Subgraph$1, Vertex as
|
|
|
5
5
|
import { HTMLTooltip } from '@hpcc-js/html';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/graph";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.104.
|
|
8
|
+
var PKG_VERSION = "2.84.0";
|
|
9
|
+
var BUILD_VERSION = "2.104.8";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -16353,17 +16353,17 @@ var Dagre = /** @class */ (function (_super) {
|
|
|
16353
16353
|
delete v.fx;
|
|
16354
16354
|
delete v.fy;
|
|
16355
16355
|
var bbox = v.element.node().getBBox();
|
|
16356
|
-
return __assign({ width: bbox.width, height: bbox.height }, v.props);
|
|
16356
|
+
return __assign(__assign({ width: bbox.width, height: bbox.height }, v.props), { id: String(v.id) });
|
|
16357
16357
|
}),
|
|
16358
16358
|
links: data.allEdges().map(function (e) {
|
|
16359
16359
|
return {
|
|
16360
|
-
id: e.props.id,
|
|
16360
|
+
id: String(e.props.id),
|
|
16361
16361
|
source: {
|
|
16362
|
-
id: e.source.props.id,
|
|
16362
|
+
id: String(e.source.props.id),
|
|
16363
16363
|
text: e.source.props.text,
|
|
16364
16364
|
},
|
|
16365
16365
|
target: {
|
|
16366
|
-
id: e.target.props.id,
|
|
16366
|
+
id: String(e.target.props.id),
|
|
16367
16367
|
text: e.target.props.text,
|
|
16368
16368
|
}
|
|
16369
16369
|
};
|
|
@@ -16377,7 +16377,7 @@ var Dagre = /** @class */ (function (_super) {
|
|
|
16377
16377
|
.filter(function (v) { return data.vertexParent(v.id) !== undefined; })
|
|
16378
16378
|
.map(function (v) { return ({
|
|
16379
16379
|
parent: clusterID(data.vertexParent(v.id).props.id),
|
|
16380
|
-
child: v.id
|
|
16380
|
+
child: String(v.id)
|
|
16381
16381
|
}); }), true)
|
|
16382
16382
|
}, this._options).response.then(function (response) {
|
|
16383
16383
|
if (_this.running()) {
|
|
@@ -16601,7 +16601,7 @@ var Graphviz = /** @class */ (function (_super) {
|
|
|
16601
16601
|
return graphviz$1({
|
|
16602
16602
|
items: hierarchy,
|
|
16603
16603
|
links: data.allEdges().map(function (e) { return ({
|
|
16604
|
-
id: e.props.id,
|
|
16604
|
+
id: String(e.props.id),
|
|
16605
16605
|
source: nodeIdx[e.source.id],
|
|
16606
16606
|
target: nodeIdx[e.target.id],
|
|
16607
16607
|
text: e.props.label || ""
|
|
@@ -17707,7 +17707,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
17707
17707
|
}
|
|
17708
17708
|
if (doClick) {
|
|
17709
17709
|
context._selection.click({
|
|
17710
|
-
_id: d.id,
|
|
17710
|
+
_id: String(d.id),
|
|
17711
17711
|
element: function () { return d.element; }
|
|
17712
17712
|
}, d3Event().sourceEvent);
|
|
17713
17713
|
context.selectionChanged();
|
|
@@ -17805,7 +17805,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
17805
17805
|
this._selection.set(_.map(function (item) {
|
|
17806
17806
|
var vp = _this._graphData.item(item.id);
|
|
17807
17807
|
return {
|
|
17808
|
-
_id: vp.id,
|
|
17808
|
+
_id: String(vp.id),
|
|
17809
17809
|
element: function () { return vp.element; }
|
|
17810
17810
|
};
|
|
17811
17811
|
}));
|
|
@@ -18142,7 +18142,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
18142
18142
|
.attr("class", "graphEdge")
|
|
18143
18143
|
.on("click.selectionBag", function (d) {
|
|
18144
18144
|
context._selection.click({
|
|
18145
|
-
_id: d.id,
|
|
18145
|
+
_id: String(d.id),
|
|
18146
18146
|
element: function () { return d.element; }
|
|
18147
18147
|
}, d3Event());
|
|
18148
18148
|
context.selectionChanged();
|
|
@@ -18272,7 +18272,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
18272
18272
|
.attr("class", "subgraphPlaceholder")
|
|
18273
18273
|
.on("click.selectionBag", function (d) {
|
|
18274
18274
|
context._selection.click({
|
|
18275
|
-
_id: d.id,
|
|
18275
|
+
_id: String(d.id),
|
|
18276
18276
|
element: function () { return d.element; }
|
|
18277
18277
|
}, d3Event());
|
|
18278
18278
|
context.selectionChanged();
|
|
@@ -18303,6 +18303,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
18303
18303
|
_super.prototype.enter.call(this, domNode, element);
|
|
18304
18304
|
var svg = this.locateSVGNode(domNode);
|
|
18305
18305
|
this._svgDefs = select(svg).select("defs");
|
|
18306
|
+
this._centroidFilter = new SVGGlowFilter(this._svgDefs, this._id + "_glow");
|
|
18306
18307
|
this._svgDefsCat = this._svgDefs.append("g");
|
|
18307
18308
|
this._svgDefsAnn = this._svgDefs.append("g");
|
|
18308
18309
|
this._subgraphG = this._renderElement.append("g");
|
|
@@ -18555,6 +18556,7 @@ GraphT.prototype.publish("tooltipHeight", 128, "number", "Tooltip width (pixels)
|
|
|
18555
18556
|
GraphT.prototype.publish("enableTooltipPointerEvents", false, "boolean", "If true, tooltip will use the style: 'pointer-events: all'");
|
|
18556
18557
|
GraphT.prototype.publish("tooltipCloseDelay", 0, "number", "Number of milliseconds to wait before closing tooltip (cancelled on tooltip mouseover event)");
|
|
18557
18558
|
GraphT.prototype.publish("doubleClickMaxDelay", 300, "number", "Number of milliseconds to wait before a subsequent click is not considered a double click");
|
|
18559
|
+
GraphT.prototype.publish("highlightSelectedPathToCentroid", true, "boolean", "Highlight path to Center Vertex (for selected vertices)");
|
|
18558
18560
|
GraphT.prototype.publish("hierarchyRankDirection", "TB", "set", "Direction for Rank Nodes", ["TB", "BT", "LR", "RL"], { disable: function (w) { return w.layout() !== "Hierarchy"; } });
|
|
18559
18561
|
GraphT.prototype.publish("hierarchyNodeSeparation", 50, "number", "Number of pixels that separate nodes horizontally in the layout", null, { disable: function (w) { return w.layout() !== "Hierarchy"; } });
|
|
18560
18562
|
GraphT.prototype.publish("hierarchyEdgeSeparation", 10, "number", "Number of pixels that separate edges horizontally in the layout", null, { disable: function (w) { return w.layout() !== "Hierarchy"; } });
|
|
@@ -18594,16 +18596,6 @@ function graphviz(dot, engine, _scriptDir) {
|
|
|
18594
18596
|
});
|
|
18595
18597
|
}
|
|
18596
18598
|
|
|
18597
|
-
// , Shape, Text,
|
|
18598
|
-
var BasicEdge = function (_a) {
|
|
18599
|
-
var label = _a.label, labelPos = _a.labelPos, _b = _a.labelFill, labelFill = _b === void 0 ? "black" : _b, _c = _a.labelHeight, labelHeight = _c === void 0 ? 12 : _c, path = _a.path, color = _a.color, strokeWidth = _a.strokeWidth, strokeDasharray = _a.strokeDasharray;
|
|
18600
|
-
return React.createElement(React.Fragment, null,
|
|
18601
|
-
React.createElement("path", { d: path, stroke: color, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
|
|
18602
|
-
label && labelPos && labelPos.length === 2 ?
|
|
18603
|
-
React.createElement("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
|
|
18604
|
-
React.createElement(Text$1, { text: label, fill: labelFill, height: labelHeight })) : undefined);
|
|
18605
|
-
};
|
|
18606
|
-
|
|
18607
18599
|
function adapter(reactRenderer) {
|
|
18608
18600
|
return function (props, element) { return render(reactRenderer, props, element); };
|
|
18609
18601
|
}
|
|
@@ -18638,6 +18630,16 @@ var GraphReactT = /** @class */ (function (_super) {
|
|
|
18638
18630
|
return GraphReactT;
|
|
18639
18631
|
}(GraphT));
|
|
18640
18632
|
|
|
18633
|
+
// , Shape, Text,
|
|
18634
|
+
var BasicEdge = function (_a) {
|
|
18635
|
+
var label = _a.label, labelPos = _a.labelPos, _b = _a.labelFill, labelFill = _b === void 0 ? "black" : _b, _c = _a.labelHeight, labelHeight = _c === void 0 ? 12 : _c, path = _a.path, color = _a.color, strokeWidth = _a.strokeWidth, strokeDasharray = _a.strokeDasharray;
|
|
18636
|
+
return React.createElement(React.Fragment, null,
|
|
18637
|
+
React.createElement("path", { d: path, stroke: color, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
|
|
18638
|
+
label && labelPos && labelPos.length === 2 ?
|
|
18639
|
+
React.createElement("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
|
|
18640
|
+
React.createElement(Text$1, { text: label, fill: labelFill, height: labelHeight })) : undefined);
|
|
18641
|
+
};
|
|
18642
|
+
|
|
18641
18643
|
var Graph2 = /** @class */ (function (_super) {
|
|
18642
18644
|
__extends(Graph2, _super);
|
|
18643
18645
|
function Graph2() {
|
|
@@ -18692,7 +18694,6 @@ var Graph2 = /** @class */ (function (_super) {
|
|
|
18692
18694
|
};
|
|
18693
18695
|
Graph2.prototype.enter = function (domNode, element) {
|
|
18694
18696
|
_super.prototype.enter.call(this, domNode, element);
|
|
18695
|
-
this._centroidFilter = new SVGGlowFilter(this._svgDefs, this._id + "_glow");
|
|
18696
18697
|
};
|
|
18697
18698
|
Graph2.prototype.update = function (domNode, element) {
|
|
18698
18699
|
_super.prototype.update.call(this, domNode, element);
|
|
@@ -18708,7 +18709,6 @@ Graph2.prototype.publish("vertexIconPadding", 10, "number", "Vertex Icon Padding
|
|
|
18708
18709
|
Graph2.prototype.publish("vertexIconStrokeWidth", 0, "number", "Vertex Icon Stroke Width");
|
|
18709
18710
|
Graph2.prototype.publish("vertexIconFontFamily", "FontAwesome", "string", "Vertex Icon Font Family");
|
|
18710
18711
|
Graph2.prototype.publish("vertexLabelFontFamily", "Verdana", "string", "Vertex Label Font Family");
|
|
18711
|
-
Graph2.prototype.publish("highlightSelectedPathToCentroid", true, "boolean", "Highlight path to Center Vertex (for selected vertices)");
|
|
18712
18712
|
Graph2.prototype.publish("centroidColor", "#00A000", "html-color", "Centroid Glow Color");
|
|
18713
18713
|
Graph2.prototype.publish("centroidScale", 1, "number", "Centroid Scale");
|
|
18714
18714
|
Graph2.prototype.publish("centroidTextHeight", 12, "number", "Centroid Text Height");
|
|
@@ -19389,5 +19389,5 @@ var BasicVertex = function (_a) {
|
|
|
19389
19389
|
React.createElement(Text$1, { text: text, fill: textFill, height: textHeight })));
|
|
19390
19390
|
};
|
|
19391
19391
|
|
|
19392
|
-
export { AdjacencyGraph, Annotation, AnnotationColumn, BUILD_VERSION, BasicEdge, BasicSubgraph, BasicVertex, DataGraph, Edge, Graph, Graph2, GraphT, PKG_NAME, PKG_VERSION, Sankey, SankeyColumn, SankeyGraph, Subgraph, Vertex, graphviz, toJsonObj };
|
|
19392
|
+
export { AdjacencyGraph, Annotation, AnnotationColumn, BUILD_VERSION, BasicEdge, BasicSubgraph, BasicVertex, DataGraph, Edge, Graph, Graph2, GraphReactT, GraphT, PKG_NAME, PKG_VERSION, Sankey, SankeyColumn, SankeyGraph, Subgraph, Vertex, graphviz, toJsonObj };
|
|
19393
19393
|
//# sourceMappingURL=index.es6.js.map
|