@@ -89,7 +89,8 @@ exports.quadrature = function quadrature(dx, dy) {
89
89
*
90
90
* @param {object } pointData : point data object (gets mutated here)
91
91
* @param {object } trace : full trace object
92
- * @param {number } pointNumber : point number
92
+ * @param {number|Array(number) } pointNumber : point number. May be a length-2 array
93
+ * [row, col] to dig into 2D arrays
93
94
*/
94
95
exports . appendArrayPointValue = function ( pointData , trace , pointNumber ) {
95
96
var arrayAttrs = trace . _arrayAttrs ;
@@ -111,7 +112,17 @@ exports.appendArrayPointValue = function(pointData, trace, pointNumber) {
111
112
}
112
113
} ;
113
114
114
- exports . appendArrayPointValues = function ( pointData , trace , pointNumbers ) {
115
+ /**
116
+ * Appends values inside array attributes corresponding to given point number array
117
+ * For use when pointData references a plot entity that arose (or potentially arose)
118
+ * from multiple points in the input data
119
+ *
120
+ * @param {object } pointData : point data object (gets mutated here)
121
+ * @param {object } trace : full trace object
122
+ * @param {Array(number)|Array(Array(number)) } pointNumbers : Array of point numbers.
123
+ * Each entry in the array may itself be a length-2 array [row, col] to dig into 2D arrays
124
+ */
125
+ exports . appendArrayMultiPointValues = function ( pointData , trace , pointNumbers ) {
115
126
var arrayAttrs = trace . _arrayAttrs ;
116
127
117
128
if ( ! arrayAttrs ) {
0 commit comments