Skip to content

anim-format (runtime format) / HitShape

Type Alias: HitShape ​

ts
type HitShape = (
  | {
  kind: "none";
}
  | {
  kind: "point";
  p: MarkerPoint;
}
  | {
  kind: "path";
  pts: MarkerPoint[];
}
  | {
  kind: "area";
  pts: MarkerPoint[];
}) & object;

a marker resolved to the space it is compared in (markerHitShape)

Type Declaration ​

NameType
boundsMarkerBounds | null
centerMarkerPoint

HereSplash — 2D animation for the web