Skip to main content
Version: 4.3

PaperTarget

type PaperTarget = string | RefObject<dia.Paper | null> | dia.Paper;

Identifies which paper a paper-targeting hook should resolve: a registered paper id, a React ref to a paper, or a dia.Paper instance directly. These hooks never throw — an unresolved target falls back to the current Paper context or the default paper.

See

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub