Skip to content

anim-format (runtime format) / hitTestMarkerData

Function: hitTestMarkerData() ​

ts
function hitTestMarkerData(
   a, 
   b, 
   options?
): MarkerHitResult;

Do two markers touch, and where? Each is marker data (taken as it is, after its own matrix), a placed marker { marker, x, y, scale, … }, or a shape from markerHitShape. point = the centre of the overlap, in the compared space; data tags never hit.

Parameters ​

ParameterType
a| MarkerData | PlacedMarker | HitShape
b| MarkerData | PlacedMarker | HitShape
options?MarkerHitOptions

Returns ​

MarkerHitResult

HereSplash — 2D animation for the web