@vertexvis/stream-api 0.12.0-canary.18 → 0.12.0-canary.21
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 +463 -4
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +463 -4
- package/dist/bundle.esm.js.map +1 -1
- package/dist/streamApi.d.ts +13 -0
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -11098,6 +11098,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11098
11098
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStatePayload|null} [loadSceneViewState] StreamRequest loadSceneViewState
|
|
11099
11099
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload|null} [updateCrossSectioning] StreamRequest updateCrossSectioning
|
|
11100
11100
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
|
|
11101
|
+
* @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
|
|
11101
11102
|
*/
|
|
11102
11103
|
|
|
11103
11104
|
/**
|
|
@@ -11259,17 +11260,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11259
11260
|
*/
|
|
11260
11261
|
StreamRequest.prototype.getStencilBuffer = null;
|
|
11261
11262
|
|
|
11263
|
+
/**
|
|
11264
|
+
* StreamRequest resetView.
|
|
11265
|
+
* @member {vertexvis.protobuf.stream.IResetViewPlayload|null|undefined} resetView
|
|
11266
|
+
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11267
|
+
* @instance
|
|
11268
|
+
*/
|
|
11269
|
+
StreamRequest.prototype.resetView = null;
|
|
11270
|
+
|
|
11262
11271
|
// OneOf field names bound to virtual getters and setters
|
|
11263
11272
|
let $oneOfFields;
|
|
11264
11273
|
|
|
11265
11274
|
/**
|
|
11266
11275
|
* StreamRequest payload.
|
|
11267
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|undefined} payload
|
|
11276
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|undefined} payload
|
|
11268
11277
|
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11269
11278
|
* @instance
|
|
11270
11279
|
*/
|
|
11271
11280
|
Object.defineProperty(StreamRequest.prototype, "payload", {
|
|
11272
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer"]),
|
|
11281
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView"]),
|
|
11273
11282
|
set: $util.oneOfSetter($oneOfFields)
|
|
11274
11283
|
});
|
|
11275
11284
|
|
|
@@ -11333,6 +11342,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11333
11342
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload.encode(message.updateCrossSectioning, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
11334
11343
|
if (message.getStencilBuffer != null && Object.hasOwnProperty.call(message, "getStencilBuffer"))
|
|
11335
11344
|
$root.vertexvis.protobuf.stream.GetStencilBufferPayload.encode(message.getStencilBuffer, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
11345
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
11346
|
+
$root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
11336
11347
|
return writer;
|
|
11337
11348
|
};
|
|
11338
11349
|
|
|
@@ -11421,6 +11432,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11421
11432
|
case 18:
|
|
11422
11433
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.decode(reader, reader.uint32());
|
|
11423
11434
|
break;
|
|
11435
|
+
case 19:
|
|
11436
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.decode(reader, reader.uint32());
|
|
11437
|
+
break;
|
|
11424
11438
|
default:
|
|
11425
11439
|
reader.skipType(tag & 7);
|
|
11426
11440
|
break;
|
|
@@ -11630,6 +11644,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11630
11644
|
return "getStencilBuffer." + error;
|
|
11631
11645
|
}
|
|
11632
11646
|
}
|
|
11647
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
11648
|
+
if (properties.payload === 1)
|
|
11649
|
+
return "payload: multiple values";
|
|
11650
|
+
properties.payload = 1;
|
|
11651
|
+
{
|
|
11652
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewPlayload.verify(message.resetView);
|
|
11653
|
+
if (error)
|
|
11654
|
+
return "resetView." + error;
|
|
11655
|
+
}
|
|
11656
|
+
}
|
|
11633
11657
|
return null;
|
|
11634
11658
|
};
|
|
11635
11659
|
|
|
@@ -11735,6 +11759,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11735
11759
|
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.getStencilBuffer: object expected");
|
|
11736
11760
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.fromObject(object.getStencilBuffer);
|
|
11737
11761
|
}
|
|
11762
|
+
if (object.resetView != null) {
|
|
11763
|
+
if (typeof object.resetView !== "object")
|
|
11764
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.resetView: object expected");
|
|
11765
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.fromObject(object.resetView);
|
|
11766
|
+
}
|
|
11738
11767
|
return message;
|
|
11739
11768
|
};
|
|
11740
11769
|
|
|
@@ -11840,6 +11869,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11840
11869
|
if (options.oneofs)
|
|
11841
11870
|
object.payload = "getStencilBuffer";
|
|
11842
11871
|
}
|
|
11872
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
11873
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.toObject(message.resetView, options);
|
|
11874
|
+
if (options.oneofs)
|
|
11875
|
+
object.payload = "resetView";
|
|
11876
|
+
}
|
|
11843
11877
|
return object;
|
|
11844
11878
|
};
|
|
11845
11879
|
|
|
@@ -15563,6 +15597,221 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15563
15597
|
return LoadSceneViewStatePayload;
|
|
15564
15598
|
})();
|
|
15565
15599
|
|
|
15600
|
+
stream.ResetViewPlayload = (function() {
|
|
15601
|
+
|
|
15602
|
+
/**
|
|
15603
|
+
* Properties of a ResetViewPlayload.
|
|
15604
|
+
* @memberof vertexvis.protobuf.stream
|
|
15605
|
+
* @interface IResetViewPlayload
|
|
15606
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
|
|
15607
|
+
* @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
|
|
15608
|
+
*/
|
|
15609
|
+
|
|
15610
|
+
/**
|
|
15611
|
+
* Constructs a new ResetViewPlayload.
|
|
15612
|
+
* @memberof vertexvis.protobuf.stream
|
|
15613
|
+
* @classdesc Represents a ResetViewPlayload.
|
|
15614
|
+
* @implements IResetViewPlayload
|
|
15615
|
+
* @constructor
|
|
15616
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15617
|
+
*/
|
|
15618
|
+
function ResetViewPlayload(properties) {
|
|
15619
|
+
if (properties)
|
|
15620
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15621
|
+
if (properties[keys[i]] != null)
|
|
15622
|
+
this[keys[i]] = properties[keys[i]];
|
|
15623
|
+
}
|
|
15624
|
+
|
|
15625
|
+
/**
|
|
15626
|
+
* ResetViewPlayload frameCorrelationId.
|
|
15627
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
15628
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15629
|
+
* @instance
|
|
15630
|
+
*/
|
|
15631
|
+
ResetViewPlayload.prototype.frameCorrelationId = null;
|
|
15632
|
+
|
|
15633
|
+
/**
|
|
15634
|
+
* ResetViewPlayload includeCamera.
|
|
15635
|
+
* @member {boolean} includeCamera
|
|
15636
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15637
|
+
* @instance
|
|
15638
|
+
*/
|
|
15639
|
+
ResetViewPlayload.prototype.includeCamera = false;
|
|
15640
|
+
|
|
15641
|
+
/**
|
|
15642
|
+
* Creates a new ResetViewPlayload instance using the specified properties.
|
|
15643
|
+
* @function create
|
|
15644
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15645
|
+
* @static
|
|
15646
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15647
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload instance
|
|
15648
|
+
*/
|
|
15649
|
+
ResetViewPlayload.create = function create(properties) {
|
|
15650
|
+
return new ResetViewPlayload(properties);
|
|
15651
|
+
};
|
|
15652
|
+
|
|
15653
|
+
/**
|
|
15654
|
+
* Encodes the specified ResetViewPlayload message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15655
|
+
* @function encode
|
|
15656
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15657
|
+
* @static
|
|
15658
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15659
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15660
|
+
* @returns {$protobuf.Writer} Writer
|
|
15661
|
+
*/
|
|
15662
|
+
ResetViewPlayload.encode = function encode(message, writer) {
|
|
15663
|
+
if (!writer)
|
|
15664
|
+
writer = $Writer.create();
|
|
15665
|
+
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
15666
|
+
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15667
|
+
if (message.includeCamera != null && Object.hasOwnProperty.call(message, "includeCamera"))
|
|
15668
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeCamera);
|
|
15669
|
+
return writer;
|
|
15670
|
+
};
|
|
15671
|
+
|
|
15672
|
+
/**
|
|
15673
|
+
* Encodes the specified ResetViewPlayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15674
|
+
* @function encodeDelimited
|
|
15675
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15676
|
+
* @static
|
|
15677
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15678
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15679
|
+
* @returns {$protobuf.Writer} Writer
|
|
15680
|
+
*/
|
|
15681
|
+
ResetViewPlayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15682
|
+
return this.encode(message, writer).ldelim();
|
|
15683
|
+
};
|
|
15684
|
+
|
|
15685
|
+
/**
|
|
15686
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer.
|
|
15687
|
+
* @function decode
|
|
15688
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15689
|
+
* @static
|
|
15690
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15691
|
+
* @param {number} [length] Message length if known beforehand
|
|
15692
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15693
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15694
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15695
|
+
*/
|
|
15696
|
+
ResetViewPlayload.decode = function decode(reader, length) {
|
|
15697
|
+
if (!(reader instanceof $Reader))
|
|
15698
|
+
reader = $Reader.create(reader);
|
|
15699
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15700
|
+
while (reader.pos < end) {
|
|
15701
|
+
let tag = reader.uint32();
|
|
15702
|
+
switch (tag >>> 3) {
|
|
15703
|
+
case 1:
|
|
15704
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
15705
|
+
break;
|
|
15706
|
+
case 2:
|
|
15707
|
+
message.includeCamera = reader.bool();
|
|
15708
|
+
break;
|
|
15709
|
+
default:
|
|
15710
|
+
reader.skipType(tag & 7);
|
|
15711
|
+
break;
|
|
15712
|
+
}
|
|
15713
|
+
}
|
|
15714
|
+
return message;
|
|
15715
|
+
};
|
|
15716
|
+
|
|
15717
|
+
/**
|
|
15718
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer, length delimited.
|
|
15719
|
+
* @function decodeDelimited
|
|
15720
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15721
|
+
* @static
|
|
15722
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15723
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15724
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15725
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15726
|
+
*/
|
|
15727
|
+
ResetViewPlayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15728
|
+
if (!(reader instanceof $Reader))
|
|
15729
|
+
reader = new $Reader(reader);
|
|
15730
|
+
return this.decode(reader, reader.uint32());
|
|
15731
|
+
};
|
|
15732
|
+
|
|
15733
|
+
/**
|
|
15734
|
+
* Verifies a ResetViewPlayload message.
|
|
15735
|
+
* @function verify
|
|
15736
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15737
|
+
* @static
|
|
15738
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15739
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15740
|
+
*/
|
|
15741
|
+
ResetViewPlayload.verify = function verify(message) {
|
|
15742
|
+
if (typeof message !== "object" || message === null)
|
|
15743
|
+
return "object expected";
|
|
15744
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
15745
|
+
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
15746
|
+
if (error)
|
|
15747
|
+
return "frameCorrelationId." + error;
|
|
15748
|
+
}
|
|
15749
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15750
|
+
if (typeof message.includeCamera !== "boolean")
|
|
15751
|
+
return "includeCamera: boolean expected";
|
|
15752
|
+
return null;
|
|
15753
|
+
};
|
|
15754
|
+
|
|
15755
|
+
/**
|
|
15756
|
+
* Creates a ResetViewPlayload message from a plain object. Also converts values to their respective internal types.
|
|
15757
|
+
* @function fromObject
|
|
15758
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15759
|
+
* @static
|
|
15760
|
+
* @param {Object.<string,*>} object Plain object
|
|
15761
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15762
|
+
*/
|
|
15763
|
+
ResetViewPlayload.fromObject = function fromObject(object) {
|
|
15764
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewPlayload)
|
|
15765
|
+
return object;
|
|
15766
|
+
let message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15767
|
+
if (object.frameCorrelationId != null) {
|
|
15768
|
+
if (typeof object.frameCorrelationId !== "object")
|
|
15769
|
+
throw TypeError(".vertexvis.protobuf.stream.ResetViewPlayload.frameCorrelationId: object expected");
|
|
15770
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
15771
|
+
}
|
|
15772
|
+
if (object.includeCamera != null)
|
|
15773
|
+
message.includeCamera = Boolean(object.includeCamera);
|
|
15774
|
+
return message;
|
|
15775
|
+
};
|
|
15776
|
+
|
|
15777
|
+
/**
|
|
15778
|
+
* Creates a plain object from a ResetViewPlayload message. Also converts values to other types if specified.
|
|
15779
|
+
* @function toObject
|
|
15780
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15781
|
+
* @static
|
|
15782
|
+
* @param {vertexvis.protobuf.stream.ResetViewPlayload} message ResetViewPlayload
|
|
15783
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15784
|
+
* @returns {Object.<string,*>} Plain object
|
|
15785
|
+
*/
|
|
15786
|
+
ResetViewPlayload.toObject = function toObject(message, options) {
|
|
15787
|
+
if (!options)
|
|
15788
|
+
options = {};
|
|
15789
|
+
let object = {};
|
|
15790
|
+
if (options.defaults) {
|
|
15791
|
+
object.frameCorrelationId = null;
|
|
15792
|
+
object.includeCamera = false;
|
|
15793
|
+
}
|
|
15794
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
15795
|
+
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
15796
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15797
|
+
object.includeCamera = message.includeCamera;
|
|
15798
|
+
return object;
|
|
15799
|
+
};
|
|
15800
|
+
|
|
15801
|
+
/**
|
|
15802
|
+
* Converts this ResetViewPlayload to JSON.
|
|
15803
|
+
* @function toJSON
|
|
15804
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15805
|
+
* @instance
|
|
15806
|
+
* @returns {Object.<string,*>} JSON object
|
|
15807
|
+
*/
|
|
15808
|
+
ResetViewPlayload.prototype.toJSON = function toJSON() {
|
|
15809
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15810
|
+
};
|
|
15811
|
+
|
|
15812
|
+
return ResetViewPlayload;
|
|
15813
|
+
})();
|
|
15814
|
+
|
|
15566
15815
|
stream.UpdateCrossSectioningPayload = (function() {
|
|
15567
15816
|
|
|
15568
15817
|
/**
|
|
@@ -15993,6 +16242,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15993
16242
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStateResult|null} [loadSceneViewState] StreamResponse loadSceneViewState
|
|
15994
16243
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningResult|null} [updateCrossSectioning] StreamResponse updateCrossSectioning
|
|
15995
16244
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
|
|
16245
|
+
* @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
|
|
15996
16246
|
*/
|
|
15997
16247
|
|
|
15998
16248
|
/**
|
|
@@ -16146,17 +16396,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16146
16396
|
*/
|
|
16147
16397
|
StreamResponse.prototype.stencilBuffer = null;
|
|
16148
16398
|
|
|
16399
|
+
/**
|
|
16400
|
+
* StreamResponse resetView.
|
|
16401
|
+
* @member {vertexvis.protobuf.stream.IResetViewResult|null|undefined} resetView
|
|
16402
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16403
|
+
* @instance
|
|
16404
|
+
*/
|
|
16405
|
+
StreamResponse.prototype.resetView = null;
|
|
16406
|
+
|
|
16149
16407
|
// OneOf field names bound to virtual getters and setters
|
|
16150
16408
|
let $oneOfFields;
|
|
16151
16409
|
|
|
16152
16410
|
/**
|
|
16153
16411
|
* StreamResponse result.
|
|
16154
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|undefined} result
|
|
16412
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|undefined} result
|
|
16155
16413
|
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16156
16414
|
* @instance
|
|
16157
16415
|
*/
|
|
16158
16416
|
Object.defineProperty(StreamResponse.prototype, "result", {
|
|
16159
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer"]),
|
|
16417
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView"]),
|
|
16160
16418
|
set: $util.oneOfSetter($oneOfFields)
|
|
16161
16419
|
});
|
|
16162
16420
|
|
|
@@ -16218,6 +16476,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16218
16476
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningResult.encode(message.updateCrossSectioning, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
16219
16477
|
if (message.stencilBuffer != null && Object.hasOwnProperty.call(message, "stencilBuffer"))
|
|
16220
16478
|
$root.vertexvis.protobuf.stream.GetStencilBufferResult.encode(message.stencilBuffer, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
16479
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
16480
|
+
$root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
16221
16481
|
return writer;
|
|
16222
16482
|
};
|
|
16223
16483
|
|
|
@@ -16303,6 +16563,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16303
16563
|
case 17:
|
|
16304
16564
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.decode(reader, reader.uint32());
|
|
16305
16565
|
break;
|
|
16566
|
+
case 18:
|
|
16567
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.decode(reader, reader.uint32());
|
|
16568
|
+
break;
|
|
16306
16569
|
default:
|
|
16307
16570
|
reader.skipType(tag & 7);
|
|
16308
16571
|
break;
|
|
@@ -16497,6 +16760,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16497
16760
|
return "stencilBuffer." + error;
|
|
16498
16761
|
}
|
|
16499
16762
|
}
|
|
16763
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
16764
|
+
if (properties.result === 1)
|
|
16765
|
+
return "result: multiple values";
|
|
16766
|
+
properties.result = 1;
|
|
16767
|
+
{
|
|
16768
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewResult.verify(message.resetView);
|
|
16769
|
+
if (error)
|
|
16770
|
+
return "resetView." + error;
|
|
16771
|
+
}
|
|
16772
|
+
}
|
|
16500
16773
|
return null;
|
|
16501
16774
|
};
|
|
16502
16775
|
|
|
@@ -16597,6 +16870,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16597
16870
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.stencilBuffer: object expected");
|
|
16598
16871
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.fromObject(object.stencilBuffer);
|
|
16599
16872
|
}
|
|
16873
|
+
if (object.resetView != null) {
|
|
16874
|
+
if (typeof object.resetView !== "object")
|
|
16875
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.resetView: object expected");
|
|
16876
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.fromObject(object.resetView);
|
|
16877
|
+
}
|
|
16600
16878
|
return message;
|
|
16601
16879
|
};
|
|
16602
16880
|
|
|
@@ -16696,6 +16974,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16696
16974
|
if (options.oneofs)
|
|
16697
16975
|
object.result = "stencilBuffer";
|
|
16698
16976
|
}
|
|
16977
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
16978
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.toObject(message.resetView, options);
|
|
16979
|
+
if (options.oneofs)
|
|
16980
|
+
object.result = "resetView";
|
|
16981
|
+
}
|
|
16699
16982
|
return object;
|
|
16700
16983
|
};
|
|
16701
16984
|
|
|
@@ -19164,6 +19447,166 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19164
19447
|
return LoadSceneViewStateResult;
|
|
19165
19448
|
})();
|
|
19166
19449
|
|
|
19450
|
+
stream.ResetViewResult = (function() {
|
|
19451
|
+
|
|
19452
|
+
/**
|
|
19453
|
+
* Properties of a ResetViewResult.
|
|
19454
|
+
* @memberof vertexvis.protobuf.stream
|
|
19455
|
+
* @interface IResetViewResult
|
|
19456
|
+
*/
|
|
19457
|
+
|
|
19458
|
+
/**
|
|
19459
|
+
* Constructs a new ResetViewResult.
|
|
19460
|
+
* @memberof vertexvis.protobuf.stream
|
|
19461
|
+
* @classdesc Represents a ResetViewResult.
|
|
19462
|
+
* @implements IResetViewResult
|
|
19463
|
+
* @constructor
|
|
19464
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19465
|
+
*/
|
|
19466
|
+
function ResetViewResult(properties) {
|
|
19467
|
+
if (properties)
|
|
19468
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19469
|
+
if (properties[keys[i]] != null)
|
|
19470
|
+
this[keys[i]] = properties[keys[i]];
|
|
19471
|
+
}
|
|
19472
|
+
|
|
19473
|
+
/**
|
|
19474
|
+
* Creates a new ResetViewResult instance using the specified properties.
|
|
19475
|
+
* @function create
|
|
19476
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19477
|
+
* @static
|
|
19478
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19479
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult instance
|
|
19480
|
+
*/
|
|
19481
|
+
ResetViewResult.create = function create(properties) {
|
|
19482
|
+
return new ResetViewResult(properties);
|
|
19483
|
+
};
|
|
19484
|
+
|
|
19485
|
+
/**
|
|
19486
|
+
* Encodes the specified ResetViewResult message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19487
|
+
* @function encode
|
|
19488
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19489
|
+
* @static
|
|
19490
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
19491
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19492
|
+
* @returns {$protobuf.Writer} Writer
|
|
19493
|
+
*/
|
|
19494
|
+
ResetViewResult.encode = function encode(message, writer) {
|
|
19495
|
+
if (!writer)
|
|
19496
|
+
writer = $Writer.create();
|
|
19497
|
+
return writer;
|
|
19498
|
+
};
|
|
19499
|
+
|
|
19500
|
+
/**
|
|
19501
|
+
* Encodes the specified ResetViewResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19502
|
+
* @function encodeDelimited
|
|
19503
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19504
|
+
* @static
|
|
19505
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
19506
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19507
|
+
* @returns {$protobuf.Writer} Writer
|
|
19508
|
+
*/
|
|
19509
|
+
ResetViewResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19510
|
+
return this.encode(message, writer).ldelim();
|
|
19511
|
+
};
|
|
19512
|
+
|
|
19513
|
+
/**
|
|
19514
|
+
* Decodes a ResetViewResult message from the specified reader or buffer.
|
|
19515
|
+
* @function decode
|
|
19516
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19517
|
+
* @static
|
|
19518
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19519
|
+
* @param {number} [length] Message length if known beforehand
|
|
19520
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19521
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19522
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19523
|
+
*/
|
|
19524
|
+
ResetViewResult.decode = function decode(reader, length) {
|
|
19525
|
+
if (!(reader instanceof $Reader))
|
|
19526
|
+
reader = $Reader.create(reader);
|
|
19527
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
19528
|
+
while (reader.pos < end) {
|
|
19529
|
+
let tag = reader.uint32();
|
|
19530
|
+
switch (tag >>> 3) {
|
|
19531
|
+
default:
|
|
19532
|
+
reader.skipType(tag & 7);
|
|
19533
|
+
break;
|
|
19534
|
+
}
|
|
19535
|
+
}
|
|
19536
|
+
return message;
|
|
19537
|
+
};
|
|
19538
|
+
|
|
19539
|
+
/**
|
|
19540
|
+
* Decodes a ResetViewResult message from the specified reader or buffer, length delimited.
|
|
19541
|
+
* @function decodeDelimited
|
|
19542
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19543
|
+
* @static
|
|
19544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19545
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19546
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19547
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19548
|
+
*/
|
|
19549
|
+
ResetViewResult.decodeDelimited = function decodeDelimited(reader) {
|
|
19550
|
+
if (!(reader instanceof $Reader))
|
|
19551
|
+
reader = new $Reader(reader);
|
|
19552
|
+
return this.decode(reader, reader.uint32());
|
|
19553
|
+
};
|
|
19554
|
+
|
|
19555
|
+
/**
|
|
19556
|
+
* Verifies a ResetViewResult message.
|
|
19557
|
+
* @function verify
|
|
19558
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19559
|
+
* @static
|
|
19560
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19561
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19562
|
+
*/
|
|
19563
|
+
ResetViewResult.verify = function verify(message) {
|
|
19564
|
+
if (typeof message !== "object" || message === null)
|
|
19565
|
+
return "object expected";
|
|
19566
|
+
return null;
|
|
19567
|
+
};
|
|
19568
|
+
|
|
19569
|
+
/**
|
|
19570
|
+
* Creates a ResetViewResult message from a plain object. Also converts values to their respective internal types.
|
|
19571
|
+
* @function fromObject
|
|
19572
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19573
|
+
* @static
|
|
19574
|
+
* @param {Object.<string,*>} object Plain object
|
|
19575
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19576
|
+
*/
|
|
19577
|
+
ResetViewResult.fromObject = function fromObject(object) {
|
|
19578
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewResult)
|
|
19579
|
+
return object;
|
|
19580
|
+
return new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
19581
|
+
};
|
|
19582
|
+
|
|
19583
|
+
/**
|
|
19584
|
+
* Creates a plain object from a ResetViewResult message. Also converts values to other types if specified.
|
|
19585
|
+
* @function toObject
|
|
19586
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19587
|
+
* @static
|
|
19588
|
+
* @param {vertexvis.protobuf.stream.ResetViewResult} message ResetViewResult
|
|
19589
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19590
|
+
* @returns {Object.<string,*>} Plain object
|
|
19591
|
+
*/
|
|
19592
|
+
ResetViewResult.toObject = function toObject() {
|
|
19593
|
+
return {};
|
|
19594
|
+
};
|
|
19595
|
+
|
|
19596
|
+
/**
|
|
19597
|
+
* Converts this ResetViewResult to JSON.
|
|
19598
|
+
* @function toJSON
|
|
19599
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19600
|
+
* @instance
|
|
19601
|
+
* @returns {Object.<string,*>} JSON object
|
|
19602
|
+
*/
|
|
19603
|
+
ResetViewResult.prototype.toJSON = function toJSON() {
|
|
19604
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
19605
|
+
};
|
|
19606
|
+
|
|
19607
|
+
return ResetViewResult;
|
|
19608
|
+
})();
|
|
19609
|
+
|
|
19167
19610
|
stream.GetStencilBufferResult = (function() {
|
|
19168
19611
|
|
|
19169
19612
|
/**
|
|
@@ -33104,6 +33547,22 @@ var StreamApi = /** @class */ (function () {
|
|
|
33104
33547
|
if (withResponse === void 0) { withResponse = true; }
|
|
33105
33548
|
return this.sendRequest({ createSceneAlteration: payload }, withResponse);
|
|
33106
33549
|
};
|
|
33550
|
+
/**
|
|
33551
|
+
* Sends a request to reset all overrides for a given scene and optionally to
|
|
33552
|
+
* reset the camera to that of the base scene.
|
|
33553
|
+
*
|
|
33554
|
+
* Use `withResponse` to indicate if the server should reply with a response.
|
|
33555
|
+
* If `false`, the returned promise will complete immediately. Otherwise,
|
|
33556
|
+
* it'll complete when a response is received.
|
|
33557
|
+
*
|
|
33558
|
+
* @param payload The payload of the request.
|
|
33559
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
33560
|
+
* Defaults to `true`.
|
|
33561
|
+
*/
|
|
33562
|
+
StreamApi.prototype.resetSceneView = function (payload, withResponse) {
|
|
33563
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
33564
|
+
return this.sendRequest({ resetView: payload }, withResponse);
|
|
33565
|
+
};
|
|
33107
33566
|
/**
|
|
33108
33567
|
* Sends a request to tell the rendering pipeline that an interaction has
|
|
33109
33568
|
* ended.
|