メインコンテンツまでスキップ

Function: usePointsEditorContext()

Call Signature​

function usePointsEditorContext(): PointsEditorContextValue;

Defined in: react/src/components/PointsEditor/context.tsx:50

The settings Root was given, for the subcomponents to read. A point's value still belongs to the Point that draws it; what the root keeps is which points are selected, and a registry of who they are.

Returns​

PointsEditorContextValue

Call Signature​

function usePointsEditorContext<T>(selector): T;

Defined in: react/src/components/PointsEditor/context.tsx:51

The settings Root was given, for the subcomponents to read. A point's value still belongs to the Point that draws it; what the root keeps is which points are selected, and a registry of who they are.

Type Parameters​

Type Parameter
T

Parameters​

ParameterType
selector(state) => T

Returns​

T