@@ -89,7 +89,8 @@ exports.quadrature = function quadrature(dx, dy) {
8989 *
9090 * @param {object } pointData : point data object (gets mutated here)
9191 * @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
9394 */
9495exports . appendArrayPointValue = function ( pointData , trace , pointNumber ) {
9596 var arrayAttrs = trace . _arrayAttrs ;
@@ -111,7 +112,17 @@ exports.appendArrayPointValue = function(pointData, trace, pointNumber) {
111112 }
112113} ;
113114
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 ) {
115126 var arrayAttrs = trace . _arrayAttrs ;
116127
117128 if ( ! arrayAttrs ) {
0 commit comments