| 10062 | parcelHelpers.export(exports, "recolorAxes", ()=>recolorAxes); |
| 10063 | var _vegaDeckGl = require("@msrvida/vega-deck.gl"); |
| 10064 | function cloneAxis(axes, axisColor, axisTextColor) { |
| 10065 | return axes.map((axis)=>{ |
| 10066 | const newAxis = _vegaDeckGl.util.deepMerge(axis); |
| 10067 | if (newAxis.domain) newAxis.domain.color = axisColor; |
| 10068 | if (newAxis.title) newAxis.title.color = axisTextColor; |
| 10069 | newAxis.ticks.forEach((t)=>{ |
| 10070 | t.color = axisColor; |
| 10071 | }); |
| 10072 | newAxis.tickText.forEach((t)=>{ |
| 10073 | t.color = axisTextColor; |
| 10074 | }); |
| 10075 | return newAxis; |
| 10076 | }); |
| 10077 | } |
| 10078 | function cloneTextData(textData, color) { |
| 10079 | return textData.map((t)=>{ |
| 10080 | return Object.assign(Object.assign({}, t), { |