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

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