Skip to content

Commit d836c6e

Browse files
committed
Fix single-table examples
1 parent 4cb86ae commit d836c6e

File tree

131 files changed

+786
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+786
-262
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/SamplesRenderingUtils.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ val WritersideStyle = DataFrameHtmlData(
3737
function sendHeight() {
3838
let totalHeight = 0;
3939
40-
document.querySelectorAll('body > details, body > br').forEach(element => {
40+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
4141
if (element.tagName === 'DETAILS') {
4242
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
4343
@@ -46,6 +46,8 @@ function sendHeight() {
4646
}
4747
} else if (element.tagName === 'BR') {
4848
totalHeight += getElementHeight(element);
49+
} else if (element.tagName === 'TABLE') {
50+
totalHeight += getElementHeight(element);
4951
}
5052
});
5153
@@ -99,11 +101,13 @@ function isElementVisible(el) {
99101
function sendInitialHeight() {
100102
let initialHeight = 0;
101103
102-
document.querySelectorAll('body > details, body > br').forEach(element => {
104+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
103105
if (element.tagName === 'DETAILS') {
104106
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
105107
} else if (element.tagName === 'BR') {
106108
initialHeight += getElementHeight(element);
109+
} else if (element.tagName === `TABLE`) {
110+
initialHeight += getElementHeight(element);
107111
}
108112
});
109113

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.byRow.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516
function sendHeight() {
517517
let totalHeight = 0;
518518

519-
document.querySelectorAll('body > details, body > br').forEach(element => {
519+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
520520
if (element.tagName === 'DETAILS') {
521521
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
522522

@@ -525,6 +525,8 @@
525525
}
526526
} else if (element.tagName === 'BR') {
527527
totalHeight += getElementHeight(element);
528+
} else if (element.tagName === 'TABLE') {
529+
totalHeight += getElementHeight(element);
528530
}
529531
});
530532

@@ -578,11 +580,13 @@
578580
function sendInitialHeight() {
579581
let initialHeight = 0;
580582

581-
document.querySelectorAll('body > details, body > br').forEach(element => {
583+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
582584
if (element.tagName === 'DETAILS') {
583585
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
584586
} else if (element.tagName === 'BR') {
585587
initialHeight += getElementHeight(element);
588+
} else if (element.tagName === `TABLE`) {
589+
initialHeight += getElementHeight(element);
586590
}
587591
});
588592

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectors.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@
616616
function sendHeight() {
617617
let totalHeight = 0;
618618

619-
document.querySelectorAll('body > details, body > br').forEach(element => {
619+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
620620
if (element.tagName === 'DETAILS') {
621621
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
622622

@@ -625,6 +625,8 @@
625625
}
626626
} else if (element.tagName === 'BR') {
627627
totalHeight += getElementHeight(element);
628+
} else if (element.tagName === 'TABLE') {
629+
totalHeight += getElementHeight(element);
628630
}
629631
});
630632

@@ -678,11 +680,13 @@
678680
function sendInitialHeight() {
679681
let initialHeight = 0;
680682

681-
document.querySelectorAll('body > details, body > br').forEach(element => {
683+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
682684
if (element.tagName === 'DETAILS') {
683685
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
684686
} else if (element.tagName === 'BR') {
685687
initialHeight += getElementHeight(element);
688+
} else if (element.tagName === `TABLE`) {
689+
initialHeight += getElementHeight(element);
686690
}
687691
});
688692

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsMisc.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@
764764
function sendHeight() {
765765
let totalHeight = 0;
766766

767-
document.querySelectorAll('body > details, body > br').forEach(element => {
767+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
768768
if (element.tagName === 'DETAILS') {
769769
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
770770

@@ -773,6 +773,8 @@
773773
}
774774
} else if (element.tagName === 'BR') {
775775
totalHeight += getElementHeight(element);
776+
} else if (element.tagName === 'TABLE') {
777+
totalHeight += getElementHeight(element);
776778
}
777779
});
778780

@@ -826,11 +828,13 @@
826828
function sendInitialHeight() {
827829
let initialHeight = 0;
828830

829-
document.querySelectorAll('body > details, body > br').forEach(element => {
831+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
830832
if (element.tagName === 'DETAILS') {
831833
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
832834
} else if (element.tagName === 'BR') {
833835
initialHeight += getElementHeight(element);
836+
} else if (element.tagName === `TABLE`) {
837+
initialHeight += getElementHeight(element);
834838
}
835839
});
836840

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsModifySet.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@
568568
function sendHeight() {
569569
let totalHeight = 0;
570570

571-
document.querySelectorAll('body > details, body > br').forEach(element => {
571+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
572572
if (element.tagName === 'DETAILS') {
573573
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
574574

@@ -577,6 +577,8 @@
577577
}
578578
} else if (element.tagName === 'BR') {
579579
totalHeight += getElementHeight(element);
580+
} else if (element.tagName === 'TABLE') {
581+
totalHeight += getElementHeight(element);
580582
}
581583
});
582584

@@ -630,11 +632,13 @@
630632
function sendInitialHeight() {
631633
let initialHeight = 0;
632634

633-
document.querySelectorAll('body > details, body > br').forEach(element => {
635+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
634636
if (element.tagName === 'DETAILS') {
635637
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
636638
} else if (element.tagName === 'BR') {
637639
initialHeight += getElementHeight(element);
640+
} else if (element.tagName === `TABLE`) {
641+
initialHeight += getElementHeight(element);
638642
}
639643
});
640644

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnSelectorsUsages.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@
586586
function sendHeight() {
587587
let totalHeight = 0;
588588

589-
document.querySelectorAll('body > details, body > br').forEach(element => {
589+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
590590
if (element.tagName === 'DETAILS') {
591591
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
592592

@@ -595,6 +595,8 @@
595595
}
596596
} else if (element.tagName === 'BR') {
597597
totalHeight += getElementHeight(element);
598+
} else if (element.tagName === 'TABLE') {
599+
totalHeight += getElementHeight(element);
598600
}
599601
});
600602

@@ -648,11 +650,13 @@
648650
function sendInitialHeight() {
649651
let initialHeight = 0;
650652

651-
document.querySelectorAll('body > details, body > br').forEach(element => {
653+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
652654
if (element.tagName === 'DETAILS') {
653655
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
654656
} else if (element.tagName === 'BR') {
655657
initialHeight += getElementHeight(element);
658+
} else if (element.tagName === `TABLE`) {
659+
initialHeight += getElementHeight(element);
656660
}
657661
});
658662

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.columnsSelectorByIndices.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504
function sendHeight() {
505505
let totalHeight = 0;
506506

507-
document.querySelectorAll('body > details, body > br').forEach(element => {
507+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
508508
if (element.tagName === 'DETAILS') {
509509
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
510510

@@ -513,6 +513,8 @@
513513
}
514514
} else if (element.tagName === 'BR') {
515515
totalHeight += getElementHeight(element);
516+
} else if (element.tagName === 'TABLE') {
517+
totalHeight += getElementHeight(element);
516518
}
517519
});
518520

@@ -566,11 +568,13 @@
566568
function sendInitialHeight() {
567569
let initialHeight = 0;
568570

569-
document.querySelectorAll('body > details, body > br').forEach(element => {
571+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
570572
if (element.tagName === 'DETAILS') {
571573
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
572574
} else if (element.tagName === 'BR') {
573575
initialHeight += getElementHeight(element);
576+
} else if (element.tagName === `TABLE`) {
577+
initialHeight += getElementHeight(element);
574578
}
575579
});
576580

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinct.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@
468468
function sendHeight() {
469469
let totalHeight = 0;
470470

471-
document.querySelectorAll('body > details, body > br').forEach(element => {
471+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
472472
if (element.tagName === 'DETAILS') {
473473
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
474474

@@ -477,6 +477,8 @@
477477
}
478478
} else if (element.tagName === 'BR') {
479479
totalHeight += getElementHeight(element);
480+
} else if (element.tagName === 'TABLE') {
481+
totalHeight += getElementHeight(element);
480482
}
481483
});
482484

@@ -530,11 +532,13 @@
530532
function sendInitialHeight() {
531533
let initialHeight = 0;
532534

533-
document.querySelectorAll('body > details, body > br').forEach(element => {
535+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
534536
if (element.tagName === 'DETAILS') {
535537
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
536538
} else if (element.tagName === 'BR') {
537539
initialHeight += getElementHeight(element);
540+
} else if (element.tagName === `TABLE`) {
541+
initialHeight += getElementHeight(element);
538542
}
539543
});
540544

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctBy.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
function sendHeight() {
495495
let totalHeight = 0;
496496

497-
document.querySelectorAll('body > details, body > br').forEach(element => {
497+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
498498
if (element.tagName === 'DETAILS') {
499499
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
500500

@@ -503,6 +503,8 @@
503503
}
504504
} else if (element.tagName === 'BR') {
505505
totalHeight += getElementHeight(element);
506+
} else if (element.tagName === 'TABLE') {
507+
totalHeight += getElementHeight(element);
506508
}
507509
});
508510

@@ -556,11 +558,13 @@
556558
function sendInitialHeight() {
557559
let initialHeight = 0;
558560

559-
document.querySelectorAll('body > details, body > br').forEach(element => {
561+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
560562
if (element.tagName === 'DETAILS') {
561563
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
562564
} else if (element.tagName === 'BR') {
563565
initialHeight += getElementHeight(element);
566+
} else if (element.tagName === `TABLE`) {
567+
initialHeight += getElementHeight(element);
564568
}
565569
});
566570

docs/StardustDocs/resources/snippets/org.jetbrains.kotlinx.dataframe.samples.api.Access.distinctColumns.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
function sendHeight() {
495495
let totalHeight = 0;
496496

497-
document.querySelectorAll('body > details, body > br').forEach(element => {
497+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
498498
if (element.tagName === 'DETAILS') {
499499
totalHeight += getElementHeight(element.querySelector(':scope > summary'));
500500

@@ -503,6 +503,8 @@
503503
}
504504
} else if (element.tagName === 'BR') {
505505
totalHeight += getElementHeight(element);
506+
} else if (element.tagName === 'TABLE') {
507+
totalHeight += getElementHeight(element);
506508
}
507509
});
508510

@@ -556,11 +558,13 @@
556558
function sendInitialHeight() {
557559
let initialHeight = 0;
558560

559-
document.querySelectorAll('body > details, body > br').forEach(element => {
561+
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
560562
if (element.tagName === 'DETAILS') {
561563
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
562564
} else if (element.tagName === 'BR') {
563565
initialHeight += getElementHeight(element);
566+
} else if (element.tagName === `TABLE`) {
567+
initialHeight += getElementHeight(element);
564568
}
565569
});
566570

0 commit comments

Comments
 (0)