Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Stream API

Index

Type Aliases

AnimationCompletedEvent: DeepRequired<Pick<vertexvis.protobuf.stream.IAnimationCompletedEvent, "animationId">, []>
BeginInteractionPayload: DeepRequired<vertexvis.protobuf.stream.IBeginInteractionPayload, ["transform"]>
CloseEventHandler: ((evt: CloseEvent) => void)

Type declaration

    • (evt: CloseEvent): void
    • Parameters

      • evt: CloseEvent

      Returns void

CloseHandler: ((event: CloseEvent) => void)

Type declaration

    • (event: CloseEvent): void
    • Parameters

      • event: CloseEvent

      Returns void

DrawFramePayload: DeepRequired<vertexvis.protobuf.stream.IDrawFramePayload, []>
DrawFrameResult: DeepRequired<Pick<vertexvis.protobuf.stream.IStreamResponse, "drawFrame">, ["drawFrame", "timing", "receiveToPaintDuration"] | ["drawFrame", "timing", "sendToReceiveDuration"]>
EndInteractionPayload: DeepRequired<vertexvis.protobuf.stream.IEndInteractionPayload, ["transform"]>
EventMessage: RequiredAndNonNullable<Pick<vertexvis.protobuf.stream.IStreamMessage, "event" | "sentAtTime">>
EventMessageHandler: ((msg: EventMessage) => void)

Type declaration

GetStencilBufferPayload: DeepRequired<vertexvis.protobuf.stream.IGetStencilBufferPayload, []>
GracefulReconnectPayload: DeepRequired<vertexvis.protobuf.stream.IGracefulReconnectionPayload, []>
HitItemsPayload: DeepRequired<vertexvis.protobuf.stream.IHitItemsPayload, []>
LoadSceneViewStatePayload: DeepRequired<vertexvis.protobuf.stream.ILoadSceneViewStatePayload, []>
LoadSceneViewStateResult: DeepRequired<vertexvis.protobuf.stream.ILoadSceneViewStateResult, []>
MessageHandler: ((event: MessageEvent) => void)

Type declaration

    • (event: MessageEvent): void
    • Parameters

      • event: MessageEvent

      Returns void

ReconnectPayload: DeepRequired<vertexvis.protobuf.stream.IReconnectPayload, ["frameCorrelationId"] | ["frameBackgroundColor"]>
ReconnectResult: DeepRequired<vertexvis.protobuf.stream.IReconnectResult, []>
RecordPerformancePayload: DeepRequired<vertexvis.protobuf.stream.IRecordPerformancePayload, []>
RefreshTokenResult: DeepRequired<vertexvis.protobuf.stream.IRefreshTokenResult, []>
ReplaceCameraPayload: DeepRequired<vertexvis.protobuf.stream.IUpdateCameraPayload, ["frameCorrelationId"]>
RequestMessage: RequiredAndNonNullable<Pick<vertexvis.protobuf.stream.IStreamMessage, "request" | "sentAtTime">>
RequestMessageHandler: ((msg: RequestMessage) => void)

Type declaration

ResponseError: vertexvis.protobuf.stream.IError
ResponseMessage: RequiredAndNonNullable<Pick<vertexvis.protobuf.stream.IStreamMessage, "response" | "sentAtTime">>
ResponseMessageHandler: ((msg: ResponseMessage) => void)

Type declaration

ResponseResult: DrawFrameResult
StartStreamPayload: DeepRequired<vertexvis.protobuf.stream.IStartStreamPayload, ["frameCorrelationId"] | ["frameBackgroundColor"] | ["streamAttributes"]>
StartStreamResult: DeepRequired<vertexvis.protobuf.stream.IStartStreamResult, []>
StreamAttributes: vertexvis.protobuf.stream.IStreamAttributes
SyncTimePayload: DeepRequired<vertexvis.protobuf.stream.ISyncTimePayload, []>
SyncTimeResult: DeepRequired<vertexvis.protobuf.stream.ISyncTimeResult, []>
UpdateCrossSectioningPayload: DeepRequired<vertexvis.protobuf.stream.IUpdateCrossSectioningPayload, ["frameCorrelationId"]>
UpdateDimensionsPayload: DeepRequired<vertexvis.protobuf.stream.IUpdateDimensionsPayload, ["frameCorrelationId"]>
UpdateInteractionPayload: DeepRequired<vertexvis.protobuf.stream.IUpdateInteractionPayload, ["transform"]>
UpdateStreamPayload: vertexvis.protobuf.stream.IUpdateStreamPayload
WebSocketSendData: string | ArrayBufferLike | Blob | ArrayBufferView

Functions

  • currentDateAsProtoTimestamp(): google.protobuf.Timestamp
  • decode(bufferOrBytes: Uint8Array | ArrayBuffer): vertexvis.protobuf.stream.IStreamMessage
  • encode(message: IStreamMessage): Uint8Array
  • protoToDate(time: Required<Pick<ITimestamp, "seconds" | "nanos">>): Date
  • protoToDate(time: MaybeTimestampOrDuration): Date | undefined
  • toProtoDuration(ms: number): google.protobuf.Duration
  • toProtoDuration(start: Date, end: Date): google.protobuf.Duration
  • Converts the given milliseconds into a google.protobuf.Duration.

    Parameters

    • ms: number

      The milliseconds to convert.

    Returns google.protobuf.Duration

  • Converts the two dates into a google.protobuf.Duration, where the duration is end - start. If end is before start, then the duration will be negative.

    Parameters

    • start: Date

      The starting time.

    • end: Date

      The ending time.

    Returns google.protobuf.Duration

  • toProtoTimestamp(date: Date): google.protobuf.Timestamp
  • Converts a JS date type to a google.protobuf.Timestamp. The returned time will be represented as UTC.

    Parameters

    • date: Date

      The date to convert.

    Returns google.protobuf.Timestamp