| 12345678910111213141516171819202122232425 |
- import { baseGeometryChannels, basePostInference, basePreInference, } from './utils';
- /**
- * Draw a path.
- */
- export 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]])];
- };
- };
- const shapes = ['path', 'hollow'];
- Path.props = {
- defaultShape: 'path',
- defaultLabelShape: 'label',
- composite: false,
- channels: [
- ...baseGeometryChannels({ shapes }),
- { name: 'd', scale: 'identity' },
- ],
- preInference: [...basePreInference()],
- postInference: [...basePostInference()],
- };
- //# sourceMappingURL=path.js.map
|