in indigo_renderer.js [85:95]
IndigoRenderer.prototype.renderGridToFile = function(objects, refatoms, ncolumns, filename) {
this.indigo._setSessionId();
let arr = null;
if (refatoms) {
if (refatoms.length !== objects.count())
throw new IndigoException('renderGridToFile(): refatoms[] size must be equal to the number of objects');
// TODO: check python conformance
arr = refatoms;
}
this.indigo._checkResult(this._lib.indigoRenderGridToFile(objects.id, arr, ncolumns, filename));
};