PositionSetTapBehavior
Source: tapBehavior.js:135
Tap sets the current slice/index from the display position (plane point). It then emits a tap event, on every tap, with as detail:
position: the tapped position values,annotations: an AnnotationTapHit for the top most annotation under the tap, one per draw layer with a hit,segments: a SegmentationTapHit per mask view layer with segments under the tap. Emptyannotationsandsegmentsmean that nothing was hit, for example to reset a selection.
Constructor
new PositionSetTapBehavior(): PositionSetTapBehaviorInstance Methods
onTap(point: Point2D, layerGroup: LayerGroup)
Set stack position from the tapped display point (plane coordinates) and emit the tap event.
Parameters
point(Point2D) — Display position.layerGroup(LayerGroup) — The layer group.