Skip to content

Incorrect camera prop on next branch for Canvas? #40

@BigTurtle8

Description

@BigTurtle8

On the next branch, in README.md at the "Basic Usage" section it says to initialize the Canvas component as so:

<Canvas camera={{ position: [0, 0, 5] }}>

However, as far as I can tell, the most recent version of the next branch, the correct prop to Canvas is defaultCamera, not camera:

defaultCamera?: Partial<Props<PerspectiveCamera> | Props<OrthographicCamera>> | Camera

I am still a beginner in both SolidJS and ThreeJS, so I would totally understand if I am missing something. However, copying the "Basic Usage" code did not work until I changed the Canvas prop from camera to defaultCamera. This is using "solid-three": "^0.3.0-next.11".

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