| 7105 | })({ fieldDef: c, fieldDef2: u, channel: n, model: e }); |
| 7106 | } |
| 7107 | function Ou(e, n, i, r, o, a, s) { |
| 7108 | if (lo(o)) { |
| 7109 | if (!i) return { mult: o.band, field: { group: e } }; |
| 7110 | { |
| 7111 | const e = i.get("type"); |
| 7112 | if ("band" === e) { |
| 7113 | let e = `bandwidth('${n}')`; |
| 7114 | 1 !== o.band && (e = `${o.band} * ${e}`); |
| 7115 | const t = Mn("minBandSize", { type: s }, r); |
| 7116 | return { signal: t ? `max(${An(t)}, ${e})` : e }; |
| 7117 | } |
| 7118 | 1 !== o.band && |
| 7119 | (Si( |
| 7120 | (function (e) { |
| 7121 | return `Cannot use the relative band size with ${e} scale.`; |
| 7122 | })(e), |
| 7123 | ), |
| 7124 | (o = void 0)); |
| 7125 | } |
| 7126 | } else { |
| 7127 | if (wn(o)) return o; |
| 7128 | if (o) return { value: o }; |
| 7129 | } |
| 7130 | if (i) { |
| 7131 | const e = i.get("range"); |
| 7132 | if (kn(e) && t.isNumber(e.step)) return { value: e.step - 2 }; |
| 7133 | } |
| 7134 | if (!a) { |
| 7135 | const { |
| 7136 | bandPaddingInner: n, |
| 7137 | barBandPaddingInner: i, |
| 7138 | rectBandPaddingInner: o, |
| 7139 | tickBandPaddingInner: a, |
| 7140 | } = r.scale, |
| 7141 | l = U(n, "tick" === s ? a : "bar" === s ? i : o); |
| 7142 | if (wn(l)) return { signal: `(1 - (${l.signal})) * ${e}` }; |
| 7143 | if (t.isNumber(l)) return { signal: `${1 - l} * ${e}` }; |
| 7144 | } |
| 7145 | return { value: Ws(r.view, e) - 2 }; |
| 7146 | } |
| 7147 | function zu(e, t, n, i, r, o, a) { |
| 7148 | if (Ee(e)) return 0; |
| 7149 | const s = "x" === e || "y2" === e, |