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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5250,9 +5250,10 @@ const vertexvis = $root.vertexvis = (() => {
5250
5250
  * @property {vertexvis.protobuf.core.IUuid|null} [id] SceneItemOverride id
5251
5251
  * @property {vertexvis.protobuf.core.IMatrix4x4f|null} [transform] SceneItemOverride transform
5252
5252
  * @property {google.protobuf.IBoolValue|null} [isVisible] SceneItemOverride isVisible
5253
- * @property {vertexvis.protobuf.core.IColorMaterial|null} [materialOverride] SceneItemOverride materialOverride
5253
+ * @property {vertexvis.protobuf.core.IColorMaterial|null} [colorMaterialOverride] SceneItemOverride colorMaterialOverride
5254
5254
  * @property {vertexvis.protobuf.core.IColorMaterial|null} [selected] SceneItemOverride selected
5255
5255
  * @property {google.protobuf.IBoolValue|null} [selectedState] SceneItemOverride selectedState
5256
+ * @property {vertexvis.protobuf.core.IMaterialOverride|null} [materialOverride] SceneItemOverride materialOverride
5256
5257
  */
5257
5258
 
5258
5259
  /**
@@ -5295,12 +5296,12 @@ const vertexvis = $root.vertexvis = (() => {
5295
5296
  SceneItemOverride.prototype.isVisible = null;
5296
5297
 
5297
5298
  /**
5298
- * SceneItemOverride materialOverride.
5299
- * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} materialOverride
5299
+ * SceneItemOverride colorMaterialOverride.
5300
+ * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} colorMaterialOverride
5300
5301
  * @memberof vertexvis.protobuf.stream.SceneItemOverride
5301
5302
  * @instance
5302
5303
  */
5303
- SceneItemOverride.prototype.materialOverride = null;
5304
+ SceneItemOverride.prototype.colorMaterialOverride = null;
5304
5305
 
5305
5306
  /**
5306
5307
  * SceneItemOverride selected.
@@ -5318,6 +5319,14 @@ const vertexvis = $root.vertexvis = (() => {
5318
5319
  */
5319
5320
  SceneItemOverride.prototype.selectedState = null;
5320
5321
 
5322
+ /**
5323
+ * SceneItemOverride materialOverride.
5324
+ * @member {vertexvis.protobuf.core.IMaterialOverride|null|undefined} materialOverride
5325
+ * @memberof vertexvis.protobuf.stream.SceneItemOverride
5326
+ * @instance
5327
+ */
5328
+ SceneItemOverride.prototype.materialOverride = null;
5329
+
5321
5330
  /**
5322
5331
  * Creates a new SceneItemOverride instance using the specified properties.
5323
5332
  * @function create
@@ -5348,12 +5357,14 @@ const vertexvis = $root.vertexvis = (() => {
5348
5357
  $root.vertexvis.protobuf.core.Matrix4x4f.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
5349
5358
  if (message.isVisible != null && Object.hasOwnProperty.call(message, "isVisible"))
5350
5359
  $root.google.protobuf.BoolValue.encode(message.isVisible, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
5351
- if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
5352
- $root.vertexvis.protobuf.core.ColorMaterial.encode(message.materialOverride, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
5360
+ if (message.colorMaterialOverride != null && Object.hasOwnProperty.call(message, "colorMaterialOverride"))
5361
+ $root.vertexvis.protobuf.core.ColorMaterial.encode(message.colorMaterialOverride, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
5353
5362
  if (message.selected != null && Object.hasOwnProperty.call(message, "selected"))
5354
5363
  $root.vertexvis.protobuf.core.ColorMaterial.encode(message.selected, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
5355
5364
  if (message.selectedState != null && Object.hasOwnProperty.call(message, "selectedState"))
5356
5365
  $root.google.protobuf.BoolValue.encode(message.selectedState, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
5366
+ if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
5367
+ $root.vertexvis.protobuf.core.MaterialOverride.encode(message.materialOverride, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
5357
5368
  return writer;
5358
5369
  };
5359
5370
 
@@ -5398,7 +5409,7 @@ const vertexvis = $root.vertexvis = (() => {
5398
5409
  message.isVisible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
5399
5410
  break;
5400
5411
  case 4:
5401
- message.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
5412
+ message.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
5402
5413
  break;
5403
5414
  case 5:
5404
5415
  message.selected = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
@@ -5406,6 +5417,9 @@ const vertexvis = $root.vertexvis = (() => {
5406
5417
  case 6:
5407
5418
  message.selectedState = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
5408
5419
  break;
5420
+ case 7:
5421
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.decode(reader, reader.uint32());
5422
+ break;
5409
5423
  default:
5410
5424
  reader.skipType(tag & 7);
5411
5425
  break;
@@ -5456,10 +5470,10 @@ const vertexvis = $root.vertexvis = (() => {
5456
5470
  if (error)
5457
5471
  return "isVisible." + error;
5458
5472
  }
5459
- if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
5460
- let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.materialOverride);
5473
+ if (message.colorMaterialOverride != null && message.hasOwnProperty("colorMaterialOverride")) {
5474
+ let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.colorMaterialOverride);
5461
5475
  if (error)
5462
- return "materialOverride." + error;
5476
+ return "colorMaterialOverride." + error;
5463
5477
  }
5464
5478
  if (message.selected != null && message.hasOwnProperty("selected")) {
5465
5479
  let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.selected);
@@ -5471,6 +5485,11 @@ const vertexvis = $root.vertexvis = (() => {
5471
5485
  if (error)
5472
5486
  return "selectedState." + error;
5473
5487
  }
5488
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
5489
+ let error = $root.vertexvis.protobuf.core.MaterialOverride.verify(message.materialOverride);
5490
+ if (error)
5491
+ return "materialOverride." + error;
5492
+ }
5474
5493
  return null;
5475
5494
  };
5476
5495
 
@@ -5501,10 +5520,10 @@ const vertexvis = $root.vertexvis = (() => {
5501
5520
  throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.isVisible: object expected");
5502
5521
  message.isVisible = $root.google.protobuf.BoolValue.fromObject(object.isVisible);
5503
5522
  }
5504
- if (object.materialOverride != null) {
5505
- if (typeof object.materialOverride !== "object")
5506
- throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.materialOverride: object expected");
5507
- message.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.materialOverride);
5523
+ if (object.colorMaterialOverride != null) {
5524
+ if (typeof object.colorMaterialOverride !== "object")
5525
+ throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.colorMaterialOverride: object expected");
5526
+ message.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.colorMaterialOverride);
5508
5527
  }
5509
5528
  if (object.selected != null) {
5510
5529
  if (typeof object.selected !== "object")
@@ -5516,6 +5535,11 @@ const vertexvis = $root.vertexvis = (() => {
5516
5535
  throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.selectedState: object expected");
5517
5536
  message.selectedState = $root.google.protobuf.BoolValue.fromObject(object.selectedState);
5518
5537
  }
5538
+ if (object.materialOverride != null) {
5539
+ if (typeof object.materialOverride !== "object")
5540
+ throw TypeError(".vertexvis.protobuf.stream.SceneItemOverride.materialOverride: object expected");
5541
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.fromObject(object.materialOverride);
5542
+ }
5519
5543
  return message;
5520
5544
  };
5521
5545
 
@@ -5536,9 +5560,10 @@ const vertexvis = $root.vertexvis = (() => {
5536
5560
  object.id = null;
5537
5561
  object.transform = null;
5538
5562
  object.isVisible = null;
5539
- object.materialOverride = null;
5563
+ object.colorMaterialOverride = null;
5540
5564
  object.selected = null;
5541
5565
  object.selectedState = null;
5566
+ object.materialOverride = null;
5542
5567
  }
5543
5568
  if (message.id != null && message.hasOwnProperty("id"))
5544
5569
  object.id = $root.vertexvis.protobuf.core.Uuid.toObject(message.id, options);
@@ -5546,12 +5571,14 @@ const vertexvis = $root.vertexvis = (() => {
5546
5571
  object.transform = $root.vertexvis.protobuf.core.Matrix4x4f.toObject(message.transform, options);
5547
5572
  if (message.isVisible != null && message.hasOwnProperty("isVisible"))
5548
5573
  object.isVisible = $root.google.protobuf.BoolValue.toObject(message.isVisible, options);
5549
- if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
5550
- object.materialOverride = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.materialOverride, options);
5574
+ if (message.colorMaterialOverride != null && message.hasOwnProperty("colorMaterialOverride"))
5575
+ object.colorMaterialOverride = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.colorMaterialOverride, options);
5551
5576
  if (message.selected != null && message.hasOwnProperty("selected"))
5552
5577
  object.selected = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.selected, options);
5553
5578
  if (message.selectedState != null && message.hasOwnProperty("selectedState"))
5554
5579
  object.selectedState = $root.google.protobuf.BoolValue.toObject(message.selectedState, options);
5580
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
5581
+ object.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.toObject(message.materialOverride, options);
5555
5582
  return object;
5556
5583
  };
5557
5584
 
@@ -8052,6 +8079,7 @@ const vertexvis = $root.vertexvis = (() => {
8052
8079
  * @memberof vertexvis.protobuf.stream
8053
8080
  * @interface IChangeMaterialOperation
8054
8081
  * @property {vertexvis.protobuf.core.IColorMaterial|null} [material] ChangeMaterialOperation material
8082
+ * @property {vertexvis.protobuf.core.IMaterialOverride|null} [materialOverride] ChangeMaterialOperation materialOverride
8055
8083
  */
8056
8084
 
8057
8085
  /**
@@ -8077,6 +8105,14 @@ const vertexvis = $root.vertexvis = (() => {
8077
8105
  */
8078
8106
  ChangeMaterialOperation.prototype.material = null;
8079
8107
 
8108
+ /**
8109
+ * ChangeMaterialOperation materialOverride.
8110
+ * @member {vertexvis.protobuf.core.IMaterialOverride|null|undefined} materialOverride
8111
+ * @memberof vertexvis.protobuf.stream.ChangeMaterialOperation
8112
+ * @instance
8113
+ */
8114
+ ChangeMaterialOperation.prototype.materialOverride = null;
8115
+
8080
8116
  /**
8081
8117
  * Creates a new ChangeMaterialOperation instance using the specified properties.
8082
8118
  * @function create
@@ -8103,6 +8139,8 @@ const vertexvis = $root.vertexvis = (() => {
8103
8139
  writer = $Writer.create();
8104
8140
  if (message.material != null && Object.hasOwnProperty.call(message, "material"))
8105
8141
  $root.vertexvis.protobuf.core.ColorMaterial.encode(message.material, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8142
+ if (message.materialOverride != null && Object.hasOwnProperty.call(message, "materialOverride"))
8143
+ $root.vertexvis.protobuf.core.MaterialOverride.encode(message.materialOverride, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8106
8144
  return writer;
8107
8145
  };
8108
8146
 
@@ -8140,6 +8178,9 @@ const vertexvis = $root.vertexvis = (() => {
8140
8178
  case 1:
8141
8179
  message.material = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
8142
8180
  break;
8181
+ case 2:
8182
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.decode(reader, reader.uint32());
8183
+ break;
8143
8184
  default:
8144
8185
  reader.skipType(tag & 7);
8145
8186
  break;
@@ -8180,6 +8221,11 @@ const vertexvis = $root.vertexvis = (() => {
8180
8221
  if (error)
8181
8222
  return "material." + error;
8182
8223
  }
8224
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride")) {
8225
+ let error = $root.vertexvis.protobuf.core.MaterialOverride.verify(message.materialOverride);
8226
+ if (error)
8227
+ return "materialOverride." + error;
8228
+ }
8183
8229
  return null;
8184
8230
  };
8185
8231
 
@@ -8200,6 +8246,11 @@ const vertexvis = $root.vertexvis = (() => {
8200
8246
  throw TypeError(".vertexvis.protobuf.stream.ChangeMaterialOperation.material: object expected");
8201
8247
  message.material = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.material);
8202
8248
  }
8249
+ if (object.materialOverride != null) {
8250
+ if (typeof object.materialOverride !== "object")
8251
+ throw TypeError(".vertexvis.protobuf.stream.ChangeMaterialOperation.materialOverride: object expected");
8252
+ message.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.fromObject(object.materialOverride);
8253
+ }
8203
8254
  return message;
8204
8255
  };
8205
8256
 
@@ -8216,10 +8267,14 @@ const vertexvis = $root.vertexvis = (() => {
8216
8267
  if (!options)
8217
8268
  options = {};
8218
8269
  let object = {};
8219
- if (options.defaults)
8270
+ if (options.defaults) {
8220
8271
  object.material = null;
8272
+ object.materialOverride = null;
8273
+ }
8221
8274
  if (message.material != null && message.hasOwnProperty("material"))
8222
8275
  object.material = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.material, options);
8276
+ if (message.materialOverride != null && message.hasOwnProperty("materialOverride"))
8277
+ object.materialOverride = $root.vertexvis.protobuf.core.MaterialOverride.toObject(message.materialOverride, options);
8223
8278
  return object;
8224
8279
  };
8225
8280
 
@@ -8237,6 +8292,166 @@ const vertexvis = $root.vertexvis = (() => {
8237
8292
  return ChangeMaterialOperation;
8238
8293
  })();
8239
8294
 
8295
+ stream.ClearMaterialOperation = (function() {
8296
+
8297
+ /**
8298
+ * Properties of a ClearMaterialOperation.
8299
+ * @memberof vertexvis.protobuf.stream
8300
+ * @interface IClearMaterialOperation
8301
+ */
8302
+
8303
+ /**
8304
+ * Constructs a new ClearMaterialOperation.
8305
+ * @memberof vertexvis.protobuf.stream
8306
+ * @classdesc Represents a ClearMaterialOperation.
8307
+ * @implements IClearMaterialOperation
8308
+ * @constructor
8309
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation=} [properties] Properties to set
8310
+ */
8311
+ function ClearMaterialOperation(properties) {
8312
+ if (properties)
8313
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8314
+ if (properties[keys[i]] != null)
8315
+ this[keys[i]] = properties[keys[i]];
8316
+ }
8317
+
8318
+ /**
8319
+ * Creates a new ClearMaterialOperation instance using the specified properties.
8320
+ * @function create
8321
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8322
+ * @static
8323
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation=} [properties] Properties to set
8324
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation instance
8325
+ */
8326
+ ClearMaterialOperation.create = function create(properties) {
8327
+ return new ClearMaterialOperation(properties);
8328
+ };
8329
+
8330
+ /**
8331
+ * Encodes the specified ClearMaterialOperation message. Does not implicitly {@link vertexvis.protobuf.stream.ClearMaterialOperation.verify|verify} messages.
8332
+ * @function encode
8333
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8334
+ * @static
8335
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation} message ClearMaterialOperation message or plain object to encode
8336
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8337
+ * @returns {$protobuf.Writer} Writer
8338
+ */
8339
+ ClearMaterialOperation.encode = function encode(message, writer) {
8340
+ if (!writer)
8341
+ writer = $Writer.create();
8342
+ return writer;
8343
+ };
8344
+
8345
+ /**
8346
+ * Encodes the specified ClearMaterialOperation message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ClearMaterialOperation.verify|verify} messages.
8347
+ * @function encodeDelimited
8348
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8349
+ * @static
8350
+ * @param {vertexvis.protobuf.stream.IClearMaterialOperation} message ClearMaterialOperation message or plain object to encode
8351
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8352
+ * @returns {$protobuf.Writer} Writer
8353
+ */
8354
+ ClearMaterialOperation.encodeDelimited = function encodeDelimited(message, writer) {
8355
+ return this.encode(message, writer).ldelim();
8356
+ };
8357
+
8358
+ /**
8359
+ * Decodes a ClearMaterialOperation message from the specified reader or buffer.
8360
+ * @function decode
8361
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8362
+ * @static
8363
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8364
+ * @param {number} [length] Message length if known beforehand
8365
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8366
+ * @throws {Error} If the payload is not a reader or valid buffer
8367
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8368
+ */
8369
+ ClearMaterialOperation.decode = function decode(reader, length) {
8370
+ if (!(reader instanceof $Reader))
8371
+ reader = $Reader.create(reader);
8372
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ClearMaterialOperation();
8373
+ while (reader.pos < end) {
8374
+ let tag = reader.uint32();
8375
+ switch (tag >>> 3) {
8376
+ default:
8377
+ reader.skipType(tag & 7);
8378
+ break;
8379
+ }
8380
+ }
8381
+ return message;
8382
+ };
8383
+
8384
+ /**
8385
+ * Decodes a ClearMaterialOperation message from the specified reader or buffer, length delimited.
8386
+ * @function decodeDelimited
8387
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8388
+ * @static
8389
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8390
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8391
+ * @throws {Error} If the payload is not a reader or valid buffer
8392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8393
+ */
8394
+ ClearMaterialOperation.decodeDelimited = function decodeDelimited(reader) {
8395
+ if (!(reader instanceof $Reader))
8396
+ reader = new $Reader(reader);
8397
+ return this.decode(reader, reader.uint32());
8398
+ };
8399
+
8400
+ /**
8401
+ * Verifies a ClearMaterialOperation message.
8402
+ * @function verify
8403
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8404
+ * @static
8405
+ * @param {Object.<string,*>} message Plain object to verify
8406
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8407
+ */
8408
+ ClearMaterialOperation.verify = function verify(message) {
8409
+ if (typeof message !== "object" || message === null)
8410
+ return "object expected";
8411
+ return null;
8412
+ };
8413
+
8414
+ /**
8415
+ * Creates a ClearMaterialOperation message from a plain object. Also converts values to their respective internal types.
8416
+ * @function fromObject
8417
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8418
+ * @static
8419
+ * @param {Object.<string,*>} object Plain object
8420
+ * @returns {vertexvis.protobuf.stream.ClearMaterialOperation} ClearMaterialOperation
8421
+ */
8422
+ ClearMaterialOperation.fromObject = function fromObject(object) {
8423
+ if (object instanceof $root.vertexvis.protobuf.stream.ClearMaterialOperation)
8424
+ return object;
8425
+ return new $root.vertexvis.protobuf.stream.ClearMaterialOperation();
8426
+ };
8427
+
8428
+ /**
8429
+ * Creates a plain object from a ClearMaterialOperation message. Also converts values to other types if specified.
8430
+ * @function toObject
8431
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8432
+ * @static
8433
+ * @param {vertexvis.protobuf.stream.ClearMaterialOperation} message ClearMaterialOperation
8434
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8435
+ * @returns {Object.<string,*>} Plain object
8436
+ */
8437
+ ClearMaterialOperation.toObject = function toObject() {
8438
+ return {};
8439
+ };
8440
+
8441
+ /**
8442
+ * Converts this ClearMaterialOperation to JSON.
8443
+ * @function toJSON
8444
+ * @memberof vertexvis.protobuf.stream.ClearMaterialOperation
8445
+ * @instance
8446
+ * @returns {Object.<string,*>} JSON object
8447
+ */
8448
+ ClearMaterialOperation.prototype.toJSON = function toJSON() {
8449
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
8450
+ };
8451
+
8452
+ return ClearMaterialOperation;
8453
+ })();
8454
+
8240
8455
  stream.ChangeVisibilityOperation = (function() {
8241
8456
 
8242
8457
  /**
@@ -10402,6 +10617,7 @@ const vertexvis = $root.vertexvis = (() => {
10402
10617
  * @property {vertexvis.protobuf.stream.IClearRenditionOperation|null} [clearRendition] OperationType clearRendition
10403
10618
  * @property {vertexvis.protobuf.stream.IViewRepresentationOperation|null} [viewRepresentation] OperationType viewRepresentation
10404
10619
  * @property {vertexvis.protobuf.stream.IClearRepresentationOperation|null} [clearRepresentation] OperationType clearRepresentation
10620
+ * @property {vertexvis.protobuf.stream.IClearMaterialOperation|null} [clearMaterial] OperationType clearMaterial
10405
10621
  */
10406
10622
 
10407
10623
  /**
@@ -10515,17 +10731,25 @@ const vertexvis = $root.vertexvis = (() => {
10515
10731
  */
10516
10732
  OperationType.prototype.clearRepresentation = null;
10517
10733
 
10734
+ /**
10735
+ * OperationType clearMaterial.
10736
+ * @member {vertexvis.protobuf.stream.IClearMaterialOperation|null|undefined} clearMaterial
10737
+ * @memberof vertexvis.protobuf.stream.OperationType
10738
+ * @instance
10739
+ */
10740
+ OperationType.prototype.clearMaterial = null;
10741
+
10518
10742
  // OneOf field names bound to virtual getters and setters
10519
10743
  let $oneOfFields;
10520
10744
 
10521
10745
  /**
10522
10746
  * OperationType value.
10523
- * @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|"viewRepresentation"|"clearRepresentation"|undefined} value
10747
+ * @member {"changeMaterial"|"changeVisibility"|"changeTransform"|"changeSelection"|"clearTransform"|"changePhantom"|"changeEndItem"|"viewRendition"|"viewDefaultRendition"|"clearRendition"|"viewRepresentation"|"clearRepresentation"|"clearMaterial"|undefined} value
10524
10748
  * @memberof vertexvis.protobuf.stream.OperationType
10525
10749
  * @instance
10526
10750
  */
10527
10751
  Object.defineProperty(OperationType.prototype, "value", {
10528
- get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition", "viewRepresentation", "clearRepresentation"]),
10752
+ get: $util.oneOfGetter($oneOfFields = ["changeMaterial", "changeVisibility", "changeTransform", "changeSelection", "clearTransform", "changePhantom", "changeEndItem", "viewRendition", "viewDefaultRendition", "clearRendition", "viewRepresentation", "clearRepresentation", "clearMaterial"]),
10529
10753
  set: $util.oneOfSetter($oneOfFields)
10530
10754
  });
10531
10755
 
@@ -10577,6 +10801,8 @@ const vertexvis = $root.vertexvis = (() => {
10577
10801
  $root.vertexvis.protobuf.stream.ViewRepresentationOperation.encode(message.viewRepresentation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
10578
10802
  if (message.clearRepresentation != null && Object.hasOwnProperty.call(message, "clearRepresentation"))
10579
10803
  $root.vertexvis.protobuf.stream.ClearRepresentationOperation.encode(message.clearRepresentation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
10804
+ if (message.clearMaterial != null && Object.hasOwnProperty.call(message, "clearMaterial"))
10805
+ $root.vertexvis.protobuf.stream.ClearMaterialOperation.encode(message.clearMaterial, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
10580
10806
  return writer;
10581
10807
  };
10582
10808
 
@@ -10647,6 +10873,9 @@ const vertexvis = $root.vertexvis = (() => {
10647
10873
  case 12:
10648
10874
  message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.decode(reader, reader.uint32());
10649
10875
  break;
10876
+ case 13:
10877
+ message.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.decode(reader, reader.uint32());
10878
+ break;
10650
10879
  default:
10651
10880
  reader.skipType(tag & 7);
10652
10881
  break;
@@ -10801,6 +11030,16 @@ const vertexvis = $root.vertexvis = (() => {
10801
11030
  return "clearRepresentation." + error;
10802
11031
  }
10803
11032
  }
11033
+ if (message.clearMaterial != null && message.hasOwnProperty("clearMaterial")) {
11034
+ if (properties.value === 1)
11035
+ return "value: multiple values";
11036
+ properties.value = 1;
11037
+ {
11038
+ let error = $root.vertexvis.protobuf.stream.ClearMaterialOperation.verify(message.clearMaterial);
11039
+ if (error)
11040
+ return "clearMaterial." + error;
11041
+ }
11042
+ }
10804
11043
  return null;
10805
11044
  };
10806
11045
 
@@ -10876,6 +11115,11 @@ const vertexvis = $root.vertexvis = (() => {
10876
11115
  throw TypeError(".vertexvis.protobuf.stream.OperationType.clearRepresentation: object expected");
10877
11116
  message.clearRepresentation = $root.vertexvis.protobuf.stream.ClearRepresentationOperation.fromObject(object.clearRepresentation);
10878
11117
  }
11118
+ if (object.clearMaterial != null) {
11119
+ if (typeof object.clearMaterial !== "object")
11120
+ throw TypeError(".vertexvis.protobuf.stream.OperationType.clearMaterial: object expected");
11121
+ message.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.fromObject(object.clearMaterial);
11122
+ }
10879
11123
  return message;
10880
11124
  };
10881
11125
 
@@ -10952,6 +11196,11 @@ const vertexvis = $root.vertexvis = (() => {
10952
11196
  if (options.oneofs)
10953
11197
  object.value = "clearRepresentation";
10954
11198
  }
11199
+ if (message.clearMaterial != null && message.hasOwnProperty("clearMaterial")) {
11200
+ object.clearMaterial = $root.vertexvis.protobuf.stream.ClearMaterialOperation.toObject(message.clearMaterial, options);
11201
+ if (options.oneofs)
11202
+ object.value = "clearMaterial";
11203
+ }
10955
11204
  return object;
10956
11205
  };
10957
11206
 
@@ -37750,6 +37999,411 @@ const vertexvis = $root.vertexvis = (() => {
37750
37999
  return RGBf;
37751
38000
  })();
37752
38001
 
38002
+ core.MaterialOverride = (function() {
38003
+
38004
+ /**
38005
+ * Properties of a MaterialOverride.
38006
+ * @memberof vertexvis.protobuf.core
38007
+ * @interface IMaterialOverride
38008
+ * @property {vertexvis.protobuf.core.IDefaultMaterial|null} [defaultMaterial] MaterialOverride defaultMaterial
38009
+ * @property {vertexvis.protobuf.core.IColorMaterial|null} [colorMaterial] MaterialOverride colorMaterial
38010
+ */
38011
+
38012
+ /**
38013
+ * Constructs a new MaterialOverride.
38014
+ * @memberof vertexvis.protobuf.core
38015
+ * @classdesc Represents a MaterialOverride.
38016
+ * @implements IMaterialOverride
38017
+ * @constructor
38018
+ * @param {vertexvis.protobuf.core.IMaterialOverride=} [properties] Properties to set
38019
+ */
38020
+ function MaterialOverride(properties) {
38021
+ if (properties)
38022
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38023
+ if (properties[keys[i]] != null)
38024
+ this[keys[i]] = properties[keys[i]];
38025
+ }
38026
+
38027
+ /**
38028
+ * MaterialOverride defaultMaterial.
38029
+ * @member {vertexvis.protobuf.core.IDefaultMaterial|null|undefined} defaultMaterial
38030
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38031
+ * @instance
38032
+ */
38033
+ MaterialOverride.prototype.defaultMaterial = null;
38034
+
38035
+ /**
38036
+ * MaterialOverride colorMaterial.
38037
+ * @member {vertexvis.protobuf.core.IColorMaterial|null|undefined} colorMaterial
38038
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38039
+ * @instance
38040
+ */
38041
+ MaterialOverride.prototype.colorMaterial = null;
38042
+
38043
+ // OneOf field names bound to virtual getters and setters
38044
+ let $oneOfFields;
38045
+
38046
+ /**
38047
+ * MaterialOverride sealedValueOptional.
38048
+ * @member {"defaultMaterial"|"colorMaterial"|undefined} sealedValueOptional
38049
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38050
+ * @instance
38051
+ */
38052
+ Object.defineProperty(MaterialOverride.prototype, "sealedValueOptional", {
38053
+ get: $util.oneOfGetter($oneOfFields = ["defaultMaterial", "colorMaterial"]),
38054
+ set: $util.oneOfSetter($oneOfFields)
38055
+ });
38056
+
38057
+ /**
38058
+ * Creates a new MaterialOverride instance using the specified properties.
38059
+ * @function create
38060
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38061
+ * @static
38062
+ * @param {vertexvis.protobuf.core.IMaterialOverride=} [properties] Properties to set
38063
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride instance
38064
+ */
38065
+ MaterialOverride.create = function create(properties) {
38066
+ return new MaterialOverride(properties);
38067
+ };
38068
+
38069
+ /**
38070
+ * Encodes the specified MaterialOverride message. Does not implicitly {@link vertexvis.protobuf.core.MaterialOverride.verify|verify} messages.
38071
+ * @function encode
38072
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38073
+ * @static
38074
+ * @param {vertexvis.protobuf.core.IMaterialOverride} message MaterialOverride message or plain object to encode
38075
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38076
+ * @returns {$protobuf.Writer} Writer
38077
+ */
38078
+ MaterialOverride.encode = function encode(message, writer) {
38079
+ if (!writer)
38080
+ writer = $Writer.create();
38081
+ if (message.defaultMaterial != null && Object.hasOwnProperty.call(message, "defaultMaterial"))
38082
+ $root.vertexvis.protobuf.core.DefaultMaterial.encode(message.defaultMaterial, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
38083
+ if (message.colorMaterial != null && Object.hasOwnProperty.call(message, "colorMaterial"))
38084
+ $root.vertexvis.protobuf.core.ColorMaterial.encode(message.colorMaterial, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
38085
+ return writer;
38086
+ };
38087
+
38088
+ /**
38089
+ * Encodes the specified MaterialOverride message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.MaterialOverride.verify|verify} messages.
38090
+ * @function encodeDelimited
38091
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38092
+ * @static
38093
+ * @param {vertexvis.protobuf.core.IMaterialOverride} message MaterialOverride message or plain object to encode
38094
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38095
+ * @returns {$protobuf.Writer} Writer
38096
+ */
38097
+ MaterialOverride.encodeDelimited = function encodeDelimited(message, writer) {
38098
+ return this.encode(message, writer).ldelim();
38099
+ };
38100
+
38101
+ /**
38102
+ * Decodes a MaterialOverride message from the specified reader or buffer.
38103
+ * @function decode
38104
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38105
+ * @static
38106
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38107
+ * @param {number} [length] Message length if known beforehand
38108
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38109
+ * @throws {Error} If the payload is not a reader or valid buffer
38110
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38111
+ */
38112
+ MaterialOverride.decode = function decode(reader, length) {
38113
+ if (!(reader instanceof $Reader))
38114
+ reader = $Reader.create(reader);
38115
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.MaterialOverride();
38116
+ while (reader.pos < end) {
38117
+ let tag = reader.uint32();
38118
+ switch (tag >>> 3) {
38119
+ case 1:
38120
+ message.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.decode(reader, reader.uint32());
38121
+ break;
38122
+ case 2:
38123
+ message.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.decode(reader, reader.uint32());
38124
+ break;
38125
+ default:
38126
+ reader.skipType(tag & 7);
38127
+ break;
38128
+ }
38129
+ }
38130
+ return message;
38131
+ };
38132
+
38133
+ /**
38134
+ * Decodes a MaterialOverride message from the specified reader or buffer, length delimited.
38135
+ * @function decodeDelimited
38136
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38137
+ * @static
38138
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38139
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38140
+ * @throws {Error} If the payload is not a reader or valid buffer
38141
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38142
+ */
38143
+ MaterialOverride.decodeDelimited = function decodeDelimited(reader) {
38144
+ if (!(reader instanceof $Reader))
38145
+ reader = new $Reader(reader);
38146
+ return this.decode(reader, reader.uint32());
38147
+ };
38148
+
38149
+ /**
38150
+ * Verifies a MaterialOverride message.
38151
+ * @function verify
38152
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38153
+ * @static
38154
+ * @param {Object.<string,*>} message Plain object to verify
38155
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38156
+ */
38157
+ MaterialOverride.verify = function verify(message) {
38158
+ if (typeof message !== "object" || message === null)
38159
+ return "object expected";
38160
+ let properties = {};
38161
+ if (message.defaultMaterial != null && message.hasOwnProperty("defaultMaterial")) {
38162
+ properties.sealedValueOptional = 1;
38163
+ {
38164
+ let error = $root.vertexvis.protobuf.core.DefaultMaterial.verify(message.defaultMaterial);
38165
+ if (error)
38166
+ return "defaultMaterial." + error;
38167
+ }
38168
+ }
38169
+ if (message.colorMaterial != null && message.hasOwnProperty("colorMaterial")) {
38170
+ if (properties.sealedValueOptional === 1)
38171
+ return "sealedValueOptional: multiple values";
38172
+ properties.sealedValueOptional = 1;
38173
+ {
38174
+ let error = $root.vertexvis.protobuf.core.ColorMaterial.verify(message.colorMaterial);
38175
+ if (error)
38176
+ return "colorMaterial." + error;
38177
+ }
38178
+ }
38179
+ return null;
38180
+ };
38181
+
38182
+ /**
38183
+ * Creates a MaterialOverride message from a plain object. Also converts values to their respective internal types.
38184
+ * @function fromObject
38185
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38186
+ * @static
38187
+ * @param {Object.<string,*>} object Plain object
38188
+ * @returns {vertexvis.protobuf.core.MaterialOverride} MaterialOverride
38189
+ */
38190
+ MaterialOverride.fromObject = function fromObject(object) {
38191
+ if (object instanceof $root.vertexvis.protobuf.core.MaterialOverride)
38192
+ return object;
38193
+ let message = new $root.vertexvis.protobuf.core.MaterialOverride();
38194
+ if (object.defaultMaterial != null) {
38195
+ if (typeof object.defaultMaterial !== "object")
38196
+ throw TypeError(".vertexvis.protobuf.core.MaterialOverride.defaultMaterial: object expected");
38197
+ message.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.fromObject(object.defaultMaterial);
38198
+ }
38199
+ if (object.colorMaterial != null) {
38200
+ if (typeof object.colorMaterial !== "object")
38201
+ throw TypeError(".vertexvis.protobuf.core.MaterialOverride.colorMaterial: object expected");
38202
+ message.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.fromObject(object.colorMaterial);
38203
+ }
38204
+ return message;
38205
+ };
38206
+
38207
+ /**
38208
+ * Creates a plain object from a MaterialOverride message. Also converts values to other types if specified.
38209
+ * @function toObject
38210
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38211
+ * @static
38212
+ * @param {vertexvis.protobuf.core.MaterialOverride} message MaterialOverride
38213
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38214
+ * @returns {Object.<string,*>} Plain object
38215
+ */
38216
+ MaterialOverride.toObject = function toObject(message, options) {
38217
+ if (!options)
38218
+ options = {};
38219
+ let object = {};
38220
+ if (message.defaultMaterial != null && message.hasOwnProperty("defaultMaterial")) {
38221
+ object.defaultMaterial = $root.vertexvis.protobuf.core.DefaultMaterial.toObject(message.defaultMaterial, options);
38222
+ if (options.oneofs)
38223
+ object.sealedValueOptional = "defaultMaterial";
38224
+ }
38225
+ if (message.colorMaterial != null && message.hasOwnProperty("colorMaterial")) {
38226
+ object.colorMaterial = $root.vertexvis.protobuf.core.ColorMaterial.toObject(message.colorMaterial, options);
38227
+ if (options.oneofs)
38228
+ object.sealedValueOptional = "colorMaterial";
38229
+ }
38230
+ return object;
38231
+ };
38232
+
38233
+ /**
38234
+ * Converts this MaterialOverride to JSON.
38235
+ * @function toJSON
38236
+ * @memberof vertexvis.protobuf.core.MaterialOverride
38237
+ * @instance
38238
+ * @returns {Object.<string,*>} JSON object
38239
+ */
38240
+ MaterialOverride.prototype.toJSON = function toJSON() {
38241
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
38242
+ };
38243
+
38244
+ return MaterialOverride;
38245
+ })();
38246
+
38247
+ core.DefaultMaterial = (function() {
38248
+
38249
+ /**
38250
+ * Properties of a DefaultMaterial.
38251
+ * @memberof vertexvis.protobuf.core
38252
+ * @interface IDefaultMaterial
38253
+ */
38254
+
38255
+ /**
38256
+ * Constructs a new DefaultMaterial.
38257
+ * @memberof vertexvis.protobuf.core
38258
+ * @classdesc Represents a DefaultMaterial.
38259
+ * @implements IDefaultMaterial
38260
+ * @constructor
38261
+ * @param {vertexvis.protobuf.core.IDefaultMaterial=} [properties] Properties to set
38262
+ */
38263
+ function DefaultMaterial(properties) {
38264
+ if (properties)
38265
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38266
+ if (properties[keys[i]] != null)
38267
+ this[keys[i]] = properties[keys[i]];
38268
+ }
38269
+
38270
+ /**
38271
+ * Creates a new DefaultMaterial instance using the specified properties.
38272
+ * @function create
38273
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38274
+ * @static
38275
+ * @param {vertexvis.protobuf.core.IDefaultMaterial=} [properties] Properties to set
38276
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial instance
38277
+ */
38278
+ DefaultMaterial.create = function create(properties) {
38279
+ return new DefaultMaterial(properties);
38280
+ };
38281
+
38282
+ /**
38283
+ * Encodes the specified DefaultMaterial message. Does not implicitly {@link vertexvis.protobuf.core.DefaultMaterial.verify|verify} messages.
38284
+ * @function encode
38285
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38286
+ * @static
38287
+ * @param {vertexvis.protobuf.core.IDefaultMaterial} message DefaultMaterial message or plain object to encode
38288
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38289
+ * @returns {$protobuf.Writer} Writer
38290
+ */
38291
+ DefaultMaterial.encode = function encode(message, writer) {
38292
+ if (!writer)
38293
+ writer = $Writer.create();
38294
+ return writer;
38295
+ };
38296
+
38297
+ /**
38298
+ * Encodes the specified DefaultMaterial message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.DefaultMaterial.verify|verify} messages.
38299
+ * @function encodeDelimited
38300
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38301
+ * @static
38302
+ * @param {vertexvis.protobuf.core.IDefaultMaterial} message DefaultMaterial message or plain object to encode
38303
+ * @param {$protobuf.Writer} [writer] Writer to encode to
38304
+ * @returns {$protobuf.Writer} Writer
38305
+ */
38306
+ DefaultMaterial.encodeDelimited = function encodeDelimited(message, writer) {
38307
+ return this.encode(message, writer).ldelim();
38308
+ };
38309
+
38310
+ /**
38311
+ * Decodes a DefaultMaterial message from the specified reader or buffer.
38312
+ * @function decode
38313
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38314
+ * @static
38315
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38316
+ * @param {number} [length] Message length if known beforehand
38317
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38318
+ * @throws {Error} If the payload is not a reader or valid buffer
38319
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38320
+ */
38321
+ DefaultMaterial.decode = function decode(reader, length) {
38322
+ if (!(reader instanceof $Reader))
38323
+ reader = $Reader.create(reader);
38324
+ let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.DefaultMaterial();
38325
+ while (reader.pos < end) {
38326
+ let tag = reader.uint32();
38327
+ switch (tag >>> 3) {
38328
+ default:
38329
+ reader.skipType(tag & 7);
38330
+ break;
38331
+ }
38332
+ }
38333
+ return message;
38334
+ };
38335
+
38336
+ /**
38337
+ * Decodes a DefaultMaterial message from the specified reader or buffer, length delimited.
38338
+ * @function decodeDelimited
38339
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38340
+ * @static
38341
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
38342
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38343
+ * @throws {Error} If the payload is not a reader or valid buffer
38344
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38345
+ */
38346
+ DefaultMaterial.decodeDelimited = function decodeDelimited(reader) {
38347
+ if (!(reader instanceof $Reader))
38348
+ reader = new $Reader(reader);
38349
+ return this.decode(reader, reader.uint32());
38350
+ };
38351
+
38352
+ /**
38353
+ * Verifies a DefaultMaterial message.
38354
+ * @function verify
38355
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38356
+ * @static
38357
+ * @param {Object.<string,*>} message Plain object to verify
38358
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
38359
+ */
38360
+ DefaultMaterial.verify = function verify(message) {
38361
+ if (typeof message !== "object" || message === null)
38362
+ return "object expected";
38363
+ return null;
38364
+ };
38365
+
38366
+ /**
38367
+ * Creates a DefaultMaterial message from a plain object. Also converts values to their respective internal types.
38368
+ * @function fromObject
38369
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38370
+ * @static
38371
+ * @param {Object.<string,*>} object Plain object
38372
+ * @returns {vertexvis.protobuf.core.DefaultMaterial} DefaultMaterial
38373
+ */
38374
+ DefaultMaterial.fromObject = function fromObject(object) {
38375
+ if (object instanceof $root.vertexvis.protobuf.core.DefaultMaterial)
38376
+ return object;
38377
+ return new $root.vertexvis.protobuf.core.DefaultMaterial();
38378
+ };
38379
+
38380
+ /**
38381
+ * Creates a plain object from a DefaultMaterial message. Also converts values to other types if specified.
38382
+ * @function toObject
38383
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38384
+ * @static
38385
+ * @param {vertexvis.protobuf.core.DefaultMaterial} message DefaultMaterial
38386
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
38387
+ * @returns {Object.<string,*>} Plain object
38388
+ */
38389
+ DefaultMaterial.toObject = function toObject() {
38390
+ return {};
38391
+ };
38392
+
38393
+ /**
38394
+ * Converts this DefaultMaterial to JSON.
38395
+ * @function toJSON
38396
+ * @memberof vertexvis.protobuf.core.DefaultMaterial
38397
+ * @instance
38398
+ * @returns {Object.<string,*>} JSON object
38399
+ */
38400
+ DefaultMaterial.prototype.toJSON = function toJSON() {
38401
+ return this.constructor.toObject(this, minimal.util.toJSONOptions);
38402
+ };
38403
+
38404
+ return DefaultMaterial;
38405
+ })();
38406
+
37753
38407
  core.ColorMaterial = (function() {
37754
38408
 
37755
38409
  /**