@vertexvis/stream-api 0.17.3-canary.8 → 0.17.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 +471 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +471 -3
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -8964,6 +8964,193 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8964
8964
|
return ClearTransformOperation;
|
|
8965
8965
|
})();
|
|
8966
8966
|
|
|
8967
|
+
stream.ChangePhantomOperation = (function() {
|
|
8968
|
+
|
|
8969
|
+
/**
|
|
8970
|
+
* Properties of a ChangePhantomOperation.
|
|
8971
|
+
* @memberof vertexvis.protobuf.stream
|
|
8972
|
+
* @interface IChangePhantomOperation
|
|
8973
|
+
* @property {boolean|null} [phantom] ChangePhantomOperation phantom
|
|
8974
|
+
*/
|
|
8975
|
+
|
|
8976
|
+
/**
|
|
8977
|
+
* Constructs a new ChangePhantomOperation.
|
|
8978
|
+
* @memberof vertexvis.protobuf.stream
|
|
8979
|
+
* @classdesc Represents a ChangePhantomOperation.
|
|
8980
|
+
* @implements IChangePhantomOperation
|
|
8981
|
+
* @constructor
|
|
8982
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation=} [properties] Properties to set
|
|
8983
|
+
*/
|
|
8984
|
+
function ChangePhantomOperation(properties) {
|
|
8985
|
+
if (properties)
|
|
8986
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8987
|
+
if (properties[keys[i]] != null)
|
|
8988
|
+
this[keys[i]] = properties[keys[i]];
|
|
8989
|
+
}
|
|
8990
|
+
|
|
8991
|
+
/**
|
|
8992
|
+
* ChangePhantomOperation phantom.
|
|
8993
|
+
* @member {boolean} phantom
|
|
8994
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
8995
|
+
* @instance
|
|
8996
|
+
*/
|
|
8997
|
+
ChangePhantomOperation.prototype.phantom = false;
|
|
8998
|
+
|
|
8999
|
+
/**
|
|
9000
|
+
* Creates a new ChangePhantomOperation instance using the specified properties.
|
|
9001
|
+
* @function create
|
|
9002
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9003
|
+
* @static
|
|
9004
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation=} [properties] Properties to set
|
|
9005
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation instance
|
|
9006
|
+
*/
|
|
9007
|
+
ChangePhantomOperation.create = function create(properties) {
|
|
9008
|
+
return new ChangePhantomOperation(properties);
|
|
9009
|
+
};
|
|
9010
|
+
|
|
9011
|
+
/**
|
|
9012
|
+
* Encodes the specified ChangePhantomOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ChangePhantomOperation.verify|verify} messages.
|
|
9013
|
+
* @function encode
|
|
9014
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9015
|
+
* @static
|
|
9016
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation} message ChangePhantomOperation message or plain object to encode
|
|
9017
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9018
|
+
* @returns {$protobuf.Writer} Writer
|
|
9019
|
+
*/
|
|
9020
|
+
ChangePhantomOperation.encode = function encode(message, writer) {
|
|
9021
|
+
if (!writer)
|
|
9022
|
+
writer = $Writer.create();
|
|
9023
|
+
if (message.phantom != null && Object.hasOwnProperty.call(message, "phantom"))
|
|
9024
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.phantom);
|
|
9025
|
+
return writer;
|
|
9026
|
+
};
|
|
9027
|
+
|
|
9028
|
+
/**
|
|
9029
|
+
* Encodes the specified ChangePhantomOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ChangePhantomOperation.verify|verify} messages.
|
|
9030
|
+
* @function encodeDelimited
|
|
9031
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9032
|
+
* @static
|
|
9033
|
+
* @param {vertexvis.protobuf.stream.IChangePhantomOperation} message ChangePhantomOperation message or plain object to encode
|
|
9034
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9035
|
+
* @returns {$protobuf.Writer} Writer
|
|
9036
|
+
*/
|
|
9037
|
+
ChangePhantomOperation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9038
|
+
return this.encode(message, writer).ldelim();
|
|
9039
|
+
};
|
|
9040
|
+
|
|
9041
|
+
/**
|
|
9042
|
+
* Decodes a ChangePhantomOperation message from the specified reader or buffer.
|
|
9043
|
+
* @function decode
|
|
9044
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9045
|
+
* @static
|
|
9046
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9047
|
+
* @param {number} [length] Message length if known beforehand
|
|
9048
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9049
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9050
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9051
|
+
*/
|
|
9052
|
+
ChangePhantomOperation.decode = function decode(reader, length) {
|
|
9053
|
+
if (!(reader instanceof $Reader))
|
|
9054
|
+
reader = $Reader.create(reader);
|
|
9055
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ChangePhantomOperation();
|
|
9056
|
+
while (reader.pos < end) {
|
|
9057
|
+
let tag = reader.uint32();
|
|
9058
|
+
switch (tag >>> 3) {
|
|
9059
|
+
case 1:
|
|
9060
|
+
message.phantom = reader.bool();
|
|
9061
|
+
break;
|
|
9062
|
+
default:
|
|
9063
|
+
reader.skipType(tag & 7);
|
|
9064
|
+
break;
|
|
9065
|
+
}
|
|
9066
|
+
}
|
|
9067
|
+
return message;
|
|
9068
|
+
};
|
|
9069
|
+
|
|
9070
|
+
/**
|
|
9071
|
+
* Decodes a ChangePhantomOperation message from the specified reader or buffer, length delimited.
|
|
9072
|
+
* @function decodeDelimited
|
|
9073
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9074
|
+
* @static
|
|
9075
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9076
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9077
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9078
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9079
|
+
*/
|
|
9080
|
+
ChangePhantomOperation.decodeDelimited = function decodeDelimited(reader) {
|
|
9081
|
+
if (!(reader instanceof $Reader))
|
|
9082
|
+
reader = new $Reader(reader);
|
|
9083
|
+
return this.decode(reader, reader.uint32());
|
|
9084
|
+
};
|
|
9085
|
+
|
|
9086
|
+
/**
|
|
9087
|
+
* Verifies a ChangePhantomOperation message.
|
|
9088
|
+
* @function verify
|
|
9089
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9090
|
+
* @static
|
|
9091
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9092
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9093
|
+
*/
|
|
9094
|
+
ChangePhantomOperation.verify = function verify(message) {
|
|
9095
|
+
if (typeof message !== "object" || message === null)
|
|
9096
|
+
return "object expected";
|
|
9097
|
+
if (message.phantom != null && message.hasOwnProperty("phantom"))
|
|
9098
|
+
if (typeof message.phantom !== "boolean")
|
|
9099
|
+
return "phantom: boolean expected";
|
|
9100
|
+
return null;
|
|
9101
|
+
};
|
|
9102
|
+
|
|
9103
|
+
/**
|
|
9104
|
+
* Creates a ChangePhantomOperation message from a plain object. Also converts values to their respective internal types.
|
|
9105
|
+
* @function fromObject
|
|
9106
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9107
|
+
* @static
|
|
9108
|
+
* @param {Object.<string,*>} object Plain object
|
|
9109
|
+
* @returns {vertexvis.protobuf.stream.ChangePhantomOperation} ChangePhantomOperation
|
|
9110
|
+
*/
|
|
9111
|
+
ChangePhantomOperation.fromObject = function fromObject(object) {
|
|
9112
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ChangePhantomOperation)
|
|
9113
|
+
return object;
|
|
9114
|
+
let message = new $root.vertexvis.protobuf.stream.ChangePhantomOperation();
|
|
9115
|
+
if (object.phantom != null)
|
|
9116
|
+
message.phantom = Boolean(object.phantom);
|
|
9117
|
+
return message;
|
|
9118
|
+
};
|
|
9119
|
+
|
|
9120
|
+
/**
|
|
9121
|
+
* Creates a plain object from a ChangePhantomOperation message. Also converts values to other types if specified.
|
|
9122
|
+
* @function toObject
|
|
9123
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9124
|
+
* @static
|
|
9125
|
+
* @param {vertexvis.protobuf.stream.ChangePhantomOperation} message ChangePhantomOperation
|
|
9126
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9127
|
+
* @returns {Object.<string,*>} Plain object
|
|
9128
|
+
*/
|
|
9129
|
+
ChangePhantomOperation.toObject = function toObject(message, options) {
|
|
9130
|
+
if (!options)
|
|
9131
|
+
options = {};
|
|
9132
|
+
let object = {};
|
|
9133
|
+
if (options.defaults)
|
|
9134
|
+
object.phantom = false;
|
|
9135
|
+
if (message.phantom != null && message.hasOwnProperty("phantom"))
|
|
9136
|
+
object.phantom = message.phantom;
|
|
9137
|
+
return object;
|
|
9138
|
+
};
|
|
9139
|
+
|
|
9140
|
+
/**
|
|
9141
|
+
* Converts this ChangePhantomOperation to JSON.
|
|
9142
|
+
* @function toJSON
|
|
9143
|
+
* @memberof vertexvis.protobuf.stream.ChangePhantomOperation
|
|
9144
|
+
* @instance
|
|
9145
|
+
* @returns {Object.<string,*>} JSON object
|
|
9146
|
+
*/
|
|
9147
|
+
ChangePhantomOperation.prototype.toJSON = function toJSON() {
|
|
9148
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
9149
|
+
};
|
|
9150
|
+
|
|
9151
|
+
return ChangePhantomOperation;
|
|
9152
|
+
})();
|
|
9153
|
+
|
|
8967
9154
|
stream.OperationType = (function() {
|
|
8968
9155
|
|
|
8969
9156
|
/**
|
|
@@ -8975,6 +9162,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8975
9162
|
* @property {vertexvis.protobuf.stream.IChangeTransformOperation|null} [changeTransform] OperationType changeTransform
|
|
8976
9163
|
* @property {vertexvis.protobuf.stream.IChangeSelectionOperation|null} [changeSelection] OperationType changeSelection
|
|
8977
9164
|
* @property {vertexvis.protobuf.stream.IClearTransformOperation|null} [clearTransform] OperationType clearTransform
|
|
9165
|
+
* @property {vertexvis.protobuf.stream.IChangePhantomOperation|null} [changePhantom] OperationType changePhantom
|
|
8978
9166
|
*/
|
|
8979
9167
|
|
|
8980
9168
|
/**
|
|
@@ -9032,17 +9220,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9032
9220
|
*/
|
|
9033
9221
|
OperationType.prototype.clearTransform = null;
|
|
9034
9222
|
|
|
9223
|
+
/**
|
|
9224
|
+
* OperationType changePhantom.
|
|
9225
|
+
* @member {vertexvis.protobuf.stream.IChangePhantomOperation|null|undefined} changePhantom
|
|
9226
|
+
* @memberof vertexvis.protobuf.stream.OperationType
|
|
9227
|
+
* @instance
|
|
9228
|
+
*/
|
|
9229
|
+
OperationType.prototype.changePhantom = null;
|
|
9230
|
+
|
|
9035
9231
|
// OneOf field names bound to virtual getters and setters
|
|
9036
9232
|
let $oneOfFields;
|
|
9037
9233
|
|
|
9038
9234
|
/**
|
|
9039
9235
|
* OperationType value.
|
|
9040
|
-
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|undefined} value
|
|
9236
|
+
* @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|undefined} value
|
|
9041
9237
|
* @memberof vertexvis.protobuf.stream.OperationType
|
|
9042
9238
|
* @instance
|
|
9043
9239
|
*/
|
|
9044
9240
|
Object.defineProperty(OperationType.prototype, "value", {
|
|
9045
|
-
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform"]),
|
|
9241
|
+
get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom"]),
|
|
9046
9242
|
set: $util.oneOfSetter($oneOfFields)
|
|
9047
9243
|
});
|
|
9048
9244
|
|
|
@@ -9080,6 +9276,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9080
9276
|
$root.vertexvis.protobuf.stream.ChangeSelectionOperation.encode(message.changeSelection, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
9081
9277
|
if (message.clearTransform != null && Object.hasOwnProperty.call(message, "clearTransform"))
|
|
9082
9278
|
$root.vertexvis.protobuf.stream.ClearTransformOperation.encode(message.clearTransform, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
9279
|
+
if (message.changePhantom != null && Object.hasOwnProperty.call(message, "changePhantom"))
|
|
9280
|
+
$root.vertexvis.protobuf.stream.ChangePhantomOperation.encode(message.changePhantom, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
9083
9281
|
return writer;
|
|
9084
9282
|
};
|
|
9085
9283
|
|
|
@@ -9129,6 +9327,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9129
9327
|
case 5:
|
|
9130
9328
|
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.decode(reader, reader.uint32());
|
|
9131
9329
|
break;
|
|
9330
|
+
case 6:
|
|
9331
|
+
message.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.decode(reader, reader.uint32());
|
|
9332
|
+
break;
|
|
9132
9333
|
default:
|
|
9133
9334
|
reader.skipType(tag & 7);
|
|
9134
9335
|
break;
|
|
@@ -9213,6 +9414,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9213
9414
|
return "clearTransform." + error;
|
|
9214
9415
|
}
|
|
9215
9416
|
}
|
|
9417
|
+
if (message.changePhantom != null && message.hasOwnProperty("changePhantom")) {
|
|
9418
|
+
if (properties.value === 1)
|
|
9419
|
+
return "value: multiple values";
|
|
9420
|
+
properties.value = 1;
|
|
9421
|
+
{
|
|
9422
|
+
let error = $root.vertexvis.protobuf.stream.ChangePhantomOperation.verify(message.changePhantom);
|
|
9423
|
+
if (error)
|
|
9424
|
+
return "changePhantom." + error;
|
|
9425
|
+
}
|
|
9426
|
+
}
|
|
9216
9427
|
return null;
|
|
9217
9428
|
};
|
|
9218
9429
|
|
|
@@ -9253,6 +9464,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9253
9464
|
throw TypeError(".vertexvis.protobuf.stream.OperationType.clearTransform: object expected");
|
|
9254
9465
|
message.clearTransform = $root.vertexvis.protobuf.stream.ClearTransformOperation.fromObject(object.clearTransform);
|
|
9255
9466
|
}
|
|
9467
|
+
if (object.changePhantom != null) {
|
|
9468
|
+
if (typeof object.changePhantom !== "object")
|
|
9469
|
+
throw TypeError(".vertexvis.protobuf.stream.OperationType.changePhantom: object expected");
|
|
9470
|
+
message.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.fromObject(object.changePhantom);
|
|
9471
|
+
}
|
|
9256
9472
|
return message;
|
|
9257
9473
|
};
|
|
9258
9474
|
|
|
@@ -9294,6 +9510,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
9294
9510
|
if (options.oneofs)
|
|
9295
9511
|
object.value = "clearTransform";
|
|
9296
9512
|
}
|
|
9513
|
+
if (message.changePhantom != null && message.hasOwnProperty("changePhantom")) {
|
|
9514
|
+
object.changePhantom = $root.vertexvis.protobuf.stream.ChangePhantomOperation.toObject(message.changePhantom, options);
|
|
9515
|
+
if (options.oneofs)
|
|
9516
|
+
object.value = "changePhantom";
|
|
9517
|
+
}
|
|
9297
9518
|
return object;
|
|
9298
9519
|
};
|
|
9299
9520
|
|
|
@@ -11517,6 +11738,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11517
11738
|
* @property {boolean|null} [noDefaultLights] StreamAttributes noDefaultLights
|
|
11518
11739
|
* @property {string|null} [experimentalRenderingOptions] StreamAttributes experimentalRenderingOptions
|
|
11519
11740
|
* @property {vertexvis.protobuf.stream.ISelectionHighlightAttributes|null} [selectionHighlighting] StreamAttributes selectionHighlighting
|
|
11741
|
+
* @property {vertexvis.protobuf.stream.IPhantomAttributes|null} [phantomItems] StreamAttributes phantomItems
|
|
11520
11742
|
*/
|
|
11521
11743
|
|
|
11522
11744
|
/**
|
|
@@ -11598,6 +11820,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11598
11820
|
*/
|
|
11599
11821
|
StreamAttributes.prototype.selectionHighlighting = null;
|
|
11600
11822
|
|
|
11823
|
+
/**
|
|
11824
|
+
* StreamAttributes phantomItems.
|
|
11825
|
+
* @member {vertexvis.protobuf.stream.IPhantomAttributes|null|undefined} phantomItems
|
|
11826
|
+
* @memberof vertexvis.protobuf.stream.StreamAttributes
|
|
11827
|
+
* @instance
|
|
11828
|
+
*/
|
|
11829
|
+
StreamAttributes.prototype.phantomItems = null;
|
|
11830
|
+
|
|
11601
11831
|
/**
|
|
11602
11832
|
* Creates a new StreamAttributes instance using the specified properties.
|
|
11603
11833
|
* @function create
|
|
@@ -11638,6 +11868,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11638
11868
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.experimentalRenderingOptions);
|
|
11639
11869
|
if (message.selectionHighlighting != null && Object.hasOwnProperty.call(message, "selectionHighlighting"))
|
|
11640
11870
|
$root.vertexvis.protobuf.stream.SelectionHighlightAttributes.encode(message.selectionHighlighting, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
11871
|
+
if (message.phantomItems != null && Object.hasOwnProperty.call(message, "phantomItems"))
|
|
11872
|
+
$root.vertexvis.protobuf.stream.PhantomAttributes.encode(message.phantomItems, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
11641
11873
|
return writer;
|
|
11642
11874
|
};
|
|
11643
11875
|
|
|
@@ -11696,6 +11928,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11696
11928
|
case 8:
|
|
11697
11929
|
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.decode(reader, reader.uint32());
|
|
11698
11930
|
break;
|
|
11931
|
+
case 9:
|
|
11932
|
+
message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.decode(reader, reader.uint32());
|
|
11933
|
+
break;
|
|
11699
11934
|
default:
|
|
11700
11935
|
reader.skipType(tag & 7);
|
|
11701
11936
|
break;
|
|
@@ -11767,6 +12002,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11767
12002
|
if (error)
|
|
11768
12003
|
return "selectionHighlighting." + error;
|
|
11769
12004
|
}
|
|
12005
|
+
if (message.phantomItems != null && message.hasOwnProperty("phantomItems")) {
|
|
12006
|
+
let error = $root.vertexvis.protobuf.stream.PhantomAttributes.verify(message.phantomItems);
|
|
12007
|
+
if (error)
|
|
12008
|
+
return "phantomItems." + error;
|
|
12009
|
+
}
|
|
11770
12010
|
return null;
|
|
11771
12011
|
};
|
|
11772
12012
|
|
|
@@ -11816,6 +12056,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11816
12056
|
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.selectionHighlighting: object expected");
|
|
11817
12057
|
message.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.fromObject(object.selectionHighlighting);
|
|
11818
12058
|
}
|
|
12059
|
+
if (object.phantomItems != null) {
|
|
12060
|
+
if (typeof object.phantomItems !== "object")
|
|
12061
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamAttributes.phantomItems: object expected");
|
|
12062
|
+
message.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.fromObject(object.phantomItems);
|
|
12063
|
+
}
|
|
11819
12064
|
return message;
|
|
11820
12065
|
};
|
|
11821
12066
|
|
|
@@ -11841,6 +12086,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11841
12086
|
object.noDefaultLights = false;
|
|
11842
12087
|
object.experimentalRenderingOptions = "";
|
|
11843
12088
|
object.selectionHighlighting = null;
|
|
12089
|
+
object.phantomItems = null;
|
|
11844
12090
|
}
|
|
11845
12091
|
if (message.experimentalGhosting != null && message.hasOwnProperty("experimentalGhosting"))
|
|
11846
12092
|
object.experimentalGhosting = $root.vertexvis.protobuf.stream.GhostingAttributes.toObject(message.experimentalGhosting, options);
|
|
@@ -11858,6 +12104,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11858
12104
|
object.experimentalRenderingOptions = message.experimentalRenderingOptions;
|
|
11859
12105
|
if (message.selectionHighlighting != null && message.hasOwnProperty("selectionHighlighting"))
|
|
11860
12106
|
object.selectionHighlighting = $root.vertexvis.protobuf.stream.SelectionHighlightAttributes.toObject(message.selectionHighlighting, options);
|
|
12107
|
+
if (message.phantomItems != null && message.hasOwnProperty("phantomItems"))
|
|
12108
|
+
object.phantomItems = $root.vertexvis.protobuf.stream.PhantomAttributes.toObject(message.phantomItems, options);
|
|
11861
12109
|
return object;
|
|
11862
12110
|
};
|
|
11863
12111
|
|
|
@@ -11875,6 +12123,198 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11875
12123
|
return StreamAttributes;
|
|
11876
12124
|
})();
|
|
11877
12125
|
|
|
12126
|
+
stream.PhantomAttributes = (function() {
|
|
12127
|
+
|
|
12128
|
+
/**
|
|
12129
|
+
* Properties of a PhantomAttributes.
|
|
12130
|
+
* @memberof vertexvis.protobuf.stream
|
|
12131
|
+
* @interface IPhantomAttributes
|
|
12132
|
+
* @property {google.protobuf.IFloatValue|null} [opacity] PhantomAttributes opacity
|
|
12133
|
+
*/
|
|
12134
|
+
|
|
12135
|
+
/**
|
|
12136
|
+
* Constructs a new PhantomAttributes.
|
|
12137
|
+
* @memberof vertexvis.protobuf.stream
|
|
12138
|
+
* @classdesc Represents a PhantomAttributes.
|
|
12139
|
+
* @implements IPhantomAttributes
|
|
12140
|
+
* @constructor
|
|
12141
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes=} [properties] Properties to set
|
|
12142
|
+
*/
|
|
12143
|
+
function PhantomAttributes(properties) {
|
|
12144
|
+
if (properties)
|
|
12145
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12146
|
+
if (properties[keys[i]] != null)
|
|
12147
|
+
this[keys[i]] = properties[keys[i]];
|
|
12148
|
+
}
|
|
12149
|
+
|
|
12150
|
+
/**
|
|
12151
|
+
* PhantomAttributes opacity.
|
|
12152
|
+
* @member {google.protobuf.IFloatValue|null|undefined} opacity
|
|
12153
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12154
|
+
* @instance
|
|
12155
|
+
*/
|
|
12156
|
+
PhantomAttributes.prototype.opacity = null;
|
|
12157
|
+
|
|
12158
|
+
/**
|
|
12159
|
+
* Creates a new PhantomAttributes instance using the specified properties.
|
|
12160
|
+
* @function create
|
|
12161
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12162
|
+
* @static
|
|
12163
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes=} [properties] Properties to set
|
|
12164
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes instance
|
|
12165
|
+
*/
|
|
12166
|
+
PhantomAttributes.create = function create(properties) {
|
|
12167
|
+
return new PhantomAttributes(properties);
|
|
12168
|
+
};
|
|
12169
|
+
|
|
12170
|
+
/**
|
|
12171
|
+
* Encodes the specified PhantomAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.PhantomAttributes.verify|verify} messages.
|
|
12172
|
+
* @function encode
|
|
12173
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12174
|
+
* @static
|
|
12175
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes} message PhantomAttributes message or plain object to encode
|
|
12176
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12177
|
+
* @returns {$protobuf.Writer} Writer
|
|
12178
|
+
*/
|
|
12179
|
+
PhantomAttributes.encode = function encode(message, writer) {
|
|
12180
|
+
if (!writer)
|
|
12181
|
+
writer = $Writer.create();
|
|
12182
|
+
if (message.opacity != null && Object.hasOwnProperty.call(message, "opacity"))
|
|
12183
|
+
$root.google.protobuf.FloatValue.encode(message.opacity, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
12184
|
+
return writer;
|
|
12185
|
+
};
|
|
12186
|
+
|
|
12187
|
+
/**
|
|
12188
|
+
* Encodes the specified PhantomAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.PhantomAttributes.verify|verify} messages.
|
|
12189
|
+
* @function encodeDelimited
|
|
12190
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12191
|
+
* @static
|
|
12192
|
+
* @param {vertexvis.protobuf.stream.IPhantomAttributes} message PhantomAttributes message or plain object to encode
|
|
12193
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12194
|
+
* @returns {$protobuf.Writer} Writer
|
|
12195
|
+
*/
|
|
12196
|
+
PhantomAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12197
|
+
return this.encode(message, writer).ldelim();
|
|
12198
|
+
};
|
|
12199
|
+
|
|
12200
|
+
/**
|
|
12201
|
+
* Decodes a PhantomAttributes message from the specified reader or buffer.
|
|
12202
|
+
* @function decode
|
|
12203
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12204
|
+
* @static
|
|
12205
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12206
|
+
* @param {number} [length] Message length if known beforehand
|
|
12207
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12208
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12209
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12210
|
+
*/
|
|
12211
|
+
PhantomAttributes.decode = function decode(reader, length) {
|
|
12212
|
+
if (!(reader instanceof $Reader))
|
|
12213
|
+
reader = $Reader.create(reader);
|
|
12214
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.PhantomAttributes();
|
|
12215
|
+
while (reader.pos < end) {
|
|
12216
|
+
let tag = reader.uint32();
|
|
12217
|
+
switch (tag >>> 3) {
|
|
12218
|
+
case 1:
|
|
12219
|
+
message.opacity = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
12220
|
+
break;
|
|
12221
|
+
default:
|
|
12222
|
+
reader.skipType(tag & 7);
|
|
12223
|
+
break;
|
|
12224
|
+
}
|
|
12225
|
+
}
|
|
12226
|
+
return message;
|
|
12227
|
+
};
|
|
12228
|
+
|
|
12229
|
+
/**
|
|
12230
|
+
* Decodes a PhantomAttributes message from the specified reader or buffer, length delimited.
|
|
12231
|
+
* @function decodeDelimited
|
|
12232
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12233
|
+
* @static
|
|
12234
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12235
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12236
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12237
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12238
|
+
*/
|
|
12239
|
+
PhantomAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
12240
|
+
if (!(reader instanceof $Reader))
|
|
12241
|
+
reader = new $Reader(reader);
|
|
12242
|
+
return this.decode(reader, reader.uint32());
|
|
12243
|
+
};
|
|
12244
|
+
|
|
12245
|
+
/**
|
|
12246
|
+
* Verifies a PhantomAttributes message.
|
|
12247
|
+
* @function verify
|
|
12248
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12249
|
+
* @static
|
|
12250
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12251
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12252
|
+
*/
|
|
12253
|
+
PhantomAttributes.verify = function verify(message) {
|
|
12254
|
+
if (typeof message !== "object" || message === null)
|
|
12255
|
+
return "object expected";
|
|
12256
|
+
if (message.opacity != null && message.hasOwnProperty("opacity")) {
|
|
12257
|
+
let error = $root.google.protobuf.FloatValue.verify(message.opacity);
|
|
12258
|
+
if (error)
|
|
12259
|
+
return "opacity." + error;
|
|
12260
|
+
}
|
|
12261
|
+
return null;
|
|
12262
|
+
};
|
|
12263
|
+
|
|
12264
|
+
/**
|
|
12265
|
+
* Creates a PhantomAttributes message from a plain object. Also converts values to their respective internal types.
|
|
12266
|
+
* @function fromObject
|
|
12267
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12268
|
+
* @static
|
|
12269
|
+
* @param {Object.<string,*>} object Plain object
|
|
12270
|
+
* @returns {vertexvis.protobuf.stream.PhantomAttributes} PhantomAttributes
|
|
12271
|
+
*/
|
|
12272
|
+
PhantomAttributes.fromObject = function fromObject(object) {
|
|
12273
|
+
if (object instanceof $root.vertexvis.protobuf.stream.PhantomAttributes)
|
|
12274
|
+
return object;
|
|
12275
|
+
let message = new $root.vertexvis.protobuf.stream.PhantomAttributes();
|
|
12276
|
+
if (object.opacity != null) {
|
|
12277
|
+
if (typeof object.opacity !== "object")
|
|
12278
|
+
throw TypeError(".vertexvis.protobuf.stream.PhantomAttributes.opacity: object expected");
|
|
12279
|
+
message.opacity = $root.google.protobuf.FloatValue.fromObject(object.opacity);
|
|
12280
|
+
}
|
|
12281
|
+
return message;
|
|
12282
|
+
};
|
|
12283
|
+
|
|
12284
|
+
/**
|
|
12285
|
+
* Creates a plain object from a PhantomAttributes message. Also converts values to other types if specified.
|
|
12286
|
+
* @function toObject
|
|
12287
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12288
|
+
* @static
|
|
12289
|
+
* @param {vertexvis.protobuf.stream.PhantomAttributes} message PhantomAttributes
|
|
12290
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12291
|
+
* @returns {Object.<string,*>} Plain object
|
|
12292
|
+
*/
|
|
12293
|
+
PhantomAttributes.toObject = function toObject(message, options) {
|
|
12294
|
+
if (!options)
|
|
12295
|
+
options = {};
|
|
12296
|
+
let object = {};
|
|
12297
|
+
if (options.defaults)
|
|
12298
|
+
object.opacity = null;
|
|
12299
|
+
if (message.opacity != null && message.hasOwnProperty("opacity"))
|
|
12300
|
+
object.opacity = $root.google.protobuf.FloatValue.toObject(message.opacity, options);
|
|
12301
|
+
return object;
|
|
12302
|
+
};
|
|
12303
|
+
|
|
12304
|
+
/**
|
|
12305
|
+
* Converts this PhantomAttributes to JSON.
|
|
12306
|
+
* @function toJSON
|
|
12307
|
+
* @memberof vertexvis.protobuf.stream.PhantomAttributes
|
|
12308
|
+
* @instance
|
|
12309
|
+
* @returns {Object.<string,*>} JSON object
|
|
12310
|
+
*/
|
|
12311
|
+
PhantomAttributes.prototype.toJSON = function toJSON() {
|
|
12312
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
12313
|
+
};
|
|
12314
|
+
|
|
12315
|
+
return PhantomAttributes;
|
|
12316
|
+
})();
|
|
12317
|
+
|
|
11878
12318
|
stream.GhostingAttributes = (function() {
|
|
11879
12319
|
|
|
11880
12320
|
/**
|
|
@@ -13396,6 +13836,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13396
13836
|
* @interface ICrossSectioning
|
|
13397
13837
|
* @property {Array.<vertexvis.protobuf.stream.ISectionPlane>|null} [sectionPlanes] CrossSectioning sectionPlanes
|
|
13398
13838
|
* @property {vertexvis.protobuf.core.IRGBi|null} [highlightColor] CrossSectioning highlightColor
|
|
13839
|
+
* @property {google.protobuf.IFloatValue|null} [lineWidth] CrossSectioning lineWidth
|
|
13399
13840
|
*/
|
|
13400
13841
|
|
|
13401
13842
|
/**
|
|
@@ -13430,6 +13871,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13430
13871
|
*/
|
|
13431
13872
|
CrossSectioning.prototype.highlightColor = null;
|
|
13432
13873
|
|
|
13874
|
+
/**
|
|
13875
|
+
* CrossSectioning lineWidth.
|
|
13876
|
+
* @member {google.protobuf.IFloatValue|null|undefined} lineWidth
|
|
13877
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioning
|
|
13878
|
+
* @instance
|
|
13879
|
+
*/
|
|
13880
|
+
CrossSectioning.prototype.lineWidth = null;
|
|
13881
|
+
|
|
13433
13882
|
/**
|
|
13434
13883
|
* Creates a new CrossSectioning instance using the specified properties.
|
|
13435
13884
|
* @function create
|
|
@@ -13459,6 +13908,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13459
13908
|
$root.vertexvis.protobuf.stream.SectionPlane.encode(message.sectionPlanes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13460
13909
|
if (message.highlightColor != null && Object.hasOwnProperty.call(message, "highlightColor"))
|
|
13461
13910
|
$root.vertexvis.protobuf.core.RGBi.encode(message.highlightColor, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
13911
|
+
if (message.lineWidth != null && Object.hasOwnProperty.call(message, "lineWidth"))
|
|
13912
|
+
$root.google.protobuf.FloatValue.encode(message.lineWidth, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
13462
13913
|
return writer;
|
|
13463
13914
|
};
|
|
13464
13915
|
|
|
@@ -13501,6 +13952,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13501
13952
|
case 2:
|
|
13502
13953
|
message.highlightColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
|
|
13503
13954
|
break;
|
|
13955
|
+
case 3:
|
|
13956
|
+
message.lineWidth = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
13957
|
+
break;
|
|
13504
13958
|
default:
|
|
13505
13959
|
reader.skipType(tag & 7);
|
|
13506
13960
|
break;
|
|
@@ -13550,6 +14004,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13550
14004
|
if (error)
|
|
13551
14005
|
return "highlightColor." + error;
|
|
13552
14006
|
}
|
|
14007
|
+
if (message.lineWidth != null && message.hasOwnProperty("lineWidth")) {
|
|
14008
|
+
let error = $root.google.protobuf.FloatValue.verify(message.lineWidth);
|
|
14009
|
+
if (error)
|
|
14010
|
+
return "lineWidth." + error;
|
|
14011
|
+
}
|
|
13553
14012
|
return null;
|
|
13554
14013
|
};
|
|
13555
14014
|
|
|
@@ -13580,6 +14039,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13580
14039
|
throw TypeError(".vertexvis.protobuf.stream.CrossSectioning.highlightColor: object expected");
|
|
13581
14040
|
message.highlightColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.highlightColor);
|
|
13582
14041
|
}
|
|
14042
|
+
if (object.lineWidth != null) {
|
|
14043
|
+
if (typeof object.lineWidth !== "object")
|
|
14044
|
+
throw TypeError(".vertexvis.protobuf.stream.CrossSectioning.lineWidth: object expected");
|
|
14045
|
+
message.lineWidth = $root.google.protobuf.FloatValue.fromObject(object.lineWidth);
|
|
14046
|
+
}
|
|
13583
14047
|
return message;
|
|
13584
14048
|
};
|
|
13585
14049
|
|
|
@@ -13598,8 +14062,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13598
14062
|
let object = {};
|
|
13599
14063
|
if (options.arrays || options.defaults)
|
|
13600
14064
|
object.sectionPlanes = [];
|
|
13601
|
-
if (options.defaults)
|
|
14065
|
+
if (options.defaults) {
|
|
13602
14066
|
object.highlightColor = null;
|
|
14067
|
+
object.lineWidth = null;
|
|
14068
|
+
}
|
|
13603
14069
|
if (message.sectionPlanes && message.sectionPlanes.length) {
|
|
13604
14070
|
object.sectionPlanes = [];
|
|
13605
14071
|
for (let j = 0; j < message.sectionPlanes.length; ++j)
|
|
@@ -13607,6 +14073,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13607
14073
|
}
|
|
13608
14074
|
if (message.highlightColor != null && message.hasOwnProperty("highlightColor"))
|
|
13609
14075
|
object.highlightColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.highlightColor, options);
|
|
14076
|
+
if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
|
|
14077
|
+
object.lineWidth = $root.google.protobuf.FloatValue.toObject(message.lineWidth, options);
|
|
13610
14078
|
return object;
|
|
13611
14079
|
};
|
|
13612
14080
|
|