@maxgraph/core
Preparing search index...
mathUtils
findNearestSegment
Function findNearestSegment
findNearestSegment
(
state
:
CellState
,
x
:
number
,
y
:
number
)
:
number
Finds the index of the nearest segment on the given cell state for the specified coordinate pair.
Parameters
state
:
CellState
x
:
number
y
:
number
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@maxgraph/core
Loading...
Finds the index of the nearest segment on the given cell state for the specified coordinate pair.