| 1234567891011121314151617181920212223242526272829 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.LineX = void 0;
- const utils_1 = require("./utils");
- 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];
- };
- };
- exports.LineX = LineX;
- const shapes = ['line'];
- exports.LineX.props = {
- defaultShape: 'line',
- defaultLabelShape: 'label',
- composite: false,
- channels: [
- ...(0, utils_1.baseAnnotationChannels)({ shapes }),
- { name: 'x', required: true },
- ],
- preInference: [...(0, utils_1.basePreInference)(), { type: 'maybeTupleX' }],
- postInference: [...(0, utils_1.basePostInference)()],
- };
- //# sourceMappingURL=lineX.js.map
|