@antv/g2
Version:
the Grammar of Graphics in Javascript
22 lines • 877 B
JavaScript
export const commonProps = {
encode: { type: 'object' },
scale: { type: 'object' },
data: { type: 'value' },
transform: { type: 'array' },
style: { type: 'object' },
animate: { type: 'object' },
coordinate: { type: 'object' },
interaction: { type: 'object' },
label: { type: 'array', key: 'labels' },
axis: { type: 'object' },
legend: { type: 'object' },
slider: { type: 'object' },
scrollbar: { type: 'object' },
state: { type: 'object' },
layout: { type: 'object' },
theme: { type: 'object' },
title: { type: 'value' },
};
export const markProps = Object.assign(Object.assign({}, commonProps), { tooltip: { type: 'mix' }, viewStyle: { type: 'object' } });
export const compositionProps = Object.assign(Object.assign({}, commonProps), { labelTransform: { type: 'array' } });
//# sourceMappingURL=props.js.map