@live-change/flatten-interval-tree 0.8.26

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.
Files changed (65) hide show
  1. package/.babelrc +8 -0
  2. package/.travis.yml +14 -0
  3. package/LICENSE +21 -0
  4. package/README.md +172 -0
  5. package/dist/main.cjs.js +799 -0
  6. package/dist/main.esm.js +794 -0
  7. package/dist/main.umd.js +805 -0
  8. package/docs/Interval.html +1609 -0
  9. package/docs/IntervalTree.html +1506 -0
  10. package/docs/classes_interval.js.html +173 -0
  11. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  12. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  13. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  14. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  15. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  16. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  17. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  18. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  19. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  20. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  21. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  22. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  23. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  24. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  25. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  26. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  27. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  28. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  29. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  30. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  31. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  32. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  33. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  34. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  35. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  36. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  37. package/docs/index.html +197 -0
  38. package/docs/index.js.html +624 -0
  39. package/docs/interval.js.html +184 -0
  40. package/docs/intervalTree.js.html +624 -0
  41. package/docs/scripts/linenumber.js +25 -0
  42. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  43. package/docs/scripts/prettify/lang-css.js +2 -0
  44. package/docs/scripts/prettify/prettify.js +28 -0
  45. package/docs/styles/jsdoc-default.css +692 -0
  46. package/docs/styles/prettify-jsdoc.css +111 -0
  47. package/docs/styles/prettify-tomorrow.css +132 -0
  48. package/examples/browser/index.html +49 -0
  49. package/examples/create-react-app/package.json +15 -0
  50. package/examples/create-react-app/public/index.html +11 -0
  51. package/examples/create-react-app/src/App.js +38 -0
  52. package/examples/create-react-app/src/ComposersList.js +15 -0
  53. package/examples/create-react-app/src/index.js +5 -0
  54. package/examples/es6-module/index.html +50 -0
  55. package/examples/nodejs/index.js +23 -0
  56. package/index.d.ts +65 -0
  57. package/index.js +6 -0
  58. package/package.json +52 -0
  59. package/rollup.config.js +21 -0
  60. package/src/classes/interval.js +131 -0
  61. package/src/classes/intervalTree.js +564 -0
  62. package/src/classes/node.js +97 -0
  63. package/src/utils/constants.js +16 -0
  64. package/test/intervalTree.js +232 -0
  65. package/test/node.js +64 -0
@@ -0,0 +1,1609 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Interval - Documentation</title>
7
+
8
+ <script src="scripts/prettify/prettify.js"></script>
9
+ <script src="scripts/prettify/lang-css.js"></script>
10
+ <!--[if lt IE 9]>
11
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
+ <![endif]-->
13
+ <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
+ </head>
17
+ <body>
18
+
19
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
+ <label for="nav-trigger" class="navicon-button x">
21
+ <div class="navicon"></div>
22
+ </label>
23
+
24
+ <label for="nav-trigger" class="overlay"></label>
25
+
26
+ <nav>
27
+ <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading">Classes</li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Interval.html">Interval</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#.comparable_less_than">comparable_less_than</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#.comparable_max">comparable_max</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#clone">clone</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#equal_to">equal_to</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#intersect">intersect</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#less_than">less_than</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#merge">merge</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#not_intersect">not_intersect</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Interval.html#output">output</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="IntervalTree.html">IntervalTree</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#exist">exist</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#forEach">forEach</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#insert">insert</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#isEmpty">isEmpty</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#map">map</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#remove">remove</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="IntervalTree.html#search">search</a></span></li>
28
+ </nav>
29
+
30
+ <div id="main">
31
+
32
+ <h1 class="page-title">Interval</h1>
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+ <section>
41
+
42
+ <header>
43
+
44
+ <h2>
45
+ Interval
46
+ </h2>
47
+
48
+ <div class="class-description">Interval is a pair of numbers or a pair of any comparable objects on which may be defined predicates
49
+
50
+
51
+ </header>
52
+
53
+ <article>
54
+ <div class="container-overview">
55
+
56
+
57
+ <div class="section-method">
58
+
59
+
60
+ <h2>Constructor</h2>
61
+
62
+
63
+ <h4 class="name" id="Interval"><span class="type-signature"></span>new Interval<span class="signature">(low, high)</span><span class="type-signature"></span></h4>
64
+
65
+
66
+
67
+
68
+
69
+ <div class="description">
70
+ Accept two comparable values and creates new instance of interval
71
+ </div>
72
+
73
+
74
+
75
+
76
+
77
+ <dl class="details">
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <dt class="tag-source">Source:</dt>
105
+ <dd class="tag-source"><ul class="dummy"><li>
106
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line26">line 26</a>
107
+ </li></ul></dd>
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ </dl>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <h5>Parameters:</h5>
126
+
127
+
128
+ <table class="params">
129
+ <thead>
130
+ <tr>
131
+
132
+ <th>Name</th>
133
+
134
+
135
+ <th>Type</th>
136
+
137
+
138
+
139
+
140
+
141
+ <th class="last">Description</th>
142
+ </tr>
143
+ </thead>
144
+
145
+ <tbody>
146
+
147
+
148
+ <tr>
149
+
150
+ <td class="name"><code>low</code></td>
151
+
152
+
153
+ <td class="type">
154
+
155
+ </td>
156
+
157
+
158
+
159
+
160
+
161
+ <td class="description last">
162
+
163
+
164
+ </td>
165
+ </tr>
166
+
167
+
168
+
169
+ <tr>
170
+
171
+ <td class="name"><code>high</code></td>
172
+
173
+
174
+ <td class="type">
175
+
176
+ </td>
177
+
178
+
179
+
180
+
181
+
182
+ <td class="description last">
183
+
184
+
185
+ </td>
186
+ </tr>
187
+
188
+
189
+ </tbody>
190
+ </table>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+ </div>
208
+
209
+ </div>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+ <h3 class="subsection-title">Members</h3>
223
+
224
+
225
+
226
+ <div class="section-members">
227
+ <h4 class="name" id="max"><span class="type-signature"></span>max<span class="type-signature"></span></h4>
228
+
229
+
230
+
231
+
232
+ <div class="description">
233
+ Propery max returns clone of this interval
234
+ </div>
235
+
236
+
237
+
238
+
239
+
240
+ <dl class="details">
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+ <dt class="tag-source">Source:</dt>
268
+ <dd class="tag-source"><ul class="dummy"><li>
269
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line43">line 43</a>
270
+ </li></ul></dd>
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+ </dl>
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ </div>
287
+
288
+
289
+
290
+
291
+
292
+ <h3 class="subsection-title">Methods</h3>
293
+
294
+
295
+
296
+ <div class="section-method">
297
+
298
+
299
+
300
+ <h4 class="name" id=".comparable_less_than"><span class="type-signature">(static) </span>comparable_less_than<span class="signature">(val1, val2)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
301
+
302
+
303
+
304
+
305
+
306
+ <div class="description">
307
+ Predicate returns true if first value less than second value
308
+ </div>
309
+
310
+
311
+
312
+
313
+
314
+ <dl class="details">
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+ <dt class="tag-source">Source:</dt>
342
+ <dd class="tag-source"><ul class="dummy"><li>
343
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line119">line 119</a>
344
+ </li></ul></dd>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+ </dl>
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+ <h5>Parameters:</h5>
363
+
364
+
365
+ <table class="params">
366
+ <thead>
367
+ <tr>
368
+
369
+ <th>Name</th>
370
+
371
+
372
+ <th>Type</th>
373
+
374
+
375
+
376
+
377
+
378
+ <th class="last">Description</th>
379
+ </tr>
380
+ </thead>
381
+
382
+ <tbody>
383
+
384
+
385
+ <tr>
386
+
387
+ <td class="name"><code>val1</code></td>
388
+
389
+
390
+ <td class="type">
391
+
392
+ </td>
393
+
394
+
395
+
396
+
397
+
398
+ <td class="description last">
399
+
400
+
401
+ </td>
402
+ </tr>
403
+
404
+
405
+
406
+ <tr>
407
+
408
+ <td class="name"><code>val2</code></td>
409
+
410
+
411
+ <td class="type">
412
+
413
+ </td>
414
+
415
+
416
+
417
+
418
+
419
+ <td class="description last">
420
+
421
+
422
+ </td>
423
+ </tr>
424
+
425
+
426
+ </tbody>
427
+ </table>
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+ <div class="section-returns">
443
+ <h5>Returns:</h5>
444
+
445
+
446
+
447
+ <dl class="param-type">
448
+ <dt>
449
+ Type:
450
+ </dt>
451
+ <dd>
452
+
453
+ <span class="param-type"><code>boolean</code></span>
454
+
455
+
456
+ </dd>
457
+ </dl>
458
+
459
+
460
+
461
+ </div>
462
+
463
+
464
+
465
+ </div>
466
+
467
+
468
+ <div class="section-method">
469
+
470
+
471
+
472
+ <h4 class="name" id=".comparable_max"><span class="type-signature">(static) </span>comparable_max<span class="signature">(interval1, interval2)</span><span class="type-signature"> &rarr; {<a href="Interval.html">Interval</a>}</span></h4>
473
+
474
+
475
+
476
+
477
+
478
+ <div class="description">
479
+ Function returns maximum between two comparable values
480
+ </div>
481
+
482
+
483
+
484
+
485
+
486
+ <dl class="details">
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+ <dt class="tag-source">Source:</dt>
514
+ <dd class="tag-source"><ul class="dummy"><li>
515
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line109">line 109</a>
516
+ </li></ul></dd>
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+ </dl>
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ <h5>Parameters:</h5>
535
+
536
+
537
+ <table class="params">
538
+ <thead>
539
+ <tr>
540
+
541
+ <th>Name</th>
542
+
543
+
544
+ <th>Type</th>
545
+
546
+
547
+
548
+
549
+
550
+ <th class="last">Description</th>
551
+ </tr>
552
+ </thead>
553
+
554
+ <tbody>
555
+
556
+
557
+ <tr>
558
+
559
+ <td class="name"><code>interval1</code></td>
560
+
561
+
562
+ <td class="type">
563
+
564
+ </td>
565
+
566
+
567
+
568
+
569
+
570
+ <td class="description last">
571
+
572
+
573
+ </td>
574
+ </tr>
575
+
576
+
577
+
578
+ <tr>
579
+
580
+ <td class="name"><code>interval2</code></td>
581
+
582
+
583
+ <td class="type">
584
+
585
+ </td>
586
+
587
+
588
+
589
+
590
+
591
+ <td class="description last">
592
+
593
+
594
+ </td>
595
+ </tr>
596
+
597
+
598
+ </tbody>
599
+ </table>
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+ <div class="section-returns">
615
+ <h5>Returns:</h5>
616
+
617
+
618
+
619
+ <dl class="param-type">
620
+ <dt>
621
+ Type:
622
+ </dt>
623
+ <dd>
624
+
625
+ <span class="param-type"><code><a href="Interval.html">Interval</a></code></span>
626
+
627
+
628
+ </dd>
629
+ </dl>
630
+
631
+
632
+
633
+ </div>
634
+
635
+
636
+
637
+ </div>
638
+
639
+
640
+ <div class="section-method">
641
+
642
+
643
+
644
+ <h4 class="name" id="clone"><span class="type-signature"></span>clone<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Interval.html">Interval</a>}</span></h4>
645
+
646
+
647
+
648
+
649
+
650
+ <div class="description">
651
+ Clone interval
652
+ </div>
653
+
654
+
655
+
656
+
657
+
658
+ <dl class="details">
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+ <dt class="tag-source">Source:</dt>
686
+ <dd class="tag-source"><ul class="dummy"><li>
687
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line35">line 35</a>
688
+ </li></ul></dd>
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+ </dl>
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+ <div class="section-returns">
719
+ <h5>Returns:</h5>
720
+
721
+
722
+
723
+ <dl class="param-type">
724
+ <dt>
725
+ Type:
726
+ </dt>
727
+ <dd>
728
+
729
+ <span class="param-type"><code><a href="Interval.html">Interval</a></code></span>
730
+
731
+
732
+ </dd>
733
+ </dl>
734
+
735
+
736
+
737
+ </div>
738
+
739
+
740
+
741
+ </div>
742
+
743
+
744
+ <div class="section-method">
745
+
746
+
747
+
748
+ <h4 class="name" id="equal_to"><span class="type-signature"></span>equal_to<span class="signature">(other_interval)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
749
+
750
+
751
+
752
+
753
+
754
+ <div class="description">
755
+ Predicate returns true is this interval equals to other interval
756
+ </div>
757
+
758
+
759
+
760
+
761
+
762
+ <dl class="details">
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+ <dt class="tag-source">Source:</dt>
790
+ <dd class="tag-source"><ul class="dummy"><li>
791
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line62">line 62</a>
792
+ </li></ul></dd>
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+ </dl>
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+ <h5>Parameters:</h5>
811
+
812
+
813
+ <table class="params">
814
+ <thead>
815
+ <tr>
816
+
817
+ <th>Name</th>
818
+
819
+
820
+ <th>Type</th>
821
+
822
+
823
+
824
+
825
+
826
+ <th class="last">Description</th>
827
+ </tr>
828
+ </thead>
829
+
830
+ <tbody>
831
+
832
+
833
+ <tr>
834
+
835
+ <td class="name"><code>other_interval</code></td>
836
+
837
+
838
+ <td class="type">
839
+
840
+ </td>
841
+
842
+
843
+
844
+
845
+
846
+ <td class="description last">
847
+
848
+
849
+ </td>
850
+ </tr>
851
+
852
+
853
+ </tbody>
854
+ </table>
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+ <div class="section-returns">
870
+ <h5>Returns:</h5>
871
+
872
+
873
+
874
+ <dl class="param-type">
875
+ <dt>
876
+ Type:
877
+ </dt>
878
+ <dd>
879
+
880
+ <span class="param-type"><code>boolean</code></span>
881
+
882
+
883
+ </dd>
884
+ </dl>
885
+
886
+
887
+
888
+ </div>
889
+
890
+
891
+
892
+ </div>
893
+
894
+
895
+ <div class="section-method">
896
+
897
+
898
+
899
+ <h4 class="name" id="intersect"><span class="type-signature"></span>intersect<span class="signature">(other_interval)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
900
+
901
+
902
+
903
+
904
+
905
+ <div class="description">
906
+ Predicate returns true if this interval intersects other interval
907
+ </div>
908
+
909
+
910
+
911
+
912
+
913
+ <dl class="details">
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ <dt class="tag-source">Source:</dt>
941
+ <dd class="tag-source"><ul class="dummy"><li>
942
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line71">line 71</a>
943
+ </li></ul></dd>
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+ </dl>
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ <h5>Parameters:</h5>
962
+
963
+
964
+ <table class="params">
965
+ <thead>
966
+ <tr>
967
+
968
+ <th>Name</th>
969
+
970
+
971
+ <th>Type</th>
972
+
973
+
974
+
975
+
976
+
977
+ <th class="last">Description</th>
978
+ </tr>
979
+ </thead>
980
+
981
+ <tbody>
982
+
983
+
984
+ <tr>
985
+
986
+ <td class="name"><code>other_interval</code></td>
987
+
988
+
989
+ <td class="type">
990
+
991
+ </td>
992
+
993
+
994
+
995
+
996
+
997
+ <td class="description last">
998
+
999
+
1000
+ </td>
1001
+ </tr>
1002
+
1003
+
1004
+ </tbody>
1005
+ </table>
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ <div class="section-returns">
1021
+ <h5>Returns:</h5>
1022
+
1023
+
1024
+
1025
+ <dl class="param-type">
1026
+ <dt>
1027
+ Type:
1028
+ </dt>
1029
+ <dd>
1030
+
1031
+ <span class="param-type"><code>boolean</code></span>
1032
+
1033
+
1034
+ </dd>
1035
+ </dl>
1036
+
1037
+
1038
+
1039
+ </div>
1040
+
1041
+
1042
+
1043
+ </div>
1044
+
1045
+
1046
+ <div class="section-method">
1047
+
1048
+
1049
+
1050
+ <h4 class="name" id="less_than"><span class="type-signature"></span>less_than<span class="signature">(other_interval)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ <div class="description">
1057
+ Predicate returns true is this interval less than other interval
1058
+ </div>
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+ <dl class="details">
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ <dt class="tag-source">Source:</dt>
1092
+ <dd class="tag-source"><ul class="dummy"><li>
1093
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line52">line 52</a>
1094
+ </li></ul></dd>
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+ </dl>
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+ <h5>Parameters:</h5>
1113
+
1114
+
1115
+ <table class="params">
1116
+ <thead>
1117
+ <tr>
1118
+
1119
+ <th>Name</th>
1120
+
1121
+
1122
+ <th>Type</th>
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+ <th class="last">Description</th>
1129
+ </tr>
1130
+ </thead>
1131
+
1132
+ <tbody>
1133
+
1134
+
1135
+ <tr>
1136
+
1137
+ <td class="name"><code>other_interval</code></td>
1138
+
1139
+
1140
+ <td class="type">
1141
+
1142
+ </td>
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+ <td class="description last">
1149
+
1150
+
1151
+ </td>
1152
+ </tr>
1153
+
1154
+
1155
+ </tbody>
1156
+ </table>
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+ <div class="section-returns">
1172
+ <h5>Returns:</h5>
1173
+
1174
+
1175
+
1176
+ <dl class="param-type">
1177
+ <dt>
1178
+ Type:
1179
+ </dt>
1180
+ <dd>
1181
+
1182
+ <span class="param-type"><code>boolean</code></span>
1183
+
1184
+
1185
+ </dd>
1186
+ </dl>
1187
+
1188
+
1189
+
1190
+ </div>
1191
+
1192
+
1193
+
1194
+ </div>
1195
+
1196
+
1197
+ <div class="section-method">
1198
+
1199
+
1200
+
1201
+ <h4 class="name" id="merge"><span class="type-signature"></span>merge<span class="signature">(interval)</span><span class="type-signature"> &rarr; {<a href="Interval.html">Interval</a>}</span></h4>
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+ <div class="description">
1208
+ Returns new interval merged with other interval
1209
+ </div>
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+ <dl class="details">
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+ <dt class="tag-source">Source:</dt>
1243
+ <dd class="tag-source"><ul class="dummy"><li>
1244
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line89">line 89</a>
1245
+ </li></ul></dd>
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+ </dl>
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+ <h5>Parameters:</h5>
1264
+
1265
+
1266
+ <table class="params">
1267
+ <thead>
1268
+ <tr>
1269
+
1270
+ <th>Name</th>
1271
+
1272
+
1273
+ <th>Type</th>
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+ <th class="last">Description</th>
1280
+ </tr>
1281
+ </thead>
1282
+
1283
+ <tbody>
1284
+
1285
+
1286
+ <tr>
1287
+
1288
+ <td class="name"><code>interval</code></td>
1289
+
1290
+
1291
+ <td class="type">
1292
+
1293
+
1294
+ <span class="param-type"><code><a href="Interval.html">Interval</a></code></span>
1295
+
1296
+
1297
+
1298
+ </td>
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+ <td class="description last">
1305
+ Other interval to merge with
1306
+
1307
+ </td>
1308
+ </tr>
1309
+
1310
+
1311
+ </tbody>
1312
+ </table>
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ <div class="section-returns">
1328
+ <h5>Returns:</h5>
1329
+
1330
+
1331
+
1332
+ <dl class="param-type">
1333
+ <dt>
1334
+ Type:
1335
+ </dt>
1336
+ <dd>
1337
+
1338
+ <span class="param-type"><code><a href="Interval.html">Interval</a></code></span>
1339
+
1340
+
1341
+ </dd>
1342
+ </dl>
1343
+
1344
+
1345
+
1346
+ </div>
1347
+
1348
+
1349
+
1350
+ </div>
1351
+
1352
+
1353
+ <div class="section-method">
1354
+
1355
+
1356
+
1357
+ <h4 class="name" id="not_intersect"><span class="type-signature"></span>not_intersect<span class="signature">(other_interval)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+ <div class="description">
1364
+ Predicate returns true if this interval does not intersect other interval
1365
+ </div>
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+ <dl class="details">
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+ <dt class="tag-source">Source:</dt>
1399
+ <dd class="tag-source"><ul class="dummy"><li>
1400
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line80">line 80</a>
1401
+ </li></ul></dd>
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ </dl>
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+ <h5>Parameters:</h5>
1420
+
1421
+
1422
+ <table class="params">
1423
+ <thead>
1424
+ <tr>
1425
+
1426
+ <th>Name</th>
1427
+
1428
+
1429
+ <th>Type</th>
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+ <th class="last">Description</th>
1436
+ </tr>
1437
+ </thead>
1438
+
1439
+ <tbody>
1440
+
1441
+
1442
+ <tr>
1443
+
1444
+ <td class="name"><code>other_interval</code></td>
1445
+
1446
+
1447
+ <td class="type">
1448
+
1449
+ </td>
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+ <td class="description last">
1456
+
1457
+
1458
+ </td>
1459
+ </tr>
1460
+
1461
+
1462
+ </tbody>
1463
+ </table>
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+ <div class="section-returns">
1479
+ <h5>Returns:</h5>
1480
+
1481
+
1482
+
1483
+ <dl class="param-type">
1484
+ <dt>
1485
+ Type:
1486
+ </dt>
1487
+ <dd>
1488
+
1489
+ <span class="param-type"><code>boolean</code></span>
1490
+
1491
+
1492
+ </dd>
1493
+ </dl>
1494
+
1495
+
1496
+
1497
+ </div>
1498
+
1499
+
1500
+
1501
+ </div>
1502
+
1503
+
1504
+ <div class="section-method">
1505
+
1506
+
1507
+
1508
+ <h4 class="name" id="output"><span class="type-signature"></span>output<span class="signature">()</span><span class="type-signature"></span></h4>
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+ <div class="description">
1515
+ Returns how key should return
1516
+ </div>
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+ <dl class="details">
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ <dt class="tag-source">Source:</dt>
1550
+ <dd class="tag-source"><ul class="dummy"><li>
1551
+ <a href="interval.js.html">interval.js</a>, <a href="interval.js.html#line99">line 99</a>
1552
+ </li></ul></dd>
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+ </dl>
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+ </div>
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+ </article>
1592
+
1593
+ </section>
1594
+
1595
+
1596
+
1597
+
1598
+ </div>
1599
+
1600
+ <br class="clear">
1601
+
1602
+ <footer>
1603
+ Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.2</a> on Thu Jul 04 2019 20:41:00 GMT+0300 (Israel Daylight Time) using the Minami theme.
1604
+ </footer>
1605
+
1606
+ <script>prettyPrint();</script>
1607
+ <script src="scripts/linenumber.js"></script>
1608
+ </body>
1609
+ </html>