|
@@ -463,51 +463,6 @@ declare module BabylonViewer {
|
|
}
|
|
}
|
|
declare module BabylonViewer {
|
|
declare module BabylonViewer {
|
|
/**
|
|
/**
|
|
- * The data structure of a telemetry event.
|
|
|
|
- */
|
|
|
|
- export interface TelemetryData {
|
|
|
|
- event: string;
|
|
|
|
- session: string;
|
|
|
|
- date: Date;
|
|
|
|
- now: number;
|
|
|
|
- viewerId?: string;
|
|
|
|
- detail: any;
|
|
|
|
- }
|
|
|
|
- /**
|
|
|
|
- * Receives Telemetry events and raises events to the API
|
|
|
|
- */
|
|
|
|
- export class TelemetryManager {
|
|
|
|
- onEventBroadcastedObservable: BABYLON.Observable<TelemetryData>;
|
|
|
|
- /**
|
|
|
|
- * Receives a telemetry event
|
|
|
|
- * @param event The name of the Telemetry event
|
|
|
|
- * @param details An additional value, or an object containing a list of property/value pairs
|
|
|
|
- */
|
|
|
|
- readonly broadcast: (event: string, viewerId?: string | undefined, details?: any) => void;
|
|
|
|
- /**
|
|
|
|
- * Log a Telemetry event for errors raised on the WebGL context.
|
|
|
|
- * @param engine The Babylon engine with the WebGL context.
|
|
|
|
- */
|
|
|
|
- flushWebGLErrors(engine: BABYLON.Engine, viewerId?: string): void;
|
|
|
|
- /**
|
|
|
|
- * Enable or disable telemetry events
|
|
|
|
- * @param enabled Boolan, true if events are enabled
|
|
|
|
- */
|
|
|
|
- enable: boolean;
|
|
|
|
- /**
|
|
|
|
- * Returns the current session ID or creates one if it doesn't exixt
|
|
|
|
- * @return The current session ID
|
|
|
|
- */
|
|
|
|
- readonly session: string;
|
|
|
|
- /**
|
|
|
|
- * Disposes the telemetry manager
|
|
|
|
- */
|
|
|
|
- dispose(): void;
|
|
|
|
- }
|
|
|
|
- export const telemetryManager: TelemetryManager;
|
|
|
|
-}
|
|
|
|
-declare module BabylonViewer {
|
|
|
|
- /**
|
|
|
|
* An instance of the class is in charge of loading the model correctly.
|
|
* An instance of the class is in charge of loading the model correctly.
|
|
* This class will continously be expended with tasks required from the specific loaders Babylon has.
|
|
* This class will continously be expended with tasks required from the specific loaders Babylon has.
|
|
*
|
|
*
|