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

Interface: PointsEditorPoint

Defined in: dom/src/points-editor/index.ts:60

What a point tells the editor about itself, so that a selection can be moved without the editor knowing how the points are stored.

Properties​

beforeWheel?​

optional beforeWheel?: () => void;

Defined in: dom/src/points-editor/index.ts:75

Called just before the wheel moves this point as the focused one, so that it can report its change as started before the value arrives.

Returns​

void


element?​

optional element?: Element | null;

Defined in: dom/src/points-editor/index.ts:68

The point's own element, to match the focus and a press against.


max?​

optional max?: Partial<PointPosition>;

Defined in: dom/src/points-editor/index.ts:63


min?​

optional min?: Partial<PointPosition>;

Defined in: dom/src/points-editor/index.ts:62


onChange?​

optional onChange?: (value) => void;

Defined in: dom/src/points-editor/index.ts:66

Parameters​

ParameterType
valuePointPosition

Returns​

void


readonly?​

optional readonly?: boolean;

Defined in: dom/src/points-editor/index.ts:65

A point that cannot move stays put while the rest of a selection moves.


value​

value: PointPosition;

Defined in: dom/src/points-editor/index.ts:61


wheel?​

optional wheel?:
| ModifierValue<InputEventOption>
| null;

Defined in: dom/src/points-editor/index.ts:70

The wheel option the point resolved, null for no wheel.