import { basePostInference, baseAnnotationChannels, basePreInference, } from './utils'; export const LineX = () => { return (index, scale, value, coordinate) => { const { x: X } = value; const P = Array.from(index, (i) => { const p1 = [X[i], 1]; const p2 = [X[i], 0]; return [p1, p2].map((d) => coordinate.map(d)); }); return [index, P]; }; }; const shapes = ['line']; LineX.props = { defaultShape: 'line', defaultLabelShape: 'label', composite: false, channels: [ ...baseAnnotationChannels({ shapes }), { name: 'x', required: true }, ], preInference: [...basePreInference(), { type: 'maybeTupleX' }], postInference: [...basePostInference()], }; //# sourceMappingURL=lineX.js.map