Skip to content
EliteChart

axisPlusButtonHit

Documentation


Documentation / @elitechart/core / axisPlusButtonHit

code
function axisPlusButtonHit(
   bbox, 
   x, 
   y): boolean;

Defined in: renderer/axis-plus-button.ts:143

Return true when (x, y) is inside the button's bbox. Use to decide whether a pointer-up should open the menu vs treat the click as a normal axis drag.

Parameters

bbox

| { size: number; x: number; y: number; } | null

x

number

y

number

Returns

boolean

Example

code
import { axisPlusButtonHit } from '@elitechart/core';
if (axisPlusButtonHit(bbox, cursor.x, cursor.y)) openMenu();