@maplat/tin 0.9.4 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/kinks.js DELETED
@@ -1,669 +0,0 @@
1
- import { point } from "@turf/helpers";
2
- export default function findIntersections(coords) {
3
- const arcs = new ArcCollection(coords);
4
- const xy = arcs.findSegmentIntersections();
5
- return dedupIntersections(xy).reduce((prev, apoint, index, array) => {
6
- if (!prev)
7
- prev = {};
8
- prev[`${apoint.x}:${apoint.y}`] = apoint;
9
- if (index != array.length - 1)
10
- return prev;
11
- return Object.keys(prev).map(key => point([prev[key].x, prev[key].y]));
12
- }, []);
13
- }
14
- class ArcCollection {
15
- constructor(coords) {
16
- this._zlimit = 0;
17
- this.initArcs(coords);
18
- }
19
- initArcs(arcs) {
20
- const xx = [], yy = [];
21
- const nn = arcs.map(points => {
22
- const n = points ? points.length : 0;
23
- for (let i = 0; i < n; i++) {
24
- xx.push(points[i][0]);
25
- yy.push(points[i][1]);
26
- }
27
- return n;
28
- });
29
- this.initXYData(nn, xx, yy);
30
- }
31
- initXYData(nn, xx, yy) {
32
- const size = nn.length;
33
- this._xx = new Float64Array(xx);
34
- this._yy = new Float64Array(yy);
35
- this._nn = new Uint32Array(nn);
36
- this._zz = null;
37
- this._zlimit = 0;
38
- this._filteredArcIter = null;
39
- this._ii = new Uint32Array(size);
40
- let idx = 0;
41
- for (let j = 0; j < size; j++) {
42
- this._ii[j] = idx;
43
- idx += nn[j];
44
- }
45
- if (idx != this._xx.length || this._xx.length != this._yy.length) {
46
- error("ArcCollection#initXYData() Counting error");
47
- }
48
- this.initBounds();
49
- this._arcIter = new ArcIter(this._xx, this._yy);
50
- }
51
- initBounds() {
52
- const data = this.calcArcBounds_(this._xx, this._yy, this._nn);
53
- this._bb = data.bb;
54
- this._allBounds = data.bounds;
55
- }
56
- calcArcBounds_(xx, yy, nn) {
57
- const numArcs = nn.length, bb = new Float64Array(numArcs * 4), bounds = new Bounds();
58
- let arcOffs = 0, arcLen, j, b;
59
- for (let i = 0; i < numArcs; i++) {
60
- arcLen = nn[i];
61
- if (arcLen > 0) {
62
- j = i * 4;
63
- b = calcArcBounds(xx, yy, arcOffs, arcLen);
64
- bb[j++] = b[0];
65
- bb[j++] = b[1];
66
- bb[j++] = b[2];
67
- bb[j] = b[3];
68
- arcOffs += arcLen;
69
- bounds.mergeBounds(b);
70
- }
71
- }
72
- return {
73
- bb,
74
- bounds
75
- };
76
- }
77
- getBounds() {
78
- return this._allBounds.clone();
79
- }
80
- forEachSegment(cb) {
81
- let count = 0;
82
- for (let i = 0, n = this.size(); i < n; i++) {
83
- count += this.forEachArcSegment(i, cb);
84
- }
85
- return count;
86
- }
87
- size() {
88
- return (this._ii && this._ii.length) || 0;
89
- }
90
- forEachArcSegment(arcId, cb) {
91
- const fw = arcId >= 0, absId = fw ? arcId : ~arcId, zlim = this.getRetainedInterval(), n = this._nn[absId], step = fw ? 1 : -1;
92
- let v1 = fw ? this._ii[absId] : this._ii[absId] + n - 1, v2 = v1, count = 0;
93
- for (let j = 1; j < n; j++) {
94
- v2 += step;
95
- if (zlim === 0 || this._zz[v2] >= zlim) {
96
- cb(v1, v2, this._xx, this._yy);
97
- v1 = v2;
98
- count++;
99
- }
100
- }
101
- return count;
102
- }
103
- getRetainedInterval() {
104
- return this._zlimit;
105
- }
106
- getVertexData() {
107
- return {
108
- xx: this._xx,
109
- yy: this._yy,
110
- zz: this._zz,
111
- bb: this._bb,
112
- nn: this._nn,
113
- ii: this._ii
114
- };
115
- }
116
- getUint32Array(count) {
117
- const bytes = count * 4;
118
- if (!this.buf || this.buf.byteLength < bytes) {
119
- this.buf = new ArrayBuffer(bytes);
120
- }
121
- return new Uint32Array(this.buf, 0, count);
122
- }
123
- getAvgSegment2() {
124
- let dx = 0, dy = 0;
125
- const count = this.forEachSegment((i, j, xx, yy) => {
126
- dx += Math.abs(xx[i] - xx[j]);
127
- dy += Math.abs(yy[i] - yy[j]);
128
- });
129
- return [dx / count || 0, dy / count || 0];
130
- }
131
- calcSegmentIntersectionStripeCount() {
132
- const yrange = this.getBounds().height(), segLen = this.getAvgSegment2()[1];
133
- let count = 1;
134
- if (segLen > 0 && yrange > 0) {
135
- count = Math.ceil(yrange / segLen / 20);
136
- }
137
- return count || 1;
138
- }
139
- findSegmentIntersections() {
140
- const bounds = this.getBounds(), ymin = bounds.ymin, yrange = bounds.ymax - ymin, stripeCount = this.calcSegmentIntersectionStripeCount(), stripeSizes = new Uint32Array(stripeCount), stripeId = stripeCount > 1
141
- ? (y) => Math.floor(((stripeCount - 1) * (y - ymin)) / yrange)
142
- : () => 0;
143
- let i, j;
144
- this.forEachSegment((id1, id2, xx, yy) => {
145
- let s1 = stripeId(yy[id1]);
146
- const s2 = stripeId(yy[id2]);
147
- while (true) {
148
- stripeSizes[s1] = stripeSizes[s1] + 2;
149
- if (s1 == s2)
150
- break;
151
- s1 += s2 > s1 ? 1 : -1;
152
- }
153
- });
154
- const stripeData = this.getUint32Array(utilsSum(stripeSizes));
155
- let offs = 0;
156
- const stripes = [];
157
- utilsForEach(stripeSizes, (stripeSize) => {
158
- const start = offs;
159
- offs += stripeSize;
160
- stripes.push(stripeData.subarray(start, offs));
161
- });
162
- initializeArray(stripeSizes, 0);
163
- this.forEachSegment((id1, id2, xx, yy) => {
164
- let s1 = stripeId(yy[id1]);
165
- const s2 = stripeId(yy[id2]);
166
- let count, stripe;
167
- while (true) {
168
- count = stripeSizes[s1];
169
- stripeSizes[s1] = count + 2;
170
- stripe = stripes[s1];
171
- stripe[count] = id1;
172
- stripe[count + 1] = id2;
173
- if (s1 == s2)
174
- break;
175
- s1 += s2 > s1 ? 1 : -1;
176
- }
177
- });
178
- const raw = this.getVertexData(), intersections = [];
179
- let arr;
180
- for (i = 0; i < stripeCount; i++) {
181
- arr = intersectSegments(stripes[i], raw.xx, raw.yy);
182
- for (j = 0; j < arr.length; j++) {
183
- intersections.push(arr[j]);
184
- }
185
- }
186
- return dedupIntersections(intersections);
187
- }
188
- }
189
- function error(...args) {
190
- const msg = args.join(" ");
191
- throw new Error(msg);
192
- }
193
- function isArrayLike(obj) {
194
- if (!obj)
195
- return false;
196
- if (isArray(obj))
197
- return true;
198
- if (isString(obj))
199
- return false;
200
- if (obj.length === 0)
201
- return true;
202
- return obj.length > 0;
203
- }
204
- function isString(obj) {
205
- return obj != null && obj.toString === String.prototype.toString;
206
- }
207
- function isArray(obj) {
208
- return Array.isArray(obj);
209
- }
210
- function utilsSum(arr, info) {
211
- if (!isArrayLike(arr))
212
- error("utils.sum() expects an array, received:", arr);
213
- let tot = 0, nan = 0, val;
214
- for (let i = 0, n = arr.length; i < n; i++) {
215
- val = arr[i];
216
- if (val) {
217
- tot += val;
218
- }
219
- else if (isNaN(val)) {
220
- nan++;
221
- }
222
- }
223
- if (info) {
224
- info.nan = nan;
225
- }
226
- return tot;
227
- }
228
- function utilsForEach(arr, func, ctx) {
229
- if (!isArrayLike(arr)) {
230
- throw new Error(`#forEach() takes an array-like argument. ${arr}`);
231
- }
232
- for (let i = 0, n = arr.length; i < n; i++) {
233
- func.call(ctx, arr[i], i);
234
- }
235
- }
236
- function initializeArray(arr, init) {
237
- for (let i = 0, len = arr.length; i < len; i++) {
238
- arr[i] = init;
239
- }
240
- return arr;
241
- }
242
- function intersectSegments(ids, xx, yy) {
243
- const lim = ids.length - 2, intersections = [];
244
- let s1p1, s1p2, s2p1, s2p2, s1p1x, s1p2x, s2p1x, s2p2x, s1p1y, s1p2y, s2p1y, s2p2y, hit, seg1, seg2, i, j;
245
- sortSegmentIds(xx, ids);
246
- i = 0;
247
- while (i < lim) {
248
- s1p1 = ids[i];
249
- s1p2 = ids[i + 1];
250
- s1p1x = xx[s1p1];
251
- s1p2x = xx[s1p2];
252
- s1p1y = yy[s1p1];
253
- s1p2y = yy[s1p2];
254
- j = i;
255
- while (j < lim) {
256
- j += 2;
257
- s2p1 = ids[j];
258
- s2p1x = xx[s2p1];
259
- if (s1p2x < s2p1x)
260
- break;
261
- s2p1y = yy[s2p1];
262
- s2p2 = ids[j + 1];
263
- s2p2x = xx[s2p2];
264
- s2p2y = yy[s2p2];
265
- if (s1p1y >= s2p1y) {
266
- if (s1p1y > s2p2y && s1p2y > s2p1y && s1p2y > s2p2y)
267
- continue;
268
- }
269
- else {
270
- if (s1p1y < s2p2y && s1p2y < s2p1y && s1p2y < s2p2y)
271
- continue;
272
- }
273
- if (s1p1 == s2p1 || s1p1 == s2p2 || s1p2 == s2p1 || s1p2 == s2p2) {
274
- continue;
275
- }
276
- hit = segmentIntersection(s1p1x, s1p1y, s1p2x, s1p2y, s2p1x, s2p1y, s2p2x, s2p2y);
277
- if (hit) {
278
- seg1 = [s1p1, s1p2];
279
- seg2 = [s2p1, s2p2];
280
- intersections.push(formatIntersection(hit, seg1, seg2, xx, yy));
281
- if (hit.length == 4) {
282
- intersections.push(formatIntersection(hit.slice(2), seg1, seg2, xx, yy));
283
- }
284
- }
285
- }
286
- i += 2;
287
- }
288
- return intersections;
289
- }
290
- function segmentIntersection(ax, ay, bx, by, cx, cy, dx, dy) {
291
- const hit = segmentHit(ax, ay, bx, by, cx, cy, dx, dy);
292
- let p = null;
293
- if (hit) {
294
- p = crossIntersection(ax, ay, bx, by, cx, cy, dx, dy);
295
- if (!p) {
296
- p = collinearIntersection(ax, ay, bx, by, cx, cy, dx, dy);
297
- }
298
- else if (endpointHit(ax, ay, bx, by, cx, cy, dx, dy)) {
299
- p = null;
300
- }
301
- }
302
- return p;
303
- }
304
- function segmentHit(ax, ay, bx, by, cx, cy, dx, dy) {
305
- return (orient2D(ax, ay, bx, by, cx, cy) * orient2D(ax, ay, bx, by, dx, dy) <= 0 &&
306
- orient2D(cx, cy, dx, dy, ax, ay) * orient2D(cx, cy, dx, dy, bx, by) <= 0);
307
- }
308
- function orient2D(ax, ay, bx, by, cx, cy) {
309
- return determinant2D(ax - cx, ay - cy, bx - cx, by - cy);
310
- }
311
- function determinant2D(a, b, c, d) {
312
- return a * d - b * c;
313
- }
314
- function crossIntersection(ax, ay, bx, by, cx, cy, dx, dy) {
315
- let p = lineIntersection(ax, ay, bx, by, cx, cy, dx, dy);
316
- let nearest;
317
- if (p) {
318
- nearest = nearestPoint(p[0], p[1], ax, ay, bx, by, cx, cy, dx, dy);
319
- if (nearest == 1) {
320
- p = lineIntersection(bx, by, ax, ay, cx, cy, dx, dy);
321
- }
322
- else if (nearest == 2) {
323
- p = lineIntersection(cx, cy, dx, dy, ax, ay, bx, by);
324
- }
325
- else if (nearest == 3) {
326
- p = lineIntersection(dx, dy, cx, cy, ax, ay, bx, by);
327
- }
328
- }
329
- if (p) {
330
- clampIntersectionPoint(p, ax, ay, bx, by, cx, cy, dx, dy);
331
- }
332
- return p;
333
- }
334
- function lineIntersection(ax, ay, bx, by, cx, cy, dx, dy) {
335
- const den = determinant2D(bx - ax, by - ay, dx - cx, dy - cy);
336
- const eps = 1e-18;
337
- let p;
338
- if (den === 0)
339
- return null;
340
- const m = orient2D(cx, cy, dx, dy, ax, ay) / den;
341
- if (den <= eps && den >= -eps) {
342
- p = findEndpointInRange(ax, ay, bx, by, cx, cy, dx, dy);
343
- }
344
- else {
345
- p = [ax + m * (bx - ax), ay + m * (by - ay)];
346
- }
347
- return p;
348
- }
349
- function findEndpointInRange(ax, ay, bx, by, cx, cy, dx, dy) {
350
- let p = null;
351
- if (!outsideRange(ax, cx, dx) && !outsideRange(ay, cy, dy)) {
352
- p = [ax, ay];
353
- }
354
- else if (!outsideRange(bx, cx, dx) && !outsideRange(by, cy, dy)) {
355
- p = [bx, by];
356
- }
357
- else if (!outsideRange(cx, ax, bx) && !outsideRange(cy, ay, by)) {
358
- p = [cx, cy];
359
- }
360
- else if (!outsideRange(dx, ax, bx) && !outsideRange(dy, ay, by)) {
361
- p = [dx, dy];
362
- }
363
- return p;
364
- }
365
- function outsideRange(a, b, c) {
366
- let out;
367
- if (b < c) {
368
- out = a < b || a > c;
369
- }
370
- else if (b > c) {
371
- out = a > b || a < c;
372
- }
373
- else {
374
- out = a != b;
375
- }
376
- return out;
377
- }
378
- function nearestPoint(x, y, ...args) {
379
- let minIdx = -1, minDist = Infinity, dist;
380
- for (let i = 0, j = 0, n = args.length; j < n; i++, j += 2) {
381
- dist = distanceSq(x, y, args[j], args[j + 1]);
382
- if (dist < minDist) {
383
- minDist = dist;
384
- minIdx = i;
385
- }
386
- }
387
- return minIdx;
388
- }
389
- function distanceSq(ax, ay, bx, by) {
390
- const dx = ax - bx, dy = ay - by;
391
- return dx * dx + dy * dy;
392
- }
393
- function clampIntersectionPoint(p, ax, ay, bx, by, cx, cy, dx, dy) {
394
- let x = p[0], y = p[1];
395
- x = clampToCloseRange(x, ax, bx);
396
- x = clampToCloseRange(x, cx, dx);
397
- y = clampToCloseRange(y, ay, by);
398
- y = clampToCloseRange(y, cy, dy);
399
- p[0] = x;
400
- p[1] = y;
401
- }
402
- function clampToCloseRange(a, b, c) {
403
- let lim;
404
- if (outsideRange(a, b, c)) {
405
- lim = Math.abs(a - b) < Math.abs(a - c) ? b : c;
406
- if (Math.abs(a - lim) > 1e-15) {
407
- }
408
- a = lim;
409
- }
410
- return a;
411
- }
412
- function collinearIntersection(ax, ay, bx, by, cx, cy, dx, dy) {
413
- const minX = Math.min(ax, bx, cx, dx), maxX = Math.max(ax, bx, cx, dx), minY = Math.min(ay, by, cy, dy), maxY = Math.max(ay, by, cy, dy), useY = maxY - minY > maxX - minX;
414
- let coords = [];
415
- if (useY ? inside(ay, minY, maxY) : inside(ax, minX, maxX)) {
416
- coords.push(ax, ay);
417
- }
418
- if (useY ? inside(by, minY, maxY) : inside(bx, minX, maxX)) {
419
- coords.push(bx, by);
420
- }
421
- if (useY ? inside(cy, minY, maxY) : inside(cx, minX, maxX)) {
422
- coords.push(cx, cy);
423
- }
424
- if (useY ? inside(dy, minY, maxY) : inside(dx, minX, maxX)) {
425
- coords.push(dx, dy);
426
- }
427
- if (coords.length != 2 && coords.length != 4) {
428
- coords = null;
429
- }
430
- else if (coords.length == 4 &&
431
- coords[0] == coords[2] &&
432
- coords[1] == coords[3]) {
433
- coords = null;
434
- }
435
- return coords;
436
- }
437
- function endpointHit(ax, ay, bx, by, cx, cy, dx, dy) {
438
- return ((ax == cx && ay == cy) ||
439
- (ax == dx && ay == dy) ||
440
- (bx == cx && by == cy) ||
441
- (bx == dx && by == dy));
442
- }
443
- function inside(x, minX, maxX) {
444
- return x > minX && x < maxX;
445
- }
446
- function sortSegmentIds(xx, ids) {
447
- orderSegmentIds(xx, ids);
448
- quicksortSegmentIds(xx, ids, 0, ids.length - 2);
449
- }
450
- function orderSegmentIds(xx, ids) {
451
- for (let i = 0, n = ids.length; i < n; i += 2) {
452
- if (xx[ids[i]] > xx[ids[i + 1]]) {
453
- swap(ids, i, i + 1);
454
- }
455
- }
456
- }
457
- function swap(ids, i, j) {
458
- const tmp = ids[i];
459
- ids[i] = ids[j];
460
- ids[j] = tmp;
461
- }
462
- function quicksortSegmentIds(a, ids, lo, hi) {
463
- let i = lo, j = hi, pivot, tmp;
464
- while (i < hi) {
465
- pivot = a[ids[((lo + hi) >> 2) << 1]];
466
- while (i <= j) {
467
- while (a[ids[i]] < pivot)
468
- i += 2;
469
- while (a[ids[j]] > pivot)
470
- j -= 2;
471
- if (i <= j) {
472
- tmp = ids[i];
473
- ids[i] = ids[j];
474
- ids[j] = tmp;
475
- tmp = ids[i + 1];
476
- ids[i + 1] = ids[j + 1];
477
- ids[j + 1] = tmp;
478
- i += 2;
479
- j -= 2;
480
- }
481
- }
482
- if (j - lo < 40)
483
- insertionSortSegmentIds(a, ids, lo, j);
484
- else
485
- quicksortSegmentIds(a, ids, lo, j);
486
- if (hi - i < 40) {
487
- insertionSortSegmentIds(a, ids, i, hi);
488
- return;
489
- }
490
- lo = i;
491
- j = hi;
492
- }
493
- }
494
- function insertionSortSegmentIds(arr, ids, start, end) {
495
- let id, id2;
496
- for (let j = start + 2; j <= end; j += 2) {
497
- id = ids[j];
498
- id2 = ids[j + 1];
499
- let i;
500
- for (i = j - 2; i >= start && arr[id] < arr[ids[i]]; i -= 2) {
501
- ids[i + 2] = ids[i];
502
- ids[i + 3] = ids[i + 1];
503
- }
504
- ids[i + 2] = id;
505
- ids[i + 3] = id2;
506
- }
507
- }
508
- function formatIntersection(xy, s1, s2, xx, yy) {
509
- const x = xy[0], y = xy[1];
510
- s1 = formatIntersectingSegment(x, y, s1[0], s1[1], xx, yy);
511
- s2 = formatIntersectingSegment(x, y, s2[0], s2[1], xx, yy);
512
- const a = s1[0] < s2[0] ? s1 : s2;
513
- const b = a == s1 ? s2 : s1;
514
- return { x, y, a, b };
515
- }
516
- function formatIntersectingSegment(x, y, id1, id2, xx, yy) {
517
- let i = id1 < id2 ? id1 : id2, j = i === id1 ? id2 : id1;
518
- if (xx[i] == x && yy[i] == y) {
519
- j = i;
520
- }
521
- else if (xx[j] == x && yy[j] == y) {
522
- i = j;
523
- }
524
- return [i, j];
525
- }
526
- function dedupIntersections(arr) {
527
- const index = {};
528
- return arr.filter((o) => {
529
- const key = getIntersectionKey(o);
530
- if (key in index) {
531
- return false;
532
- }
533
- index[key] = true;
534
- return true;
535
- });
536
- }
537
- function getIntersectionKey(o) {
538
- return `${o.a.join(",")};${o.b.join(",")}`;
539
- }
540
- class ArcIter {
541
- constructor(xx, yy) {
542
- this._i = 0;
543
- this._n = 0;
544
- this._inc = 1;
545
- this.i = 0;
546
- this.x = 0;
547
- this.y = 0;
548
- this._xx = xx;
549
- this._yy = yy;
550
- }
551
- }
552
- function calcArcBounds(xx, yy, start, len) {
553
- let i = start | 0;
554
- const n = isNaN(len) ? xx.length - i : len + i;
555
- let x, y, xmin, ymin, xmax, ymax;
556
- if (n > 0) {
557
- xmin = xmax = xx[i];
558
- ymin = ymax = yy[i];
559
- }
560
- else
561
- return [undefined, undefined, undefined, undefined];
562
- for (i++; i < n; i++) {
563
- x = xx[i];
564
- y = yy[i];
565
- if (x < xmin)
566
- xmin = x;
567
- if (x > xmax)
568
- xmax = x;
569
- if (y < ymin)
570
- ymin = y;
571
- if (y > ymax)
572
- ymax = y;
573
- }
574
- return [xmin, ymin, xmax, ymax];
575
- }
576
- class Bounds {
577
- constructor(...args) {
578
- if (args.length > 0) {
579
- this.setBounds(args);
580
- }
581
- }
582
- cloneBounds() {
583
- return this.clone();
584
- }
585
- clone() {
586
- return new Bounds(this.xmin, this.ymin, this.xmax, this.ymax);
587
- }
588
- width() {
589
- return this.xmax - this.xmin || 0;
590
- }
591
- height() {
592
- return this.ymax - this.ymin || 0;
593
- }
594
- setBounds(a, b, c, d) {
595
- if (arguments.length == 1) {
596
- if (isArrayLike(a)) {
597
- b = a[1];
598
- c = a[2];
599
- d = a[3];
600
- a = a[0];
601
- }
602
- else {
603
- b = a.ymin;
604
- c = a.xmax;
605
- d = a.ymax;
606
- a = a.xmin;
607
- }
608
- }
609
- this.xmin = a;
610
- this.ymin = b;
611
- this.xmax = c;
612
- this.ymax = d;
613
- if (a > c || b > d)
614
- this.update();
615
- return this;
616
- }
617
- update() {
618
- let tmp;
619
- if (this.xmin > this.xmax) {
620
- tmp = this.xmin;
621
- this.xmin = this.xmax;
622
- this.xmax = tmp;
623
- }
624
- if (this.ymin > this.ymax) {
625
- tmp = this.ymin;
626
- this.ymin = this.ymax;
627
- this.ymax = tmp;
628
- }
629
- }
630
- mergeBounds(bb, ...args) {
631
- let a, b, c, d;
632
- if (bb instanceof Bounds) {
633
- a = bb.xmin;
634
- b = bb.ymin;
635
- c = bb.xmax;
636
- d = bb.ymax;
637
- }
638
- else if (args.length == 3) {
639
- a = bb;
640
- b = args[0];
641
- c = args[1];
642
- d = args[2];
643
- }
644
- else if (bb.length == 4) {
645
- a = bb[0];
646
- b = bb[1];
647
- c = bb[2];
648
- d = bb[3];
649
- }
650
- else {
651
- error("Bounds#mergeBounds() invalid argument:", bb);
652
- }
653
- if (this.xmin === void 0) {
654
- this.setBounds(a, b, c, d);
655
- }
656
- else {
657
- if (a < this.xmin)
658
- this.xmin = a;
659
- if (b < this.ymin)
660
- this.ymin = b;
661
- if (c > this.xmax)
662
- this.xmax = c;
663
- if (d > this.ymax)
664
- this.ymax = d;
665
- }
666
- return this;
667
- }
668
- }
669
- //# sourceMappingURL=kinks.js.map