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

Function defaultClip

src/core/core.datasetController.js:23–36  ·  view source on GitHub ↗
(xScale, yScale, allowedOverflow)

Source from the content-addressed store, hash-verified

21}
22
23function defaultClip(xScale, yScale, allowedOverflow) {
24 if (allowedOverflow === false) {
25 return false;
26 }
27 const x = scaleClip(xScale, allowedOverflow);
28 const y = scaleClip(yScale, allowedOverflow);
29
30 return {
31 top: y.end,
32 right: x.end,
33 bottom: y.start,
34 left: x.start
35 };
36}
37
38function toClip(value) {
39 let t, r, b, l;

Callers 1

_updateMethod · 0.85

Calls 1

scaleClipFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…