import { createDefaultControlState } from "./ControlState.js";
export class OrbitControls {
    state = createDefaultControlState();
    enablePan = true;
    enableZoom = true;
    enableRotate = true;
    rotate(deltaX, deltaY) {
        if (!this.enableRotate)
            return;
        this.state.rotation.x += deltaY;
        this.state.rotation.y += deltaX;
    }
    pan(deltaX, deltaY) {
        if (!this.enablePan)
            return;
        this.state.target.x += deltaX;
        this.state.target.y += deltaY;
    }
    dolly(scale) {
        if (!this.enableZoom)
            return;
        this.state.position.z *= scale;
    }
}
//# sourceMappingURL=OrbitControls.js.map