@vertexvis/stream-api 0.11.1-canary.7 → 0.12.0-canary.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.
@@ -7154,6 +7154,7 @@ const vertexvis = $root.vertexvis = (() => {
7154
7154
  * @property {vertexvis.protobuf.stream.IGhostingAttributes|null} [experimentalGhosting] StreamAttributes experimentalGhosting
7155
7155
  * @property {vertexvis.protobuf.stream.IDepthBufferAttributes|null} [depthBuffers] StreamAttributes depthBuffers
7156
7156
  * @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [featureLines] StreamAttributes featureLines
7157
+ * @property {vertexvis.protobuf.stream.IFeatureHighlightAttributes|null} [featureHighlighting] StreamAttributes featureHighlighting
7157
7158
  */
7158
7159
 
7159
7160
  /**
@@ -7195,6 +7196,14 @@ const vertexvis = $root.vertexvis = (() => {
7195
7196
  */
7196
7197
  StreamAttributes.prototype.featureLines = null;
7197
7198
 
7199
+ /**
7200
+ * StreamAttributes featureHighlighting.
7201
+ * @member {vertexvis.protobuf.stream.IFeatureHighlightAttributes|null|undefined} featureHighlighting
7202
+ * @memberof vertexvis.protobuf.stream.StreamAttributes
7203
+ * @instance
7204
+ */
7205
+ StreamAttributes.prototype.featureHighlighting = null;
7206
+
7198
7207
  /**
7199
7208
  * Creates a new StreamAttributes instance using the specified properties.
7200
7209
  * @function create
@@ -7225,6 +7234,8 @@ const vertexvis = $root.vertexvis = (() => {
7225
7234
  $root.vertexvis.protobuf.stream.DepthBufferAttributes.encode(message.depthBuffers, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
7226
7235
  if (message.featureLines != null && Object.hasOwnProperty.call(message, "featureLines"))
7227
7236
  $root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.featureLines, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
7237
+ if (message.featureHighlighting != null && Object.hasOwnProperty.call(message, "featureHighlighting"))
7238
+ $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.encode(message.featureHighlighting, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
7228
7239
  return writer;
7229
7240
  };
7230
7241
 
@@ -7268,6 +7279,9 @@ const vertexvis = $root.vertexvis = (() => {
7268
7279
  case 3:
7269
7280
  message.featureLines = $root.vertexvis.protobuf.stream.FeatureLineAttributes.decode(reader, reader.uint32());
7270
7281
  break;
7282
+ case 4:
7283
+ message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.decode(reader, reader.uint32());
7284
+ break;
7271
7285
  default:
7272
7286
  reader.skipType(tag & 7);
7273
7287
  break;
@@ -7318,6 +7332,11 @@ const vertexvis = $root.vertexvis = (() => {
7318
7332
  if (error)
7319
7333
  return "featureLines." + error;
7320
7334
  }
7335
+ if (message.featureHighlighting != null && message.hasOwnProperty("featureHighlighting")) {
7336
+ let error = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.verify(message.featureHighlighting);
7337
+ if (error)
7338
+ return "featureHighlighting." + error;
7339
+ }
7321
7340
  return null;
7322
7341
  };
7323
7342
 
@@ -7348,6 +7367,11 @@ const vertexvis = $root.vertexvis = (() => {
7348
7367
  throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureLines: object expected");
7349
7368
  message.featureLines = $root.vertexvis.protobuf.stream.FeatureLineAttributes.fromObject(object.featureLines);
7350
7369
  }
7370
+ if (object.featureHighlighting != null) {
7371
+ if (typeof object.featureHighlighting !== "object")
7372
+ throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.featureHighlighting: object expected");
7373
+ message.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.fromObject(object.featureHighlighting);
7374
+ }
7351
7375
  return message;
7352
7376
  };
7353
7377
 
@@ -7368,6 +7392,7 @@ const vertexvis = $root.vertexvis = (() => {
7368
7392
  object.experimentalGhosting = null;
7369
7393
  object.depthBuffers = null;
7370
7394
  object.featureLines = null;
7395
+ object.featureHighlighting = null;
7371
7396
  }
7372
7397
  if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
7373
7398
  object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
@@ -7375,6 +7400,8 @@ const vertexvis = $root.vertexvis = (() => {
7375
7400
  object.depthBuffers = $root.vertexvis.protobuf.stream.DepthBufferAttributes.toObject(message.depthBuffers, options);
7376
7401
  if (message.featureLines != null && message.hasOwnProperty("featureLines"))
7377
7402
  object.featureLines = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.featureLines, options);
7403
+ if (message.featureHighlighting != null && message.hasOwnProperty("featureHighlighting"))
7404
+ object.featureHighlighting = $root.vertexvis.protobuf.stream.FeatureHighlightAttributes.toObject(message.featureHighlighting, options);
7378
7405
  return object;
7379
7406
  };
7380
7407
 
@@ -9338,6 +9365,248 @@ const vertexvis = $root.vertexvis = (() => {
9338
9365
  return FeatureLineAttributes;
9339
9366
  })();
9340
9367
 
9368
+ stream.FeatureHighlightAttributes = (function() {
9369
+
9370
+ /**
9371
+ * Properties of a FeatureHighlightAttributes.
9372
+ * @memberof vertexvis.protobuf.stream
9373
+ * @interface IFeatureHighlightAttributes
9374
+ * @property {vertexvis.protobuf.core.IRGBi|null} [highlightColor] FeatureHighlightAttributes highlightColor
9375
+ * @property {number|null} [occludedOpacity] FeatureHighlightAttributes occludedOpacity
9376
+ * @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [outline] FeatureHighlightAttributes outline
9377
+ */
9378
+
9379
+ /**
9380
+ * Constructs a new FeatureHighlightAttributes.
9381
+ * @memberof vertexvis.protobuf.stream
9382
+ * @classdesc Represents a FeatureHighlightAttributes.
9383
+ * @implements IFeatureHighlightAttributes
9384
+ * @constructor
9385
+ * @param {vertexvis.protobuf.stream.IFeatureHighlightAttributes=} [properties] Properties to set
9386
+ */
9387
+ function FeatureHighlightAttributes(properties) {
9388
+ if (properties)
9389
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9390
+ if (properties[keys[i]] != null)
9391
+ this[keys[i]] = properties[keys[i]];
9392
+ }
9393
+
9394
+ /**
9395
+ * FeatureHighlightAttributes highlightColor.
9396
+ * @member {vertexvis.protobuf.core.IRGBi|null|undefined} highlightColor
9397
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9398
+ * @instance
9399
+ */
9400
+ FeatureHighlightAttributes.prototype.highlightColor = null;
9401
+
9402
+ /**
9403
+ * FeatureHighlightAttributes occludedOpacity.
9404
+ * @member {number} occludedOpacity
9405
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9406
+ * @instance
9407
+ */
9408
+ FeatureHighlightAttributes.prototype.occludedOpacity = 0;
9409
+
9410
+ /**
9411
+ * FeatureHighlightAttributes outline.
9412
+ * @member {vertexvis.protobuf.stream.IFeatureLineAttributes|null|undefined} outline
9413
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9414
+ * @instance
9415
+ */
9416
+ FeatureHighlightAttributes.prototype.outline = null;
9417
+
9418
+ /**
9419
+ * Creates a new FeatureHighlightAttributes instance using the specified properties.
9420
+ * @function create
9421
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9422
+ * @static
9423
+ * @param {vertexvis.protobuf.stream.IFeatureHighlightAttributes=} [properties] Properties to set
9424
+ * @returns {vertexvis.protobuf.stream.FeatureHighlightAttributes} FeatureHighlightAttributes instance
9425
+ */
9426
+ FeatureHighlightAttributes.create = function create(properties) {
9427
+ return new FeatureHighlightAttributes(properties);
9428
+ };
9429
+
9430
+ /**
9431
+ * Encodes the specified FeatureHighlightAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.FeatureHighlightAttributes.verify|verify} messages.
9432
+ * @function encode
9433
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9434
+ * @static
9435
+ * @param {vertexvis.protobuf.stream.IFeatureHighlightAttributes} message FeatureHighlightAttributes message or plain object to encode
9436
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9437
+ * @returns {$protobuf.Writer} Writer
9438
+ */
9439
+ FeatureHighlightAttributes.encode = function encode(message, writer) {
9440
+ if (!writer)
9441
+ writer = $Writer.create();
9442
+ if (message.highlightColor != null && Object.hasOwnProperty.call(message, "highlightColor"))
9443
+ $root.vertexvis.protobuf.core.RGBi.encode(message.highlightColor, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9444
+ if (message.occludedOpacity != null && Object.hasOwnProperty.call(message, "occludedOpacity"))
9445
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.occludedOpacity);
9446
+ if (message.outline != null && Object.hasOwnProperty.call(message, "outline"))
9447
+ $root.vertexvis.protobuf.stream.FeatureLineAttributes.encode(message.outline, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
9448
+ return writer;
9449
+ };
9450
+
9451
+ /**
9452
+ * Encodes the specified FeatureHighlightAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FeatureHighlightAttributes.verify|verify} messages.
9453
+ * @function encodeDelimited
9454
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9455
+ * @static
9456
+ * @param {vertexvis.protobuf.stream.IFeatureHighlightAttributes} message FeatureHighlightAttributes message or plain object to encode
9457
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9458
+ * @returns {$protobuf.Writer} Writer
9459
+ */
9460
+ FeatureHighlightAttributes.encodeDelimited = function encodeDelimited(message, writer) {
9461
+ return this.encode(message, writer).ldelim();
9462
+ };
9463
+
9464
+ /**
9465
+ * Decodes a FeatureHighlightAttributes message from the specified reader or buffer.
9466
+ * @function decode
9467
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9468
+ * @static
9469
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9470
+ * @param {number} [length] Message length if known beforehand
9471
+ * @returns {vertexvis.protobuf.stream.FeatureHighlightAttributes} FeatureHighlightAttributes
9472
+ * @throws {Error} If the payload is not a reader or valid buffer
9473
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9474
+ */
9475
+ FeatureHighlightAttributes.decode = function decode(reader, length) {
9476
+ if (!(reader instanceof $Reader))
9477
+ reader = $Reader.create(reader);
9478
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FeatureHighlightAttributes();
9479
+ while (reader.pos < end) {
9480
+ let tag = reader.uint32();
9481
+ switch (tag >>> 3) {
9482
+ case 1:
9483
+ message.highlightColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
9484
+ break;
9485
+ case 2:
9486
+ message.occludedOpacity = reader.float();
9487
+ break;
9488
+ case 3:
9489
+ message.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.decode(reader, reader.uint32());
9490
+ break;
9491
+ default:
9492
+ reader.skipType(tag & 7);
9493
+ break;
9494
+ }
9495
+ }
9496
+ return message;
9497
+ };
9498
+
9499
+ /**
9500
+ * Decodes a FeatureHighlightAttributes message from the specified reader or buffer, length delimited.
9501
+ * @function decodeDelimited
9502
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9503
+ * @static
9504
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9505
+ * @returns {vertexvis.protobuf.stream.FeatureHighlightAttributes} FeatureHighlightAttributes
9506
+ * @throws {Error} If the payload is not a reader or valid buffer
9507
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9508
+ */
9509
+ FeatureHighlightAttributes.decodeDelimited = function decodeDelimited(reader) {
9510
+ if (!(reader instanceof $Reader))
9511
+ reader = new $Reader(reader);
9512
+ return this.decode(reader, reader.uint32());
9513
+ };
9514
+
9515
+ /**
9516
+ * Verifies a FeatureHighlightAttributes message.
9517
+ * @function verify
9518
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9519
+ * @static
9520
+ * @param {Object.<string,*>} message Plain object to verify
9521
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9522
+ */
9523
+ FeatureHighlightAttributes.verify = function verify(message) {
9524
+ if (typeof message !== "object" || message === null)
9525
+ return "object expected";
9526
+ if (message.highlightColor != null && message.hasOwnProperty("highlightColor")) {
9527
+ let error = $root.vertexvis.protobuf.core.RGBi.verify(message.highlightColor);
9528
+ if (error)
9529
+ return "highlightColor." + error;
9530
+ }
9531
+ if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
9532
+ if (typeof message.occludedOpacity !== "number")
9533
+ return "occludedOpacity: number expected";
9534
+ if (message.outline != null && message.hasOwnProperty("outline")) {
9535
+ let error = $root.vertexvis.protobuf.stream.FeatureLineAttributes.verify(message.outline);
9536
+ if (error)
9537
+ return "outline." + error;
9538
+ }
9539
+ return null;
9540
+ };
9541
+
9542
+ /**
9543
+ * Creates a FeatureHighlightAttributes message from a plain object. Also converts values to their respective internal types.
9544
+ * @function fromObject
9545
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9546
+ * @static
9547
+ * @param {Object.<string,*>} object Plain object
9548
+ * @returns {vertexvis.protobuf.stream.FeatureHighlightAttributes} FeatureHighlightAttributes
9549
+ */
9550
+ FeatureHighlightAttributes.fromObject = function fromObject(object) {
9551
+ if (object instanceof $root.vertexvis.protobuf.stream.FeatureHighlightAttributes)
9552
+ return object;
9553
+ let message = new $root.vertexvis.protobuf.stream.FeatureHighlightAttributes();
9554
+ if (object.highlightColor != null) {
9555
+ if (typeof object.highlightColor !== "object")
9556
+ throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.highlightColor: object expected");
9557
+ message.highlightColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.highlightColor);
9558
+ }
9559
+ if (object.occludedOpacity != null)
9560
+ message.occludedOpacity = Number(object.occludedOpacity);
9561
+ if (object.outline != null) {
9562
+ if (typeof object.outline !== "object")
9563
+ throw TypeError(".vertexvis.protobuf.stream.FeatureHighlightAttributes.outline: object expected");
9564
+ message.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.fromObject(object.outline);
9565
+ }
9566
+ return message;
9567
+ };
9568
+
9569
+ /**
9570
+ * Creates a plain object from a FeatureHighlightAttributes message. Also converts values to other types if specified.
9571
+ * @function toObject
9572
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9573
+ * @static
9574
+ * @param {vertexvis.protobuf.stream.FeatureHighlightAttributes} message FeatureHighlightAttributes
9575
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9576
+ * @returns {Object.<string,*>} Plain object
9577
+ */
9578
+ FeatureHighlightAttributes.toObject = function toObject(message, options) {
9579
+ if (!options)
9580
+ options = {};
9581
+ let object = {};
9582
+ if (options.defaults) {
9583
+ object.highlightColor = null;
9584
+ object.occludedOpacity = 0;
9585
+ object.outline = null;
9586
+ }
9587
+ if (message.highlightColor != null && message.hasOwnProperty("highlightColor"))
9588
+ object.highlightColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.highlightColor, options);
9589
+ if (message.occludedOpacity != null && message.hasOwnProperty("occludedOpacity"))
9590
+ object.occludedOpacity = options.json && !isFinite(message.occludedOpacity) ? String(message.occludedOpacity) : message.occludedOpacity;
9591
+ if (message.outline != null && message.hasOwnProperty("outline"))
9592
+ object.outline = $root.vertexvis.protobuf.stream.FeatureLineAttributes.toObject(message.outline, options);
9593
+ return object;
9594
+ };
9595
+
9596
+ /**
9597
+ * Converts this FeatureHighlightAttributes to JSON.
9598
+ * @function toJSON
9599
+ * @memberof vertexvis.protobuf.stream.FeatureHighlightAttributes
9600
+ * @instance
9601
+ * @returns {Object.<string,*>} JSON object
9602
+ */
9603
+ FeatureHighlightAttributes.prototype.toJSON = function toJSON() {
9604
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
9605
+ };
9606
+
9607
+ return FeatureHighlightAttributes;
9608
+ })();
9609
+
9341
9610
  stream.Error = (function() {
9342
9611
 
9343
9612
  /**