@explorable-viz/fluid 0.7.29 → 0.7.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/README.md +31 -16
  2. package/dist/fluid/fluid/dataset/ssp126-2081-2100.fld +194 -0
  3. package/dist/fluid/fluid/example/dict-list-comp.fld +1 -1
  4. package/dist/fluid/fluid/example/slicing/qcut.expect.fld +0 -0
  5. package/dist/fluid/fluid/example/slicing/qcut.fld +2 -0
  6. package/dist/fluid/fluid/lib/prelude.fld +10 -0
  7. package/dist/fluid/fluid/lib/stats.fld +57 -0
  8. package/dist/fluid/fluid.mjs +48 -45
  9. package/dist/fluid/{load-fig.js → load-figure.js} +4 -4
  10. package/dist/fluid/puppeteer-lib.js +278712 -0
  11. package/package.json +3 -2
  12. package/script/bundle-website.sh +23 -64
  13. package/dist/fluid/css/css/styles.css +0 -343
  14. package/dist/fluid/css/css/view-styles.css +0 -182
  15. package/dist/fluid/css/styles.css +0 -343
  16. package/dist/fluid/css/view-styles.css +0 -182
  17. package/dist/fluid/favicon.ico +0 -0
  18. package/dist/fluid/font/GraphikLight.woff2 +0 -0
  19. package/dist/fluid/font/GraphikLightItalic.woff2 +0 -0
  20. package/dist/fluid/font/GraphikMedium.woff2 +0 -0
  21. package/dist/fluid/font/GraphikMediumItalic.woff2 +0 -0
  22. package/dist/fluid/font/OdiseanTech.woff2 +0 -0
  23. package/dist/fluid/font/font/GraphikLight.woff2 +0 -0
  24. package/dist/fluid/font/font/GraphikLightItalic.woff2 +0 -0
  25. package/dist/fluid/font/font/GraphikMedium.woff2 +0 -0
  26. package/dist/fluid/font/font/GraphikMediumItalic.woff2 +0 -0
  27. package/dist/fluid/font/font/OdiseanTech.woff2 +0 -0
  28. package/dist/fluid/image/fluid-logo.png +0 -0
  29. package/dist/fluid/image/iccs-full-logo.png +0 -0
  30. package/dist/fluid/image/schmidtsciences_primary_color.png +0 -0
  31. package/dist/fluid/shared/footer.html +0 -6
  32. package/dist/fluid/shared/header.html +0 -26
  33. package/dist/fluid/shared/shared/footer.html +0 -6
  34. package/dist/fluid/shared/shared/header.html +0 -26
  35. package/dist/fluid/shared/shared/sub-header.html +0 -12
  36. package/dist/fluid/shared/shared/util.js +0 -72
  37. package/dist/fluid/shared/sub-header.html +0 -12
  38. package/dist/fluid/shared/util.js +0 -72
  39. package/index.js +0 -44294
@@ -1,12 +0,0 @@
1
- <div></div>
2
- <div></div>
3
- <div>
4
- <h3 class="title">Overview</h3>
5
- <nav class="sub-header">
6
- <ul>
7
- <li><a href="/">Transparent research outputs</a></li>
8
- <li><a href="/convolution">Matrix convolution</a></li>
9
- <li><a href="/moving-average">Moving average</a></li>
10
- </ul>
11
- </nav>
12
- </div>
@@ -1,72 +0,0 @@
1
- function loadHeader () {
2
- fetch('/shared/header.html')
3
- .then(response => response.text())
4
- .then(data => {
5
- const header = document.createElement('div')
6
- header.innerHTML = data
7
- activateCurrentLink(header)
8
- const divElement = header.children[0]
9
- const grid = document.getElementById('grid')
10
- grid.parentNode.insertBefore(divElement, grid)
11
- })
12
- .catch(error => console.error('Error loading shared HTML:', error))
13
-
14
- fetch('/shared/footer.html')
15
- .then(response => response.text())
16
- .then(data => {
17
- const footer = document.createElement('div')
18
- footer.innerHTML = data
19
- const divElement = footer.children[0]
20
- const grid = document.getElementById('grid')
21
- grid.parentNode.appendChild(divElement)
22
- })
23
- .catch(error => console.error('Error loading shared HTML:', error))
24
- }
25
-
26
- function eqPaths (path1, path2) {
27
- const trailingSlashes = /\/+$/
28
- return path1.replace(trailingSlashes, '') === path2.replace(trailingSlashes, '')
29
- }
30
-
31
- function activateCurrentLink (el) {
32
- const listItems = el.querySelectorAll('li')
33
- const n_ = Array.from(listItems).findIndex(li => {
34
- const link = li.querySelector('a')
35
- return link && eqPaths(link.getAttribute('href'), window.location.pathname)
36
- })
37
- if (n_ !== -1) {
38
- listItems[n_].classList.add('active-page')
39
- }
40
- }
41
-
42
- function loadSubHeader () {
43
- fetch('/shared/sub-header.html')
44
- .then(response => response.text())
45
- .then(data => {
46
- const header = document.createElement('div')
47
- header.innerHTML = data
48
- activateCurrentLink(header)
49
- const divElements = header.children
50
- const grid = document.getElementById('grid')
51
- for (let i = Math.min(3, divElements.length - 1); i >= 0; --i) {
52
- grid.insertBefore(divElements[i], grid.firstChild)
53
- }
54
- })
55
- .catch(error => console.error('Error loading shared HTML:', error))
56
- }
57
-
58
- function toggleDataPane(gridId) {
59
- const grid = document.getElementById(gridId)
60
- const hidden = grid.classList.contains('data-pane-hidden')
61
- const dataPaneButton = document.querySelector('.data-pane-button')
62
-
63
- if (hidden) {
64
- grid.classList.remove('data-pane-hidden')
65
- dataPaneButton.classList.remove('fa-eye-slash')
66
- dataPaneButton.classList.add('fa-eye')
67
- } else {
68
- grid.classList.add('data-pane-hidden')
69
- dataPaneButton.classList.remove('fa-eye')
70
- dataPaneButton.classList.add('fa-eye-slash')
71
- }
72
- }