@antv/g2
Version:
the Grammar of Graphics in Javascript
14 lines • 620 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rect = void 0;
const color_1 = require("./color");
/**
* Render rect in different coordinate and using color channel for stroke and fill attribute.
* The stroke attribute is valid with specified lineWidth attribute which defaults to zero.
*/
const Rect = (options, context) => {
return (0, color_1.Color)(Object.assign({ colorAttribute: 'fill' }, options), context);
};
exports.Rect = Rect;
exports.Rect.props = Object.assign(Object.assign({}, color_1.Color.props), { defaultMarker: 'square' });
//# sourceMappingURL=rect.js.map
;