dot.js 454 B

123456789101112131415161718
  1. import { Dom } from '@antv/x6-common';
  2. export const dot = {
  3. color: '#aaaaaa',
  4. thickness: 1,
  5. markup: 'rect',
  6. update(elem, options) {
  7. const width = options.thickness * options.sx;
  8. const height = options.thickness * options.sy;
  9. Dom.attr(elem, {
  10. width,
  11. height,
  12. rx: width,
  13. ry: height,
  14. fill: options.color,
  15. });
  16. },
  17. };
  18. //# sourceMappingURL=dot.js.map