| 1234567891011121314151617181920212223242526272829 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Path = void 0;
- const utils_1 = require("./utils");
- /**
- * Draw a path.
- */
- const Path = (options) => {
- return (index, scale, value, coordinate) => {
- // The points is meaning less for path mark,
- // because the position of path shapes specified
- // by the d option. So set [0, 0] for render pipeline.
- return [index, index.map(() => [[0, 0]])];
- };
- };
- exports.Path = Path;
- const shapes = ['path', 'hollow'];
- exports.Path.props = {
- defaultShape: 'path',
- defaultLabelShape: 'label',
- composite: false,
- channels: [
- ...(0, utils_1.baseGeometryChannels)({ shapes }),
- { name: 'd', scale: 'identity' },
- ],
- preInference: [...(0, utils_1.basePreInference)()],
- postInference: [...(0, utils_1.basePostInference)()],
- };
- //# sourceMappingURL=path.js.map
|