1 | "use strict";
|
2 | var __rest = (this && this.__rest) || function (s, e) {
|
3 | var t = {};
|
4 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5 | t[p] = s[p];
|
6 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9 | t[p[i]] = s[p[i]];
|
10 | }
|
11 | return t;
|
12 | };
|
13 | Object.defineProperty(exports, "__esModule", { value: true });
|
14 | exports.Group = void 0;
|
15 | const order_1 = require("./utils/order");
|
16 | const groupN_1 = require("./groupN");
|
17 |
|
18 |
|
19 |
|
20 | const Group = (options = {}) => {
|
21 | const { channels = ['x', 'y'] } = options, rest = __rest(options, ["channels"]);
|
22 | const groupBy = (I, mark) => (0, order_1.createGroups)(channels, I, mark);
|
23 | return (0, groupN_1.GroupN)(Object.assign(Object.assign({}, rest), { groupBy }));
|
24 | };
|
25 | exports.Group = Group;
|
26 | exports.Group.props = {};
|
27 |
|
\ | No newline at end of file |