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

Function checkMidDragDimensions

test/jasmine/tests/parcats_test.js:536–543  ·  view source on GitHub ↗
(dragDimStartX)

Source from the content-addressed store, hash-verified

534 }
535
536 function checkMidDragDimensions(dragDimStartX) {
537 checkDimensionCalc(gd, 0,
538 {dimensionInd: 0, displayInd: 0, dragX: null, dimensionLabel: 'One', count: 9});
539 checkDimensionCalc(gd, 1,
540 {dimensionInd: 1, displayInd: 1, dragX: dragDimStartX + dimDx / 2, dimensionLabel: 'Two', count: 9});
541 checkDimensionCalc(gd, 2,
542 {dimensionInd: 2, displayInd: 2, dragX: null, dimensionLabel: 'Three', count: 9});
543 }
544
545 it('should support dragging dimension label to reorder dimensions in freeform arrangement', function(done) {
546 // Set arrangement

Callers 1

parcats_test.jsFile · 0.85

Calls 1

checkDimensionCalcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…