@explorable-viz/fluid 0.12.1 → 0.12.2

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.
@@ -41601,7 +41601,7 @@ function setSelection_({
41601
41601
  return () => {
41602
41602
  var listener = eventListener2(withElement(select2))();
41603
41603
  rootElement.selectAll(".matrix-cell").each(function(cellRect) {
41604
- const sel = selState2(matrix.cells[cellRect.i - 1][cellRect.j - 1]);
41604
+ const sel = selState2(matrix.cells[cellRect.i][cellRect.j]);
41605
41605
  select_default2(this).classed(selClasses2, false).classed(selClassesFor2(sel), true).on("mousedown", (e) => {
41606
41606
  listener(e);
41607
41607
  }).on("mouseenter", (e) => {
@@ -41611,7 +41611,7 @@ function setSelection_({
41611
41611
  });
41612
41612
  });
41613
41613
  rootElement.selectAll(".matrix-cell-text").each(function(cellText) {
41614
- const sel = selState2(matrix.cells[cellText.i - 1][cellText.j - 1]);
41614
+ const sel = selState2(matrix.cells[cellText.i][cellText.j]);
41615
41615
  select_default2(this).classed(selClasses2, false).classed(selClassesFor2(sel), true);
41616
41616
  });
41617
41617
  rootElement.selectAll(".matrix-cell-hBorder").each(function(hBorder) {
@@ -41636,13 +41636,13 @@ function createElement_({ val: val2 }, { title: title2, matrix }, parent) {
41636
41636
  rootElement.append("text").text(title2 === "intermediate" ? " " : title2).attr("x", hMargin / 2).attr("y", vMargin / 2).attr("class", "title-text").attr("dominant-baseline", "middle").attr("text-anchor", "left");
41637
41637
  const matrixGrp = rootElement.append("g").attr("transform", `translate(${highlightStrokeWidth / 2 + hMargin / 2}, ${highlightStrokeWidth / 2 + vMargin})`).attr("fill", "currentColor").attr("stroke", "currentColor").attr("stroke-width", ".25");
41638
41638
  const rowGrp = matrixGrp.selectAll("g").data([...matrix.cells.entries()].map(([i, ns]) => {
41639
- return { i: i + 1, ns };
41639
+ return { i, ns };
41640
41640
  })).enter().append("g");
41641
41641
  const cells = rowGrp.selectAll("g").data(({ i, ns }) => [...ns.entries()].map(([j, n]) => {
41642
- return { i, j: j + 1, n };
41642
+ return { i, j, n };
41643
41643
  })).enter();
41644
- cells.append("rect").attr("x", ({ j }) => (j - 1) * w).attr("y", ({ i }) => (i - 1) * h).attr("width", w).attr("height", h).attr("class", "matrix-cell").attr("stroke-width", strokeWidth);
41645
- cells.append("text").text(({ n }) => val2(n)).attr("x", ({ j }) => (j - 0.5) * w).attr("y", ({ i }) => (i - 0.5) * h).attr("class", "matrix-cell-text").attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("pointer-events", "none");
41644
+ cells.append("rect").attr("x", ({ j }) => j * w).attr("y", ({ i }) => i * h).attr("width", w).attr("height", h).attr("class", "matrix-cell").attr("stroke-width", strokeWidth);
41645
+ cells.append("text").text(({ n }) => val2(n)).attr("x", ({ j }) => (j + 0.5) * w).attr("y", ({ i }) => (i + 0.5) * h).attr("class", "matrix-cell-text").attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("pointer-events", "none");
41646
41646
  const bordersGrp = rootElement.append("g").attr("transform", `translate(${highlightStrokeWidth / 2 + hMargin / 2}, ${highlightStrokeWidth / 2 + vMargin})`).attr("fill", "currentColor").attr("stroke", highlightStrokeColor).attr("stroke-width", highlightStrokeWidth);
41647
41647
  const hBordersGrp = bordersGrp.append("g");
41648
41648
  const hBordersRowGrps = hBordersGrp.selectAll("g").data(range(matrix.i + 1)).enter().append("g");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "A functional programming language which integrates a bidirectional dynamic analysis, connecting 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": {
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  @import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
3
3
  @import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');
4
- @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;1,300&display=swap');
4
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;1,300;1,400&display=swap');
5
5
 
6
6
  /* Dropped use of Graphik as seems to have a bug at font-weight 300 */
7
7
 
@@ -70,12 +70,12 @@ svg {
70
70
  }
71
71
 
72
72
  .faq-question {
73
- font-family: 'GraphikMedium';
73
+ font-weight: 400;
74
74
  color: darkslategrey;
75
75
  }
76
76
 
77
77
  .highlight {
78
- font-family: 'GraphikMedium';
78
+ font-weight: 400;
79
79
  }
80
80
 
81
81
  .align-right {