| 1234567891011121314151617181920212223242526272829 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.LineY = void 0;
- const utils_1 = require("./utils");
- const LineY = () => {
- return (index, scale, value, coordinate) => {
- const { y: Y } = value;
- const P = Array.from(index, (i) => {
- const p1 = [0, Y[i]];
- const p2 = [1, Y[i]];
- return [p1, p2].map((d) => coordinate.map(d));
- });
- return [index, P];
- };
- };
- exports.LineY = LineY;
- const shapes = ['line'];
- exports.LineY.props = {
- defaultShape: 'line',
- defaultLabelShape: 'label',
- composite: false,
- channels: [
- ...(0, utils_1.baseAnnotationChannels)({ shapes }),
- { name: 'y', required: true },
- ],
- preInference: [...(0, utils_1.basePreInference)(), { type: 'maybeTupleY' }],
- postInference: [...(0, utils_1.basePostInference)()],
- };
- //# sourceMappingURL=lineY.js.map
|