Skip to content

Documentation / @finchart/core / InputConsumer

Interface: InputConsumer

Defined in: packages/core/src/interaction/input-router.ts:88

입력을 먼저 받아 볼 수 있는 것 — 드로잉 툴, 축 드래그(2.2)가 이 자리다.

handle이 true를 돌려주면 먹은 것이다: 그 이벤트는 아래(다른 소비자, 기본 pan/zoom/crosshair)로 내려가지 않는다. 판정(내 도형 위인가)은 소비자의 일이다 — 공통 hitTest 계약은 실소비자 둘이 나온 뒤(X1, 2.6).

Methods

handle()

handle(event): boolean

Defined in: packages/core/src/interaction/input-router.ts:89

Parameters

event

InputEvent

Returns

boolean