@vertexvis/stream-api 0.24.6-canary.0 → 0.24.6-testing.1
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 +1414 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1414 -0
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -4253,6 +4253,226 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4253
4253
|
return DisplayListSummary;
|
|
4254
4254
|
})();
|
|
4255
4255
|
|
|
4256
|
+
stream.ItemModelViewAttributes = (function() {
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* Properties of an ItemModelViewAttributes.
|
|
4260
|
+
* @memberof vertexvis.protobuf.stream
|
|
4261
|
+
* @interface IItemModelViewAttributes
|
|
4262
|
+
* @property {vertexvis.protobuf.core.IUuid|null} [modelViewId] ItemModelViewAttributes modelViewId
|
|
4263
|
+
* @property {vertexvis.protobuf.core.IUuid|null} [sceneItemId] ItemModelViewAttributes sceneItemId
|
|
4264
|
+
*/
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* Constructs a new ItemModelViewAttributes.
|
|
4268
|
+
* @memberof vertexvis.protobuf.stream
|
|
4269
|
+
* @classdesc Represents an ItemModelViewAttributes.
|
|
4270
|
+
* @implements IItemModelViewAttributes
|
|
4271
|
+
* @constructor
|
|
4272
|
+
* @param {vertexvis.protobuf.stream.IItemModelViewAttributes=} [properties] Properties to set
|
|
4273
|
+
*/
|
|
4274
|
+
function ItemModelViewAttributes(properties) {
|
|
4275
|
+
if (properties)
|
|
4276
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4277
|
+
if (properties[keys[i]] != null)
|
|
4278
|
+
this[keys[i]] = properties[keys[i]];
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* ItemModelViewAttributes modelViewId.
|
|
4283
|
+
* @member {vertexvis.protobuf.core.IUuid|null|undefined} modelViewId
|
|
4284
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4285
|
+
* @instance
|
|
4286
|
+
*/
|
|
4287
|
+
ItemModelViewAttributes.prototype.modelViewId = null;
|
|
4288
|
+
|
|
4289
|
+
/**
|
|
4290
|
+
* ItemModelViewAttributes sceneItemId.
|
|
4291
|
+
* @member {vertexvis.protobuf.core.IUuid|null|undefined} sceneItemId
|
|
4292
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4293
|
+
* @instance
|
|
4294
|
+
*/
|
|
4295
|
+
ItemModelViewAttributes.prototype.sceneItemId = null;
|
|
4296
|
+
|
|
4297
|
+
/**
|
|
4298
|
+
* Creates a new ItemModelViewAttributes instance using the specified properties.
|
|
4299
|
+
* @function create
|
|
4300
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4301
|
+
* @static
|
|
4302
|
+
* @param {vertexvis.protobuf.stream.IItemModelViewAttributes=} [properties] Properties to set
|
|
4303
|
+
* @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes instance
|
|
4304
|
+
*/
|
|
4305
|
+
ItemModelViewAttributes.create = function create(properties) {
|
|
4306
|
+
return new ItemModelViewAttributes(properties);
|
|
4307
|
+
};
|
|
4308
|
+
|
|
4309
|
+
/**
|
|
4310
|
+
* Encodes the specified ItemModelViewAttributes message. Does not implicitly {@link vertexvis.protobuf.stream.ItemModelViewAttributes.verify|verify} messages.
|
|
4311
|
+
* @function encode
|
|
4312
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4313
|
+
* @static
|
|
4314
|
+
* @param {vertexvis.protobuf.stream.IItemModelViewAttributes} message ItemModelViewAttributes message or plain object to encode
|
|
4315
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4316
|
+
* @returns {$protobuf.Writer} Writer
|
|
4317
|
+
*/
|
|
4318
|
+
ItemModelViewAttributes.encode = function encode(message, writer) {
|
|
4319
|
+
if (!writer)
|
|
4320
|
+
writer = $Writer.create();
|
|
4321
|
+
if (message.modelViewId != null && Object.hasOwnProperty.call(message, "modelViewId"))
|
|
4322
|
+
$root.vertexvis.protobuf.core.Uuid.encode(message.modelViewId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
4323
|
+
if (message.sceneItemId != null && Object.hasOwnProperty.call(message, "sceneItemId"))
|
|
4324
|
+
$root.vertexvis.protobuf.core.Uuid.encode(message.sceneItemId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
4325
|
+
return writer;
|
|
4326
|
+
};
|
|
4327
|
+
|
|
4328
|
+
/**
|
|
4329
|
+
* Encodes the specified ItemModelViewAttributes message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ItemModelViewAttributes.verify|verify} messages.
|
|
4330
|
+
* @function encodeDelimited
|
|
4331
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4332
|
+
* @static
|
|
4333
|
+
* @param {vertexvis.protobuf.stream.IItemModelViewAttributes} message ItemModelViewAttributes message or plain object to encode
|
|
4334
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4335
|
+
* @returns {$protobuf.Writer} Writer
|
|
4336
|
+
*/
|
|
4337
|
+
ItemModelViewAttributes.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4338
|
+
return this.encode(message, writer).ldelim();
|
|
4339
|
+
};
|
|
4340
|
+
|
|
4341
|
+
/**
|
|
4342
|
+
* Decodes an ItemModelViewAttributes message from the specified reader or buffer.
|
|
4343
|
+
* @function decode
|
|
4344
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4345
|
+
* @static
|
|
4346
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4347
|
+
* @param {number} [length] Message length if known beforehand
|
|
4348
|
+
* @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
|
|
4349
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4350
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4351
|
+
*/
|
|
4352
|
+
ItemModelViewAttributes.decode = function decode(reader, length) {
|
|
4353
|
+
if (!(reader instanceof $Reader))
|
|
4354
|
+
reader = $Reader.create(reader);
|
|
4355
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ItemModelViewAttributes();
|
|
4356
|
+
while (reader.pos < end) {
|
|
4357
|
+
let tag = reader.uint32();
|
|
4358
|
+
switch (tag >>> 3) {
|
|
4359
|
+
case 1:
|
|
4360
|
+
message.modelViewId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
4361
|
+
break;
|
|
4362
|
+
case 2:
|
|
4363
|
+
message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
4364
|
+
break;
|
|
4365
|
+
default:
|
|
4366
|
+
reader.skipType(tag & 7);
|
|
4367
|
+
break;
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
return message;
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
/**
|
|
4374
|
+
* Decodes an ItemModelViewAttributes message from the specified reader or buffer, length delimited.
|
|
4375
|
+
* @function decodeDelimited
|
|
4376
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4377
|
+
* @static
|
|
4378
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4379
|
+
* @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
|
|
4380
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4381
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4382
|
+
*/
|
|
4383
|
+
ItemModelViewAttributes.decodeDelimited = function decodeDelimited(reader) {
|
|
4384
|
+
if (!(reader instanceof $Reader))
|
|
4385
|
+
reader = new $Reader(reader);
|
|
4386
|
+
return this.decode(reader, reader.uint32());
|
|
4387
|
+
};
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Verifies an ItemModelViewAttributes message.
|
|
4391
|
+
* @function verify
|
|
4392
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4393
|
+
* @static
|
|
4394
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4395
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4396
|
+
*/
|
|
4397
|
+
ItemModelViewAttributes.verify = function verify(message) {
|
|
4398
|
+
if (typeof message !== "object" || message === null)
|
|
4399
|
+
return "object expected";
|
|
4400
|
+
if (message.modelViewId != null && message.hasOwnProperty("modelViewId")) {
|
|
4401
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.modelViewId);
|
|
4402
|
+
if (error)
|
|
4403
|
+
return "modelViewId." + error;
|
|
4404
|
+
}
|
|
4405
|
+
if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId")) {
|
|
4406
|
+
let error = $root.vertexvis.protobuf.core.Uuid.verify(message.sceneItemId);
|
|
4407
|
+
if (error)
|
|
4408
|
+
return "sceneItemId." + error;
|
|
4409
|
+
}
|
|
4410
|
+
return null;
|
|
4411
|
+
};
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* Creates an ItemModelViewAttributes message from a plain object. Also converts values to their respective internal types.
|
|
4415
|
+
* @function fromObject
|
|
4416
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4417
|
+
* @static
|
|
4418
|
+
* @param {Object.<string,*>} object Plain object
|
|
4419
|
+
* @returns {vertexvis.protobuf.stream.ItemModelViewAttributes} ItemModelViewAttributes
|
|
4420
|
+
*/
|
|
4421
|
+
ItemModelViewAttributes.fromObject = function fromObject(object) {
|
|
4422
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ItemModelViewAttributes)
|
|
4423
|
+
return object;
|
|
4424
|
+
let message = new $root.vertexvis.protobuf.stream.ItemModelViewAttributes();
|
|
4425
|
+
if (object.modelViewId != null) {
|
|
4426
|
+
if (typeof object.modelViewId !== "object")
|
|
4427
|
+
throw TypeError(".vertexvis.protobuf.stream.ItemModelViewAttributes.modelViewId: object expected");
|
|
4428
|
+
message.modelViewId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.modelViewId);
|
|
4429
|
+
}
|
|
4430
|
+
if (object.sceneItemId != null) {
|
|
4431
|
+
if (typeof object.sceneItemId !== "object")
|
|
4432
|
+
throw TypeError(".vertexvis.protobuf.stream.ItemModelViewAttributes.sceneItemId: object expected");
|
|
4433
|
+
message.sceneItemId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.sceneItemId);
|
|
4434
|
+
}
|
|
4435
|
+
return message;
|
|
4436
|
+
};
|
|
4437
|
+
|
|
4438
|
+
/**
|
|
4439
|
+
* Creates a plain object from an ItemModelViewAttributes message. Also converts values to other types if specified.
|
|
4440
|
+
* @function toObject
|
|
4441
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4442
|
+
* @static
|
|
4443
|
+
* @param {vertexvis.protobuf.stream.ItemModelViewAttributes} message ItemModelViewAttributes
|
|
4444
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4445
|
+
* @returns {Object.<string,*>} Plain object
|
|
4446
|
+
*/
|
|
4447
|
+
ItemModelViewAttributes.toObject = function toObject(message, options) {
|
|
4448
|
+
if (!options)
|
|
4449
|
+
options = {};
|
|
4450
|
+
let object = {};
|
|
4451
|
+
if (options.defaults) {
|
|
4452
|
+
object.modelViewId = null;
|
|
4453
|
+
object.sceneItemId = null;
|
|
4454
|
+
}
|
|
4455
|
+
if (message.modelViewId != null && message.hasOwnProperty("modelViewId"))
|
|
4456
|
+
object.modelViewId = $root.vertexvis.protobuf.core.Uuid.toObject(message.modelViewId, options);
|
|
4457
|
+
if (message.sceneItemId != null && message.hasOwnProperty("sceneItemId"))
|
|
4458
|
+
object.sceneItemId = $root.vertexvis.protobuf.core.Uuid.toObject(message.sceneItemId, options);
|
|
4459
|
+
return object;
|
|
4460
|
+
};
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* Converts this ItemModelViewAttributes to JSON.
|
|
4464
|
+
* @function toJSON
|
|
4465
|
+
* @memberof vertexvis.protobuf.stream.ItemModelViewAttributes
|
|
4466
|
+
* @instance
|
|
4467
|
+
* @returns {Object.<string,*>} JSON object
|
|
4468
|
+
*/
|
|
4469
|
+
ItemModelViewAttributes.prototype.toJSON = function toJSON() {
|
|
4470
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
4471
|
+
};
|
|
4472
|
+
|
|
4473
|
+
return ItemModelViewAttributes;
|
|
4474
|
+
})();
|
|
4475
|
+
|
|
4256
4476
|
stream.SceneAttributes = (function() {
|
|
4257
4477
|
|
|
4258
4478
|
/**
|
|
@@ -4265,6 +4485,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4265
4485
|
* @property {boolean|null} [hasChanged] SceneAttributes hasChanged
|
|
4266
4486
|
* @property {vertexvis.protobuf.stream.IDisplayListSummary|null} [displayListSummary] SceneAttributes displayListSummary
|
|
4267
4487
|
* @property {vertexvis.protobuf.core.IUuid2l|null} [modelViewId] SceneAttributes modelViewId
|
|
4488
|
+
* @property {vertexvis.protobuf.stream.IItemModelViewAttributes|null} [itemModelView] SceneAttributes itemModelView
|
|
4268
4489
|
*/
|
|
4269
4490
|
|
|
4270
4491
|
/**
|
|
@@ -4330,6 +4551,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4330
4551
|
*/
|
|
4331
4552
|
SceneAttributes.prototype.modelViewId = null;
|
|
4332
4553
|
|
|
4554
|
+
/**
|
|
4555
|
+
* SceneAttributes itemModelView.
|
|
4556
|
+
* @member {vertexvis.protobuf.stream.IItemModelViewAttributes|null|undefined} itemModelView
|
|
4557
|
+
* @memberof vertexvis.protobuf.stream.SceneAttributes
|
|
4558
|
+
* @instance
|
|
4559
|
+
*/
|
|
4560
|
+
SceneAttributes.prototype.itemModelView = null;
|
|
4561
|
+
|
|
4333
4562
|
/**
|
|
4334
4563
|
* Creates a new SceneAttributes instance using the specified properties.
|
|
4335
4564
|
* @function create
|
|
@@ -4366,6 +4595,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4366
4595
|
$root.vertexvis.protobuf.stream.DisplayListSummary.encode(message.displayListSummary, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
4367
4596
|
if (message.modelViewId != null && Object.hasOwnProperty.call(message, "modelViewId"))
|
|
4368
4597
|
$root.vertexvis.protobuf.core.Uuid2l.encode(message.modelViewId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
4598
|
+
if (message.itemModelView != null && Object.hasOwnProperty.call(message, "itemModelView"))
|
|
4599
|
+
$root.vertexvis.protobuf.stream.ItemModelViewAttributes.encode(message.itemModelView, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
4369
4600
|
return writer;
|
|
4370
4601
|
};
|
|
4371
4602
|
|
|
@@ -4418,6 +4649,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4418
4649
|
case 6:
|
|
4419
4650
|
message.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.decode(reader, reader.uint32());
|
|
4420
4651
|
break;
|
|
4652
|
+
case 7:
|
|
4653
|
+
message.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.decode(reader, reader.uint32());
|
|
4654
|
+
break;
|
|
4421
4655
|
default:
|
|
4422
4656
|
reader.skipType(tag & 7);
|
|
4423
4657
|
break;
|
|
@@ -4481,6 +4715,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4481
4715
|
if (error)
|
|
4482
4716
|
return "modelViewId." + error;
|
|
4483
4717
|
}
|
|
4718
|
+
if (message.itemModelView != null && message.hasOwnProperty("itemModelView")) {
|
|
4719
|
+
let error = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.verify(message.itemModelView);
|
|
4720
|
+
if (error)
|
|
4721
|
+
return "itemModelView." + error;
|
|
4722
|
+
}
|
|
4484
4723
|
return null;
|
|
4485
4724
|
};
|
|
4486
4725
|
|
|
@@ -4523,6 +4762,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4523
4762
|
throw TypeError(".vertexvis.protobuf.stream.SceneAttributes.modelViewId: object expected");
|
|
4524
4763
|
message.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.fromObject(object.modelViewId);
|
|
4525
4764
|
}
|
|
4765
|
+
if (object.itemModelView != null) {
|
|
4766
|
+
if (typeof object.itemModelView !== "object")
|
|
4767
|
+
throw TypeError(".vertexvis.protobuf.stream.SceneAttributes.itemModelView: object expected");
|
|
4768
|
+
message.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.fromObject(object.itemModelView);
|
|
4769
|
+
}
|
|
4526
4770
|
return message;
|
|
4527
4771
|
};
|
|
4528
4772
|
|
|
@@ -4546,6 +4790,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4546
4790
|
object.hasChanged = false;
|
|
4547
4791
|
object.displayListSummary = null;
|
|
4548
4792
|
object.modelViewId = null;
|
|
4793
|
+
object.itemModelView = null;
|
|
4549
4794
|
}
|
|
4550
4795
|
if (message.camera != null && message.hasOwnProperty("camera"))
|
|
4551
4796
|
object.camera = $root.vertexvis.protobuf.stream.Camera.toObject(message.camera, options);
|
|
@@ -4559,6 +4804,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
4559
4804
|
object.displayListSummary = $root.vertexvis.protobuf.stream.DisplayListSummary.toObject(message.displayListSummary, options);
|
|
4560
4805
|
if (message.modelViewId != null && message.hasOwnProperty("modelViewId"))
|
|
4561
4806
|
object.modelViewId = $root.vertexvis.protobuf.core.Uuid2l.toObject(message.modelViewId, options);
|
|
4807
|
+
if (message.itemModelView != null && message.hasOwnProperty("itemModelView"))
|
|
4808
|
+
object.itemModelView = $root.vertexvis.protobuf.stream.ItemModelViewAttributes.toObject(message.itemModelView, options);
|
|
4562
4809
|
return object;
|
|
4563
4810
|
};
|
|
4564
4811
|
|
|
@@ -20885,6 +21132,221 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
20885
21132
|
return SectionPlane;
|
|
20886
21133
|
})();
|
|
20887
21134
|
|
|
21135
|
+
stream.EndCapping = (function() {
|
|
21136
|
+
|
|
21137
|
+
/**
|
|
21138
|
+
* Properties of an EndCapping.
|
|
21139
|
+
* @memberof vertexvis.protobuf.stream
|
|
21140
|
+
* @interface IEndCapping
|
|
21141
|
+
* @property {boolean|null} [enabled] EndCapping enabled
|
|
21142
|
+
* @property {vertexvis.protobuf.core.IRGBi|null} [capColor] EndCapping capColor
|
|
21143
|
+
*/
|
|
21144
|
+
|
|
21145
|
+
/**
|
|
21146
|
+
* Constructs a new EndCapping.
|
|
21147
|
+
* @memberof vertexvis.protobuf.stream
|
|
21148
|
+
* @classdesc Represents an EndCapping.
|
|
21149
|
+
* @implements IEndCapping
|
|
21150
|
+
* @constructor
|
|
21151
|
+
* @param {vertexvis.protobuf.stream.IEndCapping=} [properties] Properties to set
|
|
21152
|
+
*/
|
|
21153
|
+
function EndCapping(properties) {
|
|
21154
|
+
if (properties)
|
|
21155
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21156
|
+
if (properties[keys[i]] != null)
|
|
21157
|
+
this[keys[i]] = properties[keys[i]];
|
|
21158
|
+
}
|
|
21159
|
+
|
|
21160
|
+
/**
|
|
21161
|
+
* EndCapping enabled.
|
|
21162
|
+
* @member {boolean} enabled
|
|
21163
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21164
|
+
* @instance
|
|
21165
|
+
*/
|
|
21166
|
+
EndCapping.prototype.enabled = false;
|
|
21167
|
+
|
|
21168
|
+
/**
|
|
21169
|
+
* EndCapping capColor.
|
|
21170
|
+
* @member {vertexvis.protobuf.core.IRGBi|null|undefined} capColor
|
|
21171
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21172
|
+
* @instance
|
|
21173
|
+
*/
|
|
21174
|
+
EndCapping.prototype.capColor = null;
|
|
21175
|
+
|
|
21176
|
+
/**
|
|
21177
|
+
* Creates a new EndCapping instance using the specified properties.
|
|
21178
|
+
* @function create
|
|
21179
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21180
|
+
* @static
|
|
21181
|
+
* @param {vertexvis.protobuf.stream.IEndCapping=} [properties] Properties to set
|
|
21182
|
+
* @returns {vertexvis.protobuf.stream.EndCapping} EndCapping instance
|
|
21183
|
+
*/
|
|
21184
|
+
EndCapping.create = function create(properties) {
|
|
21185
|
+
return new EndCapping(properties);
|
|
21186
|
+
};
|
|
21187
|
+
|
|
21188
|
+
/**
|
|
21189
|
+
* Encodes the specified EndCapping message. Does not implicitly {@link vertexvis.protobuf.stream.EndCapping.verify|verify} messages.
|
|
21190
|
+
* @function encode
|
|
21191
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21192
|
+
* @static
|
|
21193
|
+
* @param {vertexvis.protobuf.stream.IEndCapping} message EndCapping message or plain object to encode
|
|
21194
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21195
|
+
* @returns {$protobuf.Writer} Writer
|
|
21196
|
+
*/
|
|
21197
|
+
EndCapping.encode = function encode(message, writer) {
|
|
21198
|
+
if (!writer)
|
|
21199
|
+
writer = $Writer.create();
|
|
21200
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
21201
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
21202
|
+
if (message.capColor != null && Object.hasOwnProperty.call(message, "capColor"))
|
|
21203
|
+
$root.vertexvis.protobuf.core.RGBi.encode(message.capColor, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
21204
|
+
return writer;
|
|
21205
|
+
};
|
|
21206
|
+
|
|
21207
|
+
/**
|
|
21208
|
+
* Encodes the specified EndCapping message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.EndCapping.verify|verify} messages.
|
|
21209
|
+
* @function encodeDelimited
|
|
21210
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21211
|
+
* @static
|
|
21212
|
+
* @param {vertexvis.protobuf.stream.IEndCapping} message EndCapping message or plain object to encode
|
|
21213
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
21214
|
+
* @returns {$protobuf.Writer} Writer
|
|
21215
|
+
*/
|
|
21216
|
+
EndCapping.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21217
|
+
return this.encode(message, writer).ldelim();
|
|
21218
|
+
};
|
|
21219
|
+
|
|
21220
|
+
/**
|
|
21221
|
+
* Decodes an EndCapping message from the specified reader or buffer.
|
|
21222
|
+
* @function decode
|
|
21223
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21224
|
+
* @static
|
|
21225
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21226
|
+
* @param {number} [length] Message length if known beforehand
|
|
21227
|
+
* @returns {vertexvis.protobuf.stream.EndCapping} EndCapping
|
|
21228
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21229
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21230
|
+
*/
|
|
21231
|
+
EndCapping.decode = function decode(reader, length) {
|
|
21232
|
+
if (!(reader instanceof $Reader))
|
|
21233
|
+
reader = $Reader.create(reader);
|
|
21234
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.EndCapping();
|
|
21235
|
+
while (reader.pos < end) {
|
|
21236
|
+
let tag = reader.uint32();
|
|
21237
|
+
switch (tag >>> 3) {
|
|
21238
|
+
case 1:
|
|
21239
|
+
message.enabled = reader.bool();
|
|
21240
|
+
break;
|
|
21241
|
+
case 2:
|
|
21242
|
+
message.capColor = $root.vertexvis.protobuf.core.RGBi.decode(reader, reader.uint32());
|
|
21243
|
+
break;
|
|
21244
|
+
default:
|
|
21245
|
+
reader.skipType(tag & 7);
|
|
21246
|
+
break;
|
|
21247
|
+
}
|
|
21248
|
+
}
|
|
21249
|
+
return message;
|
|
21250
|
+
};
|
|
21251
|
+
|
|
21252
|
+
/**
|
|
21253
|
+
* Decodes an EndCapping message from the specified reader or buffer, length delimited.
|
|
21254
|
+
* @function decodeDelimited
|
|
21255
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21256
|
+
* @static
|
|
21257
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
21258
|
+
* @returns {vertexvis.protobuf.stream.EndCapping} EndCapping
|
|
21259
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21260
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21261
|
+
*/
|
|
21262
|
+
EndCapping.decodeDelimited = function decodeDelimited(reader) {
|
|
21263
|
+
if (!(reader instanceof $Reader))
|
|
21264
|
+
reader = new $Reader(reader);
|
|
21265
|
+
return this.decode(reader, reader.uint32());
|
|
21266
|
+
};
|
|
21267
|
+
|
|
21268
|
+
/**
|
|
21269
|
+
* Verifies an EndCapping message.
|
|
21270
|
+
* @function verify
|
|
21271
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21272
|
+
* @static
|
|
21273
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
21274
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
21275
|
+
*/
|
|
21276
|
+
EndCapping.verify = function verify(message) {
|
|
21277
|
+
if (typeof message !== "object" || message === null)
|
|
21278
|
+
return "object expected";
|
|
21279
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
21280
|
+
if (typeof message.enabled !== "boolean")
|
|
21281
|
+
return "enabled: boolean expected";
|
|
21282
|
+
if (message.capColor != null && message.hasOwnProperty("capColor")) {
|
|
21283
|
+
let error = $root.vertexvis.protobuf.core.RGBi.verify(message.capColor);
|
|
21284
|
+
if (error)
|
|
21285
|
+
return "capColor." + error;
|
|
21286
|
+
}
|
|
21287
|
+
return null;
|
|
21288
|
+
};
|
|
21289
|
+
|
|
21290
|
+
/**
|
|
21291
|
+
* Creates an EndCapping message from a plain object. Also converts values to their respective internal types.
|
|
21292
|
+
* @function fromObject
|
|
21293
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21294
|
+
* @static
|
|
21295
|
+
* @param {Object.<string,*>} object Plain object
|
|
21296
|
+
* @returns {vertexvis.protobuf.stream.EndCapping} EndCapping
|
|
21297
|
+
*/
|
|
21298
|
+
EndCapping.fromObject = function fromObject(object) {
|
|
21299
|
+
if (object instanceof $root.vertexvis.protobuf.stream.EndCapping)
|
|
21300
|
+
return object;
|
|
21301
|
+
let message = new $root.vertexvis.protobuf.stream.EndCapping();
|
|
21302
|
+
if (object.enabled != null)
|
|
21303
|
+
message.enabled = Boolean(object.enabled);
|
|
21304
|
+
if (object.capColor != null) {
|
|
21305
|
+
if (typeof object.capColor !== "object")
|
|
21306
|
+
throw TypeError(".vertexvis.protobuf.stream.EndCapping.capColor: object expected");
|
|
21307
|
+
message.capColor = $root.vertexvis.protobuf.core.RGBi.fromObject(object.capColor);
|
|
21308
|
+
}
|
|
21309
|
+
return message;
|
|
21310
|
+
};
|
|
21311
|
+
|
|
21312
|
+
/**
|
|
21313
|
+
* Creates a plain object from an EndCapping message. Also converts values to other types if specified.
|
|
21314
|
+
* @function toObject
|
|
21315
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21316
|
+
* @static
|
|
21317
|
+
* @param {vertexvis.protobuf.stream.EndCapping} message EndCapping
|
|
21318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21319
|
+
* @returns {Object.<string,*>} Plain object
|
|
21320
|
+
*/
|
|
21321
|
+
EndCapping.toObject = function toObject(message, options) {
|
|
21322
|
+
if (!options)
|
|
21323
|
+
options = {};
|
|
21324
|
+
let object = {};
|
|
21325
|
+
if (options.defaults) {
|
|
21326
|
+
object.enabled = false;
|
|
21327
|
+
object.capColor = null;
|
|
21328
|
+
}
|
|
21329
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
21330
|
+
object.enabled = message.enabled;
|
|
21331
|
+
if (message.capColor != null && message.hasOwnProperty("capColor"))
|
|
21332
|
+
object.capColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.capColor, options);
|
|
21333
|
+
return object;
|
|
21334
|
+
};
|
|
21335
|
+
|
|
21336
|
+
/**
|
|
21337
|
+
* Converts this EndCapping to JSON.
|
|
21338
|
+
* @function toJSON
|
|
21339
|
+
* @memberof vertexvis.protobuf.stream.EndCapping
|
|
21340
|
+
* @instance
|
|
21341
|
+
* @returns {Object.<string,*>} JSON object
|
|
21342
|
+
*/
|
|
21343
|
+
EndCapping.prototype.toJSON = function toJSON() {
|
|
21344
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
21345
|
+
};
|
|
21346
|
+
|
|
21347
|
+
return EndCapping;
|
|
21348
|
+
})();
|
|
21349
|
+
|
|
20888
21350
|
stream.CrossSectioning = (function() {
|
|
20889
21351
|
|
|
20890
21352
|
/**
|
|
@@ -20894,6 +21356,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
20894
21356
|
* @property {Array.<vertexvis.protobuf.stream.ISectionPlane>|null} [sectionPlanes] CrossSectioning sectionPlanes
|
|
20895
21357
|
* @property {vertexvis.protobuf.core.IRGBi|null} [highlightColor] CrossSectioning highlightColor
|
|
20896
21358
|
* @property {google.protobuf.IFloatValue|null} [lineWidth] CrossSectioning lineWidth
|
|
21359
|
+
* @property {vertexvis.protobuf.stream.IEndCapping|null} [endCapping] CrossSectioning endCapping
|
|
20897
21360
|
*/
|
|
20898
21361
|
|
|
20899
21362
|
/**
|
|
@@ -20936,6 +21399,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
20936
21399
|
*/
|
|
20937
21400
|
CrossSectioning.prototype.lineWidth = null;
|
|
20938
21401
|
|
|
21402
|
+
/**
|
|
21403
|
+
* CrossSectioning endCapping.
|
|
21404
|
+
* @member {vertexvis.protobuf.stream.IEndCapping|null|undefined} endCapping
|
|
21405
|
+
* @memberof vertexvis.protobuf.stream.CrossSectioning
|
|
21406
|
+
* @instance
|
|
21407
|
+
*/
|
|
21408
|
+
CrossSectioning.prototype.endCapping = null;
|
|
21409
|
+
|
|
20939
21410
|
/**
|
|
20940
21411
|
* Creates a new CrossSectioning instance using the specified properties.
|
|
20941
21412
|
* @function create
|
|
@@ -20967,6 +21438,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
20967
21438
|
$root.vertexvis.protobuf.core.RGBi.encode(message.highlightColor, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20968
21439
|
if (message.lineWidth != null && Object.hasOwnProperty.call(message, "lineWidth"))
|
|
20969
21440
|
$root.google.protobuf.FloatValue.encode(message.lineWidth, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
21441
|
+
if (message.endCapping != null && Object.hasOwnProperty.call(message, "endCapping"))
|
|
21442
|
+
$root.vertexvis.protobuf.stream.EndCapping.encode(message.endCapping, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
20970
21443
|
return writer;
|
|
20971
21444
|
};
|
|
20972
21445
|
|
|
@@ -21012,6 +21485,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21012
21485
|
case 3:
|
|
21013
21486
|
message.lineWidth = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
21014
21487
|
break;
|
|
21488
|
+
case 4:
|
|
21489
|
+
message.endCapping = $root.vertexvis.protobuf.stream.EndCapping.decode(reader, reader.uint32());
|
|
21490
|
+
break;
|
|
21015
21491
|
default:
|
|
21016
21492
|
reader.skipType(tag & 7);
|
|
21017
21493
|
break;
|
|
@@ -21066,6 +21542,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21066
21542
|
if (error)
|
|
21067
21543
|
return "lineWidth." + error;
|
|
21068
21544
|
}
|
|
21545
|
+
if (message.endCapping != null && message.hasOwnProperty("endCapping")) {
|
|
21546
|
+
let error = $root.vertexvis.protobuf.stream.EndCapping.verify(message.endCapping);
|
|
21547
|
+
if (error)
|
|
21548
|
+
return "endCapping." + error;
|
|
21549
|
+
}
|
|
21069
21550
|
return null;
|
|
21070
21551
|
};
|
|
21071
21552
|
|
|
@@ -21101,6 +21582,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21101
21582
|
throw TypeError(".vertexvis.protobuf.stream.CrossSectioning.lineWidth: object expected");
|
|
21102
21583
|
message.lineWidth = $root.google.protobuf.FloatValue.fromObject(object.lineWidth);
|
|
21103
21584
|
}
|
|
21585
|
+
if (object.endCapping != null) {
|
|
21586
|
+
if (typeof object.endCapping !== "object")
|
|
21587
|
+
throw TypeError(".vertexvis.protobuf.stream.CrossSectioning.endCapping: object expected");
|
|
21588
|
+
message.endCapping = $root.vertexvis.protobuf.stream.EndCapping.fromObject(object.endCapping);
|
|
21589
|
+
}
|
|
21104
21590
|
return message;
|
|
21105
21591
|
};
|
|
21106
21592
|
|
|
@@ -21122,6 +21608,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21122
21608
|
if (options.defaults) {
|
|
21123
21609
|
object.highlightColor = null;
|
|
21124
21610
|
object.lineWidth = null;
|
|
21611
|
+
object.endCapping = null;
|
|
21125
21612
|
}
|
|
21126
21613
|
if (message.sectionPlanes && message.sectionPlanes.length) {
|
|
21127
21614
|
object.sectionPlanes = [];
|
|
@@ -21132,6 +21619,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
21132
21619
|
object.highlightColor = $root.vertexvis.protobuf.core.RGBi.toObject(message.highlightColor, options);
|
|
21133
21620
|
if (message.lineWidth != null && message.hasOwnProperty("lineWidth"))
|
|
21134
21621
|
object.lineWidth = $root.google.protobuf.FloatValue.toObject(message.lineWidth, options);
|
|
21622
|
+
if (message.endCapping != null && message.hasOwnProperty("endCapping"))
|
|
21623
|
+
object.endCapping = $root.vertexvis.protobuf.stream.EndCapping.toObject(message.endCapping, options);
|
|
21135
21624
|
return object;
|
|
21136
21625
|
};
|
|
21137
21626
|
|
|
@@ -27588,6 +28077,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27588
28077
|
* @property {google.protobuf.IBytesValue|null} [featureMap] DrawFramePayload featureMap
|
|
27589
28078
|
* @property {boolean|null} [temporalRefinement] DrawFramePayload temporalRefinement
|
|
27590
28079
|
* @property {vertexvis.protobuf.core.IUuid|null} [temporalRefinementCorrelationId] DrawFramePayload temporalRefinementCorrelationId
|
|
28080
|
+
* @property {google.protobuf.IBoolValue|null} [partialFrame] DrawFramePayload partialFrame
|
|
27591
28081
|
*/
|
|
27592
28082
|
|
|
27593
28083
|
/**
|
|
@@ -27678,6 +28168,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27678
28168
|
*/
|
|
27679
28169
|
DrawFramePayload.prototype.temporalRefinementCorrelationId = null;
|
|
27680
28170
|
|
|
28171
|
+
/**
|
|
28172
|
+
* DrawFramePayload partialFrame.
|
|
28173
|
+
* @member {google.protobuf.IBoolValue|null|undefined} partialFrame
|
|
28174
|
+
* @memberof vertexvis.protobuf.stream.DrawFramePayload
|
|
28175
|
+
* @instance
|
|
28176
|
+
*/
|
|
28177
|
+
DrawFramePayload.prototype.partialFrame = null;
|
|
28178
|
+
|
|
27681
28179
|
/**
|
|
27682
28180
|
* Creates a new DrawFramePayload instance using the specified properties.
|
|
27683
28181
|
* @function create
|
|
@@ -27721,6 +28219,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27721
28219
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.temporalRefinement);
|
|
27722
28220
|
if (message.temporalRefinementCorrelationId != null && Object.hasOwnProperty.call(message, "temporalRefinementCorrelationId"))
|
|
27723
28221
|
$root.vertexvis.protobuf.core.Uuid.encode(message.temporalRefinementCorrelationId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
28222
|
+
if (message.partialFrame != null && Object.hasOwnProperty.call(message, "partialFrame"))
|
|
28223
|
+
$root.google.protobuf.BoolValue.encode(message.partialFrame, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
27724
28224
|
return writer;
|
|
27725
28225
|
};
|
|
27726
28226
|
|
|
@@ -27784,6 +28284,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27784
28284
|
case 9:
|
|
27785
28285
|
message.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.decode(reader, reader.uint32());
|
|
27786
28286
|
break;
|
|
28287
|
+
case 10:
|
|
28288
|
+
message.partialFrame = $root.google.protobuf.BoolValue.decode(reader, reader.uint32());
|
|
28289
|
+
break;
|
|
27787
28290
|
default:
|
|
27788
28291
|
reader.skipType(tag & 7);
|
|
27789
28292
|
break;
|
|
@@ -27860,6 +28363,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27860
28363
|
if (error)
|
|
27861
28364
|
return "temporalRefinementCorrelationId." + error;
|
|
27862
28365
|
}
|
|
28366
|
+
if (message.partialFrame != null && message.hasOwnProperty("partialFrame")) {
|
|
28367
|
+
let error = $root.google.protobuf.BoolValue.verify(message.partialFrame);
|
|
28368
|
+
if (error)
|
|
28369
|
+
return "partialFrame." + error;
|
|
28370
|
+
}
|
|
27863
28371
|
return null;
|
|
27864
28372
|
};
|
|
27865
28373
|
|
|
@@ -27916,6 +28424,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27916
28424
|
throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.temporalRefinementCorrelationId: object expected");
|
|
27917
28425
|
message.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.fromObject(object.temporalRefinementCorrelationId);
|
|
27918
28426
|
}
|
|
28427
|
+
if (object.partialFrame != null) {
|
|
28428
|
+
if (typeof object.partialFrame !== "object")
|
|
28429
|
+
throw TypeError(".vertexvis.protobuf.stream.DrawFramePayload.partialFrame: object expected");
|
|
28430
|
+
message.partialFrame = $root.google.protobuf.BoolValue.fromObject(object.partialFrame);
|
|
28431
|
+
}
|
|
27919
28432
|
return message;
|
|
27920
28433
|
};
|
|
27921
28434
|
|
|
@@ -27949,6 +28462,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27949
28462
|
object.featureMap = null;
|
|
27950
28463
|
object.temporalRefinement = false;
|
|
27951
28464
|
object.temporalRefinementCorrelationId = null;
|
|
28465
|
+
object.partialFrame = null;
|
|
27952
28466
|
}
|
|
27953
28467
|
if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber"))
|
|
27954
28468
|
object.sequenceNumber = message.sequenceNumber;
|
|
@@ -27971,6 +28485,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
27971
28485
|
object.temporalRefinement = message.temporalRefinement;
|
|
27972
28486
|
if (message.temporalRefinementCorrelationId != null && message.hasOwnProperty("temporalRefinementCorrelationId"))
|
|
27973
28487
|
object.temporalRefinementCorrelationId = $root.vertexvis.protobuf.core.Uuid.toObject(message.temporalRefinementCorrelationId, options);
|
|
28488
|
+
if (message.partialFrame != null && message.hasOwnProperty("partialFrame"))
|
|
28489
|
+
object.partialFrame = $root.google.protobuf.BoolValue.toObject(message.partialFrame, options);
|
|
27974
28490
|
return object;
|
|
27975
28491
|
};
|
|
27976
28492
|
|
|
@@ -45868,6 +46384,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
45868
46384
|
* @property {vertexvis.protobuf.core.IUuid2l|null} [id] ModelView id
|
|
45869
46385
|
* @property {vertexvis.protobuf.core.IUuid2l|null} [partRevisionId] ModelView partRevisionId
|
|
45870
46386
|
* @property {string|null} [displayName] ModelView displayName
|
|
46387
|
+
* @property {vertexvis.protobuf.core.ICamera|null} [camera] ModelView camera
|
|
45871
46388
|
*/
|
|
45872
46389
|
|
|
45873
46390
|
/**
|
|
@@ -45909,6 +46426,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
45909
46426
|
*/
|
|
45910
46427
|
ModelView.prototype.displayName = "";
|
|
45911
46428
|
|
|
46429
|
+
/**
|
|
46430
|
+
* ModelView camera.
|
|
46431
|
+
* @member {vertexvis.protobuf.core.ICamera|null|undefined} camera
|
|
46432
|
+
* @memberof vertexvis.protobuf.core.ModelView
|
|
46433
|
+
* @instance
|
|
46434
|
+
*/
|
|
46435
|
+
ModelView.prototype.camera = null;
|
|
46436
|
+
|
|
45912
46437
|
/**
|
|
45913
46438
|
* Creates a new ModelView instance using the specified properties.
|
|
45914
46439
|
* @function create
|
|
@@ -45939,6 +46464,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
45939
46464
|
$root.vertexvis.protobuf.core.Uuid2l.encode(message.partRevisionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
45940
46465
|
if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
|
|
45941
46466
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
|
|
46467
|
+
if (message.camera != null && Object.hasOwnProperty.call(message, "camera"))
|
|
46468
|
+
$root.vertexvis.protobuf.core.Camera.encode(message.camera, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45942
46469
|
return writer;
|
|
45943
46470
|
};
|
|
45944
46471
|
|
|
@@ -45982,6 +46509,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
45982
46509
|
case 3:
|
|
45983
46510
|
message.displayName = reader.string();
|
|
45984
46511
|
break;
|
|
46512
|
+
case 4:
|
|
46513
|
+
message.camera = $root.vertexvis.protobuf.core.Camera.decode(reader, reader.uint32());
|
|
46514
|
+
break;
|
|
45985
46515
|
default:
|
|
45986
46516
|
reader.skipType(tag & 7);
|
|
45987
46517
|
break;
|
|
@@ -46030,6 +46560,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46030
46560
|
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
46031
46561
|
if (!$util.isString(message.displayName))
|
|
46032
46562
|
return "displayName: string expected";
|
|
46563
|
+
if (message.camera != null && message.hasOwnProperty("camera")) {
|
|
46564
|
+
let error = $root.vertexvis.protobuf.core.Camera.verify(message.camera);
|
|
46565
|
+
if (error)
|
|
46566
|
+
return "camera." + error;
|
|
46567
|
+
}
|
|
46033
46568
|
return null;
|
|
46034
46569
|
};
|
|
46035
46570
|
|
|
@@ -46057,6 +46592,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46057
46592
|
}
|
|
46058
46593
|
if (object.displayName != null)
|
|
46059
46594
|
message.displayName = String(object.displayName);
|
|
46595
|
+
if (object.camera != null) {
|
|
46596
|
+
if (typeof object.camera !== "object")
|
|
46597
|
+
throw TypeError(".vertexvis.protobuf.core.ModelView.camera: object expected");
|
|
46598
|
+
message.camera = $root.vertexvis.protobuf.core.Camera.fromObject(object.camera);
|
|
46599
|
+
}
|
|
46060
46600
|
return message;
|
|
46061
46601
|
};
|
|
46062
46602
|
|
|
@@ -46077,6 +46617,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46077
46617
|
object.id = null;
|
|
46078
46618
|
object.partRevisionId = null;
|
|
46079
46619
|
object.displayName = "";
|
|
46620
|
+
object.camera = null;
|
|
46080
46621
|
}
|
|
46081
46622
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
46082
46623
|
object.id = $root.vertexvis.protobuf.core.Uuid2l.toObject(message.id, options);
|
|
@@ -46084,6 +46625,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46084
46625
|
object.partRevisionId = $root.vertexvis.protobuf.core.Uuid2l.toObject(message.partRevisionId, options);
|
|
46085
46626
|
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
46086
46627
|
object.displayName = message.displayName;
|
|
46628
|
+
if (message.camera != null && message.hasOwnProperty("camera"))
|
|
46629
|
+
object.camera = $root.vertexvis.protobuf.core.Camera.toObject(message.camera, options);
|
|
46087
46630
|
return object;
|
|
46088
46631
|
};
|
|
46089
46632
|
|
|
@@ -46536,6 +47079,877 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
46536
47079
|
return PmiAnnotation;
|
|
46537
47080
|
})();
|
|
46538
47081
|
|
|
47082
|
+
core.PerspectiveCamera = (function() {
|
|
47083
|
+
|
|
47084
|
+
/**
|
|
47085
|
+
* Properties of a PerspectiveCamera.
|
|
47086
|
+
* @memberof vertexvis.protobuf.core
|
|
47087
|
+
* @interface IPerspectiveCamera
|
|
47088
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [position] PerspectiveCamera position
|
|
47089
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [lookAt] PerspectiveCamera lookAt
|
|
47090
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [up] PerspectiveCamera up
|
|
47091
|
+
* @property {google.protobuf.IFloatValue|null} [fovY] PerspectiveCamera fovY
|
|
47092
|
+
*/
|
|
47093
|
+
|
|
47094
|
+
/**
|
|
47095
|
+
* Constructs a new PerspectiveCamera.
|
|
47096
|
+
* @memberof vertexvis.protobuf.core
|
|
47097
|
+
* @classdesc Represents a PerspectiveCamera.
|
|
47098
|
+
* @implements IPerspectiveCamera
|
|
47099
|
+
* @constructor
|
|
47100
|
+
* @param {vertexvis.protobuf.core.IPerspectiveCamera=} [properties] Properties to set
|
|
47101
|
+
*/
|
|
47102
|
+
function PerspectiveCamera(properties) {
|
|
47103
|
+
if (properties)
|
|
47104
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47105
|
+
if (properties[keys[i]] != null)
|
|
47106
|
+
this[keys[i]] = properties[keys[i]];
|
|
47107
|
+
}
|
|
47108
|
+
|
|
47109
|
+
/**
|
|
47110
|
+
* PerspectiveCamera position.
|
|
47111
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} position
|
|
47112
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47113
|
+
* @instance
|
|
47114
|
+
*/
|
|
47115
|
+
PerspectiveCamera.prototype.position = null;
|
|
47116
|
+
|
|
47117
|
+
/**
|
|
47118
|
+
* PerspectiveCamera lookAt.
|
|
47119
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} lookAt
|
|
47120
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47121
|
+
* @instance
|
|
47122
|
+
*/
|
|
47123
|
+
PerspectiveCamera.prototype.lookAt = null;
|
|
47124
|
+
|
|
47125
|
+
/**
|
|
47126
|
+
* PerspectiveCamera up.
|
|
47127
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} up
|
|
47128
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47129
|
+
* @instance
|
|
47130
|
+
*/
|
|
47131
|
+
PerspectiveCamera.prototype.up = null;
|
|
47132
|
+
|
|
47133
|
+
/**
|
|
47134
|
+
* PerspectiveCamera fovY.
|
|
47135
|
+
* @member {google.protobuf.IFloatValue|null|undefined} fovY
|
|
47136
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47137
|
+
* @instance
|
|
47138
|
+
*/
|
|
47139
|
+
PerspectiveCamera.prototype.fovY = null;
|
|
47140
|
+
|
|
47141
|
+
/**
|
|
47142
|
+
* Creates a new PerspectiveCamera instance using the specified properties.
|
|
47143
|
+
* @function create
|
|
47144
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47145
|
+
* @static
|
|
47146
|
+
* @param {vertexvis.protobuf.core.IPerspectiveCamera=} [properties] Properties to set
|
|
47147
|
+
* @returns {vertexvis.protobuf.core.PerspectiveCamera} PerspectiveCamera instance
|
|
47148
|
+
*/
|
|
47149
|
+
PerspectiveCamera.create = function create(properties) {
|
|
47150
|
+
return new PerspectiveCamera(properties);
|
|
47151
|
+
};
|
|
47152
|
+
|
|
47153
|
+
/**
|
|
47154
|
+
* Encodes the specified PerspectiveCamera message. Does not implicitly {@link vertexvis.protobuf.core.PerspectiveCamera.verify|verify} messages.
|
|
47155
|
+
* @function encode
|
|
47156
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47157
|
+
* @static
|
|
47158
|
+
* @param {vertexvis.protobuf.core.IPerspectiveCamera} message PerspectiveCamera message or plain object to encode
|
|
47159
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47160
|
+
* @returns {$protobuf.Writer} Writer
|
|
47161
|
+
*/
|
|
47162
|
+
PerspectiveCamera.encode = function encode(message, writer) {
|
|
47163
|
+
if (!writer)
|
|
47164
|
+
writer = $Writer.create();
|
|
47165
|
+
if (message.position != null && Object.hasOwnProperty.call(message, "position"))
|
|
47166
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.position, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47167
|
+
if (message.lookAt != null && Object.hasOwnProperty.call(message, "lookAt"))
|
|
47168
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.lookAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
47169
|
+
if (message.up != null && Object.hasOwnProperty.call(message, "up"))
|
|
47170
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.up, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47171
|
+
if (message.fovY != null && Object.hasOwnProperty.call(message, "fovY"))
|
|
47172
|
+
$root.google.protobuf.FloatValue.encode(message.fovY, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
47173
|
+
return writer;
|
|
47174
|
+
};
|
|
47175
|
+
|
|
47176
|
+
/**
|
|
47177
|
+
* Encodes the specified PerspectiveCamera message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.PerspectiveCamera.verify|verify} messages.
|
|
47178
|
+
* @function encodeDelimited
|
|
47179
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47180
|
+
* @static
|
|
47181
|
+
* @param {vertexvis.protobuf.core.IPerspectiveCamera} message PerspectiveCamera message or plain object to encode
|
|
47182
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47183
|
+
* @returns {$protobuf.Writer} Writer
|
|
47184
|
+
*/
|
|
47185
|
+
PerspectiveCamera.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47186
|
+
return this.encode(message, writer).ldelim();
|
|
47187
|
+
};
|
|
47188
|
+
|
|
47189
|
+
/**
|
|
47190
|
+
* Decodes a PerspectiveCamera message from the specified reader or buffer.
|
|
47191
|
+
* @function decode
|
|
47192
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47193
|
+
* @static
|
|
47194
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47195
|
+
* @param {number} [length] Message length if known beforehand
|
|
47196
|
+
* @returns {vertexvis.protobuf.core.PerspectiveCamera} PerspectiveCamera
|
|
47197
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47198
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47199
|
+
*/
|
|
47200
|
+
PerspectiveCamera.decode = function decode(reader, length) {
|
|
47201
|
+
if (!(reader instanceof $Reader))
|
|
47202
|
+
reader = $Reader.create(reader);
|
|
47203
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.PerspectiveCamera();
|
|
47204
|
+
while (reader.pos < end) {
|
|
47205
|
+
let tag = reader.uint32();
|
|
47206
|
+
switch (tag >>> 3) {
|
|
47207
|
+
case 1:
|
|
47208
|
+
message.position = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47209
|
+
break;
|
|
47210
|
+
case 2:
|
|
47211
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47212
|
+
break;
|
|
47213
|
+
case 3:
|
|
47214
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47215
|
+
break;
|
|
47216
|
+
case 4:
|
|
47217
|
+
message.fovY = $root.google.protobuf.FloatValue.decode(reader, reader.uint32());
|
|
47218
|
+
break;
|
|
47219
|
+
default:
|
|
47220
|
+
reader.skipType(tag & 7);
|
|
47221
|
+
break;
|
|
47222
|
+
}
|
|
47223
|
+
}
|
|
47224
|
+
return message;
|
|
47225
|
+
};
|
|
47226
|
+
|
|
47227
|
+
/**
|
|
47228
|
+
* Decodes a PerspectiveCamera message from the specified reader or buffer, length delimited.
|
|
47229
|
+
* @function decodeDelimited
|
|
47230
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47231
|
+
* @static
|
|
47232
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47233
|
+
* @returns {vertexvis.protobuf.core.PerspectiveCamera} PerspectiveCamera
|
|
47234
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47235
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47236
|
+
*/
|
|
47237
|
+
PerspectiveCamera.decodeDelimited = function decodeDelimited(reader) {
|
|
47238
|
+
if (!(reader instanceof $Reader))
|
|
47239
|
+
reader = new $Reader(reader);
|
|
47240
|
+
return this.decode(reader, reader.uint32());
|
|
47241
|
+
};
|
|
47242
|
+
|
|
47243
|
+
/**
|
|
47244
|
+
* Verifies a PerspectiveCamera message.
|
|
47245
|
+
* @function verify
|
|
47246
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47247
|
+
* @static
|
|
47248
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47249
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47250
|
+
*/
|
|
47251
|
+
PerspectiveCamera.verify = function verify(message) {
|
|
47252
|
+
if (typeof message !== "object" || message === null)
|
|
47253
|
+
return "object expected";
|
|
47254
|
+
if (message.position != null && message.hasOwnProperty("position")) {
|
|
47255
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.position);
|
|
47256
|
+
if (error)
|
|
47257
|
+
return "position." + error;
|
|
47258
|
+
}
|
|
47259
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt")) {
|
|
47260
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.lookAt);
|
|
47261
|
+
if (error)
|
|
47262
|
+
return "lookAt." + error;
|
|
47263
|
+
}
|
|
47264
|
+
if (message.up != null && message.hasOwnProperty("up")) {
|
|
47265
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.up);
|
|
47266
|
+
if (error)
|
|
47267
|
+
return "up." + error;
|
|
47268
|
+
}
|
|
47269
|
+
if (message.fovY != null && message.hasOwnProperty("fovY")) {
|
|
47270
|
+
let error = $root.google.protobuf.FloatValue.verify(message.fovY);
|
|
47271
|
+
if (error)
|
|
47272
|
+
return "fovY." + error;
|
|
47273
|
+
}
|
|
47274
|
+
return null;
|
|
47275
|
+
};
|
|
47276
|
+
|
|
47277
|
+
/**
|
|
47278
|
+
* Creates a PerspectiveCamera message from a plain object. Also converts values to their respective internal types.
|
|
47279
|
+
* @function fromObject
|
|
47280
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47281
|
+
* @static
|
|
47282
|
+
* @param {Object.<string,*>} object Plain object
|
|
47283
|
+
* @returns {vertexvis.protobuf.core.PerspectiveCamera} PerspectiveCamera
|
|
47284
|
+
*/
|
|
47285
|
+
PerspectiveCamera.fromObject = function fromObject(object) {
|
|
47286
|
+
if (object instanceof $root.vertexvis.protobuf.core.PerspectiveCamera)
|
|
47287
|
+
return object;
|
|
47288
|
+
let message = new $root.vertexvis.protobuf.core.PerspectiveCamera();
|
|
47289
|
+
if (object.position != null) {
|
|
47290
|
+
if (typeof object.position !== "object")
|
|
47291
|
+
throw TypeError(".vertexvis.protobuf.core.PerspectiveCamera.position: object expected");
|
|
47292
|
+
message.position = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.position);
|
|
47293
|
+
}
|
|
47294
|
+
if (object.lookAt != null) {
|
|
47295
|
+
if (typeof object.lookAt !== "object")
|
|
47296
|
+
throw TypeError(".vertexvis.protobuf.core.PerspectiveCamera.lookAt: object expected");
|
|
47297
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.lookAt);
|
|
47298
|
+
}
|
|
47299
|
+
if (object.up != null) {
|
|
47300
|
+
if (typeof object.up !== "object")
|
|
47301
|
+
throw TypeError(".vertexvis.protobuf.core.PerspectiveCamera.up: object expected");
|
|
47302
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.up);
|
|
47303
|
+
}
|
|
47304
|
+
if (object.fovY != null) {
|
|
47305
|
+
if (typeof object.fovY !== "object")
|
|
47306
|
+
throw TypeError(".vertexvis.protobuf.core.PerspectiveCamera.fovY: object expected");
|
|
47307
|
+
message.fovY = $root.google.protobuf.FloatValue.fromObject(object.fovY);
|
|
47308
|
+
}
|
|
47309
|
+
return message;
|
|
47310
|
+
};
|
|
47311
|
+
|
|
47312
|
+
/**
|
|
47313
|
+
* Creates a plain object from a PerspectiveCamera message. Also converts values to other types if specified.
|
|
47314
|
+
* @function toObject
|
|
47315
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47316
|
+
* @static
|
|
47317
|
+
* @param {vertexvis.protobuf.core.PerspectiveCamera} message PerspectiveCamera
|
|
47318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47319
|
+
* @returns {Object.<string,*>} Plain object
|
|
47320
|
+
*/
|
|
47321
|
+
PerspectiveCamera.toObject = function toObject(message, options) {
|
|
47322
|
+
if (!options)
|
|
47323
|
+
options = {};
|
|
47324
|
+
let object = {};
|
|
47325
|
+
if (options.defaults) {
|
|
47326
|
+
object.position = null;
|
|
47327
|
+
object.lookAt = null;
|
|
47328
|
+
object.up = null;
|
|
47329
|
+
object.fovY = null;
|
|
47330
|
+
}
|
|
47331
|
+
if (message.position != null && message.hasOwnProperty("position"))
|
|
47332
|
+
object.position = $root.vertexvis.protobuf.core.Vector3f.toObject(message.position, options);
|
|
47333
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt"))
|
|
47334
|
+
object.lookAt = $root.vertexvis.protobuf.core.Vector3f.toObject(message.lookAt, options);
|
|
47335
|
+
if (message.up != null && message.hasOwnProperty("up"))
|
|
47336
|
+
object.up = $root.vertexvis.protobuf.core.Vector3f.toObject(message.up, options);
|
|
47337
|
+
if (message.fovY != null && message.hasOwnProperty("fovY"))
|
|
47338
|
+
object.fovY = $root.google.protobuf.FloatValue.toObject(message.fovY, options);
|
|
47339
|
+
return object;
|
|
47340
|
+
};
|
|
47341
|
+
|
|
47342
|
+
/**
|
|
47343
|
+
* Converts this PerspectiveCamera to JSON.
|
|
47344
|
+
* @function toJSON
|
|
47345
|
+
* @memberof vertexvis.protobuf.core.PerspectiveCamera
|
|
47346
|
+
* @instance
|
|
47347
|
+
* @returns {Object.<string,*>} JSON object
|
|
47348
|
+
*/
|
|
47349
|
+
PerspectiveCamera.prototype.toJSON = function toJSON() {
|
|
47350
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
47351
|
+
};
|
|
47352
|
+
|
|
47353
|
+
return PerspectiveCamera;
|
|
47354
|
+
})();
|
|
47355
|
+
|
|
47356
|
+
core.OrthographicCamera = (function() {
|
|
47357
|
+
|
|
47358
|
+
/**
|
|
47359
|
+
* Properties of an OrthographicCamera.
|
|
47360
|
+
* @memberof vertexvis.protobuf.core
|
|
47361
|
+
* @interface IOrthographicCamera
|
|
47362
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [viewVector] OrthographicCamera viewVector
|
|
47363
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [lookAt] OrthographicCamera lookAt
|
|
47364
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [up] OrthographicCamera up
|
|
47365
|
+
* @property {number|null} [fovHeight] OrthographicCamera fovHeight
|
|
47366
|
+
*/
|
|
47367
|
+
|
|
47368
|
+
/**
|
|
47369
|
+
* Constructs a new OrthographicCamera.
|
|
47370
|
+
* @memberof vertexvis.protobuf.core
|
|
47371
|
+
* @classdesc Represents an OrthographicCamera.
|
|
47372
|
+
* @implements IOrthographicCamera
|
|
47373
|
+
* @constructor
|
|
47374
|
+
* @param {vertexvis.protobuf.core.IOrthographicCamera=} [properties] Properties to set
|
|
47375
|
+
*/
|
|
47376
|
+
function OrthographicCamera(properties) {
|
|
47377
|
+
if (properties)
|
|
47378
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47379
|
+
if (properties[keys[i]] != null)
|
|
47380
|
+
this[keys[i]] = properties[keys[i]];
|
|
47381
|
+
}
|
|
47382
|
+
|
|
47383
|
+
/**
|
|
47384
|
+
* OrthographicCamera viewVector.
|
|
47385
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} viewVector
|
|
47386
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47387
|
+
* @instance
|
|
47388
|
+
*/
|
|
47389
|
+
OrthographicCamera.prototype.viewVector = null;
|
|
47390
|
+
|
|
47391
|
+
/**
|
|
47392
|
+
* OrthographicCamera lookAt.
|
|
47393
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} lookAt
|
|
47394
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47395
|
+
* @instance
|
|
47396
|
+
*/
|
|
47397
|
+
OrthographicCamera.prototype.lookAt = null;
|
|
47398
|
+
|
|
47399
|
+
/**
|
|
47400
|
+
* OrthographicCamera up.
|
|
47401
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} up
|
|
47402
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47403
|
+
* @instance
|
|
47404
|
+
*/
|
|
47405
|
+
OrthographicCamera.prototype.up = null;
|
|
47406
|
+
|
|
47407
|
+
/**
|
|
47408
|
+
* OrthographicCamera fovHeight.
|
|
47409
|
+
* @member {number} fovHeight
|
|
47410
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47411
|
+
* @instance
|
|
47412
|
+
*/
|
|
47413
|
+
OrthographicCamera.prototype.fovHeight = 0;
|
|
47414
|
+
|
|
47415
|
+
/**
|
|
47416
|
+
* Creates a new OrthographicCamera instance using the specified properties.
|
|
47417
|
+
* @function create
|
|
47418
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47419
|
+
* @static
|
|
47420
|
+
* @param {vertexvis.protobuf.core.IOrthographicCamera=} [properties] Properties to set
|
|
47421
|
+
* @returns {vertexvis.protobuf.core.OrthographicCamera} OrthographicCamera instance
|
|
47422
|
+
*/
|
|
47423
|
+
OrthographicCamera.create = function create(properties) {
|
|
47424
|
+
return new OrthographicCamera(properties);
|
|
47425
|
+
};
|
|
47426
|
+
|
|
47427
|
+
/**
|
|
47428
|
+
* Encodes the specified OrthographicCamera message. Does not implicitly {@link vertexvis.protobuf.core.OrthographicCamera.verify|verify} messages.
|
|
47429
|
+
* @function encode
|
|
47430
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47431
|
+
* @static
|
|
47432
|
+
* @param {vertexvis.protobuf.core.IOrthographicCamera} message OrthographicCamera message or plain object to encode
|
|
47433
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47434
|
+
* @returns {$protobuf.Writer} Writer
|
|
47435
|
+
*/
|
|
47436
|
+
OrthographicCamera.encode = function encode(message, writer) {
|
|
47437
|
+
if (!writer)
|
|
47438
|
+
writer = $Writer.create();
|
|
47439
|
+
if (message.viewVector != null && Object.hasOwnProperty.call(message, "viewVector"))
|
|
47440
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.viewVector, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47441
|
+
if (message.lookAt != null && Object.hasOwnProperty.call(message, "lookAt"))
|
|
47442
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.lookAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
47443
|
+
if (message.up != null && Object.hasOwnProperty.call(message, "up"))
|
|
47444
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.up, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47445
|
+
if (message.fovHeight != null && Object.hasOwnProperty.call(message, "fovHeight"))
|
|
47446
|
+
writer.uint32(/* id 4, wireType 5 =*/37).float(message.fovHeight);
|
|
47447
|
+
return writer;
|
|
47448
|
+
};
|
|
47449
|
+
|
|
47450
|
+
/**
|
|
47451
|
+
* Encodes the specified OrthographicCamera message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.OrthographicCamera.verify|verify} messages.
|
|
47452
|
+
* @function encodeDelimited
|
|
47453
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47454
|
+
* @static
|
|
47455
|
+
* @param {vertexvis.protobuf.core.IOrthographicCamera} message OrthographicCamera message or plain object to encode
|
|
47456
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47457
|
+
* @returns {$protobuf.Writer} Writer
|
|
47458
|
+
*/
|
|
47459
|
+
OrthographicCamera.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47460
|
+
return this.encode(message, writer).ldelim();
|
|
47461
|
+
};
|
|
47462
|
+
|
|
47463
|
+
/**
|
|
47464
|
+
* Decodes an OrthographicCamera message from the specified reader or buffer.
|
|
47465
|
+
* @function decode
|
|
47466
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47467
|
+
* @static
|
|
47468
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47469
|
+
* @param {number} [length] Message length if known beforehand
|
|
47470
|
+
* @returns {vertexvis.protobuf.core.OrthographicCamera} OrthographicCamera
|
|
47471
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47472
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47473
|
+
*/
|
|
47474
|
+
OrthographicCamera.decode = function decode(reader, length) {
|
|
47475
|
+
if (!(reader instanceof $Reader))
|
|
47476
|
+
reader = $Reader.create(reader);
|
|
47477
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.OrthographicCamera();
|
|
47478
|
+
while (reader.pos < end) {
|
|
47479
|
+
let tag = reader.uint32();
|
|
47480
|
+
switch (tag >>> 3) {
|
|
47481
|
+
case 1:
|
|
47482
|
+
message.viewVector = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47483
|
+
break;
|
|
47484
|
+
case 2:
|
|
47485
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47486
|
+
break;
|
|
47487
|
+
case 3:
|
|
47488
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47489
|
+
break;
|
|
47490
|
+
case 4:
|
|
47491
|
+
message.fovHeight = reader.float();
|
|
47492
|
+
break;
|
|
47493
|
+
default:
|
|
47494
|
+
reader.skipType(tag & 7);
|
|
47495
|
+
break;
|
|
47496
|
+
}
|
|
47497
|
+
}
|
|
47498
|
+
return message;
|
|
47499
|
+
};
|
|
47500
|
+
|
|
47501
|
+
/**
|
|
47502
|
+
* Decodes an OrthographicCamera message from the specified reader or buffer, length delimited.
|
|
47503
|
+
* @function decodeDelimited
|
|
47504
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47505
|
+
* @static
|
|
47506
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47507
|
+
* @returns {vertexvis.protobuf.core.OrthographicCamera} OrthographicCamera
|
|
47508
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47509
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47510
|
+
*/
|
|
47511
|
+
OrthographicCamera.decodeDelimited = function decodeDelimited(reader) {
|
|
47512
|
+
if (!(reader instanceof $Reader))
|
|
47513
|
+
reader = new $Reader(reader);
|
|
47514
|
+
return this.decode(reader, reader.uint32());
|
|
47515
|
+
};
|
|
47516
|
+
|
|
47517
|
+
/**
|
|
47518
|
+
* Verifies an OrthographicCamera message.
|
|
47519
|
+
* @function verify
|
|
47520
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47521
|
+
* @static
|
|
47522
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47523
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47524
|
+
*/
|
|
47525
|
+
OrthographicCamera.verify = function verify(message) {
|
|
47526
|
+
if (typeof message !== "object" || message === null)
|
|
47527
|
+
return "object expected";
|
|
47528
|
+
if (message.viewVector != null && message.hasOwnProperty("viewVector")) {
|
|
47529
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.viewVector);
|
|
47530
|
+
if (error)
|
|
47531
|
+
return "viewVector." + error;
|
|
47532
|
+
}
|
|
47533
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt")) {
|
|
47534
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.lookAt);
|
|
47535
|
+
if (error)
|
|
47536
|
+
return "lookAt." + error;
|
|
47537
|
+
}
|
|
47538
|
+
if (message.up != null && message.hasOwnProperty("up")) {
|
|
47539
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.up);
|
|
47540
|
+
if (error)
|
|
47541
|
+
return "up." + error;
|
|
47542
|
+
}
|
|
47543
|
+
if (message.fovHeight != null && message.hasOwnProperty("fovHeight"))
|
|
47544
|
+
if (typeof message.fovHeight !== "number")
|
|
47545
|
+
return "fovHeight: number expected";
|
|
47546
|
+
return null;
|
|
47547
|
+
};
|
|
47548
|
+
|
|
47549
|
+
/**
|
|
47550
|
+
* Creates an OrthographicCamera message from a plain object. Also converts values to their respective internal types.
|
|
47551
|
+
* @function fromObject
|
|
47552
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47553
|
+
* @static
|
|
47554
|
+
* @param {Object.<string,*>} object Plain object
|
|
47555
|
+
* @returns {vertexvis.protobuf.core.OrthographicCamera} OrthographicCamera
|
|
47556
|
+
*/
|
|
47557
|
+
OrthographicCamera.fromObject = function fromObject(object) {
|
|
47558
|
+
if (object instanceof $root.vertexvis.protobuf.core.OrthographicCamera)
|
|
47559
|
+
return object;
|
|
47560
|
+
let message = new $root.vertexvis.protobuf.core.OrthographicCamera();
|
|
47561
|
+
if (object.viewVector != null) {
|
|
47562
|
+
if (typeof object.viewVector !== "object")
|
|
47563
|
+
throw TypeError(".vertexvis.protobuf.core.OrthographicCamera.viewVector: object expected");
|
|
47564
|
+
message.viewVector = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.viewVector);
|
|
47565
|
+
}
|
|
47566
|
+
if (object.lookAt != null) {
|
|
47567
|
+
if (typeof object.lookAt !== "object")
|
|
47568
|
+
throw TypeError(".vertexvis.protobuf.core.OrthographicCamera.lookAt: object expected");
|
|
47569
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.lookAt);
|
|
47570
|
+
}
|
|
47571
|
+
if (object.up != null) {
|
|
47572
|
+
if (typeof object.up !== "object")
|
|
47573
|
+
throw TypeError(".vertexvis.protobuf.core.OrthographicCamera.up: object expected");
|
|
47574
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.up);
|
|
47575
|
+
}
|
|
47576
|
+
if (object.fovHeight != null)
|
|
47577
|
+
message.fovHeight = Number(object.fovHeight);
|
|
47578
|
+
return message;
|
|
47579
|
+
};
|
|
47580
|
+
|
|
47581
|
+
/**
|
|
47582
|
+
* Creates a plain object from an OrthographicCamera message. Also converts values to other types if specified.
|
|
47583
|
+
* @function toObject
|
|
47584
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47585
|
+
* @static
|
|
47586
|
+
* @param {vertexvis.protobuf.core.OrthographicCamera} message OrthographicCamera
|
|
47587
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47588
|
+
* @returns {Object.<string,*>} Plain object
|
|
47589
|
+
*/
|
|
47590
|
+
OrthographicCamera.toObject = function toObject(message, options) {
|
|
47591
|
+
if (!options)
|
|
47592
|
+
options = {};
|
|
47593
|
+
let object = {};
|
|
47594
|
+
if (options.defaults) {
|
|
47595
|
+
object.viewVector = null;
|
|
47596
|
+
object.lookAt = null;
|
|
47597
|
+
object.up = null;
|
|
47598
|
+
object.fovHeight = 0;
|
|
47599
|
+
}
|
|
47600
|
+
if (message.viewVector != null && message.hasOwnProperty("viewVector"))
|
|
47601
|
+
object.viewVector = $root.vertexvis.protobuf.core.Vector3f.toObject(message.viewVector, options);
|
|
47602
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt"))
|
|
47603
|
+
object.lookAt = $root.vertexvis.protobuf.core.Vector3f.toObject(message.lookAt, options);
|
|
47604
|
+
if (message.up != null && message.hasOwnProperty("up"))
|
|
47605
|
+
object.up = $root.vertexvis.protobuf.core.Vector3f.toObject(message.up, options);
|
|
47606
|
+
if (message.fovHeight != null && message.hasOwnProperty("fovHeight"))
|
|
47607
|
+
object.fovHeight = options.json && !isFinite(message.fovHeight) ? String(message.fovHeight) : message.fovHeight;
|
|
47608
|
+
return object;
|
|
47609
|
+
};
|
|
47610
|
+
|
|
47611
|
+
/**
|
|
47612
|
+
* Converts this OrthographicCamera to JSON.
|
|
47613
|
+
* @function toJSON
|
|
47614
|
+
* @memberof vertexvis.protobuf.core.OrthographicCamera
|
|
47615
|
+
* @instance
|
|
47616
|
+
* @returns {Object.<string,*>} JSON object
|
|
47617
|
+
*/
|
|
47618
|
+
OrthographicCamera.prototype.toJSON = function toJSON() {
|
|
47619
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
47620
|
+
};
|
|
47621
|
+
|
|
47622
|
+
return OrthographicCamera;
|
|
47623
|
+
})();
|
|
47624
|
+
|
|
47625
|
+
core.Camera = (function() {
|
|
47626
|
+
|
|
47627
|
+
/**
|
|
47628
|
+
* Properties of a Camera.
|
|
47629
|
+
* @memberof vertexvis.protobuf.core
|
|
47630
|
+
* @interface ICamera
|
|
47631
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [position] Camera position
|
|
47632
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [lookAt] Camera lookAt
|
|
47633
|
+
* @property {vertexvis.protobuf.core.IVector3f|null} [up] Camera up
|
|
47634
|
+
* @property {vertexvis.protobuf.core.IPerspectiveCamera|null} [perspective] Camera perspective
|
|
47635
|
+
* @property {vertexvis.protobuf.core.IOrthographicCamera|null} [orthographic] Camera orthographic
|
|
47636
|
+
*/
|
|
47637
|
+
|
|
47638
|
+
/**
|
|
47639
|
+
* Constructs a new Camera.
|
|
47640
|
+
* @memberof vertexvis.protobuf.core
|
|
47641
|
+
* @classdesc Represents a Camera.
|
|
47642
|
+
* @implements ICamera
|
|
47643
|
+
* @constructor
|
|
47644
|
+
* @param {vertexvis.protobuf.core.ICamera=} [properties] Properties to set
|
|
47645
|
+
*/
|
|
47646
|
+
function Camera(properties) {
|
|
47647
|
+
if (properties)
|
|
47648
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47649
|
+
if (properties[keys[i]] != null)
|
|
47650
|
+
this[keys[i]] = properties[keys[i]];
|
|
47651
|
+
}
|
|
47652
|
+
|
|
47653
|
+
/**
|
|
47654
|
+
* Camera position.
|
|
47655
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} position
|
|
47656
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47657
|
+
* @instance
|
|
47658
|
+
*/
|
|
47659
|
+
Camera.prototype.position = null;
|
|
47660
|
+
|
|
47661
|
+
/**
|
|
47662
|
+
* Camera lookAt.
|
|
47663
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} lookAt
|
|
47664
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47665
|
+
* @instance
|
|
47666
|
+
*/
|
|
47667
|
+
Camera.prototype.lookAt = null;
|
|
47668
|
+
|
|
47669
|
+
/**
|
|
47670
|
+
* Camera up.
|
|
47671
|
+
* @member {vertexvis.protobuf.core.IVector3f|null|undefined} up
|
|
47672
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47673
|
+
* @instance
|
|
47674
|
+
*/
|
|
47675
|
+
Camera.prototype.up = null;
|
|
47676
|
+
|
|
47677
|
+
/**
|
|
47678
|
+
* Camera perspective.
|
|
47679
|
+
* @member {vertexvis.protobuf.core.IPerspectiveCamera|null|undefined} perspective
|
|
47680
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47681
|
+
* @instance
|
|
47682
|
+
*/
|
|
47683
|
+
Camera.prototype.perspective = null;
|
|
47684
|
+
|
|
47685
|
+
/**
|
|
47686
|
+
* Camera orthographic.
|
|
47687
|
+
* @member {vertexvis.protobuf.core.IOrthographicCamera|null|undefined} orthographic
|
|
47688
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47689
|
+
* @instance
|
|
47690
|
+
*/
|
|
47691
|
+
Camera.prototype.orthographic = null;
|
|
47692
|
+
|
|
47693
|
+
// OneOf field names bound to virtual getters and setters
|
|
47694
|
+
let $oneOfFields;
|
|
47695
|
+
|
|
47696
|
+
/**
|
|
47697
|
+
* Camera type.
|
|
47698
|
+
* @member {"perspective"|"orthographic"|undefined} type
|
|
47699
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47700
|
+
* @instance
|
|
47701
|
+
*/
|
|
47702
|
+
Object.defineProperty(Camera.prototype, "type", {
|
|
47703
|
+
get: $util.oneOfGetter($oneOfFields = ["perspective", "orthographic"]),
|
|
47704
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47705
|
+
});
|
|
47706
|
+
|
|
47707
|
+
/**
|
|
47708
|
+
* Creates a new Camera instance using the specified properties.
|
|
47709
|
+
* @function create
|
|
47710
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47711
|
+
* @static
|
|
47712
|
+
* @param {vertexvis.protobuf.core.ICamera=} [properties] Properties to set
|
|
47713
|
+
* @returns {vertexvis.protobuf.core.Camera} Camera instance
|
|
47714
|
+
*/
|
|
47715
|
+
Camera.create = function create(properties) {
|
|
47716
|
+
return new Camera(properties);
|
|
47717
|
+
};
|
|
47718
|
+
|
|
47719
|
+
/**
|
|
47720
|
+
* Encodes the specified Camera message. Does not implicitly {@link vertexvis.protobuf.core.Camera.verify|verify} messages.
|
|
47721
|
+
* @function encode
|
|
47722
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47723
|
+
* @static
|
|
47724
|
+
* @param {vertexvis.protobuf.core.ICamera} message Camera message or plain object to encode
|
|
47725
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47726
|
+
* @returns {$protobuf.Writer} Writer
|
|
47727
|
+
*/
|
|
47728
|
+
Camera.encode = function encode(message, writer) {
|
|
47729
|
+
if (!writer)
|
|
47730
|
+
writer = $Writer.create();
|
|
47731
|
+
if (message.position != null && Object.hasOwnProperty.call(message, "position"))
|
|
47732
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.position, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
47733
|
+
if (message.lookAt != null && Object.hasOwnProperty.call(message, "lookAt"))
|
|
47734
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.lookAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
47735
|
+
if (message.up != null && Object.hasOwnProperty.call(message, "up"))
|
|
47736
|
+
$root.vertexvis.protobuf.core.Vector3f.encode(message.up, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47737
|
+
if (message.perspective != null && Object.hasOwnProperty.call(message, "perspective"))
|
|
47738
|
+
$root.vertexvis.protobuf.core.PerspectiveCamera.encode(message.perspective, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
47739
|
+
if (message.orthographic != null && Object.hasOwnProperty.call(message, "orthographic"))
|
|
47740
|
+
$root.vertexvis.protobuf.core.OrthographicCamera.encode(message.orthographic, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
47741
|
+
return writer;
|
|
47742
|
+
};
|
|
47743
|
+
|
|
47744
|
+
/**
|
|
47745
|
+
* Encodes the specified Camera message, length delimited. Does not implicitly {@link vertexvis.protobuf.core.Camera.verify|verify} messages.
|
|
47746
|
+
* @function encodeDelimited
|
|
47747
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47748
|
+
* @static
|
|
47749
|
+
* @param {vertexvis.protobuf.core.ICamera} message Camera message or plain object to encode
|
|
47750
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47751
|
+
* @returns {$protobuf.Writer} Writer
|
|
47752
|
+
*/
|
|
47753
|
+
Camera.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47754
|
+
return this.encode(message, writer).ldelim();
|
|
47755
|
+
};
|
|
47756
|
+
|
|
47757
|
+
/**
|
|
47758
|
+
* Decodes a Camera message from the specified reader or buffer.
|
|
47759
|
+
* @function decode
|
|
47760
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47761
|
+
* @static
|
|
47762
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47763
|
+
* @param {number} [length] Message length if known beforehand
|
|
47764
|
+
* @returns {vertexvis.protobuf.core.Camera} Camera
|
|
47765
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47766
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47767
|
+
*/
|
|
47768
|
+
Camera.decode = function decode(reader, length) {
|
|
47769
|
+
if (!(reader instanceof $Reader))
|
|
47770
|
+
reader = $Reader.create(reader);
|
|
47771
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.core.Camera();
|
|
47772
|
+
while (reader.pos < end) {
|
|
47773
|
+
let tag = reader.uint32();
|
|
47774
|
+
switch (tag >>> 3) {
|
|
47775
|
+
case 1:
|
|
47776
|
+
message.position = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47777
|
+
break;
|
|
47778
|
+
case 2:
|
|
47779
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47780
|
+
break;
|
|
47781
|
+
case 3:
|
|
47782
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.decode(reader, reader.uint32());
|
|
47783
|
+
break;
|
|
47784
|
+
case 4:
|
|
47785
|
+
message.perspective = $root.vertexvis.protobuf.core.PerspectiveCamera.decode(reader, reader.uint32());
|
|
47786
|
+
break;
|
|
47787
|
+
case 5:
|
|
47788
|
+
message.orthographic = $root.vertexvis.protobuf.core.OrthographicCamera.decode(reader, reader.uint32());
|
|
47789
|
+
break;
|
|
47790
|
+
default:
|
|
47791
|
+
reader.skipType(tag & 7);
|
|
47792
|
+
break;
|
|
47793
|
+
}
|
|
47794
|
+
}
|
|
47795
|
+
return message;
|
|
47796
|
+
};
|
|
47797
|
+
|
|
47798
|
+
/**
|
|
47799
|
+
* Decodes a Camera message from the specified reader or buffer, length delimited.
|
|
47800
|
+
* @function decodeDelimited
|
|
47801
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47802
|
+
* @static
|
|
47803
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47804
|
+
* @returns {vertexvis.protobuf.core.Camera} Camera
|
|
47805
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47806
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47807
|
+
*/
|
|
47808
|
+
Camera.decodeDelimited = function decodeDelimited(reader) {
|
|
47809
|
+
if (!(reader instanceof $Reader))
|
|
47810
|
+
reader = new $Reader(reader);
|
|
47811
|
+
return this.decode(reader, reader.uint32());
|
|
47812
|
+
};
|
|
47813
|
+
|
|
47814
|
+
/**
|
|
47815
|
+
* Verifies a Camera message.
|
|
47816
|
+
* @function verify
|
|
47817
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47818
|
+
* @static
|
|
47819
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47820
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47821
|
+
*/
|
|
47822
|
+
Camera.verify = function verify(message) {
|
|
47823
|
+
if (typeof message !== "object" || message === null)
|
|
47824
|
+
return "object expected";
|
|
47825
|
+
let properties = {};
|
|
47826
|
+
if (message.position != null && message.hasOwnProperty("position")) {
|
|
47827
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.position);
|
|
47828
|
+
if (error)
|
|
47829
|
+
return "position." + error;
|
|
47830
|
+
}
|
|
47831
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt")) {
|
|
47832
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.lookAt);
|
|
47833
|
+
if (error)
|
|
47834
|
+
return "lookAt." + error;
|
|
47835
|
+
}
|
|
47836
|
+
if (message.up != null && message.hasOwnProperty("up")) {
|
|
47837
|
+
let error = $root.vertexvis.protobuf.core.Vector3f.verify(message.up);
|
|
47838
|
+
if (error)
|
|
47839
|
+
return "up." + error;
|
|
47840
|
+
}
|
|
47841
|
+
if (message.perspective != null && message.hasOwnProperty("perspective")) {
|
|
47842
|
+
properties.type = 1;
|
|
47843
|
+
{
|
|
47844
|
+
let error = $root.vertexvis.protobuf.core.PerspectiveCamera.verify(message.perspective);
|
|
47845
|
+
if (error)
|
|
47846
|
+
return "perspective." + error;
|
|
47847
|
+
}
|
|
47848
|
+
}
|
|
47849
|
+
if (message.orthographic != null && message.hasOwnProperty("orthographic")) {
|
|
47850
|
+
if (properties.type === 1)
|
|
47851
|
+
return "type: multiple values";
|
|
47852
|
+
properties.type = 1;
|
|
47853
|
+
{
|
|
47854
|
+
let error = $root.vertexvis.protobuf.core.OrthographicCamera.verify(message.orthographic);
|
|
47855
|
+
if (error)
|
|
47856
|
+
return "orthographic." + error;
|
|
47857
|
+
}
|
|
47858
|
+
}
|
|
47859
|
+
return null;
|
|
47860
|
+
};
|
|
47861
|
+
|
|
47862
|
+
/**
|
|
47863
|
+
* Creates a Camera message from a plain object. Also converts values to their respective internal types.
|
|
47864
|
+
* @function fromObject
|
|
47865
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47866
|
+
* @static
|
|
47867
|
+
* @param {Object.<string,*>} object Plain object
|
|
47868
|
+
* @returns {vertexvis.protobuf.core.Camera} Camera
|
|
47869
|
+
*/
|
|
47870
|
+
Camera.fromObject = function fromObject(object) {
|
|
47871
|
+
if (object instanceof $root.vertexvis.protobuf.core.Camera)
|
|
47872
|
+
return object;
|
|
47873
|
+
let message = new $root.vertexvis.protobuf.core.Camera();
|
|
47874
|
+
if (object.position != null) {
|
|
47875
|
+
if (typeof object.position !== "object")
|
|
47876
|
+
throw TypeError(".vertexvis.protobuf.core.Camera.position: object expected");
|
|
47877
|
+
message.position = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.position);
|
|
47878
|
+
}
|
|
47879
|
+
if (object.lookAt != null) {
|
|
47880
|
+
if (typeof object.lookAt !== "object")
|
|
47881
|
+
throw TypeError(".vertexvis.protobuf.core.Camera.lookAt: object expected");
|
|
47882
|
+
message.lookAt = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.lookAt);
|
|
47883
|
+
}
|
|
47884
|
+
if (object.up != null) {
|
|
47885
|
+
if (typeof object.up !== "object")
|
|
47886
|
+
throw TypeError(".vertexvis.protobuf.core.Camera.up: object expected");
|
|
47887
|
+
message.up = $root.vertexvis.protobuf.core.Vector3f.fromObject(object.up);
|
|
47888
|
+
}
|
|
47889
|
+
if (object.perspective != null) {
|
|
47890
|
+
if (typeof object.perspective !== "object")
|
|
47891
|
+
throw TypeError(".vertexvis.protobuf.core.Camera.perspective: object expected");
|
|
47892
|
+
message.perspective = $root.vertexvis.protobuf.core.PerspectiveCamera.fromObject(object.perspective);
|
|
47893
|
+
}
|
|
47894
|
+
if (object.orthographic != null) {
|
|
47895
|
+
if (typeof object.orthographic !== "object")
|
|
47896
|
+
throw TypeError(".vertexvis.protobuf.core.Camera.orthographic: object expected");
|
|
47897
|
+
message.orthographic = $root.vertexvis.protobuf.core.OrthographicCamera.fromObject(object.orthographic);
|
|
47898
|
+
}
|
|
47899
|
+
return message;
|
|
47900
|
+
};
|
|
47901
|
+
|
|
47902
|
+
/**
|
|
47903
|
+
* Creates a plain object from a Camera message. Also converts values to other types if specified.
|
|
47904
|
+
* @function toObject
|
|
47905
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47906
|
+
* @static
|
|
47907
|
+
* @param {vertexvis.protobuf.core.Camera} message Camera
|
|
47908
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47909
|
+
* @returns {Object.<string,*>} Plain object
|
|
47910
|
+
*/
|
|
47911
|
+
Camera.toObject = function toObject(message, options) {
|
|
47912
|
+
if (!options)
|
|
47913
|
+
options = {};
|
|
47914
|
+
let object = {};
|
|
47915
|
+
if (options.defaults) {
|
|
47916
|
+
object.position = null;
|
|
47917
|
+
object.lookAt = null;
|
|
47918
|
+
object.up = null;
|
|
47919
|
+
}
|
|
47920
|
+
if (message.position != null && message.hasOwnProperty("position"))
|
|
47921
|
+
object.position = $root.vertexvis.protobuf.core.Vector3f.toObject(message.position, options);
|
|
47922
|
+
if (message.lookAt != null && message.hasOwnProperty("lookAt"))
|
|
47923
|
+
object.lookAt = $root.vertexvis.protobuf.core.Vector3f.toObject(message.lookAt, options);
|
|
47924
|
+
if (message.up != null && message.hasOwnProperty("up"))
|
|
47925
|
+
object.up = $root.vertexvis.protobuf.core.Vector3f.toObject(message.up, options);
|
|
47926
|
+
if (message.perspective != null && message.hasOwnProperty("perspective")) {
|
|
47927
|
+
object.perspective = $root.vertexvis.protobuf.core.PerspectiveCamera.toObject(message.perspective, options);
|
|
47928
|
+
if (options.oneofs)
|
|
47929
|
+
object.type = "perspective";
|
|
47930
|
+
}
|
|
47931
|
+
if (message.orthographic != null && message.hasOwnProperty("orthographic")) {
|
|
47932
|
+
object.orthographic = $root.vertexvis.protobuf.core.OrthographicCamera.toObject(message.orthographic, options);
|
|
47933
|
+
if (options.oneofs)
|
|
47934
|
+
object.type = "orthographic";
|
|
47935
|
+
}
|
|
47936
|
+
return object;
|
|
47937
|
+
};
|
|
47938
|
+
|
|
47939
|
+
/**
|
|
47940
|
+
* Converts this Camera to JSON.
|
|
47941
|
+
* @function toJSON
|
|
47942
|
+
* @memberof vertexvis.protobuf.core.Camera
|
|
47943
|
+
* @instance
|
|
47944
|
+
* @returns {Object.<string,*>} JSON object
|
|
47945
|
+
*/
|
|
47946
|
+
Camera.prototype.toJSON = function toJSON() {
|
|
47947
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
47948
|
+
};
|
|
47949
|
+
|
|
47950
|
+
return Camera;
|
|
47951
|
+
})();
|
|
47952
|
+
|
|
46539
47953
|
/**
|
|
46540
47954
|
* SceneElementTypeMask enum.
|
|
46541
47955
|
* @name vertexvis.protobuf.core.SceneElementTypeMask
|