Skip to content

copper3d / Modules / Controls/controlsAxes / AxisGatedControls

Interface: AxisGatedControls

Controls/controlsAxes.AxisGatedControls

One way to ask about, and set, whether a controls instance may rotate, pan or zoom.

There are two spellings in play and they are opposites. OrbitControls (and Copper3dOrbitControls) use positive enableRotate / enablePan / enableZoom; TrackballControls and Copper3dTrackballControls use negative noRotate / noPan / noZoom. Neither class complains about the other's property name -- it lands as an unread extra field -- so writing the wrong one is a SILENT no-op, and code that has to work with whatever controls a scene happens to be carrying gets it wrong sooner or later.

Deliberately structural and free of three: a caller holding a controls instance out of a published bundle can still pass it here.

Table of contents

Properties

Properties

enablePan

Optional enablePan: boolean

Defined in

src/Controls/controlsAxes.ts:24


enableRotate

Optional enableRotate: boolean

Orbit spelling.

Defined in

src/Controls/controlsAxes.ts:23


enableZoom

Optional enableZoom: boolean

Defined in

src/Controls/controlsAxes.ts:25


noPan

Optional noPan: boolean

Defined in

src/Controls/controlsAxes.ts:20


noRotate

Optional noRotate: boolean

Trackball spelling.

Defined in

src/Controls/controlsAxes.ts:19


noZoom

Optional noZoom: boolean

Defined in

src/Controls/controlsAxes.ts:21