|
35888 | 35888 | resolvefilter: ResolveFilter |
35889 | 35889 | }); |
35890 | 35890 |
|
35891 | | - var version = "5.17.1"; |
| 35891 | + var version = "5.17.2"; |
35892 | 35892 |
|
35893 | 35893 | const RawCode = 'RawCode'; |
35894 | 35894 | const Literal = 'Literal'; |
|
37539 | 37539 | utcmilliseconds: fn('getUTCMilliseconds', DATE, 0), |
37540 | 37540 | // sequence functions |
37541 | 37541 | length: fn('length', null, -1), |
37542 | | - join: fn('join', null), |
37543 | | - indexof: fn('indexOf', null), |
37544 | | - lastindexof: fn('lastIndexOf', null), |
37545 | | - slice: fn('slice', null), |
37546 | | - reverse: function (args) { |
37547 | | - return '(' + codegen(args[0]) + ').slice().reverse()'; |
37548 | | - }, |
37549 | 37542 | // STRING functions |
37550 | 37543 | parseFloat: 'parseFloat', |
37551 | 37544 | parseInt: 'parseInt', |
|
38238 | 38231 | return Math.atan2(t[0].clientY - t[1].clientY, t[0].clientX - t[1].clientX); |
38239 | 38232 | } |
38240 | 38233 |
|
| 38234 | + function array$5(seq) { |
| 38235 | + return isArray(seq) || ArrayBuffer.isView(seq) ? seq : null; |
| 38236 | + } |
| 38237 | + |
| 38238 | + function sequence$1(seq) { |
| 38239 | + return array$5(seq) || (isString(seq) ? seq : null); |
| 38240 | + } |
| 38241 | + |
| 38242 | + function join$1(seq, ...args) { |
| 38243 | + return array$5(seq).join(...args); |
| 38244 | + } |
| 38245 | + |
| 38246 | + function indexof(seq, ...args) { |
| 38247 | + return sequence$1(seq).indexOf(...args); |
| 38248 | + } |
| 38249 | + |
| 38250 | + function lastindexof(seq, ...args) { |
| 38251 | + return sequence$1(seq).lastIndexOf(...args); |
| 38252 | + } |
| 38253 | + |
| 38254 | + function slice$1(seq, ...args) { |
| 38255 | + return sequence$1(seq).slice(...args); |
| 38256 | + } |
| 38257 | + |
| 38258 | + function reverse$1(seq) { |
| 38259 | + return array$5(seq).slice().reverse(); |
| 38260 | + } |
| 38261 | + |
38241 | 38262 | function bandspace(count, paddingInner, paddingOuter) { |
38242 | 38263 | return bandSpace(count || 0, paddingInner || 0, paddingOuter || 0); |
38243 | 38264 | } |
|
38411 | 38432 | toDate, |
38412 | 38433 | toNumber, |
38413 | 38434 | toString, |
| 38435 | + indexof, |
| 38436 | + join: join$1, |
| 38437 | + lastindexof, |
| 38438 | + reverse: reverse$1, |
| 38439 | + slice: slice$1, |
38414 | 38440 | flush, |
38415 | 38441 | lerp, |
38416 | 38442 | merge: merge$3, |
|
39477 | 39503 | item: constant(item || {}), |
39478 | 39504 | group: group, |
39479 | 39505 | xy: xy, |
39480 | | - x: function (item) { |
39481 | | - return xy(item)[0]; |
39482 | | - }, |
39483 | | - y: function (item) { |
39484 | | - return xy(item)[1]; |
39485 | | - } |
| 39506 | + x: item => xy(item)[0], |
| 39507 | + y: item => xy(item)[1] |
39486 | 39508 | }; |
39487 | 39509 | } |
39488 | 39510 |
|
|
0 commit comments