| 148907 | return Object.keys(map); |
| 148908 | } |
| 148909 | function axisConfig(spec, scope) { |
| 148910 | var config = scope.config, style = config.style, axis = config.axis, band = scope.scaleType(spec.scale) === "band" && config.axisBand, orient = spec.orient, xy, or, key; |
| 148911 | if (isSignal(orient)) { |
| 148912 | const xyKeys = keys([ |
| 148913 | config.axisX, |
| 148914 | config.axisY |
| 148915 | ]), orientKeys = keys([ |
| 148916 | config.axisTop, |
| 148917 | config.axisBottom, |
| 148918 | config.axisLeft, |
| 148919 | config.axisRight |
| 148920 | ]); |
| 148921 | xy = {}; |
| 148922 | for (key of xyKeys)xy[key] = ifX(orient, fallback(key, config.axisX, axis, style), fallback(key, config.axisY, axis, style)); |
| 148923 | or = {}; |
| 148924 | for (key of orientKeys)or[key] = ifOrient(orient.signal, fallback(key, config.axisTop, axis, style), fallback(key, config.axisBottom, axis, style), fallback(key, config.axisLeft, axis, style), fallback(key, config.axisRight, axis, style)); |
| 148925 | } else { |
| 148926 | xy = orient === Top || orient === Bottom ? config.axisX : config.axisY; |
| 148927 | or = config["axis" + orient[0].toUpperCase() + orient.slice(1)]; |
| 148928 | } |
| 148929 | const result = xy || or || band ? (0, _vegaUtil.extend)({}, axis, xy, or, band) : axis; |
| 148930 | return result; |
| 148931 | } |
| 148932 | function axisDomain(spec, config, userEncode, dataRef) { |
| 148933 | const _ = lookup(spec, config), orient = spec.orient; |
| 148934 | let enter, update; |