@ni/spright-components 6.4.22 → 6.4.23

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.
@@ -83207,28 +83207,33 @@ focus outline in that case.
83207
83207
  return this.bytes_.length;
83208
83208
  }
83209
83209
  readInt8(offset) {
83210
- return this.readUint8(offset) << 24 >> 24;
83210
+ return (this.readUint8(offset) << 24) >> 24;
83211
83211
  }
83212
83212
  readUint8(offset) {
83213
83213
  return this.bytes_[offset];
83214
83214
  }
83215
83215
  readInt16(offset) {
83216
- return this.readUint16(offset) << 16 >> 16;
83216
+ return (this.readUint16(offset) << 16) >> 16;
83217
83217
  }
83218
83218
  readUint16(offset) {
83219
- return this.bytes_[offset] | this.bytes_[offset + 1] << 8;
83219
+ return this.bytes_[offset] | (this.bytes_[offset + 1] << 8);
83220
83220
  }
83221
83221
  readInt32(offset) {
83222
- return this.bytes_[offset] | this.bytes_[offset + 1] << 8 | this.bytes_[offset + 2] << 16 | this.bytes_[offset + 3] << 24;
83222
+ return (this.bytes_[offset] |
83223
+ (this.bytes_[offset + 1] << 8) |
83224
+ (this.bytes_[offset + 2] << 16) |
83225
+ (this.bytes_[offset + 3] << 24));
83223
83226
  }
83224
83227
  readUint32(offset) {
83225
83228
  return this.readInt32(offset) >>> 0;
83226
83229
  }
83227
83230
  readInt64(offset) {
83228
- return BigInt.asIntN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83231
+ return BigInt.asIntN(64, BigInt(this.readUint32(offset)) +
83232
+ (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83229
83233
  }
83230
83234
  readUint64(offset) {
83231
- return BigInt.asUintN(64, BigInt(this.readUint32(offset)) + (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83235
+ return BigInt.asUintN(64, BigInt(this.readUint32(offset)) +
83236
+ (BigInt(this.readUint32(offset + 4)) << BigInt(32)));
83232
83237
  }
83233
83238
  readFloat32(offset) {
83234
83239
  int32[0] = this.readInt32(offset);
@@ -83288,11 +83293,11 @@ focus outline in that case.
83288
83293
  * start of a the root vtable).
83289
83294
  */
83290
83295
  getBufferIdentifier() {
83291
- if (this.bytes_.length < this.position_ + SIZEOF_INT +
83292
- FILE_IDENTIFIER_LENGTH) {
83296
+ if (this.bytes_.length <
83297
+ this.position_ + SIZEOF_INT + FILE_IDENTIFIER_LENGTH) {
83293
83298
  throw new Error('FlatBuffers: ByteBuffer is too short to contain an identifier.');
83294
83299
  }
83295
- let result = "";
83300
+ let result = '';
83296
83301
  for (let i = 0; i < FILE_IDENTIFIER_LENGTH; i++) {
83297
83302
  result += String.fromCharCode(this.readInt8(this.position_ + SIZEOF_INT + i));
83298
83303
  }
@@ -83304,7 +83309,9 @@ focus outline in that case.
83304
83309
  */
83305
83310
  __offset(bb_pos, vtable_offset) {
83306
83311
  const vtable = bb_pos - this.readInt32(bb_pos);
83307
- return vtable_offset < this.readInt16(vtable) ? this.readInt16(vtable + vtable_offset) : 0;
83312
+ return vtable_offset < this.readInt16(vtable)
83313
+ ? this.readInt16(vtable + vtable_offset)
83314
+ : 0;
83308
83315
  }
83309
83316
  /**
83310
83317
  * Initialize any Table-derived type to point to the union at the given offset.
@@ -83368,8 +83375,7 @@ focus outline in that case.
83368
83375
  }
83369
83376
  __has_identifier(ident) {
83370
83377
  if (ident.length != FILE_IDENTIFIER_LENGTH) {
83371
- throw new Error('FlatBuffers: file identifier must be length ' +
83372
- FILE_IDENTIFIER_LENGTH);
83378
+ throw new Error('FlatBuffers: file identifier must be length ' + FILE_IDENTIFIER_LENGTH);
83373
83379
  }
83374
83380
  for (let i = 0; i < FILE_IDENTIFIER_LENGTH; i++) {
83375
83381
  if (ident.charCodeAt(i) != this.readInt8(this.position() + SIZEOF_INT + i)) {
@@ -83482,7 +83488,9 @@ focus outline in that case.
83482
83488
  * called finish().
83483
83489
  */
83484
83490
  asUint8Array() {
83485
- return this.bb.bytes().subarray(this.bb.position(), this.bb.position() + this.offset());
83491
+ return this.bb
83492
+ .bytes()
83493
+ .subarray(this.bb.position(), this.bb.position() + this.offset());
83486
83494
  }
83487
83495
  /**
83488
83496
  * Prepare to write an element of `size` after `additional_bytes` have been
@@ -83500,7 +83508,7 @@ focus outline in that case.
83500
83508
  }
83501
83509
  // Find the amount of alignment needed such that `size` is properly
83502
83510
  // aligned after `additional_bytes`
83503
- const align_size = ((~(this.bb.capacity() - this.space + additional_bytes)) + 1) & (size - 1);
83511
+ const align_size = (~(this.bb.capacity() - this.space + additional_bytes) + 1) & (size - 1);
83504
83512
  // Reallocate the buffer if needed.
83505
83513
  while (this.space < align_size + size + additional_bytes) {
83506
83514
  const old_buf_size = this.bb.capacity();
@@ -83515,22 +83523,22 @@ focus outline in that case.
83515
83523
  }
83516
83524
  }
83517
83525
  writeInt8(value) {
83518
- this.bb.writeInt8(this.space -= 1, value);
83526
+ this.bb.writeInt8((this.space -= 1), value);
83519
83527
  }
83520
83528
  writeInt16(value) {
83521
- this.bb.writeInt16(this.space -= 2, value);
83529
+ this.bb.writeInt16((this.space -= 2), value);
83522
83530
  }
83523
83531
  writeInt32(value) {
83524
- this.bb.writeInt32(this.space -= 4, value);
83532
+ this.bb.writeInt32((this.space -= 4), value);
83525
83533
  }
83526
83534
  writeInt64(value) {
83527
- this.bb.writeInt64(this.space -= 8, value);
83535
+ this.bb.writeInt64((this.space -= 8), value);
83528
83536
  }
83529
83537
  writeFloat32(value) {
83530
- this.bb.writeFloat32(this.space -= 4, value);
83538
+ this.bb.writeFloat32((this.space -= 4), value);
83531
83539
  }
83532
83540
  writeFloat64(value) {
83533
- this.bb.writeFloat64(this.space -= 8, value);
83541
+ this.bb.writeFloat64((this.space -= 8), value);
83534
83542
  }
83535
83543
  /**
83536
83544
  * Add an `int8` to the buffer, properly aligned, and grows the buffer (if necessary).
@@ -83678,7 +83686,7 @@ focus outline in that case.
83678
83686
  static growByteBuffer(bb) {
83679
83687
  const old_buf_size = bb.capacity();
83680
83688
  // Ensure we don't grow beyond what fits in an int.
83681
- if (old_buf_size & 0xC0000000) {
83689
+ if (old_buf_size & 0xc0000000) {
83682
83690
  throw new Error('FlatBuffers: cannot grow buffer beyond 2 gigabytes.');
83683
83691
  }
83684
83692
  const new_buf_size = old_buf_size << 1;
@@ -83777,8 +83785,7 @@ focus outline in that case.
83777
83785
  const size_prefix = opt_size_prefix ? SIZE_PREFIX_LENGTH : 0;
83778
83786
  if (opt_file_identifier) {
83779
83787
  const file_identifier = opt_file_identifier;
83780
- this.prep(this.minalign, SIZEOF_INT +
83781
- FILE_IDENTIFIER_LENGTH + size_prefix);
83788
+ this.prep(this.minalign, SIZEOF_INT + FILE_IDENTIFIER_LENGTH + size_prefix);
83782
83789
  if (file_identifier.length != FILE_IDENTIFIER_LENGTH) {
83783
83790
  throw new TypeError('FlatBuffers: file identifier must be length ' +
83784
83791
  FILE_IDENTIFIER_LENGTH);
@@ -83881,7 +83888,7 @@ focus outline in that case.
83881
83888
  }
83882
83889
  this.addInt8(0);
83883
83890
  this.startVector(1, utf8.length, 1);
83884
- this.bb.setPosition(this.space -= utf8.length);
83891
+ this.bb.setPosition((this.space -= utf8.length));
83885
83892
  this.bb.bytes().set(utf8, this.space);
83886
83893
  return this.endVector();
83887
83894
  }
@@ -83896,7 +83903,7 @@ focus outline in that case.
83896
83903
  return 0;
83897
83904
  }
83898
83905
  this.startVector(1, v.length, 1);
83899
- this.bb.setPosition(this.space -= v.length);
83906
+ this.bb.setPosition((this.space -= v.length));
83900
83907
  this.bb.bytes().set(v, this.space);
83901
83908
  return this.endVector();
83902
83909
  }