(e, n)
| 11051 | } |
| 11052 | } |
| 11053 | function Sm(e, n) { |
| 11054 | const i = n.specifiedScales[e], |
| 11055 | { size: r } = n, |
| 11056 | o = n.getScaleComponent(e).get("type"); |
| 11057 | for (const r of wm) |
| 11058 | if (void 0 !== i[r]) { |
| 11059 | const a = Er(o, r), |
| 11060 | s = Mr(e, r); |
| 11061 | if (a) |
| 11062 | if (s) Si(s); |
| 11063 | else |
| 11064 | switch (r) { |
| 11065 | case "range": { |
| 11066 | const r = i.range; |
| 11067 | if (t.isArray(r)) { |
| 11068 | if (_t(e)) |
| 11069 | return ac( |
| 11070 | r.map((e) => { |
| 11071 | if ("width" === e || "height" === e) { |
| 11072 | const t = n.getName(e), |
| 11073 | i = n.getSignalName.bind(n); |
| 11074 | return sm.fromName(i, t); |
| 11075 | } |
| 11076 | return e; |
| 11077 | }), |
| 11078 | ); |
| 11079 | } else if (t.isObject(r)) |
| 11080 | return ac({ |
| 11081 | data: n.requestDataName(bc.Main), |
| 11082 | field: r.field, |
| 11083 | sort: { op: "min", field: n.vgField(e) }, |
| 11084 | }); |
| 11085 | return ac(r); |
| 11086 | } |
| 11087 | case "scheme": |
| 11088 | return ac(Dm(i[r])); |
| 11089 | } |
| 11090 | else Si(gi(o, r, e)); |
| 11091 | } |
| 11092 | const a = e === te || "xOffset" === e ? "width" : "height", |
| 11093 | s = r[a]; |
| 11094 | if (Rs(s)) |
| 11095 | if (_t(e)) |
| 11096 | if (kr(o)) { |
| 11097 | const t = Om(s, n, e); |
| 11098 | if (t) return ac({ step: t }); |
| 11099 | } else Si(hi(a)); |
| 11100 | else if (jt(e)) { |
| 11101 | const t = e === oe ? "x" : "y"; |
| 11102 | if ("band" === n.getScaleComponent(t).get("type")) { |
| 11103 | const e = zm(s, o); |
| 11104 | if (e) return ac(e); |
| 11105 | } |
| 11106 | } |
| 11107 | const { rangeMin: l, rangeMax: u } = i, |
| 11108 | f = (function (e, n) { |
| 11109 | const { size: i, config: r, mark: o, encoding: a } = n, |
| 11110 | { type: s } = ka(a[e]), |
no test coverage detected