Skip to main content

ParsedHandleId

What a handle id names.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { ParsedHandleId } from "@mapcairn/core";

interface ParsedHandleId

Properties​

index​

readonly index: number;

The vertex index, the index a midpoint inserts at, or 0 for a radius handle.

kind​

readonly kind: MapEditHandleKind;

What the handle stands for: a vertex, a midpoint or a radius.

shapeId​

readonly shapeId: string;

The id of the shape the handle belongs to.

See also​

Source: packages/core/src/draw/handles.ts:96