@explorable-viz/fluid 0.7.105 → 0.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.105",
3
+ "version": "0.8.0",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -29,7 +29,7 @@ echo "Processing other static files:"
29
29
  set +xu # try to remove +u
30
30
  TO_COPY=()
31
31
  shopt -s dotglob extglob
32
- for CHILD in ${PREFIX}website/$WEBSITE/!(.|..); do
32
+ for CHILD in website/$WEBSITE/!(.|..); do
33
33
  BASENAME="$(basename "$CHILD")"
34
34
  if [[ "$BASENAME" =~ ^[a-z.] ]]; then
35
35
  TO_COPY+=("$CHILD")
@@ -39,8 +39,7 @@ shopt -u extglob dotglob
39
39
  set -xu
40
40
 
41
41
  for CHILD in "${TO_COPY[@]}"; do
42
- BASENAME="$(basename "$CHILD")"
43
- cp -rL "$CHILD" "dist/$WEBSITE/$BASENAME"
42
+ cp -rL "$CHILD" dist/$WEBSITE
44
43
  done
45
44
 
46
45
  echo "Processing Fluid source files:"
@@ -83,8 +83,8 @@
83
83
 
84
84
  <script type="module">
85
85
  import { loadFigure, drawCode } from "../shared/load-figure.js"
86
- drawCode("../fluid/lib")("matrix")()
87
- loadFigure("spec.json")()
86
+ drawCode("../fluid/lib/matrix.fld")()
87
+ loadFigure("spec.json")("../fluid/convolution.fld")()
88
88
  </script>
89
89
  </body>
90
90
  </html>
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "fluidSrcPath": ["../fluid"],
3
- "file": "convolution",
4
- "imports": [ "convolution/test-image", "convolution/emboss" ],
5
3
  "datasets": [],
6
4
  "inputs": [ "inputImage", "filter" ],
7
5
  "query": true,
@@ -1,3 +1,6 @@
1
+ import convolution.testImage
2
+ import convolution.emboss
3
+
1
4
  let lookup m n image =
2
5
  let (m_max, n_max) = dims image
3
6
  -- in image!(((m - 1) `mod` m_max) + 1, ((n - 1) `mod` n_max) + 1);
@@ -51,7 +51,8 @@
51
51
 
52
52
  <script type="module">
53
53
  import { loadFigure } from "../shared/load-figure.js"
54
- loadFigure("spec.json")()
54
+ loadFigure("spec.json")("../fluid/moving-average.fld")()
55
+
55
56
  </script>
56
57
  </body>
57
58
  </html>
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "fluidSrcPath": ["../fluid"],
3
- "file": "moving-average",
4
- "imports": [],
5
- "datasets": [["methane", "dataset/methane-emissions"]],
3
+ "datasets": [["methane", "dataset/methane-emissions.fld"]],
6
4
  "inputs": ["methane"],
7
5
  "query": false,
8
6
  "linking": false
@@ -39,8 +39,8 @@
39
39
  </div>
40
40
 
41
41
  <script type="module">
42
- import { drawCode, loadFigure } from "../shared/load-figure.js"
43
- loadFigure("spec.json")()
42
+ import { loadFigure } from "../shared/load-figure.js"
43
+ loadFigure("spec.json")("../fluid/non-renewables.fld")()
44
44
  </script>
45
45
  </body>
46
46
  </html>
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "fluidSrcPath": ["../fluid"],
3
- "datasets": [["renewables", "dataset/renewables-new"], ["nonRenewables", "dataset/non-renewables"]],
4
- "imports": [],
5
- "file": "non-renewables",
3
+ "datasets": [["renewables", "dataset/renewables-new.fld"], ["nonRenewables", "dataset/non-renewables.fld"]],
6
4
  "inputs": ["nonRenewables"],
7
5
  "query": false,
8
6
  "linking": true
@@ -37,9 +37,8 @@
37
37
  </div>
38
38
 
39
39
  <script type="module">
40
- import { drawCode, loadFigure } from "../shared/load-figure.js";
41
- loadFigure("spec.json")();
40
+ import { loadFigure } from "../shared/load-figure.js";
41
+ loadFigure("spec.json")("../fluid/1805.02474v1-10.fld")();
42
42
  </script>
43
43
  </body>
44
44
  </html>
45
-
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "imports" : [ "scigen", "util" ],
3
- "file" : "1805.02474v1-10",
4
3
  "inputs" : [ "tableData" ],
5
- "datasets" : [ [ "tableData", "dataset/scigen/1805.02474v1-10" ] ],
4
+ "datasets" : [ [ "tableData", "dataset/scigen/1805.02474v1-10.fld" ] ],
6
5
  "fluidSrcPath" : [ "../fluid" ],
7
6
  "query": false,
8
7
  "linking": true