| 150999 | } |
| 151000 | |
| 151001 | function windowTransform(columns) { |
| 151002 | const t = { |
| 151003 | type: 'window', |
| 151004 | groupby: [columns.x.quantitative ? _constants.FieldNames.DensityXBin0 : columns.x.name, columns.y.quantitative ? _constants.FieldNames.DensityYBin0 : columns.y.name], |
| 151005 | ops: ['row_number'], |
| 151006 | as: [_constants.FieldNames.DensityRow] |
| 151007 | }; |
| 151008 | |
| 151009 | if (columns.sort) { |
| 151010 | t.sort = { |
| 151011 | field: [columns.sort.name], |
| 151012 | order: ['descending'] |
| 151013 | }; |
| 151014 | } |
| 151015 | |
| 151016 | return t; |
| 151017 | } |
| 151018 | },{"../../array":"FvDz","../constants":"RaLA","../top":"z3Hg"}],"H71d":[function(require,module,exports) { |
| 151019 | "use strict"; |
| 151020 | |