mol_plot_all 1.2.573 → 1.2.575

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/web.test.js CHANGED
@@ -3296,9 +3296,9 @@ var $;
3296
3296
  const def = this.lang_default();
3297
3297
  if (lang === def)
3298
3298
  throw error;
3299
- return {};
3300
3299
  }
3301
3300
  }
3301
+ return {};
3302
3302
  }
3303
3303
  static text(key) {
3304
3304
  const lang = this.lang();
@@ -3478,8 +3478,8 @@ var $;
3478
3478
  for (let def of $mol_view_tree_classes(tree).sub) {
3479
3479
  if (!/^\$\w+$/.test(def.type))
3480
3480
  throw def.error('Wrong component name');
3481
- var parent = def.sub[0];
3482
- var members = {};
3481
+ const parent = def.sub[0];
3482
+ const members = {};
3483
3483
  for (let param of $mol_view_tree_class_props(def).sub) {
3484
3484
  try {
3485
3485
  var needSet = false;
@@ -3520,12 +3520,12 @@ var $;
3520
3520
  if (val)
3521
3521
  items.push(val.join(""));
3522
3522
  });
3523
- return [`[`, items.join(' , '), `]`, (item_type ? ` as readonly ( ${item_type} )[]` : ` as readonly any[]`)];
3523
+ return [`[`, items.join(' , '), `]`, (item_type ? ` as ( ${item_type} )[]` : ` as any[]`)];
3524
3524
  case (value.type[0] === '$'):
3525
3525
  if (!definition)
3526
3526
  throw value.error('Objects should be bound');
3527
3527
  needCache = true;
3528
- var overs = [];
3528
+ const overs = [];
3529
3529
  value.sub.forEach(over => {
3530
3530
  if (/^[-\/]?$/.test(over.type))
3531
3531
  return '';
@@ -3557,21 +3557,28 @@ var $;
3557
3557
  const object_args = value.select('/', '').sub.map(arg => getValue(arg)).join(' , ');
3558
3558
  return ['(( obj )=>{\n', ...overs, '\t\t\treturn obj\n\t\t})( new this.$.', SourceNode(value.row, value.col, fileName, value.type), '( ', object_args, ' ) )'];
3559
3559
  case (value.type === '*'):
3560
- var opts = [];
3561
- value.sub.forEach(opt => {
3560
+ const opts = [];
3561
+ for (const opt of value.sub) {
3562
3562
  if (opt.type === '-')
3563
- return '';
3563
+ continue;
3564
3564
  if (opt.type === '^') {
3565
3565
  opts.push(`\t\t\t...super.${param.type}() ,\n`);
3566
- return;
3566
+ continue;
3567
3567
  }
3568
- var key = /(.*?)(?:\?(\w+))?$/.exec(opt.type);
3569
- var ns = needSet;
3570
- var v = getValue(opt.sub[0]);
3571
- var arg = key[2] ? ` ( ${key[2]}? : any )=> ` : '';
3572
- opts.push(...['\t\t\t"', SourceNode(opt.row, opt.col, fileName, key[1] + '" : '), arg, ' ', ...(v || []), ' ,\n']);
3568
+ const key = /(.*?)(?:\?(\w+))?$/.exec(opt.type);
3569
+ const ns = needSet;
3570
+ const v = getValue(opt.sub[0]);
3571
+ const arg = key[2] ? ` ( ${key[2]}? : any )=> ` : '';
3572
+ opts.push(...[
3573
+ '\t\t\t"',
3574
+ SourceNode(opt.row, opt.col, fileName, key[1] + '" : '),
3575
+ arg,
3576
+ ' ',
3577
+ ...(v || []),
3578
+ ' ,\n'
3579
+ ]);
3573
3580
  needSet = ns;
3574
- });
3581
+ }
3575
3582
  return ['({\n', opts.join(''), '\t\t})'];
3576
3583
  case (value.type === '<=>'):
3577
3584
  if (value.sub.length === 1) {
@@ -3618,7 +3625,7 @@ var $;
3618
3625
  ...val
3619
3626
  ];
3620
3627
  val = ['return ', ...val];
3621
- var decl = ['\t', SourceNode(param.row, param.col, fileName, propName[1]), '(', args.join(','), ') {\n\t\t', ...val, '\n\t}\n\n'];
3628
+ let decl = ['\t', SourceNode(param.row, param.col, fileName, propName[1]), '(', args.join(','), ') {\n\t\t', ...val, '\n\t}\n\n'];
3622
3629
  if (needCache) {
3623
3630
  if (propName[2])
3624
3631
  decl = ['\t@ $', 'mol_mem_key\n', ...decl];