# BlochSphereOptions

[**@qbead/bloch-sphere**](https://qbead.gitbook.io/bloch-sphere/index)

***

[@qbead/bloch-sphere](https://qbead.gitbook.io/bloch-sphere/index) / BlochSphereOptions

## Type Alias: BlochSphereOptions

> **BlochSphereOptions** = `object` & `Partial`<*typeof* `BlockSphereSceneOptions`>

Defined in: [src/bloch-sphere.ts:35](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L35)

Options for the Bloch Sphere widget

### Type declaration

| Name            | Type          | Description                                                   | Defined in                                                                                                                            |
| --------------- | ------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `cameraState?`  | `CameraState` | initial camera state                                          | [src/bloch-sphere.ts:41](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L41) |
| `enableRotate?` | `boolean`     | Enable/disable camera rotation via mouse drag (default: true) | [src/bloch-sphere.ts:47](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L47) |
| `enableZoom?`   | `boolean`     | Enable/disable zoom via mouse wheel/pinch (default: true)     | [src/bloch-sphere.ts:45](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L45) |
| `fontSize?`     | `number`      | font size in em                                               | [src/bloch-sphere.ts:37](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L37) |
| `interactive?`  | `boolean`     | Enable/disable all user interactions (default: true)          | [src/bloch-sphere.ts:43](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L43) |
| `showGrid?`     | `boolean`     | show grid                                                     | [src/bloch-sphere.ts:39](https://github.com/qbead/bloch-sphere/blob/41247d60e67bd802cc21854379a06362e5d0957c/src/bloch-sphere.ts#L39) |
