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

Function toClip

src/core/core.datasetController.js:38–57  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

36}
37
38function toClip(value) {
39 let t, r, b, l;
40
41 if (isObject(value)) {
42 t = value.top;
43 r = value.right;
44 b = value.bottom;
45 l = value.left;
46 } else {
47 t = r = b = l = value;
48 }
49
50 return {
51 top: t,
52 right: r,
53 bottom: b,
54 left: l,
55 disabled: value === false
56 };
57}
58
59function getSortedDatasetIndices(chart, filterVisible) {
60 const keys = [];

Callers 1

_updateMethod · 0.85

Calls 1

isObjectFunction · 0.85

Tested by

no test coverage detected