@vertexvis/stream-api 0.22.1-canary.7 → 0.22.1-canary.9
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 +1540 -332
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1540 -332
- package/dist/bundle.esm.js.map +1 -1
- package/dist/streamApi.d.ts +18 -1
- package/dist/types.d.ts +3 -0
- package/package.json +4 -4
package/dist/streamApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { vertexvis } from '@vertexvis/frame-streaming-protos';
|
|
|
2
2
|
import { Disposable } from '@vertexvis/utils';
|
|
3
3
|
import { ConnectionDescriptor } from './connection';
|
|
4
4
|
import { Settings } from './settings';
|
|
5
|
-
import { BeginInteractionPayload, EndInteractionPayload, EventMessage, GetStencilBufferPayload, HitItemsPayload, LoadSceneViewStatePayload, ReconnectPayload, RecordPerformancePayload, ReplaceCameraPayload, RequestMessage, ResponseError, ResponseMessage, ResponseResult, StartStreamPayload, SyncTimePayload, UpdateCrossSectioningPayload, UpdateDimensionsPayload, UpdateInteractionPayload, UpdateStreamPayload } from './types';
|
|
5
|
+
import { BeginInteractionPayload, EndInteractionPayload, EventMessage, GetStencilBufferPayload, HitItemsPayload, LoadSceneViewStatePayload, ReconnectPayload, RecordPerformancePayload, ReplaceCameraPayload, RequestMessage, ResponseError, ResponseMessage, ResponseResult, StartStreamPayload, SyncTimePayload, UpdateCrossSectioningPayload, UpdateDimensionsPayload, UpdateInteractionPayload, UpdateModelViewPayload, UpdateStreamPayload } from './types';
|
|
6
6
|
import { WebSocketClient } from './webSocketClient';
|
|
7
7
|
export declare type RequestMessageHandler = (msg: RequestMessage) => void;
|
|
8
8
|
export declare type ResponseMessageHandler = (msg: ResponseMessage) => void;
|
|
@@ -186,6 +186,23 @@ export declare class StreamApi {
|
|
|
186
186
|
* Defaults to `true`.
|
|
187
187
|
*/
|
|
188
188
|
updateCrossSectioning(payload: UpdateCrossSectioningPayload, withResponse?: boolean): Promise<vertexvis.protobuf.stream.IStreamResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Sends a request to set or clear the model view of the frame.
|
|
191
|
+
*
|
|
192
|
+
* The payload accepts an optional `frameCorrelationId` that will be sent
|
|
193
|
+
* back on the frame that is associated to this request. Use `onRequest` to
|
|
194
|
+
* add a callback that'll be invoked when the server sends a request to draw
|
|
195
|
+
* the frame.
|
|
196
|
+
*
|
|
197
|
+
* Use `withResponse` to indicate if the server should reply with a response.
|
|
198
|
+
* If `false`, the returned promise will complete immediately. Otherwise,
|
|
199
|
+
* it'll complete when a response is received.
|
|
200
|
+
*
|
|
201
|
+
* @param payload The payload of the request.
|
|
202
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
203
|
+
* Defaults to `true`.
|
|
204
|
+
*/
|
|
205
|
+
updateModelView(payload: UpdateModelViewPayload, withResponse?: boolean): Promise<vertexvis.protobuf.stream.IStreamResponse>;
|
|
189
206
|
/**
|
|
190
207
|
* Sends a request to perform hit detection.
|
|
191
208
|
*
|
package/dist/types.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export declare type UpdateDimensionsPayload = DeepRequired<vertexvis.protobuf.st
|
|
|
20
20
|
export declare type UpdateCrossSectioningPayload = DeepRequired<vertexvis.protobuf.stream.IUpdateCrossSectioningPayload, [
|
|
21
21
|
'frameCorrelationId'
|
|
22
22
|
]>;
|
|
23
|
+
export declare type UpdateModelViewPayload = DeepRequired<vertexvis.protobuf.stream.IUpdateModelViewPayload, [
|
|
24
|
+
'frameCorrelationId'
|
|
25
|
+
]>;
|
|
23
26
|
export declare type HitItemsPayload = DeepRequired<vertexvis.protobuf.stream.IHitItemsPayload, [
|
|
24
27
|
]>;
|
|
25
28
|
export declare type DrawFramePayload = DeepRequired<vertexvis.protobuf.stream.IDrawFramePayload, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/stream-api",
|
|
3
|
-
"version": "0.22.1-canary.
|
|
3
|
+
"version": "0.22.1-canary.9",
|
|
4
4
|
"description": "A websocket client for interacting with Vertex's stream API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@types/jest": "^27.5.1",
|
|
43
43
|
"@vertexvis/eslint-config-vertexvis-typescript": "^0.5.0",
|
|
44
44
|
"@vertexvis/jest-config-vertexvis": "^0.5.4",
|
|
45
|
-
"@vertexvis/utils": "0.22.1-canary.
|
|
46
|
-
"@vertexwebsdk/build": "0.22.1-canary.
|
|
45
|
+
"@vertexvis/utils": "0.22.1-canary.9",
|
|
46
|
+
"@vertexwebsdk/build": "0.22.1-canary.9",
|
|
47
47
|
"eslint": "^8.17.0",
|
|
48
48
|
"jest": "^27.5.1",
|
|
49
49
|
"protobufjs": "^6.9.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"protobufjs": ">=6.9.0 <7.0.0",
|
|
58
58
|
"tslib": ">=2.1.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "53eb8d3e242775cfb7b9e2bad1f400315973eb65"
|
|
61
61
|
}
|