@vertexvis/stream-api 0.20.2-canary.2 → 0.20.2

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.
@@ -5254,9 +5254,10 @@ const vertexvis = $root.vertexvis = (() => {
5254
5254
  * @property {vertexvis.protobuf.core.IUuid|null} [id] SceneItemOverride id
5255
5255
  * @property {vertexvis.protobuf.core.IMatrix4x4f|null} [transform] SceneItemOverride transform
5256
5256
  * @property {google.protobuf.IBoolValue|null} [isVisible] SceneItemOverride isVisible
5257
- * @property {vertexvis.protobuf.core.IColorMaterial|null} [materialOverride] SceneItemOverride materialOverride
5257
+ * @property {vertexvis.protobuf.core.IColorMaterial|null} [colorMaterialOverride] SceneItemOverride colorMaterialOverride
5258
5258
  * @property {vertexvis.protobuf.core.IColorMaterial|null} [selected] SceneItemOverride selected
5259
5259
  * @property {google.protobuf.IBoolValue|null} [selectedState] SceneItemOverride selectedState
5260
+ * @property {vertexvis.protobuf.core.IMaterialOverride|null} [materialOverride] SceneItemOverride materialOverride
5260
5261
  */
5261
5262
 
5262
5263
  /**
@@ -5299,12 +5300,12 @@ const vertexvis = $root.vertexvis = (() => {
5299
5300
  SceneItemOverride.prototype.isVisible = null;
5300
5301
 
5301
5302
  /**
5302
- * SceneItemOverride materialOverride.
5303
- * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} materialOverride
5303
+ * SceneItemOverride colorMaterialOverride.
5304
+ * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} colorMaterialOverride
5304
5305
  * @memberof vertexvis.protobuf.stream.SceneItemOverride
5305
5306
  * @instance
5306
5307
  */
5307
- SceneItemOverride.prototype.materialOverride = null;
5308
+ SceneItemOverride.prototype.colorMaterialOverride = null;
5308
5309
 
5309
5310
  /**
5310
5311
  * SceneItemOverride selected.
@@ -5322,6 +5323,14 @@ const vertexvis = $root.vertexvis = (() => {
5322
5323
  */
5323
5324
  SceneItemOverride.prototype.selectedState = null;
5324
5325
 
5326
+ /**
5327
+ * SceneItemOverride materialOverride.
5328
+ * @member {vertexvis.protobuf.core.IMaterialOverride|null|undefined} materialOverride
5329
+ * @memberof vertexvis.protobuf.stream.SceneItemOverride
5330
+ * @instance
5331
+ */
5332
+ SceneItemOverride.prototype.materialOverride = null;
5333
+
5325
5334
  /**
5326
5335
  * Creates a new SceneItemOverride instance using the specified properties.
5327
5336
  * @function create
@@ -5352,12 +5361,14 @@ const vertexvis = $root.vertexvis = (() => {
5352
5361
  $root.vertexvis.protobuf.core.Matrix4x4f.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
5353
5362
  if (message.isVisible != null && Object.hasOwnProperty.call(message, "isVisible"))
5354
5363
  $root.google.protobuf.BoolValue.encode(message.isVisible, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
5355
- if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
5356
- $root.vertexvis.protobuf.core.ColorMaterial.encode(message.materialOverride, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
5364
+ if (message.colorMaterialOverride != null && Object.hasOwnProperty.call(message, "colorMaterialOverride"))
5365
+ $root.vertexvis.protobuf.core.ColorMaterial.encode(message.colorMaterialOverride, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
5357
5366
  if (message.selected != null && Object.hasOwnProperty.call(message, "selected"))
5358
5367
  $root.vertexvis.protobuf.core.ColorMaterial.encode(message.selected, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
5359
5368
  if (message.selectedState != null && Object.hasOwnProperty.call(message, "selectedState"))
5360
5369
  $root.google.protobuf.BoolValue.encode(message.selectedState, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
5370
+ if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
5371
+ $root.vertexvis.protobuf.core.MaterialOverride.encode(message.materialOverride, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
5361
5372
  return writer;
5362
5373
  };
5363
5374
 
@@ -5402,7 +5413,7 @@ const vertexvis = $root.vertexvis = (() => {
5402
5413
  message.isVisible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
5403
5414
  break;
5404
5415
  case 4:
5405
- message.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
5416
+ message.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
5406
5417
  break;
5407
5418
  case 5:
5408
5419
  message.selected = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
@@ -5410,6 +5421,9 @@ const vertexvis = $root.vertexvis = (() => {
5410
5421
  case 6:
5411
5422
  message.selectedState = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
5412
5423
  break;
5424
+ case 7:
5425
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.decode(reader, reader.uint32());
5426
+ break;
5413
5427
  default:
5414
5428
  reader.skipType(tag & 7);
5415
5429
  break;
@@ -5460,10 +5474,10 @@ const vertexvis = $root.vertexvis = (() => {
5460
5474
  if (error)
5461
5475
  return "isVisible." + error;
5462
5476
  }
5463
- if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
5464
- let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.materialOverride);
5477
+ if (message.colorMaterialOverride != null && message.hasOwnProperty("colorMaterialOverride")) {
5478
+ let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.colorMaterialOverride);
5465
5479
  if (error)
5466
- return "materialOverride." + error;
5480
+ return "colorMaterialOverride." + error;
5467
5481
  }
5468
5482
  if (message.selected != null && message.hasOwnProperty("selected")) {
5469
5483
  let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.selected);
@@ -5475,6 +5489,11 @@ const vertexvis = $root.vertexvis = (() => {
5475
5489
  if (error)
5476
5490
  return "selectedState." + error;
5477
5491
  }
5492
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
5493
+ let error = $root.vertexvis.protobuf.core.MaterialOverride.verify(message.materialOverride);
5494
+ if (error)
5495
+ return "materialOverride." + error;
5496
+ }
5478
5497
  return null;
5479
5498
  };
5480
5499
 
@@ -5505,10 +5524,10 @@ const vertexvis = $root.vertexvis = (() => {
5505
5524
  throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.isVisible: object expected");
5506
5525
  message.isVisible = $root.google.protobuf.BoolValue.fromObject(object.isVisible);
5507
5526
  }
5508
- if (object.materialOverride != null) {
5509
- if (typeof object.materialOverride !== "object")
5510
- throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.materialOverride: object expected");
5511
- message.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.materialOverride);
5527
+ if (object.colorMaterialOverride != null) {
5528
+ if (typeof object.colorMaterialOverride !== "object")
5529
+ throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.colorMaterialOverride: object expected");
5530
+ message.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.colorMaterialOverride);
5512
5531
  }
5513
5532
  if (object.selected != null) {
5514
5533
  if (typeof object.selected !== "object")
@@ -5520,6 +5539,11 @@ const vertexvis = $root.vertexvis = (() => {
5520
5539
  throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.selectedState: object expected");
5521
5540
  message.selectedState = $root.google.protobuf.BoolValue.fromObject(object.selectedState);
5522
5541
  }
5542
+ if (object.materialOverride != null) {
5543
+ if (typeof object.materialOverride !== "object")
5544
+ throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.materialOverride: object expected");
5545
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.fromObject(object.materialOverride);
5546
+ }
5523
5547
  return message;
5524
5548
  };
5525
5549
 
@@ -5540,9 +5564,10 @@ const vertexvis = $root.vertexvis = (() => {
5540
5564
  object.id = null;
5541
5565
  object.transform = null;
5542
5566
  object.isVisible = null;
5543
- object.materialOverride = null;
5567
+ object.colorMaterialOverride = null;
5544
5568
  object.selected = null;
5545
5569
  object.selectedState = null;
5570
+ object.materialOverride = null;
5546
5571
  }
5547
5572
  if (message.id != null && message.hasOwnProperty("id"))
5548
5573
  object.id = $root.vertexvis.protobuf.core.Uuid.toObject(message.id, options);
@@ -5550,12 +5575,14 @@ const vertexvis = $root.vertexvis = (() => {
5550
5575
  object.transform = $root.vertexvis.protobuf.core.Matrix4x4f.toObject(message.transform, options);
5551
5576
  if (message.isVisible != null && message.hasOwnProperty("isVisible"))
5552
5577
  object.isVisible = $root.google.protobuf.BoolValue.toObject(message.isVisible, options);
5553
- if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
5554
- object.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.materialOverride, options);
5578
+ if (message.colorMaterialOverride != null && message.hasOwnProperty("colorMaterialOverride"))
5579
+ object.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.colorMaterialOverride, options);
5555
5580
  if (message.selected != null && message.hasOwnProperty("selected"))
5556
5581
  object.selected = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.selected, options);
5557
5582
  if (message.selectedState != null && message.hasOwnProperty("selectedState"))
5558
5583
  object.selectedState = $root.google.protobuf.BoolValue.toObject(message.selectedState, options);
5584
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
5585
+ object.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.toObject(message.materialOverride, options);
5559
5586
  return object;
5560
5587
  };
5561
5588
 
@@ -8056,6 +8083,7 @@ const vertexvis = $root.vertexvis = (() => {
8056
8083
  * @memberof vertexvis.protobuf.stream
8057
8084
  * @interface IChangeMaterialOperation
8058
8085
  * @property {vertexvis.protobuf.core.IColorMaterial|null} [material] ChangeMaterialOperation material
8086
+ * @property {vertexvis.protobuf.core.IMaterialOverride|null} [materialOverride] ChangeMaterialOperation materialOverride
8059
8087
  */
8060
8088
 
8061
8089
  /**
@@ -8081,6 +8109,14 @@ const vertexvis = $root.vertexvis = (() => {
8081
8109
  */
8082
8110
  ChangeMaterialOperation.prototype.material = null;
8083
8111
 
8112
+ /**
8113
+ * ChangeMaterialOperation materialOverride.
8114
+ * @member {vertexvis.protobuf.core.IMaterialOverride|null|undefined} materialOverride
8115
+ * @memberof vertexvis.protobuf.stream.ChangeMaterialOperation
8116
+ * @instance
8117
+ */
8118
+ ChangeMaterialOperation.prototype.materialOverride = null;
8119
+
8084
8120
  /**
8085
8121
  * Creates a new ChangeMaterialOperation instance using the specified properties.
8086
8122
  * @function create
@@ -8107,6 +8143,8 @@ const vertexvis = $root.vertexvis = (() => {
8107
8143
  writer = $Writer.create();
8108
8144
  if (message.material != null && Object.hasOwnProperty.call(message, "material"))
8109
8145
  $root.vertexvis.protobuf.core.ColorMaterial.encode(message.material, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8146
+ if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
8147
+ $root.vertexvis.protobuf.core.MaterialOverride.encode(message.materialOverride, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8110
8148
  return writer;
8111
8149
  };
8112
8150
 
@@ -8144,6 +8182,9 @@ const vertexvis = $root.vertexvis = (() => {
8144
8182
  case 1:
8145
8183
  message.material = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
8146
8184
  break;
8185
+ case 2:
8186
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.decode(reader, reader.uint32());
8187
+ break;
8147
8188
  default:
8148
8189
  reader.skipType(tag & 7);
8149
8190
  break;
@@ -8184,6 +8225,11 @@ const vertexvis = $root.vertexvis = (() => {
8184
8225
  if (error)
8185
8226
  return "material." + error;
8186
8227
  }
8228
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
8229
+ let error = $root.vertexvis.protobuf.core.MaterialOverride.verify(message.materialOverride);
8230
+ if (error)
8231
+ return "materialOverride." + error;
8232
+ }
8187
8233
  return null;
8188
8234
  };
8189
8235
 
@@ -8204,6 +8250,11 @@ const vertexvis = $root.vertexvis = (() => {
8204
8250
  throw TypeError(".vertexvis.protobuf.stream.ChangeMaterialOperation.material: object expected");
8205
8251
  message.material = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.material);
8206
8252
  }
8253
+ if (object.materialOverride != null) {
8254
+ if (typeof object.materialOverride !== "object")
8255
+ throw TypeError(".vertexvis.protobuf.stream.ChangeMaterialOperation.materialOverride: object expected");
8256
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.fromObject(object.materialOverride);
8257
+ }
8207
8258
  return message;
8208
8259
  };
8209
8260
 
@@ -8220,10 +8271,14 @@ const vertexvis = $root.vertexvis = (() => {
8220
8271
  if (!options)
8221
8272
  options = {};
8222
8273
  let object = {};
8223
- if (options.defaults)
8274
+ if (options.defaults) {
8224
8275
  object.material = null;
8276
+ object.materialOverride = null;
8277
+ }
8225
8278
  if (message.material != null && message.hasOwnProperty("material"))
8226
8279
  object.material = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.material, options);
8280
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
8281
+ object.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.toObject(message.materialOverride, options);
8227
8282
  return object;
8228
8283
  };
8229
8284
 
@@ -8241,6 +8296,166 @@ const vertexvis = $root.vertexvis = (() => {
8241
8296
  return ChangeMaterialOperation;
8242
8297
  })();
8243
8298
 
8299
+ stream.ClearMaterialOperation = (function() {
8300
+
8301
+ /**
8302
+ * Properties of a ClearMaterialOperation.
8303
+ * @memberof vertexvis.protobuf.stream
8304
+ * @interface IClearMaterialOperation
8305
+ */
8306
+
8307
+ /**
8308
+ * Constructs a new ClearMaterialOperation.
8309
+ * @memberof vertexvis.protobuf.stream
8310
+ * @classdesc Represents a ClearMaterialOperation.
8311
+ * @implements IClearMaterialOperation
8312
+ * @constructor
8313
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation=} [properties] Properties to set
8314
+ */
8315
+ function ClearMaterialOperation(properties) {
8316
+ if (properties)
8317
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8318
+ if (properties[keys[i]] != null)
8319
+ this[keys[i]] = properties[keys[i]];
8320
+ }
8321
+
8322
+ /**
8323
+ * Creates a new ClearMaterialOperation instance using the specified properties.
8324
+ * @function create
8325
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8326
+ * @static
8327
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation=} [properties] Properties to set
8328
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation instance
8329
+ */
8330
+ ClearMaterialOperation.create = function create(properties) {
8331
+ return new ClearMaterialOperation(properties);
8332
+ };
8333
+
8334
+ /**
8335
+ * Encodes the specified ClearMaterialOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ClearMaterialOperation.verify|verify} messages.
8336
+ * @function encode
8337
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8338
+ * @static
8339
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation} message ClearMaterialOperation message or plain object to encode
8340
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8341
+ * @returns {$protobuf.Writer} Writer
8342
+ */
8343
+ ClearMaterialOperation.encode = function encode(message, writer) {
8344
+ if (!writer)
8345
+ writer = $Writer.create();
8346
+ return writer;
8347
+ };
8348
+
8349
+ /**
8350
+ * Encodes the specified ClearMaterialOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ClearMaterialOperation.verify|verify} messages.
8351
+ * @function encodeDelimited
8352
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8353
+ * @static
8354
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation} message ClearMaterialOperation message or plain object to encode
8355
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8356
+ * @returns {$protobuf.Writer} Writer
8357
+ */
8358
+ ClearMaterialOperation.encodeDelimited = function encodeDelimited(message, writer) {
8359
+ return this.encode(message, writer).ldelim();
8360
+ };
8361
+
8362
+ /**
8363
+ * Decodes a ClearMaterialOperation message from the specified reader or buffer.
8364
+ * @function decode
8365
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8366
+ * @static
8367
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8368
+ * @param {number} [length] Message length if known beforehand
8369
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8370
+ * @throws {Error} If the payload is not a reader or valid buffer
8371
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8372
+ */
8373
+ ClearMaterialOperation.decode = function decode(reader, length) {
8374
+ if (!(reader instanceof $Reader))
8375
+ reader = $Reader.create(reader);
8376
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ClearMaterialOperation();
8377
+ while (reader.pos < end) {
8378
+ let tag = reader.uint32();
8379
+ switch (tag >>> 3) {
8380
+ default:
8381
+ reader.skipType(tag & 7);
8382
+ break;
8383
+ }
8384
+ }
8385
+ return message;
8386
+ };
8387
+
8388
+ /**
8389
+ * Decodes a ClearMaterialOperation message from the specified reader or buffer, length delimited.
8390
+ * @function decodeDelimited
8391
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8392
+ * @static
8393
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8394
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8395
+ * @throws {Error} If the payload is not a reader or valid buffer
8396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8397
+ */
8398
+ ClearMaterialOperation.decodeDelimited = function decodeDelimited(reader) {
8399
+ if (!(reader instanceof $Reader))
8400
+ reader = new $Reader(reader);
8401
+ return this.decode(reader, reader.uint32());
8402
+ };
8403
+
8404
+ /**
8405
+ * Verifies a ClearMaterialOperation message.
8406
+ * @function verify
8407
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8408
+ * @static
8409
+ * @param {Object.<string,*>} message Plain object to verify
8410
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8411
+ */
8412
+ ClearMaterialOperation.verify = function verify(message) {
8413
+ if (typeof message !== "object" || message === null)
8414
+ return "object expected";
8415
+ return null;
8416
+ };
8417
+
8418
+ /**
8419
+ * Creates a ClearMaterialOperation message from a plain object. Also converts values to their respective internal types.
8420
+ * @function fromObject
8421
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8422
+ * @static
8423
+ * @param {Object.<string,*>} object Plain object
8424
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8425
+ */
8426
+ ClearMaterialOperation.fromObject = function fromObject(object) {
8427
+ if (object instanceof $root.vertexvis.protobuf.stream.ClearMaterialOperation)
8428
+ return object;
8429
+ return new $root.vertexvis.protobuf.stream.ClearMaterialOperation();
8430
+ };
8431
+
8432
+ /**
8433
+ * Creates a plain object from a ClearMaterialOperation message. Also converts values to other types if specified.
8434
+ * @function toObject
8435
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8436
+ * @static
8437
+ * @param {vertexvis.protobuf.stream.ClearMaterialOperation} message ClearMaterialOperation
8438
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8439
+ * @returns {Object.<string,*>} Plain object
8440
+ */
8441
+ ClearMaterialOperation.toObject = function toObject() {
8442
+ return {};
8443
+ };
8444
+
8445
+ /**
8446
+ * Converts this ClearMaterialOperation to JSON.
8447
+ * @function toJSON
8448
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8449
+ * @instance
8450
+ * @returns {Object.<string,*>} JSON object
8451
+ */
8452
+ ClearMaterialOperation.prototype.toJSON = function toJSON() {
8453
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
8454
+ };
8455
+
8456
+ return ClearMaterialOperation;
8457
+ })();
8458
+
8244
8459
  stream.ChangeVisibilityOperation = (function() {
8245
8460
 
8246
8461
  /**
@@ -10406,6 +10621,7 @@ const vertexvis = $root.vertexvis = (() => {
10406
10621
  * @property {vertexvis.protobuf.stream.IClearRenditionOperation|null} [clearRendition] OperationType clearRendition
10407
10622
  * @property {vertexvis.protobuf.stream.IViewRepresentationOperation|null} [viewRepresentation] OperationType viewRepresentation
10408
10623
  * @property {vertexvis.protobuf.stream.IClearRepresentationOperation|null} [clearRepresentation] OperationType clearRepresentation
10624
+ * @property {vertexvis.protobuf.stream.IClearMaterialOperation|null} [clearMaterial] OperationType clearMaterial
10409
10625
  */
10410
10626
 
10411
10627
  /**
@@ -10519,17 +10735,25 @@ const vertexvis = $root.vertexvis = (() => {
10519
10735
  */
10520
10736
  OperationType.prototype.clearRepresentation = null;
10521
10737
 
10738
+ /**
10739
+ * OperationType clearMaterial.
10740
+ * @member {vertexvis.protobuf.stream.IClearMaterialOperation|null|undefined} clearMaterial
10741
+ * @memberof vertexvis.protobuf.stream.OperationType
10742
+ * @instance
10743
+ */
10744
+ OperationType.prototype.clearMaterial = null;
10745
+
10522
10746
  // OneOf field names bound to virtual getters and setters
10523
10747
  let $oneOfFields;
10524
10748
 
10525
10749
  /**
10526
10750
  * OperationType value.
10527
- * @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|"viewRepresentation"|"clearRepresentation"|undefined} value
10751
+ * @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|"viewRepresentation"|"clearRepresentation"|"clearMaterial"|undefined} value
10528
10752
  * @memberof vertexvis.protobuf.stream.OperationType
10529
10753
  * @instance
10530
10754
  */
10531
10755
  Object.defineProperty(OperationType.prototype, "value", {
10532
- get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition", "viewRepresentation", "clearRepresentation"]),
10756
+ get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition", "viewRepresentation", "clearRepresentation", "clearMaterial"]),
10533
10757
  set: $util.oneOfSetter($oneOfFields)
10534
10758
  });
10535
10759
 
@@ -10581,6 +10805,8 @@ const vertexvis = $root.vertexvis = (() => {
10581
10805
  $root.vertexvis.protobuf.stream.ViewRepresentationOperation.encode(message.viewRepresentation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
10582
10806
  if (message.clearRepresentation != null && Object.hasOwnProperty.call(message, "clearRepresentation"))
10583
10807
  $root.vertexvis.protobuf.stream.ClearRepresentationOperation.encode(message.clearRepresentation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
10808
+ if (message.clearMaterial != null && Object.hasOwnProperty.call(message, "clearMaterial"))
10809
+ $root.vertexvis.protobuf.stream.ClearMaterialOperation.encode(message.clearMaterial, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
10584
10810
  return writer;
10585
10811
  };
10586
10812
 
@@ -10651,6 +10877,9 @@ const vertexvis = $root.vertexvis = (() => {
10651
10877
  case 12:
10652
10878
  message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.decode(reader, reader.uint32());
10653
10879
  break;
10880
+ case 13:
10881
+ message.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.decode(reader, reader.uint32());
10882
+ break;
10654
10883
  default:
10655
10884
  reader.skipType(tag & 7);
10656
10885
  break;
@@ -10805,6 +11034,16 @@ const vertexvis = $root.vertexvis = (() => {
10805
11034
  return "clearRepresentation." + error;
10806
11035
  }
10807
11036
  }
11037
+ if (message.clearMaterial != null && message.hasOwnProperty("clearMaterial")) {
11038
+ if (properties.value === 1)
11039
+ return "value: multiple values";
11040
+ properties.value = 1;
11041
+ {
11042
+ let error = $root.vertexvis.protobuf.stream.ClearMaterialOperation.verify(message.clearMaterial);
11043
+ if (error)
11044
+ return "clearMaterial." + error;
11045
+ }
11046
+ }
10808
11047
  return null;
10809
11048
  };
10810
11049
 
@@ -10880,6 +11119,11 @@ const vertexvis = $root.vertexvis = (() => {
10880
11119
  throw TypeError(".vertexvis.protobuf.stream.OperationType.clearRepresentation: object expected");
10881
11120
  message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.fromObject(object.clearRepresentation);
10882
11121
  }
11122
+ if (object.clearMaterial != null) {
11123
+ if (typeof object.clearMaterial !== "object")
11124
+ throw TypeError(".vertexvis.protobuf.stream.OperationType.clearMaterial: object expected");
11125
+ message.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.fromObject(object.clearMaterial);
11126
+ }
10883
11127
  return message;
10884
11128
  };
10885
11129
 
@@ -10956,6 +11200,11 @@ const vertexvis = $root.vertexvis = (() => {
10956
11200
  if (options.oneofs)
10957
11201
  object.value = "clearRepresentation";
10958
11202
  }
11203
+ if (message.clearMaterial != null && message.hasOwnProperty("clearMaterial")) {
11204
+ object.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.toObject(message.clearMaterial, options);
11205
+ if (options.oneofs)
11206
+ object.value = "clearMaterial";
11207
+ }
10959
11208
  return object;
10960
11209
  };
10961
11210
 
@@ -37754,6 +38003,411 @@ const vertexvis = $root.vertexvis = (() => {
37754
38003
  return RGBf;
37755
38004
  })();
37756
38005
 
38006
+ core.MaterialOverride = (function() {
38007
+
38008
+ /**
38009
+ * Properties of a MaterialOverride.
38010
+ * @memberof vertexvis.protobuf.core
38011
+ * @interface IMaterialOverride
38012
+ * @property {vertexvis.protobuf.core.IDefaultMaterial|null} [defaultMaterial] MaterialOverride defaultMaterial
38013
+ * @property {vertexvis.protobuf.core.IColorMaterial|null} [colorMaterial] MaterialOverride colorMaterial
38014
+ */
38015
+
38016
+ /**
38017
+ * Constructs a new MaterialOverride.
38018
+ * @memberof vertexvis.protobuf.core
38019
+ * @classdesc Represents a MaterialOverride.
38020
+ * @implements IMaterialOverride
38021
+ * @constructor
38022
+ * @param {vertexvis.protobuf.core.IMaterialOverride=} [properties] Properties to set
38023
+ */
38024
+ function MaterialOverride(properties) {
38025
+ if (properties)
38026
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38027
+ if (properties[keys[i]] != null)
38028
+ this[keys[i]] = properties[keys[i]];
38029
+ }
38030
+
38031
+ /**
38032
+ * MaterialOverride defaultMaterial.
38033
+ * @member {vertexvis.protobuf.core.IDefaultMaterial|null|undefined} defaultMaterial
38034
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38035
+ * @instance
38036
+ */
38037
+ MaterialOverride.prototype.defaultMaterial = null;
38038
+
38039
+ /**
38040
+ * MaterialOverride colorMaterial.
38041
+ * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} colorMaterial
38042
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38043
+ * @instance
38044
+ */
38045
+ MaterialOverride.prototype.colorMaterial = null;
38046
+
38047
+ // OneOf field names bound to virtual getters and setters
38048
+ let $oneOfFields;
38049
+
38050
+ /**
38051
+ * MaterialOverride sealedValueOptional.
38052
+ * @member {"defaultMaterial"|"colorMaterial"|undefined} sealedValueOptional
38053
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38054
+ * @instance
38055
+ */
38056
+ Object.defineProperty(MaterialOverride.prototype, "sealedValueOptional", {
38057
+ get: $util.oneOfGetter($oneOfFields = ["defaultMaterial", "colorMaterial"]),
38058
+ set: $util.oneOfSetter($oneOfFields)
38059
+ });
38060
+
38061
+ /**
38062
+ * Creates a new MaterialOverride instance using the specified properties.
38063
+ * @function create
38064
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38065
+ * @static
38066
+ * @param {vertexvis.protobuf.core.IMaterialOverride=} [properties] Properties to set
38067
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride instance
38068
+ */
38069
+ MaterialOverride.create = function create(properties) {
38070
+ return new MaterialOverride(properties);
38071
+ };
38072
+
38073
+ /**
38074
+ * Encodes the specified MaterialOverride message. Does not implicitly {@link vertexvis.protobuf.core.MaterialOverride.verify|verify} messages.
38075
+ * @function encode
38076
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38077
+ * @static
38078
+ * @param {vertexvis.protobuf.core.IMaterialOverride} message MaterialOverride message or plain object to encode
38079
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38080
+ * @returns {$protobuf.Writer} Writer
38081
+ */
38082
+ MaterialOverride.encode = function encode(message, writer) {
38083
+ if (!writer)
38084
+ writer = $Writer.create();
38085
+ if (message.defaultMaterial != null && Object.hasOwnProperty.call(message, "defaultMaterial"))
38086
+ $root.vertexvis.protobuf.core.DefaultMaterial.encode(message.defaultMaterial, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
38087
+ if (message.colorMaterial != null && Object.hasOwnProperty.call(message, "colorMaterial"))
38088
+ $root.vertexvis.protobuf.core.ColorMaterial.encode(message.colorMaterial, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
38089
+ return writer;
38090
+ };
38091
+
38092
+ /**
38093
+ * Encodes the specified MaterialOverride message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.MaterialOverride.verify|verify} messages.
38094
+ * @function encodeDelimited
38095
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38096
+ * @static
38097
+ * @param {vertexvis.protobuf.core.IMaterialOverride} message MaterialOverride message or plain object to encode
38098
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38099
+ * @returns {$protobuf.Writer} Writer
38100
+ */
38101
+ MaterialOverride.encodeDelimited = function encodeDelimited(message, writer) {
38102
+ return this.encode(message, writer).ldelim();
38103
+ };
38104
+
38105
+ /**
38106
+ * Decodes a MaterialOverride message from the specified reader or buffer.
38107
+ * @function decode
38108
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38109
+ * @static
38110
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38111
+ * @param {number} [length] Message length if known beforehand
38112
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38113
+ * @throws {Error} If the payload is not a reader or valid buffer
38114
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38115
+ */
38116
+ MaterialOverride.decode = function decode(reader, length) {
38117
+ if (!(reader instanceof $Reader))
38118
+ reader = $Reader.create(reader);
38119
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.MaterialOverride();
38120
+ while (reader.pos < end) {
38121
+ let tag = reader.uint32();
38122
+ switch (tag >>> 3) {
38123
+ case 1:
38124
+ message.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.decode(reader, reader.uint32());
38125
+ break;
38126
+ case 2:
38127
+ message.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
38128
+ break;
38129
+ default:
38130
+ reader.skipType(tag & 7);
38131
+ break;
38132
+ }
38133
+ }
38134
+ return message;
38135
+ };
38136
+
38137
+ /**
38138
+ * Decodes a MaterialOverride message from the specified reader or buffer, length delimited.
38139
+ * @function decodeDelimited
38140
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38141
+ * @static
38142
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38143
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38144
+ * @throws {Error} If the payload is not a reader or valid buffer
38145
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38146
+ */
38147
+ MaterialOverride.decodeDelimited = function decodeDelimited(reader) {
38148
+ if (!(reader instanceof $Reader))
38149
+ reader = new $Reader(reader);
38150
+ return this.decode(reader, reader.uint32());
38151
+ };
38152
+
38153
+ /**
38154
+ * Verifies a MaterialOverride message.
38155
+ * @function verify
38156
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38157
+ * @static
38158
+ * @param {Object.<string,*>} message Plain object to verify
38159
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38160
+ */
38161
+ MaterialOverride.verify = function verify(message) {
38162
+ if (typeof message !== "object" || message === null)
38163
+ return "object expected";
38164
+ let properties = {};
38165
+ if (message.defaultMaterial != null && message.hasOwnProperty("defaultMaterial")) {
38166
+ properties.sealedValueOptional = 1;
38167
+ {
38168
+ let error = $root.vertexvis.protobuf.core.DefaultMaterial.verify(message.defaultMaterial);
38169
+ if (error)
38170
+ return "defaultMaterial." + error;
38171
+ }
38172
+ }
38173
+ if (message.colorMaterial != null && message.hasOwnProperty("colorMaterial")) {
38174
+ if (properties.sealedValueOptional === 1)
38175
+ return "sealedValueOptional: multiple values";
38176
+ properties.sealedValueOptional = 1;
38177
+ {
38178
+ let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.colorMaterial);
38179
+ if (error)
38180
+ return "colorMaterial." + error;
38181
+ }
38182
+ }
38183
+ return null;
38184
+ };
38185
+
38186
+ /**
38187
+ * Creates a MaterialOverride message from a plain object. Also converts values to their respective internal types.
38188
+ * @function fromObject
38189
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38190
+ * @static
38191
+ * @param {Object.<string,*>} object Plain object
38192
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38193
+ */
38194
+ MaterialOverride.fromObject = function fromObject(object) {
38195
+ if (object instanceof $root.vertexvis.protobuf.core.MaterialOverride)
38196
+ return object;
38197
+ let message = new $root.vertexvis.protobuf.core.MaterialOverride();
38198
+ if (object.defaultMaterial != null) {
38199
+ if (typeof object.defaultMaterial !== "object")
38200
+ throw TypeError(".vertexvis.protobuf.core.MaterialOverride.defaultMaterial: object expected");
38201
+ message.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.fromObject(object.defaultMaterial);
38202
+ }
38203
+ if (object.colorMaterial != null) {
38204
+ if (typeof object.colorMaterial !== "object")
38205
+ throw TypeError(".vertexvis.protobuf.core.MaterialOverride.colorMaterial: object expected");
38206
+ message.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.colorMaterial);
38207
+ }
38208
+ return message;
38209
+ };
38210
+
38211
+ /**
38212
+ * Creates a plain object from a MaterialOverride message. Also converts values to other types if specified.
38213
+ * @function toObject
38214
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38215
+ * @static
38216
+ * @param {vertexvis.protobuf.core.MaterialOverride} message MaterialOverride
38217
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38218
+ * @returns {Object.<string,*>} Plain object
38219
+ */
38220
+ MaterialOverride.toObject = function toObject(message, options) {
38221
+ if (!options)
38222
+ options = {};
38223
+ let object = {};
38224
+ if (message.defaultMaterial != null && message.hasOwnProperty("defaultMaterial")) {
38225
+ object.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.toObject(message.defaultMaterial, options);
38226
+ if (options.oneofs)
38227
+ object.sealedValueOptional = "defaultMaterial";
38228
+ }
38229
+ if (message.colorMaterial != null && message.hasOwnProperty("colorMaterial")) {
38230
+ object.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.colorMaterial, options);
38231
+ if (options.oneofs)
38232
+ object.sealedValueOptional = "colorMaterial";
38233
+ }
38234
+ return object;
38235
+ };
38236
+
38237
+ /**
38238
+ * Converts this MaterialOverride to JSON.
38239
+ * @function toJSON
38240
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38241
+ * @instance
38242
+ * @returns {Object.<string,*>} JSON object
38243
+ */
38244
+ MaterialOverride.prototype.toJSON = function toJSON() {
38245
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
38246
+ };
38247
+
38248
+ return MaterialOverride;
38249
+ })();
38250
+
38251
+ core.DefaultMaterial = (function() {
38252
+
38253
+ /**
38254
+ * Properties of a DefaultMaterial.
38255
+ * @memberof vertexvis.protobuf.core
38256
+ * @interface IDefaultMaterial
38257
+ */
38258
+
38259
+ /**
38260
+ * Constructs a new DefaultMaterial.
38261
+ * @memberof vertexvis.protobuf.core
38262
+ * @classdesc Represents a DefaultMaterial.
38263
+ * @implements IDefaultMaterial
38264
+ * @constructor
38265
+ * @param {vertexvis.protobuf.core.IDefaultMaterial=} [properties] Properties to set
38266
+ */
38267
+ function DefaultMaterial(properties) {
38268
+ if (properties)
38269
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38270
+ if (properties[keys[i]] != null)
38271
+ this[keys[i]] = properties[keys[i]];
38272
+ }
38273
+
38274
+ /**
38275
+ * Creates a new DefaultMaterial instance using the specified properties.
38276
+ * @function create
38277
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38278
+ * @static
38279
+ * @param {vertexvis.protobuf.core.IDefaultMaterial=} [properties] Properties to set
38280
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial instance
38281
+ */
38282
+ DefaultMaterial.create = function create(properties) {
38283
+ return new DefaultMaterial(properties);
38284
+ };
38285
+
38286
+ /**
38287
+ * Encodes the specified DefaultMaterial message. Does not implicitly {@link vertexvis.protobuf.core.DefaultMaterial.verify|verify} messages.
38288
+ * @function encode
38289
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38290
+ * @static
38291
+ * @param {vertexvis.protobuf.core.IDefaultMaterial} message DefaultMaterial message or plain object to encode
38292
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38293
+ * @returns {$protobuf.Writer} Writer
38294
+ */
38295
+ DefaultMaterial.encode = function encode(message, writer) {
38296
+ if (!writer)
38297
+ writer = $Writer.create();
38298
+ return writer;
38299
+ };
38300
+
38301
+ /**
38302
+ * Encodes the specified DefaultMaterial message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.DefaultMaterial.verify|verify} messages.
38303
+ * @function encodeDelimited
38304
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38305
+ * @static
38306
+ * @param {vertexvis.protobuf.core.IDefaultMaterial} message DefaultMaterial message or plain object to encode
38307
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38308
+ * @returns {$protobuf.Writer} Writer
38309
+ */
38310
+ DefaultMaterial.encodeDelimited = function encodeDelimited(message, writer) {
38311
+ return this.encode(message, writer).ldelim();
38312
+ };
38313
+
38314
+ /**
38315
+ * Decodes a DefaultMaterial message from the specified reader or buffer.
38316
+ * @function decode
38317
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38318
+ * @static
38319
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38320
+ * @param {number} [length] Message length if known beforehand
38321
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38322
+ * @throws {Error} If the payload is not a reader or valid buffer
38323
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38324
+ */
38325
+ DefaultMaterial.decode = function decode(reader, length) {
38326
+ if (!(reader instanceof $Reader))
38327
+ reader = $Reader.create(reader);
38328
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.DefaultMaterial();
38329
+ while (reader.pos < end) {
38330
+ let tag = reader.uint32();
38331
+ switch (tag >>> 3) {
38332
+ default:
38333
+ reader.skipType(tag & 7);
38334
+ break;
38335
+ }
38336
+ }
38337
+ return message;
38338
+ };
38339
+
38340
+ /**
38341
+ * Decodes a DefaultMaterial message from the specified reader or buffer, length delimited.
38342
+ * @function decodeDelimited
38343
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38344
+ * @static
38345
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38346
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38347
+ * @throws {Error} If the payload is not a reader or valid buffer
38348
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38349
+ */
38350
+ DefaultMaterial.decodeDelimited = function decodeDelimited(reader) {
38351
+ if (!(reader instanceof $Reader))
38352
+ reader = new $Reader(reader);
38353
+ return this.decode(reader, reader.uint32());
38354
+ };
38355
+
38356
+ /**
38357
+ * Verifies a DefaultMaterial message.
38358
+ * @function verify
38359
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38360
+ * @static
38361
+ * @param {Object.<string,*>} message Plain object to verify
38362
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38363
+ */
38364
+ DefaultMaterial.verify = function verify(message) {
38365
+ if (typeof message !== "object" || message === null)
38366
+ return "object expected";
38367
+ return null;
38368
+ };
38369
+
38370
+ /**
38371
+ * Creates a DefaultMaterial message from a plain object. Also converts values to their respective internal types.
38372
+ * @function fromObject
38373
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38374
+ * @static
38375
+ * @param {Object.<string,*>} object Plain object
38376
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38377
+ */
38378
+ DefaultMaterial.fromObject = function fromObject(object) {
38379
+ if (object instanceof $root.vertexvis.protobuf.core.DefaultMaterial)
38380
+ return object;
38381
+ return new $root.vertexvis.protobuf.core.DefaultMaterial();
38382
+ };
38383
+
38384
+ /**
38385
+ * Creates a plain object from a DefaultMaterial message. Also converts values to other types if specified.
38386
+ * @function toObject
38387
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38388
+ * @static
38389
+ * @param {vertexvis.protobuf.core.DefaultMaterial} message DefaultMaterial
38390
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38391
+ * @returns {Object.<string,*>} Plain object
38392
+ */
38393
+ DefaultMaterial.toObject = function toObject() {
38394
+ return {};
38395
+ };
38396
+
38397
+ /**
38398
+ * Converts this DefaultMaterial to JSON.
38399
+ * @function toJSON
38400
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38401
+ * @instance
38402
+ * @returns {Object.<string,*>} JSON object
38403
+ */
38404
+ DefaultMaterial.prototype.toJSON = function toJSON() {
38405
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
38406
+ };
38407
+
38408
+ return DefaultMaterial;
38409
+ })();
38410
+
37757
38411
  core.ColorMaterial = (function() {
37758
38412
 
37759
38413
  /**