MCPcopy Index your code
hub / github.com/plotly/plotly.js / checkDashCount

Function checkDashCount

test/jasmine/tests/parcoords_test.js:1542–1552  ·  view source on GitHub ↗
(dashArray, intervals)

Source from the content-addressed store, hash-verified

1540
1541
1542 function checkDashCount(dashArray, intervals) {
1543 // no-selection dasharrays have 2 entries:
1544 // 0 (no initial line) and a final gap as long as the whole bar
1545 // single-bar dasharrays have 4 entries:
1546 // 0 (no initial line), gap to first bar, first bar, final gap
1547 // each additional interval adds 2 entries before the final gap:
1548 // middle gap and new bar
1549
1550 var segmentCount = 2 + 2 * intervals;
1551 expect(dashArray.length).toBe(segmentCount, dashArray);
1552 }
1553
1554 it('@gl snaps ordinal constraints', function(done) {
1555 var newDashArray;

Callers 1

parcoords_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…