polly-graph 0.1.12 → 0.1.13

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.cjs CHANGED
@@ -5849,7 +5849,7 @@ var SelectionManager = class {
5849
5849
  if (style.stroke !== void 0) nodeElement.style.stroke = style.stroke;
5850
5850
  if (style.strokeWidth !== void 0) nodeElement.style.strokeWidth = String(style.strokeWidth);
5851
5851
  if (style.opacity !== void 0) nodeElement.style.opacity = String(style.opacity);
5852
- if (style.radius !== void 0) nodeElement.style.setProperty("r", String(style.radius));
5852
+ if (style.radius !== void 0) nodeElement.setAttribute("r", String(style.radius));
5853
5853
  }
5854
5854
  this.root.selectAll(".link-label").filter((item) => {
5855
5855
  if (item.style.label.visibility !== "hover") return false;
@@ -5904,7 +5904,8 @@ var SelectionManager = class {
5904
5904
  element.style.stroke = "";
5905
5905
  element.style.strokeWidth = "";
5906
5906
  element.style.opacity = "";
5907
- element.style.removeProperty("r");
5907
+ const originalRadius = data.style?.radius ?? 8;
5908
+ element.setAttribute("r", String(originalRadius));
5908
5909
  delete element.dataset.selected;
5909
5910
  this.root.selectAll(".link-label.label-selection-pinned").classed("label-selection-pinned", false).interrupt().transition().duration(200).style("opacity", 0).style("pointer-events", "none");
5910
5911
  this.state.selectedNode = null;
package/dist/index.js CHANGED
@@ -5817,7 +5817,7 @@ var SelectionManager = class {
5817
5817
  if (style.stroke !== void 0) nodeElement.style.stroke = style.stroke;
5818
5818
  if (style.strokeWidth !== void 0) nodeElement.style.strokeWidth = String(style.strokeWidth);
5819
5819
  if (style.opacity !== void 0) nodeElement.style.opacity = String(style.opacity);
5820
- if (style.radius !== void 0) nodeElement.style.setProperty("r", String(style.radius));
5820
+ if (style.radius !== void 0) nodeElement.setAttribute("r", String(style.radius));
5821
5821
  }
5822
5822
  this.root.selectAll(".link-label").filter((item) => {
5823
5823
  if (item.style.label.visibility !== "hover") return false;
@@ -5872,7 +5872,8 @@ var SelectionManager = class {
5872
5872
  element.style.stroke = "";
5873
5873
  element.style.strokeWidth = "";
5874
5874
  element.style.opacity = "";
5875
- element.style.removeProperty("r");
5875
+ const originalRadius = data.style?.radius ?? 8;
5876
+ element.setAttribute("r", String(originalRadius));
5876
5877
  delete element.dataset.selected;
5877
5878
  this.root.selectAll(".link-label.label-selection-pinned").classed("label-selection-pinned", false).interrupt().transition().duration(200).style("opacity", 0).style("pointer-events", "none");
5878
5879
  this.state.selectedNode = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polly-graph",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Reusable D3-based graph visualization SDK with configurable nodes, links, labels, interactions, and layout behaviors.",
5
5
  "license": "MIT",
6
6
  "author": "Badal",