graph_widget 0.1.9__tar.gz → 0.1.10__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graph_widget
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Requires-Dist: anywidget
5
5
  Requires-Dist: marimo
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "graph_widget"
7
- version = "0.1.9"
7
+ version = "0.1.10"
8
8
  dependencies = ["anywidget","marimo"]
9
9
  readme = "README.md"
10
10
 
@@ -89,7 +89,7 @@ function render({ model, el }) {
89
89
  let feature_type = get_feature_type(feature_values[0])
90
90
  if ( feature_type == "numeric" ) {
91
91
  if ( colour_scale_type == "diverging" ) {
92
- colour_scale = scaleLinear().domain([min(feature_values), 0, max(feature_values)]).range(["#0000FFBF","#EEEEEE33","#FF0000BF"])
92
+ colour_scale = scaleLinear().domain([min(feature_values), 0, max(feature_values)]).range(["#0000FFBF","white","#FF0000BF"])
93
93
  } else {
94
94
  colour_scale = scaleLinear().domain(extent(feature_values)).range(["#FFFF0080", "#0000FF80"])
95
95
  }
@@ -127,8 +127,8 @@ function render({ model, el }) {
127
127
  ctx.strokeStyle = 'red';
128
128
  ctx.stroke();
129
129
  } else {
130
- ctx.lineWidth = 1;
131
- ctx.strokeStyle = 'white';
130
+ ctx.lineWidth = radius/10;
131
+ ctx.strokeStyle = 'lightgrey';
132
132
  ctx.stroke();
133
133
  }
134
134
  });
@@ -189,7 +189,7 @@ function render({ model, el }) {
189
189
  ctx.strokeStyle = 'red';
190
190
  ctx.stroke();
191
191
  } else {
192
- ctx.lineWidth = 1;
192
+ ctx.lineWidth = radius/10;
193
193
  ctx.strokeStyle = 'lightgrey';
194
194
  ctx.stroke();
195
195
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes