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

Function checkDimensionCalc

test/jasmine/tests/parcats_test.js:31–40  ·  view source on GitHub ↗
(gd, dimInd, dimProps)

Source from the content-addressed store, hash-verified

29// Validation helpers
30// ==================
31function checkDimensionCalc(gd, dimInd, dimProps) {
32 /** @type {ParcatsModel} */
33 var calcdata = gd.calcdata[0][0];
34 var dimension = calcdata.dimensions[dimInd];
35 for(var dimProp in dimProps) {
36 if(dimProps.hasOwnProperty(dimProp)) {
37 expect(dimension[dimProp]).toEqual(dimProps[dimProp]);
38 }
39 }
40}
41
42function checkCategoryCalc(gd, dimInd, catInd, catProps) {
43 /** @type {ParcatsModel} */

Callers 5

parcats_test.jsFile · 0.85
checkInitialDimensionsFunction · 0.85
checkReorderedDimensionsFunction · 0.85
checkMidDragDimensionsFunction · 0.85
checkFinalDimensionsFunction · 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…