Interface: PointsEditorPointProps<T>
Defined in: react/src/components/PointsEditor/Point.tsx:34
Type Parameters
| Type Parameter |
|---|
T extends PointPosition |
Properties
aria-label?
"aria-label"?: string | Partial<Record<"x" | "y", string>>;
Defined in: react/src/components/PointsEditor/Point.tsx:68
The accessible name of each axis. There are two range inputs inside the point, so this takes one name per axis; a single string names them both.
aria-valuetext?
"aria-valuetext"?: string | Partial<Record<"x" | "y", string>>;
Defined in: react/src/components/PointsEditor/Point.tsx:70
What the value of each axis means, when the number does not say it.
changeEndDelay?
changeEndDelay?: number;
Defined in: react/src/components/PointsEditor/Point.tsx:95
How long after the last wheel notch or arrow key the change counts as over, in milliseconds. Neither has an event that says it is done.
Default
500
color?
color?: string;
Defined in: react/src/components/PointsEditor/Point.tsx:52
Sets --color, for the theme to colour the point with.
disabled?
disabled?: boolean;
Defined in: react/src/components/PointsEditor/Point.tsx:55
Overrides the disabled of PointsEditor.Root.
id?
id?: string;
Defined in: react/src/components/PointsEditor/Point.tsx:45
How the selection refers to this point. One is generated when it is left out, which lasts as long as the point is mounted — give your own if the selection has to survive a remount, or be recognised in your own state.
keyboard?
keyboard?: ModifierValue<InputEventOption> | null;
Defined in: react/src/components/PointsEditor/Point.tsx:62
Overrides the keyboard of PointsEditor.Root.
max?
max?: Partial<PointPosition>;
Defined in: react/src/components/PointsEditor/Point.tsx:49
The highest position the point can take, per axis. An axis left out is 1.
min?
min?: Partial<PointPosition>;
Defined in: react/src/components/PointsEditor/Point.tsx:47
The lowest position the point can take, per axis. An axis left out is 0.
onChange?
onChange?: (value) => void;
Defined in: react/src/components/PointsEditor/Point.tsx:76
Called with the new position when the point is dragged or moved by the arrow keys or the wheel, including when it moves along with a selection.
Parameters
| Parameter | Type |
|---|---|
value | PointPosition |
Returns
void
onChangeEnd?
onChangeEnd?: (value, source) => void;
Defined in: react/src/components/PointsEditor/Point.tsx:88
Called when that change ends, with where the point is: on release, or
changeEndDelay after the last wheel notch or arrow key.
Parameters
| Parameter | Type |
|---|---|
value | PointPosition |
source | ChangeSource |
Returns
void
onChangeStart?
onChangeStart?: (value, source) => void;
Defined in: react/src/components/PointsEditor/Point.tsx:83
Called when a change of this point starts — a drag on it, the first wheel
notch or arrow key while it has the focus — with where it is and what the
change is made with. The points that move along with a selection report
through onChange only: the change belongs to the point being operated.
Parameters
| Parameter | Type |
|---|---|
value | PointPosition |
source | ChangeSource |
Returns
void
readOnly?
readOnly?: boolean;
Defined in: react/src/components/PointsEditor/Point.tsx:57
Overrides the readOnly of PointsEditor.Root.
style?
style?: CSSProperties & object & object;
Defined in: react/src/components/PointsEditor/Point.tsx:97
Type Declaration
--color?
"--color"?: string | number;
--translate?
"--translate"?: string | number;
value
value: T;
Defined in: react/src/components/PointsEditor/Point.tsx:39
Where the point is, as { x, y } from 0 to 1 on each axis, with y
growing downwards.
wheel?
wheel?: ModifierValue<InputEventOption> | null;
Defined in: react/src/components/PointsEditor/Point.tsx:60
Overrides the wheel of PointsEditor.Root.