MCPcopy Create free account
hub / github.com/chartjs/Chart.js / x

Function x

test/fixtures/controller.line/segments/range.js:1–3  ·  view source on GitHub ↗
(ctx, {min = -Infinity, max = Infinity})

Source from the content-addressed store, hash-verified

1function x(ctx, {min = -Infinity, max = Infinity}) {
2 return (ctx.p0.parsed.x >= min || ctx.p1.parsed.x >= min) && (ctx.p0.parsed.x < max && ctx.p1.parsed.x < max);
3}
4
5function y(ctx, {min = -Infinity, max = Infinity}) {
6 return (ctx.p0.parsed.y >= min || ctx.p1.parsed.y >= min) && (ctx.p0.parsed.y < max || ctx.p1.parsed.y < max);

Callers 2

xyFunction · 0.70
range.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected