import { type Html } from '../html/index.js';
import type { Point, Shape } from './shape.js';
/**
* Configuration for `Canvas.view`. Pointer handlers are optional and
* receive a `Point` already translated to the canvas's internal coordinate
* space (the `width` and `height` passed here), independent of how the
* canvas is sized in CSS.
*/
export type ViewConfig = Readonly<{
width: number;
height: number;
shapes: ReadonlyArray;
className?: string | undefined;
onPointerDown?: ((point: Point) => Message) | undefined;
onPointerMove?: ((point: Point) => Message) | undefined;
onPointerUp?: ((point: Point) => Message) | undefined;
}>;
/**
* A virtual DOM `