@xiee/utils 1.13.45 โ 1.13.47
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/README.md +2 -2
- package/css/book-litedown.css +97 -0
- package/css/book-litedown.min.css +2 -0
- package/css/book-litedown.min.css.map +1 -0
- package/css/book.css +9 -2
- package/css/book.min.css +1 -1
- package/css/book.min.css.map +1 -1
- package/css/default.css +3 -2
- package/css/default.min.css +1 -1
- package/css/default.min.css.map +1 -1
- package/js/chapter-toc.js +16 -0
- package/js/chapter-toc.min.js +2 -0
- package/js/chapter-toc.min.js.map +1 -0
- package/js/pages.js +5 -2
- package/js/pages.min.js +1 -1
- package/js/pages.min.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[](https://www.jsdelivr.com/package/npm/@xiee/utils)
|
|
3
3
|
|
|
4
|
-
This repo contains miscellaneous tools and utilities written in
|
|
5
|
-
are published as an NPM package
|
|
4
|
+
This repo contains miscellaneous lightweight tools and utilities written in
|
|
5
|
+
JavaScript. They are published as an NPM package
|
|
6
6
|
[`@xiee/utils`](https://www.npmjs.com/package/@xiee/utils). You can load them
|
|
7
7
|
via [jsdelivr.com](https://www.jsdelivr.com), e.g.,
|
|
8
8
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* CSS for https://yihui.org/litedown/ */
|
|
2
|
+
|
|
3
|
+
/* hide 4th-level TOC items when printing to PDF and 3rd-level in chapter TOC */
|
|
4
|
+
.pagesjs #TOC > ul > li > ul > li > ul > li > ul, .chapter-toc > ul > li > ul > li > ul {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* a tale of two buttons */
|
|
9
|
+
.new-road {
|
|
10
|
+
p {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
gap: .5em;
|
|
14
|
+
}
|
|
15
|
+
button::before { font-size: 200%; }
|
|
16
|
+
.old-knit, .new-fuse {
|
|
17
|
+
&:hover::before { content: "โ "; }
|
|
18
|
+
}
|
|
19
|
+
.old-knit {
|
|
20
|
+
&::before { content: "๐งถ "; }
|
|
21
|
+
&:focus::before { content: "๐ก "; }
|
|
22
|
+
}
|
|
23
|
+
.new-fuse::before { content: "โฏ "; }
|
|
24
|
+
.new-preview::before { content: "โต "; }
|
|
25
|
+
.new-fuse:focus::before { content: "๐ "; }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* arrange elements in columns */
|
|
29
|
+
.flex-col {
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: .5em;
|
|
33
|
+
* {
|
|
34
|
+
flex: 1;
|
|
35
|
+
}
|
|
36
|
+
pre:has(code[data-file]) {
|
|
37
|
+
&, &::before {
|
|
38
|
+
border: groove mintcream;
|
|
39
|
+
}
|
|
40
|
+
code {
|
|
41
|
+
border: none;
|
|
42
|
+
border-top: 1px dashed lightgray;
|
|
43
|
+
}
|
|
44
|
+
& {
|
|
45
|
+
border-top: none;
|
|
46
|
+
}
|
|
47
|
+
&::before {
|
|
48
|
+
border-left: none;
|
|
49
|
+
border-bottom: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
code[data-file]::before {
|
|
55
|
+
content: attr(data-file);
|
|
56
|
+
font-size: .9em;
|
|
57
|
+
float: right;
|
|
58
|
+
background-color: lightyellow;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
padding: .5em;
|
|
61
|
+
margin: -1em -1em 1em 1em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
pre:has(code[data-file]) {
|
|
65
|
+
&::before {
|
|
66
|
+
content: "Output";
|
|
67
|
+
text-transform: uppercase;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
display: inline-block;
|
|
70
|
+
padding: .5em 1em;
|
|
71
|
+
border-bottom: none;
|
|
72
|
+
}
|
|
73
|
+
&:has(code[data-file$=".Rmd"])::before {
|
|
74
|
+
content: "โง Example";
|
|
75
|
+
}
|
|
76
|
+
&.pagesjs-fragmented:first-child {
|
|
77
|
+
&::before, code::before {
|
|
78
|
+
content: unset;
|
|
79
|
+
}
|
|
80
|
+
code {
|
|
81
|
+
border-top: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
code, &::before {
|
|
85
|
+
border: groove mintcream;
|
|
86
|
+
}
|
|
87
|
+
&.pagesjs-fragmented:last-child {
|
|
88
|
+
code {
|
|
89
|
+
border-bottom: none;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&::before {
|
|
93
|
+
border-bottom: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.larger { font-size: 1.5em; }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.pagesjs #TOC>ul>li>ul>li>ul>li>ul,.chapter-toc>ul>li>ul>li>ul{display:none}.new-road{& p{justify-content:center;gap:.5em;display:flex}& button:before{font-size:200%}& .old-knit,& .new-fuse{&:hover:before{content:"โ "}}& .old-knit{&:before{content:"๐งถ "}&:focus:before{content:"๐ก "}}& .new-fuse:before{content:"โฏ "}& .new-preview:before{content:"โต "}& .new-fuse:focus:before{content:"๐ "}}.flex-col{justify-content:space-between;gap:.5em;display:flex;& *{flex:1}& pre:has(code[data-file]){&,&:before{border:groove #f5fffa}& code{border:none;border-top:1px dashed #d3d3d3}&{border-top:none}&:before{border-bottom:none;border-left:none}}}code[data-file]:before{content:attr(data-file);float:right;background-color:#ffffe0;margin:-1em -1em 1em 1em;padding:.5em;font-size:.9em;display:inline-block}pre:has(code[data-file]){&:before{content:"Output";text-transform:uppercase;border-bottom:none;padding:.5em 1em;font-weight:700;display:inline-block}&:has(code[data-file$=\.Rmd]):before{content:"โง Example"}&.pagesjs-fragmented:first-child{&:before,& code:before{content:unset}& code{border-top:none}}& code,&:before{border:groove #f5fffa}&.pagesjs-fragmented:last-child{& code{border-bottom:none}}&:before{border-bottom:none}}.larger{font-size:1.5em}
|
|
2
|
+
/*# sourceMappingURL=book-litedown.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"AAGA,4EAKA,UACE,iDAKA,+BACA,wBACE,+BAEF,YACE,yBACA,gCAEF,kCACA,qCACA,0CAIF,8DAIE,WAGA,2BACE,iCAGA,iDAIA,kBAGA,+CAOJ,8JAUA,yBACE,4HAQA,2DAGA,iCACE,qCAGA,wBAIF,sCAGA,gCACE,2BAIF,6BAKF","sources":["book-litedown.css"],"sourcesContent":["/* CSS for https://yihui.org/litedown/ */\n\n/* hide 4th-level TOC items when printing to PDF and 3rd-level in chapter TOC */\n.pagesjs #TOC > ul > li > ul > li > ul > li > ul, .chapter-toc > ul > li > ul > li > ul {\n display: none;\n}\n\n/* a tale of two buttons */\n.new-road {\n p {\n display: flex;\n justify-content: center;\n gap: .5em;\n }\n button::before { font-size: 200%; }\n .old-knit, .new-fuse {\n &:hover::before { content: \"โ \"; }\n }\n .old-knit {\n &::before { content: \"๐งถ \"; }\n &:focus::before { content: \"๐ก \"; }\n }\n .new-fuse::before { content: \"โฏ \"; }\n .new-preview::before { content: \"โต \"; }\n .new-fuse:focus::before { content: \"๐ \"; }\n}\n\n/* arrange elements in columns */\n.flex-col {\n display: flex;\n justify-content: space-between;\n gap: .5em;\n * {\n flex: 1;\n }\n pre:has(code[data-file]) {\n &, &::before {\n border: groove mintcream;\n }\n code {\n border: none;\n border-top: 1px dashed lightgray;\n }\n & {\n border-top: none;\n }\n &::before {\n border-left: none;\n border-bottom: none;\n }\n }\n}\n\ncode[data-file]::before {\n content: attr(data-file);\n font-size: .9em;\n float: right;\n background-color: lightyellow;\n display: inline-block;\n padding: .5em;\n margin: -1em -1em 1em 1em;\n}\n\npre:has(code[data-file]) {\n &::before {\n content: \"Output\";\n text-transform: uppercase;\n font-weight: bold;\n display: inline-block;\n padding: .5em 1em;\n border-bottom: none;\n }\n &:has(code[data-file$=\".Rmd\"])::before {\n content: \"โง Example\";\n }\n &.pagesjs-fragmented:first-child {\n &::before, code::before {\n content: unset;\n }\n code {\n border-top: none;\n }\n }\n code, &::before {\n border: groove mintcream;\n }\n &.pagesjs-fragmented:last-child {\n code {\n border-bottom: none;\n }\n }\n &::before {\n border-bottom: none;\n }\n}\n\n.larger { font-size: 1.5em; }\n"],"names":[]}
|
package/css/book.css
CHANGED
|
@@ -23,14 +23,21 @@ body {
|
|
|
23
23
|
margin-top: -1em;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
#TOC {
|
|
26
|
+
#TOC.side {
|
|
27
27
|
margin-left: calc(-200px - .8em);
|
|
28
28
|
}
|
|
29
29
|
@media (max-width: 1264px) {
|
|
30
|
-
#TOC {
|
|
30
|
+
#TOC.side {
|
|
31
31
|
margin-left: auto;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
.chapter-toc {
|
|
35
|
+
border: 1px solid #eee;
|
|
36
|
+
border-radius: 5px;
|
|
37
|
+
padding: 1em;
|
|
38
|
+
columns: 2;
|
|
39
|
+
margin-bottom: 2em;
|
|
40
|
+
}
|
|
34
41
|
.chapter:not(.appendix) .main-number {
|
|
35
42
|
&::before {
|
|
36
43
|
content: "Chapter ";
|
package/css/book.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background-color:#fff;background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;padding-bottom:0;&>div{background-color:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}#TOC{margin-left:calc(-200px - .8em)}@media (width<=1264px){#TOC{margin-left:auto}}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}
|
|
1
|
+
body{font-family:Palatino,Georgia,serif;font-size:1em}.footnotes,code,.side,.body .side{font-size:.85em}.frontmatter,.chapter{min-height:calc(100vh - 1em)}.frontmatter{background-color:#fff;background-image:radial-gradient(#b6cee2 1px,#fff 1px);background-size:2em 2em;padding-bottom:0;&>div{background-color:#ebf6f9;margin:0 -1em;padding:1em}& .title{margin-top:-1em;padding:20vh 1em 1em}}#TOC.side{margin-left:calc(-200px - .8em)}@media (width<=1264px){#TOC.side{margin-left:auto}}.chapter-toc{columns:2;border:1px solid #eee;border-radius:5px;margin-bottom:2em;padding:1em}.chapter:not(.appendix) .main-number{&:before{content:"Chapter "}&:after{content:none}}.chapter h1{border-bottom:1px solid;margin:1em auto 3em}h1 .section-number{border-bottom:4px solid;margin-bottom:-4px;display:inline-block}.body h2{border-bottom-style:dashed}
|
|
2
2
|
/*# sourceMappingURL=book.min.css.map */
|
package/css/book.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,sDAIA,kDAGA,mDAGA,mIAKE,yDAKA,+CAKF,
|
|
1
|
+
{"version":3,"mappings":"AAAA,sDAIA,kDAGA,mDAGA,mIAKE,yDAKA,+CAKF,0CAGA,uBACE,4BAIF,6FAOA,qCACE,4BAGA,sBAIF,wDAIA,mFAKA","sources":["book.css"],"sourcesContent":["body {\n font-size: 1em;\n font-family: Palatino, Georgia, serif;\n}\n.footnotes, code, .side, .body .side {\n font-size: .85em;\n}\n.frontmatter, .chapter {\n min-height: calc(100vh - 1em);\n}\n.frontmatter {\n background-image: radial-gradient(#b6cee2 1px, #fff 1px);\n background-size: 2em 2em;\n background-color: #fff;\n padding-bottom: 0;\n & > div {\n margin: 0 -1em;\n background-color: #ebf6f9;\n padding: 1em;\n }\n & .title {\n padding: 20vh 1em 1em;\n margin-top: -1em;\n }\n}\n#TOC.side {\n margin-left: calc(-200px - .8em);\n}\n@media (max-width: 1264px) {\n #TOC.side {\n margin-left: auto;\n }\n}\n.chapter-toc {\n border: 1px solid #eee;\n border-radius: 5px;\n padding: 1em;\n columns: 2;\n margin-bottom: 2em;\n}\n.chapter:not(.appendix) .main-number {\n &::before {\n content: \"Chapter \";\n }\n &::after {\n content: none;\n }\n}\n.chapter h1 {\n margin: 1em auto 3em;\n border-bottom: 1px solid;\n}\nh1 .section-number {\n display: inline-block;\n border-bottom: 4px solid;\n margin-bottom: -4px;\n}\n.body h2 { border-bottom-style: dashed; }\n/* TODO: style for h1.part and printing */\n"],"names":[]}
|
package/css/default.css
CHANGED
|
@@ -5,7 +5,7 @@ body {
|
|
|
5
5
|
padding: 1em;
|
|
6
6
|
line-height: 1.5;
|
|
7
7
|
}
|
|
8
|
-
body, .abstract, code, .footnotes, #refs { font-size: .9em; }
|
|
8
|
+
body, .abstract, code, .footnotes, #refs, .box > div { font-size: .9em; }
|
|
9
9
|
li li { font-size: .95em; }
|
|
10
10
|
ul:has(li > input[type="checkbox"]) { list-style: none; padding-left: 1em; }
|
|
11
11
|
*, :before, :after { box-sizing: border-box; }
|
|
@@ -57,6 +57,7 @@ hr, .footnotes::before { border: 1px dashed #ddd; }
|
|
|
57
57
|
table, .body h2 { border-bottom: 1px solid #666; }
|
|
58
58
|
.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }
|
|
59
59
|
.main-number::after { content: "."; }
|
|
60
|
+
span[class^="ref-number-"] { font-weight: bold; }
|
|
60
61
|
.ref-number-fig::after, .ref-number-tab::after { content: ":"; }
|
|
61
62
|
.cross-ref-chp::before { content: "Chapter "; }
|
|
62
63
|
.cross-ref-sec::before { content: "Section "; }
|
|
@@ -87,5 +88,5 @@ section.footnotes {
|
|
|
87
88
|
tr, img { page-break-inside: avoid; }
|
|
88
89
|
}
|
|
89
90
|
@media only screen and (min-width: 992px) {
|
|
90
|
-
pre { white-space: pre; }
|
|
91
|
+
pre:has(.line-numbers) { white-space: pre; }
|
|
91
92
|
}
|
package/css/default.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,#refs{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre,pre:hover,fieldset pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],.box>div{background-color:#f8f8f8}pre>code:not([class]),pre>.language-plain,.box{background-color:inherit;border:1px solid #eee}pre>.message{border-color:#9eeaf9}pre>.warning{background:#fff3cd;border-color:#fff3cd}pre>.error{background:#f8d7da;border-color:#f8d7da}.fenced-chunk{border-left:1px solid #666}.code-fence{opacity:.4;border:1px dashed #666;border-left:2px solid;&:hover{opacity:inherit}}.box{margin:1em 0}.box>:first-child>p:first-child,.box>:last-child>p:last-child{padding:1em}.box>:first-child,.box>:first-child>p:first-child{margin-top:0}.box>:last-child,.box>:last-child>p:last-child{margin-bottom:0}.figure>:is(p:has(img),pre:has(svg)){text-align:center}table{border-top:1px solid #666;margin:auto;& thead th{border-bottom:1px solid #ddd}& th,& td{font-variant-numeric:tabular-nums;padding:5px}& thead,& tfoot,& tr:nth-child(2n){background:#eee}}.table-full{width:100%;& td{vertical-align:baseline}}blockquote{color:#666;border-left:.5em solid #eee;margin:0;padding:1px 1em}hr,.footnotes:before{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered{padding-left:0;& li{list-style:none}& ul{padding-left:1em}}table,.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}.ref-number-fig:after,.ref-number-tab:after{content:":"}.cross-ref-chp:before{content:"Chapter "}.cross-ref-sec:before{content:"Section "}.cross-ref-fig:before,.ref-number-fig:before{content:"Figure "}.cross-ref-tab:before,.ref-number-tab:before{content:"Table "}.cross-ref-eqn:before,.MathJax_ref:has(mjx-mtext>mjx-c+mjx-c):before{content:"Equation "}.abstract,#refs{&:before{margin:1em auto;font-weight:700;display:block}}.abstract:before{content:"Abstract";text-align:center}#refs:before{content:"Bibliography";font-size:1.5em}.ref-paren-open:before{content:"("}.ref-paren-close:after{content:")"}.ref-semicolon:after{content:"; "}.ref-and:after{content:" and "}.ref-et-al:after{content:" et al.";font-style:italic}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}@media print{body{max-width:100%}tr,img{page-break-inside:avoid}}@media only screen and (width>=992px){pre{white-space:pre}}
|
|
1
|
+
body{max-width:800px;margin:auto;padding:1em;font-family:sans-serif;line-height:1.5}body,.abstract,code,.footnotes,#refs,.box>div{font-size:.9em}li li{font-size:.95em}ul:has(li>input[type=checkbox]){padding-left:1em;list-style:none}*,:before,:after{box-sizing:border-box}a{color:#4682b4}pre,img{max-width:100%}pre,pre:hover,fieldset pre{white-space:pre-wrap;word-break:break-word}pre code{padding:1em;display:block;overflow-x:auto}code{font-family:DejaVu Sans Mono,Droid Sans Mono,Lucida Console,Consolas,Monaco,monospace}:not(pre)>code,code[class],.box>div{background-color:#f8f8f8}pre>code:not([class]),pre>.language-plain,.box{background-color:inherit;border:1px solid #eee}pre>.message{border-color:#9eeaf9}pre>.warning{background:#fff3cd;border-color:#fff3cd}pre>.error{background:#f8d7da;border-color:#f8d7da}.fenced-chunk{border-left:1px solid #666}.code-fence{opacity:.4;border:1px dashed #666;border-left:2px solid;&:hover{opacity:inherit}}.box{margin:1em 0}.box>:first-child>p:first-child,.box>:last-child>p:last-child{padding:1em}.box>:first-child,.box>:first-child>p:first-child{margin-top:0}.box>:last-child,.box>:last-child>p:last-child{margin-bottom:0}.figure>:is(p:has(img),pre:has(svg)){text-align:center}table{border-top:1px solid #666;margin:auto;& thead th{border-bottom:1px solid #ddd}& th,& td{font-variant-numeric:tabular-nums;padding:5px}& thead,& tfoot,& tr:nth-child(2n){background:#eee}}.table-full{width:100%;& td{vertical-align:baseline}}blockquote{color:#666;border-left:.5em solid #eee;margin:0;padding:1px 1em}hr,.footnotes:before{border:1px dashed #ddd}.frontmatter{text-align:center}#TOC .numbered{padding-left:0;& li{list-style:none}& ul{padding-left:1em}}table,.body h2{border-bottom:1px solid #666}.body .appendix,.appendix~h2{border-bottom-style:dashed}.main-number:after{content:"."}span[class^=ref-number-]{font-weight:700}.ref-number-fig:after,.ref-number-tab:after{content:":"}.cross-ref-chp:before{content:"Chapter "}.cross-ref-sec:before{content:"Section "}.cross-ref-fig:before,.ref-number-fig:before{content:"Figure "}.cross-ref-tab:before,.ref-number-tab:before{content:"Table "}.cross-ref-eqn:before,.MathJax_ref:has(mjx-mtext>mjx-c+mjx-c):before{content:"Equation "}.abstract,#refs{&:before{margin:1em auto;font-weight:700;display:block}}.abstract:before{content:"Abstract";text-align:center}#refs:before{content:"Bibliography";font-size:1.5em}.ref-paren-open:before{content:"("}.ref-paren-close:after{content:")"}.ref-semicolon:after{content:"; "}.ref-and:after{content:" and "}.ref-et-al:after{content:" et al.";font-style:italic}.footnote-ref a{&:before{content:"["}&:after{content:"]"}}section.footnotes{margin-top:2em;&:before{content:"";max-width:20em;display:block}}@media print{body{max-width:100%}tr,img{page-break-inside:avoid}}@media only screen and (width>=992px){pre:has(.line-numbers){white-space:pre}}
|
|
2
2
|
/*# sourceMappingURL=default.min.css.map */
|
package/css/default.min.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"AAAA,oFAOA,
|
|
1
|
+
{"version":3,"mappings":"AAAA,oFAOA,6DACA,sBACA,iEACA,uCACA,gBACA,uBACA,sEACA,mDACA,2FACA,6DACA,8FACA,kCACA,qDACA,mDACA,yCACA,oEAIE,yBAEF,kBACA,0EACA,+DACA,+DACA,uDACA,4CAEE,wCACA,wDACA,oDAEF,uBAEE,8BAEF,2EAMA,4CACA,+BACA,8BAEE,qBACA,uBAEF,4CACA,wDACA,+BACA,yCACA,wDACA,yCACA,yCACA,+DACA,8DACA,yFACA,gBACE,wDAEF,sDACA,oDACA,mCACA,mCACA,kCACA,+BACA,qDACA,gBACE,qBACA,qBAEF,iCAEE,kDAGF,aACE,oBACA,gCAEF,sCACE","sources":["default.css"],"sourcesContent":["body {\n font-family: sans-serif;\n max-width: 800px;\n margin: auto;\n padding: 1em;\n line-height: 1.5;\n}\nbody, .abstract, code, .footnotes, #refs, .box > div { font-size: .9em; }\nli li { font-size: .95em; }\nul:has(li > input[type=\"checkbox\"]) { list-style: none; padding-left: 1em; }\n*, :before, :after { box-sizing: border-box; }\na { color: steelblue; }\npre, img { max-width: 100%; }\npre, pre:hover, fieldset pre { white-space: pre-wrap; word-break: break-word; }\npre code { display: block; padding: 1em; overflow-x: auto; }\ncode { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }\n:not(pre) > code, code[class], .box > div { background-color: #f8f8f8; }\npre > code:not([class]), pre > .language-plain, .box { background-color: inherit; border: 1px solid #eee; }\npre > .message { border-color: #9eeaf9; }\npre > .warning { background: #fff3cd; border-color: #fff3cd; }\npre > .error { background: #f8d7da; border-color: #f8d7da; }\n.fenced-chunk { border-left: 1px solid #666; }\n.code-fence {\n opacity: .4;\n border: 1px dashed #666;\n border-left: 2px solid;\n &:hover { opacity: inherit; }\n}\n.box { margin: 1em 0; }\n.box > :first-child > p:first-child, .box > :last-child > p:last-child { padding: 1em; }\n.box > :first-child, .box > :first-child > p:first-child { margin-top: 0; }\n.box > :last-child, .box > :last-child > p:last-child { margin-bottom: 0; }\n.figure > :is(p:has(img), pre:has(svg)) { text-align: center; }\ntable {\n margin: auto; border-top: 1px solid #666;\n thead th { border-bottom: 1px solid #ddd; }\n th, td { padding: 5px; font-variant-numeric: tabular-nums; }\n thead, tfoot, tr:nth-child(even) { background: #eee; }\n}\n.table-full {\n width: 100%;\n td { vertical-align: baseline; }\n}\nblockquote {\n color: #666;\n margin: 0;\n padding: 1px 1em;\n border-left: .5em solid #eee;\n}\nhr, .footnotes::before { border: 1px dashed #ddd; }\n.frontmatter { text-align: center; }\n#TOC .numbered {\n padding-left: 0;\n li { list-style: none; }\n ul { padding-left: 1em; }\n}\ntable, .body h2 { border-bottom: 1px solid #666; }\n.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }\n.main-number::after { content: \".\"; }\nspan[class^=\"ref-number-\"] { font-weight: bold; }\n.ref-number-fig::after, .ref-number-tab::after { content: \":\"; }\n.cross-ref-chp::before { content: \"Chapter \"; }\n.cross-ref-sec::before { content: \"Section \"; }\n.cross-ref-fig::before, .ref-number-fig::before { content: \"Figure \"; }\n.cross-ref-tab::before, .ref-number-tab::before { content: \"Table \"; }\n.cross-ref-eqn::before, .MathJax_ref:has(mjx-mtext > mjx-c + mjx-c)::before { content: \"Equation \"; }\n.abstract, #refs {\n &::before { display: block; margin: 1em auto; font-weight: bold; }\n}\n.abstract::before { content: \"Abstract\"; text-align: center; }\n#refs::before { content: \"Bibliography\"; font-size: 1.5em; }\n.ref-paren-open::before { content: \"(\"; }\n.ref-paren-close::after { content: \")\"; }\n.ref-semicolon::after { content: \"; \"; }\n.ref-and::after { content: \" and \"; }\n.ref-et-al::after { content: \" et al.\"; font-style: italic; }\n.footnote-ref a {\n &::before { content: \"[\"; }\n &::after { content: \"]\"; }\n}\nsection.footnotes {\n margin-top: 2em;\n &::before { content: \"\"; display: block; max-width: 20em; }\n}\n\n@media print {\n body { max-width: 100%; }\n tr, img { page-break-inside: avoid; }\n}\n@media only screen and (min-width: 992px) {\n pre:has(.line-numbers) { white-space: pre; }\n}\n"],"names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// copy chapter TOC to each chapter's first page (under h1)
|
|
2
|
+
(d => {
|
|
3
|
+
d.querySelector('.chapter-toc') || d.querySelectorAll('#TOC > ul > li > a[href^="#"]').forEach(a => {
|
|
4
|
+
const id = a.getAttribute('href'), h = d.getElementById(id.replace(/^#/, ''));
|
|
5
|
+
if (h?.tagName !== 'H1') return;
|
|
6
|
+
if (h.nextElementSibling?.tagName === 'H1') return;
|
|
7
|
+
const u = a.nextElementSibling;
|
|
8
|
+
if (u?.tagName === 'UL') {
|
|
9
|
+
const toc = d.createElement('div');
|
|
10
|
+
toc.className = 'chapter-toc'; toc.id = 'TOC';
|
|
11
|
+
toc.append(u.cloneNode(true));
|
|
12
|
+
toc.firstChild.className = a.parentNode.parentNode.className;
|
|
13
|
+
h.after(toc);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
})(document);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(e=>{e.querySelector(".chapter-toc")||e.querySelectorAll('#TOC > ul > li > a[href^="#"]').forEach((t=>{const a=t.getAttribute("href"),r=e.getElementById(a.replace(/^#/,""));if("H1"!==r?.tagName)return;if("H1"===r.nextElementSibling?.tagName)return;const l=t.nextElementSibling;if("UL"===l?.tagName){const a=e.createElement("div");a.className="chapter-toc",a.id="TOC",a.append(l.cloneNode(!0)),a.firstChild.className=t.parentNode.parentNode.className,r.after(a)}}))})(document);
|
|
2
|
+
//# sourceMappingURL=chapter-toc.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["d","querySelector","querySelectorAll","forEach","a","id","getAttribute","h","getElementById","replace","tagName","nextElementSibling","u","toc","createElement","className","append","cloneNode","firstChild","parentNode","after","document"],"sources":["chapter-toc.js"],"mappings":"AACA,CAACA,IACCA,EAAEC,cAAc,iBAAmBD,EAAEE,iBAAiB,iCAAiCC,SAAQC,IAC7F,MAAMC,EAAKD,EAAEE,aAAa,QAASC,EAAIP,EAAEQ,eAAeH,EAAGI,QAAQ,KAAM,KACzE,GAAmB,OAAfF,GAAGG,QAAkB,OACzB,GAAsC,OAAlCH,EAAEI,oBAAoBD,QAAkB,OAC5C,MAAME,EAAIR,EAAEO,mBACZ,GAAmB,OAAfC,GAAGF,QAAkB,CACvB,MAAMG,EAAMb,EAAEc,cAAc,OAC5BD,EAAIE,UAAY,cAAeF,EAAIR,GAAK,MACxCQ,EAAIG,OAAOJ,EAAEK,WAAU,IACvBJ,EAAIK,WAAWH,UAAYX,EAAEe,WAAWA,WAAWJ,UACnDR,EAAEa,MAAMP,EACV,IAEH,EAdD,CAcGQ","ignoreList":[]}
|
package/js/pages.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
function $$(s, el = d) { return el ? el.querySelectorAll(s) : []; }
|
|
6
6
|
function nChild(el) { return el.childElementCount; }
|
|
7
7
|
|
|
8
|
-
const tpl = d.createElement('div'), book = $$('h1').length > 1;
|
|
8
|
+
const tpl = d.createElement('div'), book = $$('h1').length > 1, fr_cls = 'pagesjs-fragmented';
|
|
9
9
|
tpl.className = 'pagesjs-page';
|
|
10
10
|
tpl.innerHTML = `<div class="pagesjs-header"></div>
|
|
11
11
|
<div class="pagesjs-body"></div>
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
const tag = el.tagName, is_code = tag === 'CODE';
|
|
51
51
|
// if <code>, keep fragmenting; otherwise exit when box fits
|
|
52
52
|
if (!(is_code && container) && box.scrollHeight <= H) return;
|
|
53
|
+
el.classList.add(fr_cls);
|
|
53
54
|
const box_cur = page || box, el2 = el.cloneNode(); // shallow clone (wrapper only)
|
|
54
55
|
// add the clone to current box, and move original el to next box
|
|
55
56
|
container ? container.append(el2) : (
|
|
@@ -91,8 +92,10 @@
|
|
|
91
92
|
if (removeBlank(parent)) return; // exit if <pre> is empty
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
const el2_empty = removeBlank(el2);
|
|
94
96
|
// if the clone is empty, remove it, otherwise keep fragmenting the remaining el
|
|
95
|
-
|
|
97
|
+
el2_empty && el.classList.remove(fr_cls);
|
|
98
|
+
if (!el2_empty || is_code || prev) fragment(container ? parent : el);
|
|
96
99
|
}
|
|
97
100
|
|
|
98
101
|
// use data-short-title of a header if exists, and fall back to inner text
|
package/js/pages.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const
|
|
1
|
+
(e=>{function t(t,n=e){return n?.querySelector(t)}function n(t,n=e){return n?n.querySelectorAll(t):[]}function r(e){return e.childElementCount}const s=e.createElement("div"),a=n("h1").length>1,i="pagesjs-fragmented";s.className="pagesjs-page",s.innerHTML='<div class="pagesjs-header"></div>\n<div class="pagesjs-body"></div>\n<div class="pagesjs-footer"></div>';let o,c,l,d=[];function f(e){return e&&!t(".pagesjs-body",e)&&e.insertAdjacentHTML("afterbegin",s.innerHTML),o=e||s.cloneNode(!0),c=o.children[1],d.length&&o.classList.add(...d),o}function p(e){if(!e)return!1;const t=""===e.innerText.trim();return t&&e.remove(),t}function g(e){if(e.classList.contains("pagesjs-page"))return o.after(f(e)),void(r(e)>3&&(c.append(...[...e.children].slice(3)),o.after(f())));if(o.scrollHeight>l){const[e,t]=[o,c];e.after(f()),r(t)>1&&c.append(t.lastChild)}c.append(e),h(e)}function h(e,t,n,s){const a=e.tagName,d="CODE"===a;if((!d||!t)&&o.scrollHeight<=l)return;e.classList.add(i);const g=s||o,u=e.cloneNode();if(t?t.append(u):(c.append(u),g.after(f()),c.append(e)),"PRE"===a){const t=e.firstElementChild;"CODE"==t?.tagName&&/\n/.test(t.innerHTML)&&h(t,u,e,g)}else"DIV"===a&&1===r(e)&&h(e.firstElementChild,u,e,g);const m=u.previousElementSibling;if(["UL","OL","BLOCKQUOTE"].includes(a)&&r(e)>1)for(;;){const t=e.firstChild;if(!t)break;if(u.append(t),g.scrollHeight>l){(m||r(u)>1)&&e.insertBefore(t,e.firstChild),"OL"===a&&(e.start+=r(u));break}}if(d){const t=e.innerHTML.split("\n"),r=[];for(let e of t)if(r.push(e),u.innerHTML=r.join("\n"),g.scrollHeight>l){r.pop(),u.innerHTML=r.join("\n");break}if(r.length>0&&(e.innerHTML=t.slice(r.length).join("\n"),p(n)))return}const b=p(u);b&&e.classList.remove(i),(!b||d||m)&&h(t?n:e)}function u(e){return e&&(e.dataset.shortTitle||e.innerText)}const m=u(t("h1.title, .frontmatter h1, .title, h1")),b=(a?"h1":"h2")+":not(.frontmatter *)",L=["top","bottom"].map((t=>+getComputedStyle(e.documentElement).getPropertyValue(`--paper-margin-${t}`).replace("px","")||0));function E(){if("complete"!==e.readyState)return setTimeout(E,10);const r=e.body.classList;if(r.contains("pagesjs"))return;r.add("pagesjs"),a&&r.add("page-book"),e.body.insertAdjacentElement("afterbegin",f()),l=o.clientHeight||window.innerHeight,n(":is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side").forEach((e=>{e.classList.remove("side","side-left","side-right")})),r.add("pagesjs-filling"),[t(".frontmatter"),t("#TOC"),t(".abstract")].forEach((e=>{e&&(g(e),a&&o.after(f()))})),n(".body").forEach((e=>{d=["chapter","appendix"].filter((t=>e.classList.contains(t))),a&&(""===o.innerText?f(o):o.after(f())),[...e.children].map(g),p(e.parentNode),p(e)})),r.remove("pagesjs-filling"),n('#TOC a[href^="#"]').forEach((t=>{const n=e.createElement("span"),r=t.firstElementChild;for(r?.classList.contains("section-number")?r.after(n):t.insertAdjacentElement("afterbegin",n);n.nextSibling;)n.append(n.nextSibling);t.insertAdjacentHTML("beforeend",'<span class="dot-leader"></span>'),t.dataset.pageNumber="000"}));let s,i=0;n(".pagesjs-page").forEach((e=>{if(p(e))return;if(a){if(t(".frontmatter",e))return;t(b,e)&&(s="")}const r=function(e){let t=+e.dataset.pagesOffset;if(t)return t;const r=e.scrollHeight;if(t=Math.ceil(r/l),t<=1)return t;const s=L.concat([...n("thead",e)].map((e=>+e.offsetHeight))).reduce(((e,t)=>e+t));if(!s)return t;function a(){return Math.ceil((r+(t-1)*s)/l)}let i=a();for(;i>t;)t=i,i=a();return t}(e);r>1&&e.classList.add("page-multiple"),i+=r,e.classList.add("page-"+(i%2==0?"even":"odd"));const o={pageNumber:i,mainTitle:m,pageTitle:s};let c;[e.children[0],e.children[2]].forEach((e=>{for(const t in o)o[t]&&(e.dataset[t]=o[t])})),s=u([...n(b,e)].pop())||s,n(".footnotes",e).forEach(((t,n)=>{0===n?(c=t,e.children[1].after(t)):(c.append(...t.children),t.remove())}))})),n('#TOC a[href^="#"]').forEach((e=>{const n=t(`.pagesjs-page:has(#${CSS.escape(e.getAttribute("href").replace(/^#/,""))}) .pagesjs-header`);e.dataset.pageNumber=n?n.dataset.pageNumber:""}))}addEventListener("beforeprint",E);let j=sessionStorage.getItem("pagesjs");j&&E(),addEventListener("keypress",(e=>"p"===e.key&&(E(),j=j?"":"1",sessionStorage.setItem("pagesjs",j),j||location.reload())))})(document);
|
|
2
2
|
//# sourceMappingURL=pages.min.js.map
|
package/js/pages.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","className","innerHTML","box","box_body","H","box_cls","newPage","insertAdjacentHTML","cloneNode","children","classList","add","removeBlank","v","innerText","trim","remove","fill","contains","after","append","slice","scrollHeight","box2","box_body2","lastChild","fragment","container","parent","page","tag","tagName","is_code","box_cur","el2","code","firstElementChild","test","prev","previousElementSibling","includes","item","firstChild","insertBefore","start","split","code2","i","push","join","pop","shortTitle","h","dataset","main","ps","tb","map","getComputedStyle","documentElement","getPropertyValue","replace","paginate","readyState","setTimeout","cls","body","insertAdjacentElement","clientHeight","window","innerHeight","forEach","filter","parentNode","a","n","nextSibling","pageNumber","page_title","N","pagesOffset","Math","ceil","m","concat","offsetHeight","reduce","m1","m2","newPages","n2","calcPages","info","mainTitle","pageTitle","ft","key","p","CSS","escape","getAttribute","addEventListener","pg","sessionStorage","getItem","e","setItem","location","reload","document"],"sources":["pages.js"],"mappings":"AAEA,CAACA,IACC,SAAUC,EAAEC,EAAGC,EAAKH,GAAK,OAAOG,GAAIC,cAAcF,EAAI,CACtD,SAASG,EAAGH,EAAGC,EAAKH,GAAK,OAAOG,EAAKA,EAAGG,iBAAiBJ,GAAK,EAAI,CAClE,SAASK,EAAOJ,GAAM,OAAOA,EAAGK,iBAAmB,CAEnD,MAAMC,EAAMT,EAAEU,cAAc,OAAQC,EAAON,EAAG,MAAMO,OAAS,
|
|
1
|
+
{"version":3,"names":["d","$","s","el","querySelector","$$","querySelectorAll","nChild","childElementCount","tpl","createElement","book","length","fr_cls","className","innerHTML","box","box_body","H","box_cls","newPage","insertAdjacentHTML","cloneNode","children","classList","add","removeBlank","v","innerText","trim","remove","fill","contains","after","append","slice","scrollHeight","box2","box_body2","lastChild","fragment","container","parent","page","tag","tagName","is_code","box_cur","el2","code","firstElementChild","test","prev","previousElementSibling","includes","item","firstChild","insertBefore","start","split","code2","i","push","join","pop","el2_empty","shortTitle","h","dataset","main","ps","tb","map","getComputedStyle","documentElement","getPropertyValue","replace","paginate","readyState","setTimeout","cls","body","insertAdjacentElement","clientHeight","window","innerHeight","forEach","filter","parentNode","a","n","nextSibling","pageNumber","page_title","N","pagesOffset","Math","ceil","m","concat","offsetHeight","reduce","m1","m2","newPages","n2","calcPages","info","mainTitle","pageTitle","ft","key","p","CSS","escape","getAttribute","addEventListener","pg","sessionStorage","getItem","e","setItem","location","reload","document"],"sources":["pages.js"],"mappings":"AAEA,CAACA,IACC,SAAUC,EAAEC,EAAGC,EAAKH,GAAK,OAAOG,GAAIC,cAAcF,EAAI,CACtD,SAASG,EAAGH,EAAGC,EAAKH,GAAK,OAAOG,EAAKA,EAAGG,iBAAiBJ,GAAK,EAAI,CAClE,SAASK,EAAOJ,GAAM,OAAOA,EAAGK,iBAAmB,CAEnD,MAAMC,EAAMT,EAAEU,cAAc,OAAQC,EAAON,EAAG,MAAMO,OAAS,EAAGC,EAAS,qBACzEJ,EAAIK,UAAY,eAChBL,EAAIM,UAAY,2GAGhB,IAAIC,EAAKC,EAAUC,EAAGC,EAAU,GAChC,SAASC,EAAQjB,GAIf,OAHAA,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E,sBADGgH,IAAIC,OAAOzB,EAAE0B,aAAa,QAAQvC,QAAQ,KAAM,yBAE3Da,EAAErB,QAAQwB,WAAaoB,EAAIA,EAAE5C,QAAQwB,WAAa,EAAE,GAExD,CACAwB,iBAAiB,cAAevC,GAEhC,IAAIwC,EAAKC,eAAeC,QAAQ,WAChCF,GAAMxC,IACNuC,iBAAiB,YAAYI,GAAe,MAAVA,EAAET,MAClClC,IAAYwC,EAAKA,EAAK,GAAK,IAAKC,eAAeG,QAAQ,UAAWJ,GAAKA,GAAMK,SAASC,WAEzF,EAnND,CAmNGC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiee/utils",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.47",
|
|
4
4
|
"description": "Miscellaneous tools and utilities to manipulate HTML pages",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/yihui/
|
|
10
|
+
"url": "git+https://github.com/yihui/lite.js.git"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Yihui Xie <xie@yihui.name> (https://yihui.org)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/yihui/
|
|
24
|
+
"url": "https://github.com/yihui/lite.js/issues"
|
|
25
25
|
},
|
|
26
|
-
"homepage": "https://github.com/yihui/
|
|
26
|
+
"homepage": "https://github.com/yihui/lite.js#readme"
|
|
27
27
|
}
|