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