mol_view_tree2_lib 1.0.38 → 1.0.40

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
@@ -4361,6 +4361,22 @@ var $;
4361
4361
  return pos - from;
4362
4362
  }
4363
4363
  $.$mol_charset_encode_to = $mol_charset_encode_to;
4364
+ function $mol_charset_encode_size(str) {
4365
+ let size = 0;
4366
+ for (let i = 0; i < str.length; i++) {
4367
+ let code = str.charCodeAt(i);
4368
+ if (code < 0x80)
4369
+ size += 1;
4370
+ else if (code < 0x800)
4371
+ size += 2;
4372
+ else if (code < 0xd800 || code >= 0xe000)
4373
+ size += 3;
4374
+ else
4375
+ size += 4;
4376
+ }
4377
+ return size;
4378
+ }
4379
+ $.$mol_charset_encode_size = $mol_charset_encode_size;
4364
4380
  })($ || ($ = {}));
4365
4381
 
4366
4382
  ;
package/node.test.js CHANGED
@@ -4352,6 +4352,22 @@ var $;
4352
4352
  return pos - from;
4353
4353
  }
4354
4354
  $.$mol_charset_encode_to = $mol_charset_encode_to;
4355
+ function $mol_charset_encode_size(str) {
4356
+ let size = 0;
4357
+ for (let i = 0; i < str.length; i++) {
4358
+ let code = str.charCodeAt(i);
4359
+ if (code < 0x80)
4360
+ size += 1;
4361
+ else if (code < 0x800)
4362
+ size += 2;
4363
+ else if (code < 0xd800 || code >= 0xe000)
4364
+ size += 3;
4365
+ else
4366
+ size += 4;
4367
+ }
4368
+ return size;
4369
+ }
4370
+ $.$mol_charset_encode_size = $mol_charset_encode_size;
4355
4371
  })($ || ($ = {}));
4356
4372
 
4357
4373
  ;
@@ -12501,6 +12517,7 @@ var $;
12501
12517
  Body_content: {
12502
12518
  padding: $mol_gap.block,
12503
12519
  minHeight: 0,
12520
+ minWidth: 0,
12504
12521
  flex: {
12505
12522
  direction: 'column',
12506
12523
  shrink: 1,