Skip to main content

connectThreeAppToPixiApp

Callable

  • connectThreeAppToPixiApp(pixiApp: { add: (x: PixiFunctionComponent) => void; app: Application; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; resize: (width: number, height: number) => void; stage: Container; type: PIXI_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }, threeApp: { __registryOrbitControl: (control: OrbitControls) => void; __registryPixiCanvas: (thisTick: () => void) => void; add: (x: FunctionComponent) => void; camera: Camera; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; renderer: WebGLRenderer; resize: (nextWidth: number, nextHeight: number) => void; scene: Scene; type: THREE_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }): { destroy: () => void; enableOrbitControl: () => OrbitControls; orbitControl: any }

  • Parameters

    • pixiApp: { add: (x: PixiFunctionComponent) => void; app: Application; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; resize: (width: number, height: number) => void; stage: Container; type: PIXI_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }
    • threeApp: { __registryOrbitControl: (control: OrbitControls) => void; __registryPixiCanvas: (thisTick: () => void) => void; add: (x: FunctionComponent) => void; camera: Camera; context: IComponentContext; destroy: () => void; domElement: HTMLCanvasElement; pause: () => void; play: () => void; renderer: WebGLRenderer; resize: (nextWidth: number, nextHeight: number) => void; scene: Scene; type: THREE_APP; wrapContext: <T, U>(x: (...args: T) => U) => (...args: T) => U }

    Returns { destroy: () => void; enableOrbitControl: () => OrbitControls; orbitControl: any }

    • destroy: () => void
        • (): void
        • Returns void

    • enableOrbitControl: () => OrbitControls
        • (): OrbitControls
        • Returns OrbitControls

    • get orbitControl(): any