UNPKG

chessfield

Version:

A TypeScript+ThreeJS library to render a 3D chessboard

12 lines (11 loc) 487 B
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import { ChessfieldConfig } from '../resource/chessfield.config.ts'; import { PerspectiveCamera } from 'three'; export declare class ControlsProvider { private config; private readonly enabled; private readonly zoomMinDistance; private readonly zoomMaxDistance; constructor(config: ChessfieldConfig); getControls(camera: PerspectiveCamera, canvas: HTMLCanvasElement): OrbitControls; }