(value)
| 36 | } |
| 37 | |
| 38 | function 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 | |
| 59 | function getSortedDatasetIndices(chart, filterVisible) { |
| 60 | const keys = []; |