mol_plot_all 1.2.1076 → 1.2.1078

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/node.mjs CHANGED
@@ -4131,7 +4131,8 @@ var $;
4131
4131
  (obj.title) = () => ((this?.hint()));
4132
4132
  return obj;
4133
4133
  }
4134
- hue(){
4134
+ hue(next){
4135
+ if(next !== undefined) return next;
4135
4136
  return +NaN;
4136
4137
  }
4137
4138
  Sample(){
@@ -4153,6 +4154,7 @@ var $;
4153
4154
  ($mol_mem(($.$mol_plot_graph.prototype), "size_real"));
4154
4155
  ($mol_mem(($.$mol_plot_graph.prototype), "gap"));
4155
4156
  ($mol_mem(($.$mol_plot_graph.prototype), "Hint"));
4157
+ ($mol_mem(($.$mol_plot_graph.prototype), "hue"));
4156
4158
  ($.$mol_plot_graph_sample) = class $mol_plot_graph_sample extends ($.$mol_view) {
4157
4159
  type(){
4158
4160
  return "solid";
@@ -4280,7 +4282,7 @@ var $;
4280
4282
  graphs_colored() {
4281
4283
  const graphs = this.graphs_visible();
4282
4284
  for (let index = 0; index < graphs.length; index++) {
4283
- graphs[index].hue = () => this.graph_hue(index);
4285
+ graphs[index].hue(this.graph_hue(index));
4284
4286
  }
4285
4287
  return graphs;
4286
4288
  }
package/node.test.js CHANGED
@@ -4122,7 +4122,8 @@ var $;
4122
4122
  (obj.title) = () => ((this?.hint()));
4123
4123
  return obj;
4124
4124
  }
4125
- hue(){
4125
+ hue(next){
4126
+ if(next !== undefined) return next;
4126
4127
  return +NaN;
4127
4128
  }
4128
4129
  Sample(){
@@ -4144,6 +4145,7 @@ var $;
4144
4145
  ($mol_mem(($.$mol_plot_graph.prototype), "size_real"));
4145
4146
  ($mol_mem(($.$mol_plot_graph.prototype), "gap"));
4146
4147
  ($mol_mem(($.$mol_plot_graph.prototype), "Hint"));
4148
+ ($mol_mem(($.$mol_plot_graph.prototype), "hue"));
4147
4149
  ($.$mol_plot_graph_sample) = class $mol_plot_graph_sample extends ($.$mol_view) {
4148
4150
  type(){
4149
4151
  return "solid";
@@ -4271,7 +4273,7 @@ var $;
4271
4273
  graphs_colored() {
4272
4274
  const graphs = this.graphs_visible();
4273
4275
  for (let index = 0; index < graphs.length; index++) {
4274
- graphs[index].hue = () => this.graph_hue(index);
4276
+ graphs[index].hue(this.graph_hue(index));
4275
4277
  }
4276
4278
  return graphs;
4277
4279
  }