@vertexvis/stream-api 0.24.1-canary.3 → 0.24.2-canary.0
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 +110 -247
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +110 -247
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +6 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -4805,6 +4805,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4805
4805
|
* @property {Array.<vertexvis.protobuf.stream.IMetadataProperty>|null} [metadataProperties] Hit metadataProperties
|
|
4806
4806
|
* @property {vertexvis.protobuf.core.IModelEntity|null} [modelEntity] Hit modelEntity
|
|
4807
4807
|
* @property {vertexvis.protobuf.core.IUuid|null} [leafItemId] Hit leafItemId
|
|
4808
|
+
* @property {vertexvis.protobuf.core.IUuid|null} [annotationId] Hit annotationId
|
|
4808
4809
|
*/
|
|
4809
4810
|
|
|
4810
4811
|
/**
|
|
@@ -4912,6 +4913,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4912
4913
|
*/
|
|
4913
4914
|
Hit.prototype.leafItemId = null;
|
|
4914
4915
|
|
|
4916
|
+
/**
|
|
4917
|
+
* Hit annotationId.
|
|
4918
|
+
* @member {vertexvis.protobuf.core.IUuid|null|undefined} annotationId
|
|
4919
|
+
* @memberof vertexvis.protobuf.stream.Hit
|
|
4920
|
+
* @instance
|
|
4921
|
+
*/
|
|
4922
|
+
Hit.prototype.annotationId = null;
|
|
4923
|
+
|
|
4915
4924
|
/**
|
|
4916
4925
|
* Creates a new Hit instance using the specified properties.
|
|
4917
4926
|
* @function create
|
|
@@ -4960,6 +4969,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4960
4969
|
$root.vertexvis.protobuf.core.ModelEntity.encode(message.modelEntity, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
4961
4970
|
if (message.leafItemId != null && Object.hasOwnProperty.call(message, "leafItemId"))
|
|
4962
4971
|
$root.vertexvis.protobuf.core.Uuid.encode(message.leafItemId, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
4972
|
+
if (message.annotationId != null && Object.hasOwnProperty.call(message, "annotationId"))
|
|
4973
|
+
$root.vertexvis.protobuf.core.Uuid.encode(message.annotationId, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
4963
4974
|
return writer;
|
|
4964
4975
|
};
|
|
4965
4976
|
|
|
@@ -5031,6 +5042,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5031
5042
|
case 12:
|
|
5032
5043
|
message.leafItemId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
5033
5044
|
break;
|
|
5045
|
+
case 13:
|
|
5046
|
+
message.annotationId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
5047
|
+
break;
|
|
5034
5048
|
default:
|
|
5035
5049
|
reader.skipType(tag & 7);
|
|
5036
5050
|
break;
|
|
@@ -5129,6 +5143,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5129
5143
|
if (error)
|
|
5130
5144
|
return "leafItemId." + error;
|
|
5131
5145
|
}
|
|
5146
|
+
if (message.annotationId != null && message.hasOwnProperty("annotationId")) {
|
|
5147
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.annotationId);
|
|
5148
|
+
if (error)
|
|
5149
|
+
return "annotationId." + error;
|
|
5150
|
+
}
|
|
5132
5151
|
return null;
|
|
5133
5152
|
};
|
|
5134
5153
|
|
|
@@ -5209,6 +5228,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5209
5228
|
throw TypeError(".vertexvis.protobuf.stream.Hit.leafItemId: object expected");
|
|
5210
5229
|
message.leafItemId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.leafItemId);
|
|
5211
5230
|
}
|
|
5231
|
+
if (object.annotationId != null) {
|
|
5232
|
+
if (typeof object.annotationId !== "object")
|
|
5233
|
+
throw TypeError(".vertexvis.protobuf.stream.Hit.annotationId: object expected");
|
|
5234
|
+
message.annotationId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.annotationId);
|
|
5235
|
+
}
|
|
5212
5236
|
return message;
|
|
5213
5237
|
};
|
|
5214
5238
|
|
|
@@ -5239,6 +5263,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5239
5263
|
object.suppliedPartRevisionId = null;
|
|
5240
5264
|
object.modelEntity = null;
|
|
5241
5265
|
object.leafItemId = null;
|
|
5266
|
+
object.annotationId = null;
|
|
5242
5267
|
}
|
|
5243
5268
|
if (message.itemId != null && message.hasOwnProperty("itemId"))
|
|
5244
5269
|
object.itemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.itemId, options);
|
|
@@ -5268,6 +5293,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5268
5293
|
object.modelEntity = $root.vertexvis.protobuf.core.ModelEntity.toObject(message.modelEntity, options);
|
|
5269
5294
|
if (message.leafItemId != null && message.hasOwnProperty("leafItemId"))
|
|
5270
5295
|
object.leafItemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.leafItemId, options);
|
|
5296
|
+
if (message.annotationId != null && message.hasOwnProperty("annotationId"))
|
|
5297
|
+
object.annotationId = $root.vertexvis.protobuf.core.Uuid.toObject(message.annotationId, options);
|
|
5271
5298
|
return object;
|
|
5272
5299
|
};
|
|
5273
5300
|
|
|
@@ -18319,7 +18346,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18319
18346
|
* Properties of a StreamAttributes.
|
|
18320
18347
|
* @memberof vertexvis.protobuf.stream
|
|
18321
18348
|
* @interface IStreamAttributes
|
|
18322
|
-
* @property {vertexvis.protobuf.stream.IGhostingAttributes|null} [experimentalGhosting] StreamAttributes experimentalGhosting
|
|
18323
18349
|
* @property {vertexvis.protobuf.stream.IDepthBufferAttributes|null} [depthBuffers] StreamAttributes depthBuffers
|
|
18324
18350
|
* @property {vertexvis.protobuf.stream.IFeatureLineAttributes|null} [featureLines] StreamAttributes featureLines
|
|
18325
18351
|
* @property {vertexvis.protobuf.stream.IFeatureHighlightAttributes|null} [featureHighlighting] StreamAttributes featureHighlighting
|
|
@@ -18347,14 +18373,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18347
18373
|
this[keys[i]] = properties[keys[i]];
|
|
18348
18374
|
}
|
|
18349
18375
|
|
|
18350
|
-
/**
|
|
18351
|
-
* StreamAttributes experimentalGhosting.
|
|
18352
|
-
* @member {vertexvis.protobuf.stream.IGhostingAttributes|null|undefined} experimentalGhosting
|
|
18353
|
-
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
18354
|
-
* @instance
|
|
18355
|
-
*/
|
|
18356
|
-
StreamAttributes.prototype.experimentalGhosting = null;
|
|
18357
|
-
|
|
18358
18376
|
/**
|
|
18359
18377
|
* StreamAttributes depthBuffers.
|
|
18360
18378
|
* @member {vertexvis.protobuf.stream.IDepthBufferAttributes|null|undefined} depthBuffers
|
|
@@ -18459,8 +18477,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18459
18477
|
StreamAttributes.encode = function encode(message, writer) {
|
|
18460
18478
|
if (!writer)
|
|
18461
18479
|
writer = $Writer.create();
|
|
18462
|
-
if (message.experimentalGhosting != null && Object.hasOwnProperty.call(message, "experimentalGhosting"))
|
|
18463
|
-
$root.vertexvis.protobuf.stream.GhostingAttributes.encode(message.experimentalGhosting, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
18464
18480
|
if (message.depthBuffers != null && Object.hasOwnProperty.call(message, "depthBuffers"))
|
|
18465
18481
|
$root.vertexvis.protobuf.stream.DepthBufferAttributes.encode(message.depthBuffers, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
18466
18482
|
if (message.featureLines != null && Object.hasOwnProperty.call(message, "featureLines"))
|
|
@@ -18515,9 +18531,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18515
18531
|
while (reader.pos < end) {
|
|
18516
18532
|
let tag = reader.uint32();
|
|
18517
18533
|
switch (tag >>> 3) {
|
|
18518
|
-
case 1:
|
|
18519
|
-
message.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.decode(reader, reader.uint32());
|
|
18520
|
-
break;
|
|
18521
18534
|
case 2:
|
|
18522
18535
|
message.depthBuffers = $root.vertexvis.protobuf.stream.DepthBufferAttributes.decode(reader, reader.uint32());
|
|
18523
18536
|
break;
|
|
@@ -18583,11 +18596,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18583
18596
|
StreamAttributes.verify = function verify(message) {
|
|
18584
18597
|
if (typeof message !== "object" || message === null)
|
|
18585
18598
|
return "object expected";
|
|
18586
|
-
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting")) {
|
|
18587
|
-
let error = $root.vertexvis.protobuf.stream.GhostingAttributes.verify(message.experimentalGhosting);
|
|
18588
|
-
if (error)
|
|
18589
|
-
return "experimentalGhosting." + error;
|
|
18590
|
-
}
|
|
18591
18599
|
if (message.depthBuffers != null && message.hasOwnProperty("depthBuffers")) {
|
|
18592
18600
|
let error = $root.vertexvis.protobuf.stream.DepthBufferAttributes.verify(message.depthBuffers);
|
|
18593
18601
|
if (error)
|
|
@@ -18649,11 +18657,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18649
18657
|
if (object instanceof $root.vertexvis.protobuf.stream.StreamAttributes)
|
|
18650
18658
|
return object;
|
|
18651
18659
|
let message = new $root.vertexvis.protobuf.stream.StreamAttributes();
|
|
18652
|
-
if (object.experimentalGhosting != null) {
|
|
18653
|
-
if (typeof object.experimentalGhosting !== "object")
|
|
18654
|
-
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.experimentalGhosting: object expected");
|
|
18655
|
-
message.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.fromObject(object.experimentalGhosting);
|
|
18656
|
-
}
|
|
18657
18660
|
if (object.depthBuffers != null) {
|
|
18658
18661
|
if (typeof object.depthBuffers !== "object")
|
|
18659
18662
|
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.depthBuffers: object expected");
|
|
@@ -18715,7 +18718,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18715
18718
|
options = {};
|
|
18716
18719
|
let object = {};
|
|
18717
18720
|
if (options.defaults) {
|
|
18718
|
-
object.experimentalGhosting = null;
|
|
18719
18721
|
object.depthBuffers = null;
|
|
18720
18722
|
object.featureLines = null;
|
|
18721
18723
|
object.featureHighlighting = null;
|
|
@@ -18727,8 +18729,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18727
18729
|
object.frames = null;
|
|
18728
18730
|
object.sceneComparison = null;
|
|
18729
18731
|
}
|
|
18730
|
-
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
|
|
18731
|
-
object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
|
|
18732
18732
|
if (message.depthBuffers != null && message.hasOwnProperty("depthBuffers"))
|
|
18733
18733
|
object.depthBuffers = $root.vertexvis.protobuf.stream.DepthBufferAttributes.toObject(message.depthBuffers, options);
|
|
18734
18734
|
if (message.featureLines != null && message.hasOwnProperty("featureLines"))
|
|
@@ -18958,226 +18958,6 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18958
18958
|
return PhantomAttributes;
|
|
18959
18959
|
})();
|
|
18960
18960
|
|
|
18961
|
-
stream.GhostingAttributes = (function() {
|
|
18962
|
-
|
|
18963
|
-
/**
|
|
18964
|
-
* Properties of a GhostingAttributes.
|
|
18965
|
-
* @memberof vertexvis.protobuf.stream
|
|
18966
|
-
* @interface IGhostingAttributes
|
|
18967
|
-
* @property {google.protobuf.IBoolValue|null} [enabled] GhostingAttributes enabled
|
|
18968
|
-
* @property {google.protobuf.IFloatValue|null} [opacity] GhostingAttributes opacity
|
|
18969
|
-
*/
|
|
18970
|
-
|
|
18971
|
-
/**
|
|
18972
|
-
* Constructs a new GhostingAttributes.
|
|
18973
|
-
* @memberof vertexvis.protobuf.stream
|
|
18974
|
-
* @classdesc Represents a GhostingAttributes.
|
|
18975
|
-
* @implements IGhostingAttributes
|
|
18976
|
-
* @constructor
|
|
18977
|
-
* @param {vertexvis.protobuf.stream.IGhostingAttributes=} [properties] Properties to set
|
|
18978
|
-
*/
|
|
18979
|
-
function GhostingAttributes(properties) {
|
|
18980
|
-
if (properties)
|
|
18981
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18982
|
-
if (properties[keys[i]] != null)
|
|
18983
|
-
this[keys[i]] = properties[keys[i]];
|
|
18984
|
-
}
|
|
18985
|
-
|
|
18986
|
-
/**
|
|
18987
|
-
* GhostingAttributes enabled.
|
|
18988
|
-
* @member {google.protobuf.IBoolValue|null|undefined} enabled
|
|
18989
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
18990
|
-
* @instance
|
|
18991
|
-
*/
|
|
18992
|
-
GhostingAttributes.prototype.enabled = null;
|
|
18993
|
-
|
|
18994
|
-
/**
|
|
18995
|
-
* GhostingAttributes opacity.
|
|
18996
|
-
* @member {google.protobuf.IFloatValue|null|undefined} opacity
|
|
18997
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
18998
|
-
* @instance
|
|
18999
|
-
*/
|
|
19000
|
-
GhostingAttributes.prototype.opacity = null;
|
|
19001
|
-
|
|
19002
|
-
/**
|
|
19003
|
-
* Creates a new GhostingAttributes instance using the specified properties.
|
|
19004
|
-
* @function create
|
|
19005
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19006
|
-
* @static
|
|
19007
|
-
* @param {vertexvis.protobuf.stream.IGhostingAttributes=} [properties] Properties to set
|
|
19008
|
-
* @returns {vertexvis.protobuf.stream.GhostingAttributes} GhostingAttributes instance
|
|
19009
|
-
*/
|
|
19010
|
-
GhostingAttributes.create = function create(properties) {
|
|
19011
|
-
return new GhostingAttributes(properties);
|
|
19012
|
-
};
|
|
19013
|
-
|
|
19014
|
-
/**
|
|
19015
|
-
* Encodes the specified GhostingAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.GhostingAttributes.verify|verify} messages.
|
|
19016
|
-
* @function encode
|
|
19017
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19018
|
-
* @static
|
|
19019
|
-
* @param {vertexvis.protobuf.stream.IGhostingAttributes} message GhostingAttributes message or plain object to encode
|
|
19020
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19021
|
-
* @returns {$protobuf.Writer} Writer
|
|
19022
|
-
*/
|
|
19023
|
-
GhostingAttributes.encode = function encode(message, writer) {
|
|
19024
|
-
if (!writer)
|
|
19025
|
-
writer = $Writer.create();
|
|
19026
|
-
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
19027
|
-
$root.google.protobuf.BoolValue.encode(message.enabled, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
19028
|
-
if (message.opacity != null && Object.hasOwnProperty.call(message, "opacity"))
|
|
19029
|
-
$root.google.protobuf.FloatValue.encode(message.opacity, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19030
|
-
return writer;
|
|
19031
|
-
};
|
|
19032
|
-
|
|
19033
|
-
/**
|
|
19034
|
-
* Encodes the specified GhostingAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.GhostingAttributes.verify|verify} messages.
|
|
19035
|
-
* @function encodeDelimited
|
|
19036
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19037
|
-
* @static
|
|
19038
|
-
* @param {vertexvis.protobuf.stream.IGhostingAttributes} message GhostingAttributes message or plain object to encode
|
|
19039
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19040
|
-
* @returns {$protobuf.Writer} Writer
|
|
19041
|
-
*/
|
|
19042
|
-
GhostingAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19043
|
-
return this.encode(message, writer).ldelim();
|
|
19044
|
-
};
|
|
19045
|
-
|
|
19046
|
-
/**
|
|
19047
|
-
* Decodes a GhostingAttributes message from the specified reader or buffer.
|
|
19048
|
-
* @function decode
|
|
19049
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19050
|
-
* @static
|
|
19051
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19052
|
-
* @param {number} [length] Message length if known beforehand
|
|
19053
|
-
* @returns {vertexvis.protobuf.stream.GhostingAttributes} GhostingAttributes
|
|
19054
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19055
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19056
|
-
*/
|
|
19057
|
-
GhostingAttributes.decode = function decode(reader, length) {
|
|
19058
|
-
if (!(reader instanceof $Reader))
|
|
19059
|
-
reader = $Reader.create(reader);
|
|
19060
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.GhostingAttributes();
|
|
19061
|
-
while (reader.pos < end) {
|
|
19062
|
-
let tag = reader.uint32();
|
|
19063
|
-
switch (tag >>> 3) {
|
|
19064
|
-
case 1:
|
|
19065
|
-
message.enabled = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
|
|
19066
|
-
break;
|
|
19067
|
-
case 2:
|
|
19068
|
-
message.opacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
19069
|
-
break;
|
|
19070
|
-
default:
|
|
19071
|
-
reader.skipType(tag & 7);
|
|
19072
|
-
break;
|
|
19073
|
-
}
|
|
19074
|
-
}
|
|
19075
|
-
return message;
|
|
19076
|
-
};
|
|
19077
|
-
|
|
19078
|
-
/**
|
|
19079
|
-
* Decodes a GhostingAttributes message from the specified reader or buffer, length delimited.
|
|
19080
|
-
* @function decodeDelimited
|
|
19081
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19082
|
-
* @static
|
|
19083
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19084
|
-
* @returns {vertexvis.protobuf.stream.GhostingAttributes} GhostingAttributes
|
|
19085
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19086
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19087
|
-
*/
|
|
19088
|
-
GhostingAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
19089
|
-
if (!(reader instanceof $Reader))
|
|
19090
|
-
reader = new $Reader(reader);
|
|
19091
|
-
return this.decode(reader, reader.uint32());
|
|
19092
|
-
};
|
|
19093
|
-
|
|
19094
|
-
/**
|
|
19095
|
-
* Verifies a GhostingAttributes message.
|
|
19096
|
-
* @function verify
|
|
19097
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19098
|
-
* @static
|
|
19099
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
19100
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19101
|
-
*/
|
|
19102
|
-
GhostingAttributes.verify = function verify(message) {
|
|
19103
|
-
if (typeof message !== "object" || message === null)
|
|
19104
|
-
return "object expected";
|
|
19105
|
-
if (message.enabled != null && message.hasOwnProperty("enabled")) {
|
|
19106
|
-
let error = $root.google.protobuf.BoolValue.verify(message.enabled);
|
|
19107
|
-
if (error)
|
|
19108
|
-
return "enabled." + error;
|
|
19109
|
-
}
|
|
19110
|
-
if (message.opacity != null && message.hasOwnProperty("opacity")) {
|
|
19111
|
-
let error = $root.google.protobuf.FloatValue.verify(message.opacity);
|
|
19112
|
-
if (error)
|
|
19113
|
-
return "opacity." + error;
|
|
19114
|
-
}
|
|
19115
|
-
return null;
|
|
19116
|
-
};
|
|
19117
|
-
|
|
19118
|
-
/**
|
|
19119
|
-
* Creates a GhostingAttributes message from a plain object. Also converts values to their respective internal types.
|
|
19120
|
-
* @function fromObject
|
|
19121
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19122
|
-
* @static
|
|
19123
|
-
* @param {Object.<string,*>} object Plain object
|
|
19124
|
-
* @returns {vertexvis.protobuf.stream.GhostingAttributes} GhostingAttributes
|
|
19125
|
-
*/
|
|
19126
|
-
GhostingAttributes.fromObject = function fromObject(object) {
|
|
19127
|
-
if (object instanceof $root.vertexvis.protobuf.stream.GhostingAttributes)
|
|
19128
|
-
return object;
|
|
19129
|
-
let message = new $root.vertexvis.protobuf.stream.GhostingAttributes();
|
|
19130
|
-
if (object.enabled != null) {
|
|
19131
|
-
if (typeof object.enabled !== "object")
|
|
19132
|
-
throw TypeError(".vertexvis.protobuf.stream.GhostingAttributes.enabled: object expected");
|
|
19133
|
-
message.enabled = $root.google.protobuf.BoolValue.fromObject(object.enabled);
|
|
19134
|
-
}
|
|
19135
|
-
if (object.opacity != null) {
|
|
19136
|
-
if (typeof object.opacity !== "object")
|
|
19137
|
-
throw TypeError(".vertexvis.protobuf.stream.GhostingAttributes.opacity: object expected");
|
|
19138
|
-
message.opacity = $root.google.protobuf.FloatValue.fromObject(object.opacity);
|
|
19139
|
-
}
|
|
19140
|
-
return message;
|
|
19141
|
-
};
|
|
19142
|
-
|
|
19143
|
-
/**
|
|
19144
|
-
* Creates a plain object from a GhostingAttributes message. Also converts values to other types if specified.
|
|
19145
|
-
* @function toObject
|
|
19146
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19147
|
-
* @static
|
|
19148
|
-
* @param {vertexvis.protobuf.stream.GhostingAttributes} message GhostingAttributes
|
|
19149
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19150
|
-
* @returns {Object.<string,*>} Plain object
|
|
19151
|
-
*/
|
|
19152
|
-
GhostingAttributes.toObject = function toObject(message, options) {
|
|
19153
|
-
if (!options)
|
|
19154
|
-
options = {};
|
|
19155
|
-
let object = {};
|
|
19156
|
-
if (options.defaults) {
|
|
19157
|
-
object.enabled = null;
|
|
19158
|
-
object.opacity = null;
|
|
19159
|
-
}
|
|
19160
|
-
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
19161
|
-
object.enabled = $root.google.protobuf.BoolValue.toObject(message.enabled, options);
|
|
19162
|
-
if (message.opacity != null && message.hasOwnProperty("opacity"))
|
|
19163
|
-
object.opacity = $root.google.protobuf.FloatValue.toObject(message.opacity, options);
|
|
19164
|
-
return object;
|
|
19165
|
-
};
|
|
19166
|
-
|
|
19167
|
-
/**
|
|
19168
|
-
* Converts this GhostingAttributes to JSON.
|
|
19169
|
-
* @function toJSON
|
|
19170
|
-
* @memberof vertexvis.protobuf.stream.GhostingAttributes
|
|
19171
|
-
* @instance
|
|
19172
|
-
* @returns {Object.<string,*>} JSON object
|
|
19173
|
-
*/
|
|
19174
|
-
GhostingAttributes.prototype.toJSON = function toJSON() {
|
|
19175
|
-
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
19176
|
-
};
|
|
19177
|
-
|
|
19178
|
-
return GhostingAttributes;
|
|
19179
|
-
})();
|
|
19180
|
-
|
|
19181
18961
|
stream.DepthBufferAttributes = (function() {
|
|
19182
18962
|
|
|
19183
18963
|
/**
|
|
@@ -26944,6 +26724,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
26944
26724
|
* @interface IHitItemsPayload
|
|
26945
26725
|
* @property {vertexvis.protobuf.stream.IPoint|null} [point] HitItemsPayload point
|
|
26946
26726
|
* @property {boolean|null} [includeMetadata] HitItemsPayload includeMetadata
|
|
26727
|
+
* @property {Array.<vertexvis.protobuf.core.SceneElementTypeMask>|null} [typeMask] HitItemsPayload typeMask
|
|
26947
26728
|
*/
|
|
26948
26729
|
|
|
26949
26730
|
/**
|
|
@@ -26955,6 +26736,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
26955
26736
|
* @param {vertexvis.protobuf.stream.IHitItemsPayload=} [properties] Properties to set
|
|
26956
26737
|
*/
|
|
26957
26738
|
function HitItemsPayload(properties) {
|
|
26739
|
+
this.typeMask = [];
|
|
26958
26740
|
if (properties)
|
|
26959
26741
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26960
26742
|
if (properties[keys[i]] != null)
|
|
@@ -26977,6 +26759,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
26977
26759
|
*/
|
|
26978
26760
|
HitItemsPayload.prototype.includeMetadata = false;
|
|
26979
26761
|
|
|
26762
|
+
/**
|
|
26763
|
+
* HitItemsPayload typeMask.
|
|
26764
|
+
* @member {Array.<vertexvis.protobuf.core.SceneElementTypeMask>} typeMask
|
|
26765
|
+
* @memberof vertexvis.protobuf.stream.HitItemsPayload
|
|
26766
|
+
* @instance
|
|
26767
|
+
*/
|
|
26768
|
+
HitItemsPayload.prototype.typeMask = $util.emptyArray;
|
|
26769
|
+
|
|
26980
26770
|
/**
|
|
26981
26771
|
* Creates a new HitItemsPayload instance using the specified properties.
|
|
26982
26772
|
* @function create
|
|
@@ -27005,6 +26795,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27005
26795
|
$root.vertexvis.protobuf.stream.Point.encode(message.point, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
27006
26796
|
if (message.includeMetadata != null && Object.hasOwnProperty.call(message, "includeMetadata"))
|
|
27007
26797
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeMetadata);
|
|
26798
|
+
if (message.typeMask != null && message.typeMask.length) {
|
|
26799
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork();
|
|
26800
|
+
for (let i = 0; i < message.typeMask.length; ++i)
|
|
26801
|
+
writer.int32(message.typeMask[i]);
|
|
26802
|
+
writer.ldelim();
|
|
26803
|
+
}
|
|
27008
26804
|
return writer;
|
|
27009
26805
|
};
|
|
27010
26806
|
|
|
@@ -27045,6 +26841,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27045
26841
|
case 2:
|
|
27046
26842
|
message.includeMetadata = reader.bool();
|
|
27047
26843
|
break;
|
|
26844
|
+
case 8:
|
|
26845
|
+
if (!(message.typeMask && message.typeMask.length))
|
|
26846
|
+
message.typeMask = [];
|
|
26847
|
+
if ((tag & 7) === 2) {
|
|
26848
|
+
let end2 = reader.uint32() + reader.pos;
|
|
26849
|
+
while (reader.pos < end2)
|
|
26850
|
+
message.typeMask.push(reader.int32());
|
|
26851
|
+
} else
|
|
26852
|
+
message.typeMask.push(reader.int32());
|
|
26853
|
+
break;
|
|
27048
26854
|
default:
|
|
27049
26855
|
reader.skipType(tag & 7);
|
|
27050
26856
|
break;
|
|
@@ -27088,6 +26894,19 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27088
26894
|
if (message.includeMetadata != null && message.hasOwnProperty("includeMetadata"))
|
|
27089
26895
|
if (typeof message.includeMetadata !== "boolean")
|
|
27090
26896
|
return "includeMetadata: boolean expected";
|
|
26897
|
+
if (message.typeMask != null && message.hasOwnProperty("typeMask")) {
|
|
26898
|
+
if (!Array.isArray(message.typeMask))
|
|
26899
|
+
return "typeMask: array expected";
|
|
26900
|
+
for (let i = 0; i < message.typeMask.length; ++i)
|
|
26901
|
+
switch (message.typeMask[i]) {
|
|
26902
|
+
default:
|
|
26903
|
+
return "typeMask: enum value[] expected";
|
|
26904
|
+
case 0:
|
|
26905
|
+
case 1:
|
|
26906
|
+
case 2:
|
|
26907
|
+
break;
|
|
26908
|
+
}
|
|
26909
|
+
}
|
|
27091
26910
|
return null;
|
|
27092
26911
|
};
|
|
27093
26912
|
|
|
@@ -27110,6 +26929,27 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27110
26929
|
}
|
|
27111
26930
|
if (object.includeMetadata != null)
|
|
27112
26931
|
message.includeMetadata = Boolean(object.includeMetadata);
|
|
26932
|
+
if (object.typeMask) {
|
|
26933
|
+
if (!Array.isArray(object.typeMask))
|
|
26934
|
+
throw TypeError(".vertexvis.protobuf.stream.HitItemsPayload.typeMask: array expected");
|
|
26935
|
+
message.typeMask = [];
|
|
26936
|
+
for (let i = 0; i < object.typeMask.length; ++i)
|
|
26937
|
+
switch (object.typeMask[i]) {
|
|
26938
|
+
default:
|
|
26939
|
+
case "SCENE_ELEMENT_TYPE_MASK_INVALID":
|
|
26940
|
+
case 0:
|
|
26941
|
+
message.typeMask[i] = 0;
|
|
26942
|
+
break;
|
|
26943
|
+
case "SCENE_ELEMENT_TYPE_MASK_SCENE_ITEMS":
|
|
26944
|
+
case 1:
|
|
26945
|
+
message.typeMask[i] = 1;
|
|
26946
|
+
break;
|
|
26947
|
+
case "SCENE_ELEMENT_TYPE_MASK_ANNOTATION_PRIMITIVES":
|
|
26948
|
+
case 2:
|
|
26949
|
+
message.typeMask[i] = 2;
|
|
26950
|
+
break;
|
|
26951
|
+
}
|
|
26952
|
+
}
|
|
27113
26953
|
return message;
|
|
27114
26954
|
};
|
|
27115
26955
|
|
|
@@ -27126,6 +26966,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27126
26966
|
if (!options)
|
|
27127
26967
|
options = {};
|
|
27128
26968
|
let object = {};
|
|
26969
|
+
if (options.arrays || options.defaults)
|
|
26970
|
+
object.typeMask = [];
|
|
27129
26971
|
if (options.defaults) {
|
|
27130
26972
|
object.point = null;
|
|
27131
26973
|
object.includeMetadata = false;
|
|
@@ -27134,6 +26976,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27134
26976
|
object.point = $root.vertexvis.protobuf.stream.Point.toObject(message.point, options);
|
|
27135
26977
|
if (message.includeMetadata != null && message.hasOwnProperty("includeMetadata"))
|
|
27136
26978
|
object.includeMetadata = message.includeMetadata;
|
|
26979
|
+
if (message.typeMask && message.typeMask.length) {
|
|
26980
|
+
object.typeMask = [];
|
|
26981
|
+
for (let j = 0; j < message.typeMask.length; ++j)
|
|
26982
|
+
object.typeMask[j] = options.enums === String ? $root.vertexvis.protobuf.core.SceneElementTypeMask[message.typeMask[j]] : message.typeMask[j];
|
|
26983
|
+
}
|
|
27137
26984
|
return object;
|
|
27138
26985
|
};
|
|
27139
26986
|
|
|
@@ -46405,6 +46252,22 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46405
46252
|
return PmiAnnotation;
|
|
46406
46253
|
})();
|
|
46407
46254
|
|
|
46255
|
+
/**
|
|
46256
|
+
* SceneElementTypeMask enum.
|
|
46257
|
+
* @name vertexvis.protobuf.core.SceneElementTypeMask
|
|
46258
|
+
* @enum {number}
|
|
46259
|
+
* @property {number} SCENE_ELEMENT_TYPE_MASK_INVALID=0 SCENE_ELEMENT_TYPE_MASK_INVALID value
|
|
46260
|
+
* @property {number} SCENE_ELEMENT_TYPE_MASK_SCENE_ITEMS=1 SCENE_ELEMENT_TYPE_MASK_SCENE_ITEMS value
|
|
46261
|
+
* @property {number} SCENE_ELEMENT_TYPE_MASK_ANNOTATION_PRIMITIVES=2 SCENE_ELEMENT_TYPE_MASK_ANNOTATION_PRIMITIVES value
|
|
46262
|
+
*/
|
|
46263
|
+
core.SceneElementTypeMask = (function() {
|
|
46264
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
46265
|
+
values[valuesById[0] = "SCENE_ELEMENT_TYPE_MASK_INVALID"] = 0;
|
|
46266
|
+
values[valuesById[1] = "SCENE_ELEMENT_TYPE_MASK_SCENE_ITEMS"] = 1;
|
|
46267
|
+
values[valuesById[2] = "SCENE_ELEMENT_TYPE_MASK_ANNOTATION_PRIMITIVES"] = 2;
|
|
46268
|
+
return values;
|
|
46269
|
+
})();
|
|
46270
|
+
|
|
46408
46271
|
return core;
|
|
46409
46272
|
})();
|
|
46410
46273
|
|