@vertexvis/stream-api 0.18.2-testing.1 → 0.18.2-testing.3

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.
@@ -12018,6 +12018,7 @@ const vertexvis = $root.vertexvis = (() => {
12018
12018
  * @property {string|null} [experimentalRenderingOptions] StreamAttributes experimentalRenderingOptions
12019
12019
  * @property {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null} [selectionHighlighting] StreamAttributes selectionHighlighting
12020
12020
  * @property {vertexvis.protobuf.stream.IPhantomAttributes|null} [phantomItems] StreamAttributes phantomItems
12021
+ * @property {vertexvis.protobuf.stream.IFrameAttributes|null} [frames] StreamAttributes frames
12021
12022
  */
12022
12023
 
12023
12024
  /**
@@ -12107,6 +12108,14 @@ const vertexvis = $root.vertexvis = (() => {
12107
12108
  */
12108
12109
  StreamAttributes.prototype.phantomItems = null;
12109
12110
 
12111
+ /**
12112
+ * StreamAttributes frames.
12113
+ * @member {vertexvis.protobuf.stream.IFrameAttributes|null|undefined} frames
12114
+ * @memberof vertexvis.protobuf.stream.StreamAttributes
12115
+ * @instance
12116
+ */
12117
+ StreamAttributes.prototype.frames = null;
12118
+
12110
12119
  /**
12111
12120
  * Creates a new StreamAttributes instance using the specified properties.
12112
12121
  * @function create
@@ -12149,6 +12158,8 @@ const vertexvis = $root.vertexvis = (() => {
12149
12158
  $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.encode(message.selectionHighlighting, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
12150
12159
  if (message.phantomItems != null && Object.hasOwnProperty.call(message, "phantomItems"))
12151
12160
  $root.vertexvis.protobuf.stream.PhantomAttributes.encode(message.phantomItems, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
12161
+ if (message.frames != null && Object.hasOwnProperty.call(message, "frames"))
12162
+ $root.vertexvis.protobuf.stream.FrameAttributes.encode(message.frames, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
12152
12163
  return writer;
12153
12164
  };
12154
12165
 
@@ -12210,6 +12221,9 @@ const vertexvis = $root.vertexvis = (() => {
12210
12221
  case 9:
12211
12222
  message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.decode(reader, reader.uint32());
12212
12223
  break;
12224
+ case 10:
12225
+ message.frames = $root.vertexvis.protobuf.stream.FrameAttributes.decode(reader, reader.uint32());
12226
+ break;
12213
12227
  default:
12214
12228
  reader.skipType(tag & 7);
12215
12229
  break;
@@ -12286,6 +12300,11 @@ const vertexvis = $root.vertexvis = (() => {
12286
12300
  if (error)
12287
12301
  return "phantomItems." + error;
12288
12302
  }
12303
+ if (message.frames != null && message.hasOwnProperty("frames")) {
12304
+ let error = $root.vertexvis.protobuf.stream.FrameAttributes.verify(message.frames);
12305
+ if (error)
12306
+ return "frames." + error;
12307
+ }
12289
12308
  return null;
12290
12309
  };
12291
12310
 
@@ -12340,6 +12359,11 @@ const vertexvis = $root.vertexvis = (() => {
12340
12359
  throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.phantomItems: object expected");
12341
12360
  message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.fromObject(object.phantomItems);
12342
12361
  }
12362
+ if (object.frames != null) {
12363
+ if (typeof object.frames !== "object")
12364
+ throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.frames: object expected");
12365
+ message.frames = $root.vertexvis.protobuf.stream.FrameAttributes.fromObject(object.frames);
12366
+ }
12343
12367
  return message;
12344
12368
  };
12345
12369
 
@@ -12366,6 +12390,7 @@ const vertexvis = $root.vertexvis = (() => {
12366
12390
  object.experimentalRenderingOptions = "";
12367
12391
  object.selectionHighlighting = null;
12368
12392
  object.phantomItems = null;
12393
+ object.frames = null;
12369
12394
  }
12370
12395
  if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
12371
12396
  object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
@@ -12385,6 +12410,8 @@ const vertexvis = $root.vertexvis = (() => {
12385
12410
  object.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.toObject(message.selectionHighlighting, options);
12386
12411
  if (message.phantomItems != null && message.hasOwnProperty("phantomItems"))
12387
12412
  object.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.toObject(message.phantomItems, options);
12413
+ if (message.frames != null && message.hasOwnProperty("frames"))
12414
+ object.frames = $root.vertexvis.protobuf.stream.FrameAttributes.toObject(message.frames, options);
12388
12415
  return object;
12389
12416
  };
12390
12417
 
@@ -13482,6 +13509,198 @@ const vertexvis = $root.vertexvis = (() => {
13482
13509
  return AnimationAttributes;
13483
13510
  })();
13484
13511
 
13512
+ stream.FrameAttributes = (function() {
13513
+
13514
+ /**
13515
+ * Properties of a FrameAttributes.
13516
+ * @memberof vertexvis.protobuf.stream
13517
+ * @interface IFrameAttributes
13518
+ * @property {vertexvis.protobuf.core.IRGBi|null} [frameBackgroundColor] FrameAttributes frameBackgroundColor
13519
+ */
13520
+
13521
+ /**
13522
+ * Constructs a new FrameAttributes.
13523
+ * @memberof vertexvis.protobuf.stream
13524
+ * @classdesc Represents a FrameAttributes.
13525
+ * @implements IFrameAttributes
13526
+ * @constructor
13527
+ * @param {vertexvis.protobuf.stream.IFrameAttributes=} [properties] Properties to set
13528
+ */
13529
+ function FrameAttributes(properties) {
13530
+ if (properties)
13531
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13532
+ if (properties[keys[i]] != null)
13533
+ this[keys[i]] = properties[keys[i]];
13534
+ }
13535
+
13536
+ /**
13537
+ * FrameAttributes frameBackgroundColor.
13538
+ * @member {vertexvis.protobuf.core.IRGBi|null|undefined} frameBackgroundColor
13539
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13540
+ * @instance
13541
+ */
13542
+ FrameAttributes.prototype.frameBackgroundColor = null;
13543
+
13544
+ /**
13545
+ * Creates a new FrameAttributes instance using the specified properties.
13546
+ * @function create
13547
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13548
+ * @static
13549
+ * @param {vertexvis.protobuf.stream.IFrameAttributes=} [properties] Properties to set
13550
+ * @returns {vertexvis.protobuf.stream.FrameAttributes} FrameAttributes instance
13551
+ */
13552
+ FrameAttributes.create = function create(properties) {
13553
+ return new FrameAttributes(properties);
13554
+ };
13555
+
13556
+ /**
13557
+ * Encodes the specified FrameAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.FrameAttributes.verify|verify} messages.
13558
+ * @function encode
13559
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13560
+ * @static
13561
+ * @param {vertexvis.protobuf.stream.IFrameAttributes} message FrameAttributes message or plain object to encode
13562
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13563
+ * @returns {$protobuf.Writer} Writer
13564
+ */
13565
+ FrameAttributes.encode = function encode(message, writer) {
13566
+ if (!writer)
13567
+ writer = $Writer.create();
13568
+ if (message.frameBackgroundColor != null && Object.hasOwnProperty.call(message, "frameBackgroundColor"))
13569
+ $root.vertexvis.protobuf.core.RGBi.encode(message.frameBackgroundColor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13570
+ return writer;
13571
+ };
13572
+
13573
+ /**
13574
+ * Encodes the specified FrameAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FrameAttributes.verify|verify} messages.
13575
+ * @function encodeDelimited
13576
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13577
+ * @static
13578
+ * @param {vertexvis.protobuf.stream.IFrameAttributes} message FrameAttributes message or plain object to encode
13579
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13580
+ * @returns {$protobuf.Writer} Writer
13581
+ */
13582
+ FrameAttributes.encodeDelimited = function encodeDelimited(message, writer) {
13583
+ return this.encode(message, writer).ldelim();
13584
+ };
13585
+
13586
+ /**
13587
+ * Decodes a FrameAttributes message from the specified reader or buffer.
13588
+ * @function decode
13589
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13590
+ * @static
13591
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13592
+ * @param {number} [length] Message length if known beforehand
13593
+ * @returns {vertexvis.protobuf.stream.FrameAttributes} FrameAttributes
13594
+ * @throws {Error} If the payload is not a reader or valid buffer
13595
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13596
+ */
13597
+ FrameAttributes.decode = function decode(reader, length) {
13598
+ if (!(reader instanceof $Reader))
13599
+ reader = $Reader.create(reader);
13600
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FrameAttributes();
13601
+ while (reader.pos < end) {
13602
+ let tag = reader.uint32();
13603
+ switch (tag >>> 3) {
13604
+ case 1:
13605
+ message.frameBackgroundColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
13606
+ break;
13607
+ default:
13608
+ reader.skipType(tag & 7);
13609
+ break;
13610
+ }
13611
+ }
13612
+ return message;
13613
+ };
13614
+
13615
+ /**
13616
+ * Decodes a FrameAttributes message from the specified reader or buffer, length delimited.
13617
+ * @function decodeDelimited
13618
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13619
+ * @static
13620
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13621
+ * @returns {vertexvis.protobuf.stream.FrameAttributes} FrameAttributes
13622
+ * @throws {Error} If the payload is not a reader or valid buffer
13623
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13624
+ */
13625
+ FrameAttributes.decodeDelimited = function decodeDelimited(reader) {
13626
+ if (!(reader instanceof $Reader))
13627
+ reader = new $Reader(reader);
13628
+ return this.decode(reader, reader.uint32());
13629
+ };
13630
+
13631
+ /**
13632
+ * Verifies a FrameAttributes message.
13633
+ * @function verify
13634
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13635
+ * @static
13636
+ * @param {Object.<string,*>} message Plain object to verify
13637
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13638
+ */
13639
+ FrameAttributes.verify = function verify(message) {
13640
+ if (typeof message !== "object" || message === null)
13641
+ return "object expected";
13642
+ if (message.frameBackgroundColor != null && message.hasOwnProperty("frameBackgroundColor")) {
13643
+ let error = $root.vertexvis.protobuf.core.RGBi.verify(message.frameBackgroundColor);
13644
+ if (error)
13645
+ return "frameBackgroundColor." + error;
13646
+ }
13647
+ return null;
13648
+ };
13649
+
13650
+ /**
13651
+ * Creates a FrameAttributes message from a plain object. Also converts values to their respective internal types.
13652
+ * @function fromObject
13653
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13654
+ * @static
13655
+ * @param {Object.<string,*>} object Plain object
13656
+ * @returns {vertexvis.protobuf.stream.FrameAttributes} FrameAttributes
13657
+ */
13658
+ FrameAttributes.fromObject = function fromObject(object) {
13659
+ if (object instanceof $root.vertexvis.protobuf.stream.FrameAttributes)
13660
+ return object;
13661
+ let message = new $root.vertexvis.protobuf.stream.FrameAttributes();
13662
+ if (object.frameBackgroundColor != null) {
13663
+ if (typeof object.frameBackgroundColor !== "object")
13664
+ throw TypeError(".vertexvis.protobuf.stream.FrameAttributes.frameBackgroundColor: object expected");
13665
+ message.frameBackgroundColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.frameBackgroundColor);
13666
+ }
13667
+ return message;
13668
+ };
13669
+
13670
+ /**
13671
+ * Creates a plain object from a FrameAttributes message. Also converts values to other types if specified.
13672
+ * @function toObject
13673
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13674
+ * @static
13675
+ * @param {vertexvis.protobuf.stream.FrameAttributes} message FrameAttributes
13676
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13677
+ * @returns {Object.<string,*>} Plain object
13678
+ */
13679
+ FrameAttributes.toObject = function toObject(message, options) {
13680
+ if (!options)
13681
+ options = {};
13682
+ let object = {};
13683
+ if (options.defaults)
13684
+ object.frameBackgroundColor = null;
13685
+ if (message.frameBackgroundColor != null && message.hasOwnProperty("frameBackgroundColor"))
13686
+ object.frameBackgroundColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.frameBackgroundColor, options);
13687
+ return object;
13688
+ };
13689
+
13690
+ /**
13691
+ * Converts this FrameAttributes to JSON.
13692
+ * @function toJSON
13693
+ * @memberof vertexvis.protobuf.stream.FrameAttributes
13694
+ * @instance
13695
+ * @returns {Object.<string,*>} JSON object
13696
+ */
13697
+ FrameAttributes.prototype.toJSON = function toJSON() {
13698
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
13699
+ };
13700
+
13701
+ return FrameAttributes;
13702
+ })();
13703
+
13485
13704
  /**
13486
13705
  * FrameType enum.
13487
13706
  * @name vertexvis.protobuf.stream.FrameType