@malloydata/render 0.0.189-dev240924161421 → 0.0.189-dev240925135337

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.
@@ -6694,8 +6694,12 @@ class Ir extends NQ {
6694
6694
  getQueryFieldReference(e, n) {
6695
6695
  const r = this.getQueryFieldByName(e);
6696
6696
  if (n) {
6697
- const i = { ...r.fieldDef };
6698
- i.annotation = n, r.fieldDef = i;
6697
+ if (r.parent === void 0)
6698
+ throw new Error("Expected field to have a parent");
6699
+ return r.parent.makeQueryField({
6700
+ ...r.fieldDef,
6701
+ annotation: n
6702
+ });
6699
6703
  }
6700
6704
  return r;
6701
6705
  }
@@ -92040,8 +92044,8 @@ function RB(t, e, n, r) {
92040
92044
  var J;
92041
92045
  const i = (r == null ? void 0 : r.xField) ?? t.allFields.at(0), s = (r == null ? void 0 : r.yField) ?? t.allFields.at(1), { tag: o } = t.tagParse();
92042
92046
  let u = 0, a = 0;
92043
- const l = o.numeric("size", "width"), c = o.numeric("size", "height");
92044
- let f = o.text("size");
92047
+ const l = n.numeric("size", "width") ?? o.numeric("size", "width"), c = n.numeric("size", "height") ?? o.numeric("size", "height");
92048
+ let f = n.text("size") ?? o.text("size");
92045
92049
  l && c ? (u = l, a = c) : (f = f || "md", [u, a] = fit[f], a = a * RE);
92046
92050
  let x = 0, h = 0, p = -90, m = "right", g = "middle", y = 0, E = 0;
92047
92051
  const A = f !== "spark", v = f !== "spark", _ = e.fields[fu(t)];