@antv/g2
Version:
the Grammar of Graphics in Javascript
19 lines (15 loc) • 439 B
text/typescript
import { deepMix } from '@antv/util';
import { TransformComponent as TC } from '../runtime';
export type MaybeZeroPaddingOptions = Record<string, never>;
/**
* Set padding of x and y scale to zero.
*/
export const MaybeZeroPadding: TC<MaybeZeroPaddingOptions> = () => {
return (I, mark) => {
return [
I,
deepMix({ scale: { x: { padding: 0 }, y: { padding: 0 } } }, mark),
];
};
};
MaybeZeroPadding.props = {};