w-plot-vue 1.0.7 → 1.0.8

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 (155) hide show
  1. package/.github/workflows/ci-test.yml +3 -3
  2. package/README.md +4 -6
  3. package/babel.config.js +4 -3
  4. package/docs/examples/w-bar_horizontal_multi-set(color).html +9 -15
  5. package/docs/examples/w-bar_horizontal_multi-set(color, gradient).html +9 -15
  6. package/docs/examples/w-bar_horizontal_multi-set(series color).html +9 -15
  7. package/docs/examples/w-bar_horizontal_multi-set(series color, gradient).html +9 -15
  8. package/docs/examples/w-bar_horizontal_multi-set.html +9 -15
  9. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackNormal).html +9 -15
  10. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackPercent).html +9 -15
  11. package/docs/examples/w-bar_horizontal_multi-set__hide legned.html +9 -15
  12. package/docs/examples/w-bar_horizontal_multi-set__show labels.html +9 -15
  13. package/docs/examples/w-bar_horizontal_multi-set_barKpColor(gradient).html +9 -15
  14. package/docs/examples/w-bar_horizontal_multi-set_barKpColor.html +9 -15
  15. package/docs/examples/w-bar_horizontal_multi-set_barUseInnerLabelsForHorizontal_barGroupWidthRatio.html +9 -15
  16. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio.html +9 -15
  17. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio_barGroupWidthRatio.html +9 -15
  18. package/docs/examples/w-bar_horizontal_one-set(color).html +9 -15
  19. package/docs/examples/w-bar_horizontal_one-set(color, gradient).html +9 -15
  20. package/docs/examples/w-bar_horizontal_one-set.html +9 -15
  21. package/docs/examples/w-bar_horizontal_one-set_barColor(gradient).html +9 -15
  22. package/docs/examples/w-bar_horizontal_one-set_barColor.html +9 -15
  23. package/docs/examples/w-bar_horizontal_one-set_barKpColor(gradient).html +9 -15
  24. package/docs/examples/w-bar_horizontal_one-set_barKpColor.html +9 -15
  25. package/docs/examples/w-bar_horizontal_one-set_barUseInnerLabelsForHorizontal.html +9 -15
  26. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio.html +9 -15
  27. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio_barGroupWidthRatio.html +9 -15
  28. package/docs/examples/w-bar_horizontal_one-set_hide labels.html +9 -15
  29. package/docs/examples/w-bar_horizontal_one-set_marginLeft_marginRight.html +9 -15
  30. package/docs/examples/w-bar_horizontal_one-set_show legned.html +9 -15
  31. package/docs/examples/w-bar_multi-set(color).html +9 -15
  32. package/docs/examples/w-bar_multi-set(color, gradient).html +9 -15
  33. package/docs/examples/w-bar_multi-set(series color).html +9 -15
  34. package/docs/examples/w-bar_multi-set(series color, gradient).html +9 -15
  35. package/docs/examples/w-bar_multi-set.html +9 -15
  36. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal).html +9 -15
  37. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal)_.html +9 -15
  38. package/docs/examples/w-bar_multi-set__barDisplay(stackPercent).html +9 -15
  39. package/docs/examples/w-bar_multi-set__hide legned.html +9 -15
  40. package/docs/examples/w-bar_multi-set__show labels.html +9 -15
  41. package/docs/examples/w-bar_multi-set_barKpColor(gradient).html +9 -15
  42. package/docs/examples/w-bar_multi-set_barKpColor.html +9 -15
  43. package/docs/examples/w-bar_multi-set_barWidthRatio.html +9 -15
  44. package/docs/examples/w-bar_multi-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +9 -15
  45. package/docs/examples/w-bar_one-set(color).html +9 -15
  46. package/docs/examples/w-bar_one-set(color, gradient).html +9 -15
  47. package/docs/examples/w-bar_one-set.html +9 -15
  48. package/docs/examples/w-bar_one-set_barColor(gradient).html +9 -15
  49. package/docs/examples/w-bar_one-set_barColor.html +9 -15
  50. package/docs/examples/w-bar_one-set_barKpColor(gradient).html +9 -15
  51. package/docs/examples/w-bar_one-set_barKpColor.html +9 -15
  52. package/docs/examples/w-bar_one-set_barWidthRatio.html +9 -15
  53. package/docs/examples/w-bar_one-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +9 -15
  54. package/docs/examples/w-bar_one-set_hide labels.html +9 -15
  55. package/docs/examples/w-bar_one-set_marginLeft_marginRight_marginTop.html +9 -15
  56. package/docs/examples/w-bar_one-set_show legned.html +9 -15
  57. package/docs/examples/w-pie_one-set(color).html +9 -15
  58. package/docs/examples/w-pie_one-set(color, gradient).html +9 -15
  59. package/docs/examples/w-pie_one-set.html +9 -15
  60. package/docs/examples/w-pie_one-set_hide labels.html +9 -15
  61. package/docs/examples/w-pie_one-set_hide legned.html +9 -15
  62. package/docs/examples/w-pie_one-set_marginLeft_marginRight_marginTop.html +9 -15
  63. package/docs/examples/w-pie_one-set_pieBorderRadius.html +9 -15
  64. package/docs/examples/w-pie_one-set_pieBorderWidth_pieBorderRadius.html +9 -15
  65. package/docs/examples/w-pie_one-set_pieKpColor(gradient).html +9 -15
  66. package/docs/examples/w-pie_one-set_pieKpColor.html +9 -15
  67. package/docs/examples/w-pie_one-set_pieThicknessRatio.html +9 -15
  68. package/docs/examples/w-plot-2d_default.html +9 -15
  69. package/docs/examples/w-plot-3d_default.html +9 -15
  70. package/docs/examples/w-rose_multi-set(color).html +9 -15
  71. package/docs/examples/w-rose_multi-set(color, gradient).html +9 -15
  72. package/docs/examples/w-rose_multi-set(series color).html +9 -15
  73. package/docs/examples/w-rose_multi-set(series color, gradient).html +9 -15
  74. package/docs/examples/w-rose_multi-set.html +9 -15
  75. package/docs/examples/w-rose_multi-set__hide legned.html +9 -15
  76. package/docs/examples/w-rose_multi-set__show labels.html +9 -15
  77. package/docs/examples/w-rose_multi-set_roseBorderWidth.html +9 -15
  78. package/docs/examples/w-rose_multi-set_roseKpColor(gradient).html +9 -15
  79. package/docs/examples/w-rose_multi-set_roseKpColor.html +9 -15
  80. package/docs/examples/w-rose_multi-set_roseWidthRatio.html +9 -15
  81. package/docs/examples/w-rose_one-set(color).html +9 -15
  82. package/docs/examples/w-rose_one-set(color, gradient).html +9 -15
  83. package/docs/examples/w-rose_one-set.html +9 -15
  84. package/docs/examples/w-rose_one-set_marginLeft_marginRight_marginTop.html +9 -15
  85. package/docs/examples/w-rose_one-set_roseBorderWidth.html +9 -15
  86. package/docs/examples/w-rose_one-set_roseKpColor(gradient).html +9 -15
  87. package/docs/examples/w-rose_one-set_roseKpColor.html +9 -15
  88. package/docs/examples/w-rose_one-set_roseShowLabels.html +9 -15
  89. package/docs/examples/w-rose_one-set_roseWidthRatio.html +9 -15
  90. package/docs/examples/w-rose_one-set_showLegend.html +9 -15
  91. package/docs/examples/w-rose_one-set_showLegend_legendPosition.html +9 -15
  92. package/docs/examples/w-set-multi_default.html +9 -15
  93. package/docs/examples/w-set-multi_hide labels.html +9 -15
  94. package/docs/examples/w-set-multi_hide legned.html +9 -15
  95. package/docs/examples/w-set-multi_keySelect.html +9 -15
  96. package/docs/examples/w-set-multi_slot head.html +9 -15
  97. package/docs/examples/w-set-multi_textPlotType_kpSelectText_widthSelect.html +9 -15
  98. package/docs/examples/w-set-one_default.html +9 -15
  99. package/docs/examples/w-set-one_hide labels.html +9 -15
  100. package/docs/examples/w-set-one_keySelect.html +9 -15
  101. package/docs/examples/w-set-one_show legned.html +9 -15
  102. package/docs/examples/w-set-one_slot head.html +9 -15
  103. package/docs/examples/w-set-one_textPlotType_kpSelectText_widthSelect.html +9 -15
  104. package/package.json +9 -10
  105. package/public/index.html +8 -12
  106. package/script.txt +9 -9
  107. package/toolg/gDistApp.mjs +8 -8
  108. package/toolg/gExtractHtml.mjs +8 -8
  109. package/vue.config.js +1 -12
  110. package/docs/examples/app.html +0 -65
  111. package/docs/examples/app.umd.js +0 -18
  112. package/docs/examples/app.umd.js.map +0 -1
  113. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  114. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  115. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  116. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  117. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  118. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  119. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  120. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  121. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  122. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
  123. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  124. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  125. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  126. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  127. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
  128. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  129. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  130. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  131. package/docs/getDefAxis.mjs.html +0 -157
  132. package/docs/getDefChart.mjs.html +0 -123
  133. package/docs/getDefLegend.mjs.html +0 -115
  134. package/docs/getDefOpt.mjs.html +0 -137
  135. package/docs/global.html +0 -1088
  136. package/docs/index.html +0 -84
  137. package/docs/module-WBar.html +0 -216
  138. package/docs/module-WPie.html +0 -216
  139. package/docs/module-WPlot2d.html +0 -216
  140. package/docs/module-WPlot3d.html +0 -216
  141. package/docs/module-WRose.html +0 -216
  142. package/docs/module-WSetMulti.html +0 -216
  143. package/docs/module-WSetOne.html +0 -216
  144. package/docs/scripts/collapse.js +0 -39
  145. package/docs/scripts/commonNav.js +0 -28
  146. package/docs/scripts/linenumber.js +0 -25
  147. package/docs/scripts/nav.js +0 -12
  148. package/docs/scripts/polyfill.js +0 -4
  149. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  150. package/docs/scripts/prettify/lang-css.js +0 -2
  151. package/docs/scripts/prettify/prettify.js +0 -28
  152. package/docs/scripts/search.js +0 -99
  153. package/docs/setLegendLoc.mjs.html +0 -176
  154. package/docs/styles/jsdoc.css +0 -776
  155. package/docs/styles/prettify.css +0 -80
@@ -1,216 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>WSetMulti - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
-
18
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
- </head>
20
- <body>
21
-
22
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
- <label for="nav-trigger" class="navicon-button x">
24
- <div class="navicon"></div>
25
- </label>
26
-
27
- <label for="nav-trigger" class="overlay"></label>
28
-
29
- <nav >
30
-
31
-
32
- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-WBar.html">WBar</a></li><li><a href="module-WPie.html">WPie</a></li><li><a href="module-WPlot2d.html">WPlot2d</a></li><li><a href="module-WPlot3d.html">WPlot3d</a></li><li><a href="module-WRose.html">WRose</a></li><li><a href="module-WSetMulti.html">WSetMulti</a></li><li><a href="module-WSetOne.html">WSetOne</a></li></ul><h3>Global</h3><ul><li><a href="global.html#getDefAxis">getDefAxis</a></li><li><a href="global.html#getDefChart">getDefChart</a></li><li><a href="global.html#getDefLegend">getDefLegend</a></li><li><a href="global.html#getDefOpt">getDefOpt</a></li><li><a href="global.html#setLegendLoc">setLegendLoc</a></li></ul>
33
-
34
- </nav>
35
-
36
- <div id="main">
37
-
38
- <h1 class="page-title">WSetMulti</h1>
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- <section>
47
-
48
- <header>
49
-
50
- </header>
51
-
52
- <article>
53
-
54
- <div class="container-overview">
55
-
56
-
57
-
58
- <dl class="details">
59
-
60
- <dt class="tag-description">Description:</dt>
61
- <dd class="tag-description"><ul class="dummy"><li></p></div></div>
62
-
63
-
64
- <h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
65
- <table data-jsdoc-vuejs="table-props">
66
- <thead>
67
- <tr>
68
- <th>Name</th>
69
- <th>Type</th>
70
- <th>Default value</th>
71
- <th>Required?</th>
72
- <th>Description</th>
73
- </tr>
74
- </thead>
75
- <tbody><tr>
76
- <td><code>opt</code></td>
77
- <td>Object</td>
78
- <td><code>{}</code></td>
79
- <td>No</td>
80
- <td>輸入設定物件,預設{}</td>
81
- </tr></tbody>
82
- </table>
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
- <div class="container-overview"><div><p>
93
- </li></ul></dd>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- </dl>
128
-
129
-
130
-
131
-
132
-
133
- <div class="description usertext"></p></div></div>
134
-
135
-
136
- <h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
137
- <table data-jsdoc-vuejs="table-props">
138
- <thead>
139
- <tr>
140
- <th>Name</th>
141
- <th>Type</th>
142
- <th>Default value</th>
143
- <th>Required?</th>
144
- <th>Description</th>
145
- </tr>
146
- </thead>
147
- <tbody><tr>
148
- <td><code>opt</code></td>
149
- <td>Object</td>
150
- <td><code>{}</code></td>
151
- <td>No</td>
152
- <td>輸入設定物件,預設{}</td>
153
- </tr></tbody>
154
- </table>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <div class="container-overview"><div><p>
165
- </div>
166
-
167
-
168
-
169
-
170
- </div>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
- </article>
193
-
194
- </section>
195
-
196
-
197
-
198
-
199
-
200
-
201
- </div>
202
-
203
- <br class="clear">
204
-
205
- <footer>
206
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 23:49:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
207
- </footer>
208
-
209
- <script>prettyPrint();</script>
210
- <script src="scripts/polyfill.js"></script>
211
- <script src="scripts/linenumber.js"></script>
212
-
213
-
214
-
215
- </body>
216
- </html>
@@ -1,216 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>WSetOne - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
-
18
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
- </head>
20
- <body>
21
-
22
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
- <label for="nav-trigger" class="navicon-button x">
24
- <div class="navicon"></div>
25
- </label>
26
-
27
- <label for="nav-trigger" class="overlay"></label>
28
-
29
- <nav >
30
-
31
-
32
- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-WBar.html">WBar</a></li><li><a href="module-WPie.html">WPie</a></li><li><a href="module-WPlot2d.html">WPlot2d</a></li><li><a href="module-WPlot3d.html">WPlot3d</a></li><li><a href="module-WRose.html">WRose</a></li><li><a href="module-WSetMulti.html">WSetMulti</a></li><li><a href="module-WSetOne.html">WSetOne</a></li></ul><h3>Global</h3><ul><li><a href="global.html#getDefAxis">getDefAxis</a></li><li><a href="global.html#getDefChart">getDefChart</a></li><li><a href="global.html#getDefLegend">getDefLegend</a></li><li><a href="global.html#getDefOpt">getDefOpt</a></li><li><a href="global.html#setLegendLoc">setLegendLoc</a></li></ul>
33
-
34
- </nav>
35
-
36
- <div id="main">
37
-
38
- <h1 class="page-title">WSetOne</h1>
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- <section>
47
-
48
- <header>
49
-
50
- </header>
51
-
52
- <article>
53
-
54
- <div class="container-overview">
55
-
56
-
57
-
58
- <dl class="details">
59
-
60
- <dt class="tag-description">Description:</dt>
61
- <dd class="tag-description"><ul class="dummy"><li></p></div></div>
62
-
63
-
64
- <h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
65
- <table data-jsdoc-vuejs="table-props">
66
- <thead>
67
- <tr>
68
- <th>Name</th>
69
- <th>Type</th>
70
- <th>Default value</th>
71
- <th>Required?</th>
72
- <th>Description</th>
73
- </tr>
74
- </thead>
75
- <tbody><tr>
76
- <td><code>opt</code></td>
77
- <td>Object</td>
78
- <td><code>{}</code></td>
79
- <td>No</td>
80
- <td>輸入設定物件,預設{}</td>
81
- </tr></tbody>
82
- </table>
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
- <div class="container-overview"><div><p>
93
- </li></ul></dd>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- </dl>
128
-
129
-
130
-
131
-
132
-
133
- <div class="description usertext"></p></div></div>
134
-
135
-
136
- <h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
137
- <table data-jsdoc-vuejs="table-props">
138
- <thead>
139
- <tr>
140
- <th>Name</th>
141
- <th>Type</th>
142
- <th>Default value</th>
143
- <th>Required?</th>
144
- <th>Description</th>
145
- </tr>
146
- </thead>
147
- <tbody><tr>
148
- <td><code>opt</code></td>
149
- <td>Object</td>
150
- <td><code>{}</code></td>
151
- <td>No</td>
152
- <td>輸入設定物件,預設{}</td>
153
- </tr></tbody>
154
- </table>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <div class="container-overview"><div><p>
165
- </div>
166
-
167
-
168
-
169
-
170
- </div>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
- </article>
193
-
194
- </section>
195
-
196
-
197
-
198
-
199
-
200
-
201
- </div>
202
-
203
- <br class="clear">
204
-
205
- <footer>
206
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 23:49:47 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
207
- </footer>
208
-
209
- <script>prettyPrint();</script>
210
- <script src="scripts/polyfill.js"></script>
211
- <script src="scripts/linenumber.js"></script>
212
-
213
-
214
-
215
- </body>
216
- </html>
@@ -1,39 +0,0 @@
1
- function hideAllButCurrent(){
2
- //by default all submenut items are hidden
3
- //but we need to rehide them for search
4
- document.querySelectorAll("nav > ul").forEach(function(parent) {
5
- if (parent.className.indexOf("collapse_top") !== -1) {
6
- parent.style.display = "none";
7
- }
8
- });
9
- document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
10
- parent.style.display = "none";
11
- });
12
- document.querySelectorAll("nav > h3").forEach(function(section) {
13
- if (section.className.indexOf("collapsed_header") !== -1) {
14
- section.addEventListener("click", function(){
15
- if (section.nextSibling.style.display === "none") {
16
- section.nextSibling.style.display = "block";
17
- } else {
18
- section.nextSibling.style.display = "none";
19
- }
20
- });
21
- }
22
- });
23
-
24
- //only current page (if it exists) should be opened
25
- var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
26
- document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
27
- var href = parent.attributes.href.value.replace(/\.html/, '');
28
- if (file === href) {
29
- if (parent.parentNode.parentNode.className.indexOf("collapse_top") !== -1) {
30
- parent.parentNode.parentNode.style.display = "block";
31
- }
32
- parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
33
- elem.style.display = "block";
34
- });
35
- }
36
- });
37
- }
38
-
39
- hideAllButCurrent();
@@ -1,28 +0,0 @@
1
- if (typeof fetch === 'function') {
2
- const init = () => {
3
- if (typeof scrollToNavItem !== 'function') return false
4
- scrollToNavItem()
5
- // hideAllButCurrent not always loaded
6
- if (typeof hideAllButCurrent === 'function') hideAllButCurrent()
7
- return true
8
- }
9
- fetch('./nav.inc.html')
10
- .then(response => response.ok ? response.text() : `${response.url} => ${response.status} ${response.statusText}`)
11
- .then(body => {
12
- document.querySelector('nav').innerHTML += body
13
- // nav.js should be quicker to load than nav.inc.html, a fallback just in case
14
- return init()
15
- })
16
- .then(done => {
17
- if (done) return
18
- let i = 0
19
- ;(function waitUntilNavJs () {
20
- if (init()) return
21
- if (i++ < 100) return setTimeout(waitUntilNavJs, 300)
22
- console.error(Error('nav.js not loaded after 30s waiting for it'))
23
- })()
24
- })
25
- .catch(error => console.error(error))
26
- } else {
27
- console.error(Error('Browser too old to display commonNav (remove commonNav docdash option)'))
28
- }
@@ -1,25 +0,0 @@
1
- /*global document */
2
- (function() {
3
- var source = document.getElementsByClassName('prettyprint source linenums');
4
- var i = 0;
5
- var lineNumber = 0;
6
- var lineId;
7
- var lines;
8
- var totalLines;
9
- var anchorHash;
10
-
11
- if (source && source[0]) {
12
- anchorHash = document.location.hash.substring(1);
13
- lines = source[0].getElementsByTagName('li');
14
- totalLines = lines.length;
15
-
16
- for (; i < totalLines; i++) {
17
- lineNumber++;
18
- lineId = 'line' + lineNumber;
19
- lines[i].id = lineId;
20
- if (lineId === anchorHash) {
21
- lines[i].className += ' selected';
22
- }
23
- }
24
- }
25
- })();
@@ -1,12 +0,0 @@
1
- function scrollToNavItem() {
2
- var path = window.location.href.split('/').pop().replace(/\.html/, '');
3
- document.querySelectorAll('nav a').forEach(function(link) {
4
- var href = link.attributes.href.value.replace(/\.html/, '');
5
- if (path === href) {
6
- link.scrollIntoView({block: 'center'});
7
- return;
8
- }
9
- })
10
- }
11
-
12
- scrollToNavItem();
@@ -1,4 +0,0 @@
1
- //IE Fix, src: https://www.reddit.com/r/programminghorror/comments/6abmcr/nodelist_lacks_foreach_in_internet_explorer/
2
- if (typeof(NodeList.prototype.forEach)!==typeof(alert)){
3
- NodeList.prototype.forEach=Array.prototype.forEach;
4
- }