* Create and return a new CategoryModel object * @param {Number} dimensionInd * @param {Number} categoryInd * The display index of this category (where 0 is the topmost category) * @param {String} categoryValue * @param {String} categoryLabel * @return {CategoryModel}
(dimensionInd, categoryInd, categoryValue, categoryLabel)
| 283 | * @return {CategoryModel} |
| 284 | */ |
| 285 | function createCategoryModel(dimensionInd, categoryInd, categoryValue, categoryLabel) { |
| 286 | return { |
| 287 | dimensionInd: dimensionInd, |
| 288 | categoryInd: categoryInd, |
| 289 | categoryValue: categoryValue, |
| 290 | displayInd: categoryInd, |
| 291 | categoryLabel: categoryLabel, |
| 292 | valueInds: [], |
| 293 | count: 0, |
| 294 | dragY: null |
| 295 | }; |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Update a CategoryModel object with a new value index |
no outgoing calls
no test coverage detected
searching dependent graphs…