Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

CameraDistance prop for Visualizer broken #47

@hpcowley

Description

@hpcowley

Documentation states that cameraDistance prop should specify the maximum distance from the origin that camera can go while zooming, but changing this prop does not affect zooming distance.

However, this works:

Visualizer({
            setControls: ((viz, cam, dom) => {
                viz.controls = new window.THREE.TrackballControls(cam, dom);
                viz.controls.rotateSpeed = 1.0;
                viz.controls.zoomSpeed = 0.5;
                viz.controls.panSpeed = 0.05;
                viz.controls.maxDistance = 20000;
            })

Where viz.controls.maxDistance is the maximum zoom-out distance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions