rect.js 602 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Rect = void 0;
  4. const color_1 = require("./color");
  5. /**
  6. * Render rect in different coordinate and using color channel for stroke and fill attribute.
  7. * The stroke attribute is valid with specified lineWidth attribute which defaults to zero.
  8. */
  9. const Rect = (options) => {
  10. return (0, color_1.Color)(Object.assign({ colorAttribute: 'fill' }, options));
  11. };
  12. exports.Rect = Rect;
  13. exports.Rect.props = Object.assign(Object.assign({}, color_1.Color.props), { defaultMarker: 'square' });
  14. //# sourceMappingURL=rect.js.map