| 11029 | } |
| 11030 | const wm = ["range", "scheme"]; |
| 11031 | function km(e, n) { |
| 11032 | const i = e.fieldDef(n); |
| 11033 | if (i?.bin) { |
| 11034 | const { bin: r, field: o } = i, |
| 11035 | a = st(n), |
| 11036 | s = e.getName(a); |
| 11037 | if (t.isObject(r) && r.binned && void 0 !== r.step) |
| 11038 | return new sm(() => { |
| 11039 | const t = e.scaleName(n), |
| 11040 | i = `(domain("${t}")[1] - domain("${t}")[0]) / ${r.step}`; |
| 11041 | return `${e.getSignalName(s)} / (${i})`; |
| 11042 | }); |
| 11043 | if (mn(r)) { |
| 11044 | const t = xd(e, o, r); |
| 11045 | return new sm(() => { |
| 11046 | const n = e.getSignalName(t), |
| 11047 | i = `(${n}.stop - ${n}.start) / ${n}.step`; |
| 11048 | return `${e.getSignalName(s)} / (${i})`; |
| 11049 | }); |
| 11050 | } |
| 11051 | } |
| 11052 | } |
| 11053 | function Sm(e, n) { |
| 11054 | const i = n.specifiedScales[e], |
| 11055 | { size: r } = n, |