Skip to content

Access shadowCanvas from outside #388

Description

@lansheng8929

The ForceGraph instance internally maintains a shadowCanvas for hidden color mapping.
Currently, it’s not possible to access this canvas or its context from outside the library.
Exposing it would allow developers to read pixel data for advanced interaction features.

likeconst shadowCanvas = fg.getShadowCanvas(); const shadowCtx = shadowCanvas.getContext('2d');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions