MCPcopy
hub / github.com/chartjs/Chart.js / isNotOverlapped

Function isNotOverlapped

src/scales/scale.radialLinear.js:166–174  ·  view source on GitHub ↗
(item, area)

Source from the content-addressed store, hash-verified

164}
165
166function isNotOverlapped(item, area) {
167 if (!area) {
168 return true;
169 }
170 const {left, top, right, bottom} = item;
171 const apexesInArea = _isPointInArea({x: left, y: top}, area) || _isPointInArea({x: left, y: bottom}, area) ||
172 _isPointInArea({x: right, y: top}, area) || _isPointInArea({x: right, y: bottom}, area);
173 return !apexesInArea;
174}
175
176function buildPointLabelItems(scale, labelSizes, padding) {
177 const items = [];

Callers 1

buildPointLabelItemsFunction · 0.85

Calls 1

_isPointInAreaFunction · 0.85

Tested by

no test coverage detected