rect.js 456 B

12345678910
  1. import { Color } from './color';
  2. /**
  3. * Render rect in different coordinate and using color channel for stroke and fill attribute.
  4. * The stroke attribute is valid with specified lineWidth attribute which defaults to zero.
  5. */
  6. export const Rect = (options) => {
  7. return Color(Object.assign({ colorAttribute: 'fill' }, options));
  8. };
  9. Rect.props = Object.assign(Object.assign({}, Color.props), { defaultMarker: 'square' });
  10. //# sourceMappingURL=rect.js.map