mol_plot_all 1.2.1344 → 1.2.1345

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.js CHANGED
@@ -3250,15 +3250,22 @@ var $;
3250
3250
  if (path.length === 0 && check(this))
3251
3251
  return yield [this];
3252
3252
  try {
3253
- for (const item of this.sub()) {
3254
- if (item instanceof $mol_view && check(item)) {
3255
- return yield [...path, this, item];
3256
- }
3253
+ const checked = new Set();
3254
+ const sub = this.sub();
3255
+ for (const item of sub) {
3256
+ if (!(item instanceof $mol_view))
3257
+ continue;
3258
+ if (!check(item))
3259
+ continue;
3260
+ checked.add(item);
3261
+ yield [...path, this, item];
3257
3262
  }
3258
- for (const item of this.sub()) {
3259
- if (item instanceof $mol_view) {
3260
- yield* item.view_find(check, [...path, this]);
3261
- }
3263
+ for (const item of sub) {
3264
+ if (!(item instanceof $mol_view))
3265
+ continue;
3266
+ if (checked.has(item))
3267
+ continue;
3268
+ yield* item.view_find(check, [...path, this]);
3262
3269
  }
3263
3270
  }
3264
3271
  catch (error) {
@@ -4854,8 +4861,8 @@ var $;
4854
4861
  const points = this.points();
4855
4862
  if (points.length === 0)
4856
4863
  return '';
4857
- const main = points.map(point => `L ${point.join(' ')}`).join(' ');
4858
- return `M ${points[0].join(' ')} ${main}`;
4864
+ const main = points.map((point) => point.join(',')).join(' ');
4865
+ return `M ${points[0].join(' ')} L ${main}`;
4859
4866
  }
4860
4867
  }
4861
4868
  __decorate([
@@ -5401,8 +5408,8 @@ var $;
5401
5408
  if (points.length === 0)
5402
5409
  return '';
5403
5410
  const [, shift_y] = this.shift();
5404
- const main = points.map(point => `L ${point.join(' ')}`).join(' ');
5405
- return `M ${points[0].join(' ')} ${main} V ${shift_y} H ${points[0][0]}`;
5411
+ const main = points.map(point => point.join(',')).join(' ');
5412
+ return `M ${points[0].join(' ')} L ${main} V ${shift_y} H ${points[0][0]}`;
5406
5413
  }
5407
5414
  front() {
5408
5415
  return [];