@vertexvis/stream-api 0.17.3-canary.13 → 0.17.3-canary.14
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 +442 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +442 -2
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -8968,6 +8968,193 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8968
8968
|
return ClearTransformOperation;
|
|
8969
8969
|
})();
|
|
8970
8970
|
|
|
8971
|
+
stream.ChangePhantomOperation = (function() {
|
|
8972
|
+
|
|
8973
|
+
/**
|
|
8974
|
+
* Properties of a ChangePhantomOperation.
|
|
8975
|
+
* @memberof vertexvis.protobuf.stream
|
|
8976
|
+
* @interface IChangePhantomOperation
|
|
8977
|
+
* @property {boolean|null} [phantom] ChangePhantomOperation phantom
|
|
8978
|
+
*/
|
|
8979
|
+
|
|
8980
|
+
/**
|
|
8981
|
+
* Constructs a new ChangePhantomOperation.
|
|
8982
|
+
* @memberof vertexvis.protobuf.stream
|
|
8983
|
+
* @classdesc Represents a ChangePhantomOperation.
|
|
8984
|
+
* @implements IChangePhantomOperation
|
|
8985
|
+
* @constructor
|
|
8986
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation=} [properties] Properties to set
|
|
8987
|
+
*/
|
|
8988
|
+
function ChangePhantomOperation(properties) {
|
|
8989
|
+
if (properties)
|
|
8990
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8991
|
+
if (properties[keys[i]] != null)
|
|
8992
|
+
this[keys[i]] = properties[keys[i]];
|
|
8993
|
+
}
|
|
8994
|
+
|
|
8995
|
+
/**
|
|
8996
|
+
* ChangePhantomOperation phantom.
|
|
8997
|
+
* @member {boolean} phantom
|
|
8998
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
8999
|
+
* @instance
|
|
9000
|
+
*/
|
|
9001
|
+
ChangePhantomOperation.prototype.phantom = false;
|
|
9002
|
+
|
|
9003
|
+
/**
|
|
9004
|
+
* Creates a new ChangePhantomOperation instance using the specified properties.
|
|
9005
|
+
* @function create
|
|
9006
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9007
|
+
* @static
|
|
9008
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation=} [properties] Properties to set
|
|
9009
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation instance
|
|
9010
|
+
*/
|
|
9011
|
+
ChangePhantomOperation.create = function create(properties) {
|
|
9012
|
+
return new ChangePhantomOperation(properties);
|
|
9013
|
+
};
|
|
9014
|
+
|
|
9015
|
+
/**
|
|
9016
|
+
* Encodes the specified ChangePhantomOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ChangePhantomOperation.verify|verify} messages.
|
|
9017
|
+
* @function encode
|
|
9018
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9019
|
+
* @static
|
|
9020
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation} message ChangePhantomOperation message or plain object to encode
|
|
9021
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9022
|
+
* @returns {$protobuf.Writer} Writer
|
|
9023
|
+
*/
|
|
9024
|
+
ChangePhantomOperation.encode = function encode(message, writer) {
|
|
9025
|
+
if (!writer)
|
|
9026
|
+
writer = $Writer.create();
|
|
9027
|
+
if (message.phantom != null && Object.hasOwnProperty.call(message, "phantom"))
|
|
9028
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.phantom);
|
|
9029
|
+
return writer;
|
|
9030
|
+
};
|
|
9031
|
+
|
|
9032
|
+
/**
|
|
9033
|
+
* Encodes the specified ChangePhantomOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ChangePhantomOperation.verify|verify} messages.
|
|
9034
|
+
* @function encodeDelimited
|
|
9035
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9036
|
+
* @static
|
|
9037
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation} message ChangePhantomOperation message or plain object to encode
|
|
9038
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9039
|
+
* @returns {$protobuf.Writer} Writer
|
|
9040
|
+
*/
|
|
9041
|
+
ChangePhantomOperation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9042
|
+
return this.encode(message, writer).ldelim();
|
|
9043
|
+
};
|
|
9044
|
+
|
|
9045
|
+
/**
|
|
9046
|
+
* Decodes a ChangePhantomOperation message from the specified reader or buffer.
|
|
9047
|
+
* @function decode
|
|
9048
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9049
|
+
* @static
|
|
9050
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9051
|
+
* @param {number} [length] Message length if known beforehand
|
|
9052
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9053
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9054
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9055
|
+
*/
|
|
9056
|
+
ChangePhantomOperation.decode = function decode(reader, length) {
|
|
9057
|
+
if (!(reader instanceof $Reader))
|
|
9058
|
+
reader = $Reader.create(reader);
|
|
9059
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ChangePhantomOperation();
|
|
9060
|
+
while (reader.pos < end) {
|
|
9061
|
+
let tag = reader.uint32();
|
|
9062
|
+
switch (tag >>> 3) {
|
|
9063
|
+
case 1:
|
|
9064
|
+
message.phantom = reader.bool();
|
|
9065
|
+
break;
|
|
9066
|
+
default:
|
|
9067
|
+
reader.skipType(tag & 7);
|
|
9068
|
+
break;
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9071
|
+
return message;
|
|
9072
|
+
};
|
|
9073
|
+
|
|
9074
|
+
/**
|
|
9075
|
+
* Decodes a ChangePhantomOperation message from the specified reader or buffer, length delimited.
|
|
9076
|
+
* @function decodeDelimited
|
|
9077
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9078
|
+
* @static
|
|
9079
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9080
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9081
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9082
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9083
|
+
*/
|
|
9084
|
+
ChangePhantomOperation.decodeDelimited = function decodeDelimited(reader) {
|
|
9085
|
+
if (!(reader instanceof $Reader))
|
|
9086
|
+
reader = new $Reader(reader);
|
|
9087
|
+
return this.decode(reader, reader.uint32());
|
|
9088
|
+
};
|
|
9089
|
+
|
|
9090
|
+
/**
|
|
9091
|
+
* Verifies a ChangePhantomOperation message.
|
|
9092
|
+
* @function verify
|
|
9093
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9094
|
+
* @static
|
|
9095
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9096
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9097
|
+
*/
|
|
9098
|
+
ChangePhantomOperation.verify = function verify(message) {
|
|
9099
|
+
if (typeof message !== "object" || message === null)
|
|
9100
|
+
return "object expected";
|
|
9101
|
+
if (message.phantom != null && message.hasOwnProperty("phantom"))
|
|
9102
|
+
if (typeof message.phantom !== "boolean")
|
|
9103
|
+
return "phantom: boolean expected";
|
|
9104
|
+
return null;
|
|
9105
|
+
};
|
|
9106
|
+
|
|
9107
|
+
/**
|
|
9108
|
+
* Creates a ChangePhantomOperation message from a plain object. Also converts values to their respective internal types.
|
|
9109
|
+
* @function fromObject
|
|
9110
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9111
|
+
* @static
|
|
9112
|
+
* @param {Object.<string,*>} object Plain object
|
|
9113
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9114
|
+
*/
|
|
9115
|
+
ChangePhantomOperation.fromObject = function fromObject(object) {
|
|
9116
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ChangePhantomOperation)
|
|
9117
|
+
return object;
|
|
9118
|
+
let message = new $root.vertexvis.protobuf.stream.ChangePhantomOperation();
|
|
9119
|
+
if (object.phantom != null)
|
|
9120
|
+
message.phantom = Boolean(object.phantom);
|
|
9121
|
+
return message;
|
|
9122
|
+
};
|
|
9123
|
+
|
|
9124
|
+
/**
|
|
9125
|
+
* Creates a plain object from a ChangePhantomOperation message. Also converts values to other types if specified.
|
|
9126
|
+
* @function toObject
|
|
9127
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9128
|
+
* @static
|
|
9129
|
+
* @param {vertexvis.protobuf.stream.ChangePhantomOperation} message ChangePhantomOperation
|
|
9130
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9131
|
+
* @returns {Object.<string,*>} Plain object
|
|
9132
|
+
*/
|
|
9133
|
+
ChangePhantomOperation.toObject = function toObject(message, options) {
|
|
9134
|
+
if (!options)
|
|
9135
|
+
options = {};
|
|
9136
|
+
let object = {};
|
|
9137
|
+
if (options.defaults)
|
|
9138
|
+
object.phantom = false;
|
|
9139
|
+
if (message.phantom != null && message.hasOwnProperty("phantom"))
|
|
9140
|
+
object.phantom = message.phantom;
|
|
9141
|
+
return object;
|
|
9142
|
+
};
|
|
9143
|
+
|
|
9144
|
+
/**
|
|
9145
|
+
* Converts this ChangePhantomOperation to JSON.
|
|
9146
|
+
* @function toJSON
|
|
9147
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9148
|
+
* @instance
|
|
9149
|
+
* @returns {Object.<string,*>} JSON object
|
|
9150
|
+
*/
|
|
9151
|
+
ChangePhantomOperation.prototype.toJSON = function toJSON() {
|
|
9152
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
9153
|
+
};
|
|
9154
|
+
|
|
9155
|
+
return ChangePhantomOperation;
|
|
9156
|
+
})();
|
|
9157
|
+
|
|
8971
9158
|
stream.OperationType = (function() {
|
|
8972
9159
|
|
|
8973
9160
|
/**
|
|
@@ -8979,6 +9166,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8979
9166
|
* @property {vertexvis.protobuf.stream.IChangeTransformOperation|null} [changeTransform] OperationType changeTransform
|
|
8980
9167
|
* @property {vertexvis.protobuf.stream.IChangeSelectionOperation|null} [changeSelection] OperationType changeSelection
|
|
8981
9168
|
* @property {vertexvis.protobuf.stream.IClearTransformOperation|null} [clearTransform] OperationType clearTransform
|
|
9169
|
+
* @property {vertexvis.protobuf.stream.IChangePhantomOperation|null} [changePhantom] OperationType changePhantom
|
|
8982
9170
|
*/
|
|
8983
9171
|
|
|
8984
9172
|
/**
|
|
@@ -9036,17 +9224,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9036
9224
|
*/
|
|
9037
9225
|
OperationType.prototype.clearTransform = null;
|
|
9038
9226
|
|
|
9227
|
+
/**
|
|
9228
|
+
* OperationType changePhantom.
|
|
9229
|
+
* @member {vertexvis.protobuf.stream.IChangePhantomOperation|null|undefined} changePhantom
|
|
9230
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
9231
|
+
* @instance
|
|
9232
|
+
*/
|
|
9233
|
+
OperationType.prototype.changePhantom = null;
|
|
9234
|
+
|
|
9039
9235
|
// OneOf field names bound to virtual getters and setters
|
|
9040
9236
|
let $oneOfFields;
|
|
9041
9237
|
|
|
9042
9238
|
/**
|
|
9043
9239
|
* OperationType value.
|
|
9044
|
-
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|undefined} value
|
|
9240
|
+
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|undefined} value
|
|
9045
9241
|
* @memberof vertexvis.protobuf.stream.OperationType
|
|
9046
9242
|
* @instance
|
|
9047
9243
|
*/
|
|
9048
9244
|
Object.defineProperty(OperationType.prototype, "value", {
|
|
9049
|
-
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform"]),
|
|
9245
|
+
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom"]),
|
|
9050
9246
|
set: $util.oneOfSetter($oneOfFields)
|
|
9051
9247
|
});
|
|
9052
9248
|
|
|
@@ -9084,6 +9280,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9084
9280
|
$root.vertexvis.protobuf.stream.ChangeSelectionOperation.encode(message.changeSelection, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
9085
9281
|
if (message.clearTransform != null && Object.hasOwnProperty.call(message, "clearTransform"))
|
|
9086
9282
|
$root.vertexvis.protobuf.stream.ClearTransformOperation.encode(message.clearTransform, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
9283
|
+
if (message.changePhantom != null && Object.hasOwnProperty.call(message, "changePhantom"))
|
|
9284
|
+
$root.vertexvis.protobuf.stream.ChangePhantomOperation.encode(message.changePhantom, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
9087
9285
|
return writer;
|
|
9088
9286
|
};
|
|
9089
9287
|
|
|
@@ -9133,6 +9331,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9133
9331
|
case 5:
|
|
9134
9332
|
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.decode(reader, reader.uint32());
|
|
9135
9333
|
break;
|
|
9334
|
+
case 6:
|
|
9335
|
+
message.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.decode(reader, reader.uint32());
|
|
9336
|
+
break;
|
|
9136
9337
|
default:
|
|
9137
9338
|
reader.skipType(tag & 7);
|
|
9138
9339
|
break;
|
|
@@ -9217,6 +9418,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9217
9418
|
return "clearTransform." + error;
|
|
9218
9419
|
}
|
|
9219
9420
|
}
|
|
9421
|
+
if (message.changePhantom != null && message.hasOwnProperty("changePhantom")) {
|
|
9422
|
+
if (properties.value === 1)
|
|
9423
|
+
return "value: multiple values";
|
|
9424
|
+
properties.value = 1;
|
|
9425
|
+
{
|
|
9426
|
+
let error = $root.vertexvis.protobuf.stream.ChangePhantomOperation.verify(message.changePhantom);
|
|
9427
|
+
if (error)
|
|
9428
|
+
return "changePhantom." + error;
|
|
9429
|
+
}
|
|
9430
|
+
}
|
|
9220
9431
|
return null;
|
|
9221
9432
|
};
|
|
9222
9433
|
|
|
@@ -9257,6 +9468,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9257
9468
|
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearTransform: object expected");
|
|
9258
9469
|
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.fromObject(object.clearTransform);
|
|
9259
9470
|
}
|
|
9471
|
+
if (object.changePhantom != null) {
|
|
9472
|
+
if (typeof object.changePhantom !== "object")
|
|
9473
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changePhantom: object expected");
|
|
9474
|
+
message.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.fromObject(object.changePhantom);
|
|
9475
|
+
}
|
|
9260
9476
|
return message;
|
|
9261
9477
|
};
|
|
9262
9478
|
|
|
@@ -9298,6 +9514,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9298
9514
|
if (options.oneofs)
|
|
9299
9515
|
object.value = "clearTransform";
|
|
9300
9516
|
}
|
|
9517
|
+
if (message.changePhantom != null && message.hasOwnProperty("changePhantom")) {
|
|
9518
|
+
object.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.toObject(message.changePhantom, options);
|
|
9519
|
+
if (options.oneofs)
|
|
9520
|
+
object.value = "changePhantom";
|
|
9521
|
+
}
|
|
9301
9522
|
return object;
|
|
9302
9523
|
};
|
|
9303
9524
|
|
|
@@ -11521,6 +11742,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11521
11742
|
* @property {boolean|null} [noDefaultLights] StreamAttributes noDefaultLights
|
|
11522
11743
|
* @property {string|null} [experimentalRenderingOptions] StreamAttributes experimentalRenderingOptions
|
|
11523
11744
|
* @property {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null} [selectionHighlighting] StreamAttributes selectionHighlighting
|
|
11745
|
+
* @property {vertexvis.protobuf.stream.IPhantomAttributes|null} [phantomItems] StreamAttributes phantomItems
|
|
11524
11746
|
*/
|
|
11525
11747
|
|
|
11526
11748
|
/**
|
|
@@ -11602,6 +11824,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11602
11824
|
*/
|
|
11603
11825
|
StreamAttributes.prototype.selectionHighlighting = null;
|
|
11604
11826
|
|
|
11827
|
+
/**
|
|
11828
|
+
* StreamAttributes phantomItems.
|
|
11829
|
+
* @member {vertexvis.protobuf.stream.IPhantomAttributes|null|undefined} phantomItems
|
|
11830
|
+
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
11831
|
+
* @instance
|
|
11832
|
+
*/
|
|
11833
|
+
StreamAttributes.prototype.phantomItems = null;
|
|
11834
|
+
|
|
11605
11835
|
/**
|
|
11606
11836
|
* Creates a new StreamAttributes instance using the specified properties.
|
|
11607
11837
|
* @function create
|
|
@@ -11642,6 +11872,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11642
11872
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.experimentalRenderingOptions);
|
|
11643
11873
|
if (message.selectionHighlighting != null && Object.hasOwnProperty.call(message, "selectionHighlighting"))
|
|
11644
11874
|
$root.vertexvis.protobuf.stream.SelectionHighlightAttributes.encode(message.selectionHighlighting, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
11875
|
+
if (message.phantomItems != null && Object.hasOwnProperty.call(message, "phantomItems"))
|
|
11876
|
+
$root.vertexvis.protobuf.stream.PhantomAttributes.encode(message.phantomItems, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
11645
11877
|
return writer;
|
|
11646
11878
|
};
|
|
11647
11879
|
|
|
@@ -11700,6 +11932,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11700
11932
|
case 8:
|
|
11701
11933
|
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.decode(reader, reader.uint32());
|
|
11702
11934
|
break;
|
|
11935
|
+
case 9:
|
|
11936
|
+
message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.decode(reader, reader.uint32());
|
|
11937
|
+
break;
|
|
11703
11938
|
default:
|
|
11704
11939
|
reader.skipType(tag & 7);
|
|
11705
11940
|
break;
|
|
@@ -11771,6 +12006,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11771
12006
|
if (error)
|
|
11772
12007
|
return "selectionHighlighting." + error;
|
|
11773
12008
|
}
|
|
12009
|
+
if (message.phantomItems != null && message.hasOwnProperty("phantomItems")) {
|
|
12010
|
+
let error = $root.vertexvis.protobuf.stream.PhantomAttributes.verify(message.phantomItems);
|
|
12011
|
+
if (error)
|
|
12012
|
+
return "phantomItems." + error;
|
|
12013
|
+
}
|
|
11774
12014
|
return null;
|
|
11775
12015
|
};
|
|
11776
12016
|
|
|
@@ -11820,6 +12060,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11820
12060
|
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.selectionHighlighting: object expected");
|
|
11821
12061
|
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.fromObject(object.selectionHighlighting);
|
|
11822
12062
|
}
|
|
12063
|
+
if (object.phantomItems != null) {
|
|
12064
|
+
if (typeof object.phantomItems !== "object")
|
|
12065
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.phantomItems: object expected");
|
|
12066
|
+
message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.fromObject(object.phantomItems);
|
|
12067
|
+
}
|
|
11823
12068
|
return message;
|
|
11824
12069
|
};
|
|
11825
12070
|
|
|
@@ -11845,6 +12090,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11845
12090
|
object.noDefaultLights = false;
|
|
11846
12091
|
object.experimentalRenderingOptions = "";
|
|
11847
12092
|
object.selectionHighlighting = null;
|
|
12093
|
+
object.phantomItems = null;
|
|
11848
12094
|
}
|
|
11849
12095
|
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
|
|
11850
12096
|
object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
|
|
@@ -11862,6 +12108,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11862
12108
|
object.experimentalRenderingOptions = message.experimentalRenderingOptions;
|
|
11863
12109
|
if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting"))
|
|
11864
12110
|
object.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.toObject(message.selectionHighlighting, options);
|
|
12111
|
+
if (message.phantomItems != null && message.hasOwnProperty("phantomItems"))
|
|
12112
|
+
object.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.toObject(message.phantomItems, options);
|
|
11865
12113
|
return object;
|
|
11866
12114
|
};
|
|
11867
12115
|
|
|
@@ -11879,6 +12127,198 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11879
12127
|
return StreamAttributes;
|
|
11880
12128
|
})();
|
|
11881
12129
|
|
|
12130
|
+
stream.PhantomAttributes = (function() {
|
|
12131
|
+
|
|
12132
|
+
/**
|
|
12133
|
+
* Properties of a PhantomAttributes.
|
|
12134
|
+
* @memberof vertexvis.protobuf.stream
|
|
12135
|
+
* @interface IPhantomAttributes
|
|
12136
|
+
* @property {google.protobuf.IFloatValue|null} [opacity] PhantomAttributes opacity
|
|
12137
|
+
*/
|
|
12138
|
+
|
|
12139
|
+
/**
|
|
12140
|
+
* Constructs a new PhantomAttributes.
|
|
12141
|
+
* @memberof vertexvis.protobuf.stream
|
|
12142
|
+
* @classdesc Represents a PhantomAttributes.
|
|
12143
|
+
* @implements IPhantomAttributes
|
|
12144
|
+
* @constructor
|
|
12145
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes=} [properties] Properties to set
|
|
12146
|
+
*/
|
|
12147
|
+
function PhantomAttributes(properties) {
|
|
12148
|
+
if (properties)
|
|
12149
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12150
|
+
if (properties[keys[i]] != null)
|
|
12151
|
+
this[keys[i]] = properties[keys[i]];
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12154
|
+
/**
|
|
12155
|
+
* PhantomAttributes opacity.
|
|
12156
|
+
* @member {google.protobuf.IFloatValue|null|undefined} opacity
|
|
12157
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12158
|
+
* @instance
|
|
12159
|
+
*/
|
|
12160
|
+
PhantomAttributes.prototype.opacity = null;
|
|
12161
|
+
|
|
12162
|
+
/**
|
|
12163
|
+
* Creates a new PhantomAttributes instance using the specified properties.
|
|
12164
|
+
* @function create
|
|
12165
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12166
|
+
* @static
|
|
12167
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes=} [properties] Properties to set
|
|
12168
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes instance
|
|
12169
|
+
*/
|
|
12170
|
+
PhantomAttributes.create = function create(properties) {
|
|
12171
|
+
return new PhantomAttributes(properties);
|
|
12172
|
+
};
|
|
12173
|
+
|
|
12174
|
+
/**
|
|
12175
|
+
* Encodes the specified PhantomAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.PhantomAttributes.verify|verify} messages.
|
|
12176
|
+
* @function encode
|
|
12177
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12178
|
+
* @static
|
|
12179
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes} message PhantomAttributes message or plain object to encode
|
|
12180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12181
|
+
* @returns {$protobuf.Writer} Writer
|
|
12182
|
+
*/
|
|
12183
|
+
PhantomAttributes.encode = function encode(message, writer) {
|
|
12184
|
+
if (!writer)
|
|
12185
|
+
writer = $Writer.create();
|
|
12186
|
+
if (message.opacity != null && Object.hasOwnProperty.call(message, "opacity"))
|
|
12187
|
+
$root.google.protobuf.FloatValue.encode(message.opacity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12188
|
+
return writer;
|
|
12189
|
+
};
|
|
12190
|
+
|
|
12191
|
+
/**
|
|
12192
|
+
* Encodes the specified PhantomAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.PhantomAttributes.verify|verify} messages.
|
|
12193
|
+
* @function encodeDelimited
|
|
12194
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12195
|
+
* @static
|
|
12196
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes} message PhantomAttributes message or plain object to encode
|
|
12197
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12198
|
+
* @returns {$protobuf.Writer} Writer
|
|
12199
|
+
*/
|
|
12200
|
+
PhantomAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12201
|
+
return this.encode(message, writer).ldelim();
|
|
12202
|
+
};
|
|
12203
|
+
|
|
12204
|
+
/**
|
|
12205
|
+
* Decodes a PhantomAttributes message from the specified reader or buffer.
|
|
12206
|
+
* @function decode
|
|
12207
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12208
|
+
* @static
|
|
12209
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12210
|
+
* @param {number} [length] Message length if known beforehand
|
|
12211
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12212
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12213
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12214
|
+
*/
|
|
12215
|
+
PhantomAttributes.decode = function decode(reader, length) {
|
|
12216
|
+
if (!(reader instanceof $Reader))
|
|
12217
|
+
reader = $Reader.create(reader);
|
|
12218
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.PhantomAttributes();
|
|
12219
|
+
while (reader.pos < end) {
|
|
12220
|
+
let tag = reader.uint32();
|
|
12221
|
+
switch (tag >>> 3) {
|
|
12222
|
+
case 1:
|
|
12223
|
+
message.opacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
12224
|
+
break;
|
|
12225
|
+
default:
|
|
12226
|
+
reader.skipType(tag & 7);
|
|
12227
|
+
break;
|
|
12228
|
+
}
|
|
12229
|
+
}
|
|
12230
|
+
return message;
|
|
12231
|
+
};
|
|
12232
|
+
|
|
12233
|
+
/**
|
|
12234
|
+
* Decodes a PhantomAttributes message from the specified reader or buffer, length delimited.
|
|
12235
|
+
* @function decodeDelimited
|
|
12236
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12237
|
+
* @static
|
|
12238
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12239
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12240
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12241
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12242
|
+
*/
|
|
12243
|
+
PhantomAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
12244
|
+
if (!(reader instanceof $Reader))
|
|
12245
|
+
reader = new $Reader(reader);
|
|
12246
|
+
return this.decode(reader, reader.uint32());
|
|
12247
|
+
};
|
|
12248
|
+
|
|
12249
|
+
/**
|
|
12250
|
+
* Verifies a PhantomAttributes message.
|
|
12251
|
+
* @function verify
|
|
12252
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12253
|
+
* @static
|
|
12254
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12255
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12256
|
+
*/
|
|
12257
|
+
PhantomAttributes.verify = function verify(message) {
|
|
12258
|
+
if (typeof message !== "object" || message === null)
|
|
12259
|
+
return "object expected";
|
|
12260
|
+
if (message.opacity != null && message.hasOwnProperty("opacity")) {
|
|
12261
|
+
let error = $root.google.protobuf.FloatValue.verify(message.opacity);
|
|
12262
|
+
if (error)
|
|
12263
|
+
return "opacity." + error;
|
|
12264
|
+
}
|
|
12265
|
+
return null;
|
|
12266
|
+
};
|
|
12267
|
+
|
|
12268
|
+
/**
|
|
12269
|
+
* Creates a PhantomAttributes message from a plain object. Also converts values to their respective internal types.
|
|
12270
|
+
* @function fromObject
|
|
12271
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12272
|
+
* @static
|
|
12273
|
+
* @param {Object.<string,*>} object Plain object
|
|
12274
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12275
|
+
*/
|
|
12276
|
+
PhantomAttributes.fromObject = function fromObject(object) {
|
|
12277
|
+
if (object instanceof $root.vertexvis.protobuf.stream.PhantomAttributes)
|
|
12278
|
+
return object;
|
|
12279
|
+
let message = new $root.vertexvis.protobuf.stream.PhantomAttributes();
|
|
12280
|
+
if (object.opacity != null) {
|
|
12281
|
+
if (typeof object.opacity !== "object")
|
|
12282
|
+
throw TypeError(".vertexvis.protobuf.stream.PhantomAttributes.opacity: object expected");
|
|
12283
|
+
message.opacity = $root.google.protobuf.FloatValue.fromObject(object.opacity);
|
|
12284
|
+
}
|
|
12285
|
+
return message;
|
|
12286
|
+
};
|
|
12287
|
+
|
|
12288
|
+
/**
|
|
12289
|
+
* Creates a plain object from a PhantomAttributes message. Also converts values to other types if specified.
|
|
12290
|
+
* @function toObject
|
|
12291
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12292
|
+
* @static
|
|
12293
|
+
* @param {vertexvis.protobuf.stream.PhantomAttributes} message PhantomAttributes
|
|
12294
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12295
|
+
* @returns {Object.<string,*>} Plain object
|
|
12296
|
+
*/
|
|
12297
|
+
PhantomAttributes.toObject = function toObject(message, options) {
|
|
12298
|
+
if (!options)
|
|
12299
|
+
options = {};
|
|
12300
|
+
let object = {};
|
|
12301
|
+
if (options.defaults)
|
|
12302
|
+
object.opacity = null;
|
|
12303
|
+
if (message.opacity != null && message.hasOwnProperty("opacity"))
|
|
12304
|
+
object.opacity = $root.google.protobuf.FloatValue.toObject(message.opacity, options);
|
|
12305
|
+
return object;
|
|
12306
|
+
};
|
|
12307
|
+
|
|
12308
|
+
/**
|
|
12309
|
+
* Converts this PhantomAttributes to JSON.
|
|
12310
|
+
* @function toJSON
|
|
12311
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12312
|
+
* @instance
|
|
12313
|
+
* @returns {Object.<string,*>} JSON object
|
|
12314
|
+
*/
|
|
12315
|
+
PhantomAttributes.prototype.toJSON = function toJSON() {
|
|
12316
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
12317
|
+
};
|
|
12318
|
+
|
|
12319
|
+
return PhantomAttributes;
|
|
12320
|
+
})();
|
|
12321
|
+
|
|
11882
12322
|
stream.GhostingAttributes = (function() {
|
|
11883
12323
|
|
|
11884
12324
|
/**
|