fixed-dot.js 576 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.fixedDot = void 0;
  4. const x6_common_1 = require("@antv/x6-common");
  5. exports.fixedDot = {
  6. color: '#aaaaaa',
  7. thickness: 1,
  8. markup: 'rect',
  9. update(elem, options) {
  10. const size = options.sx <= 1 ? options.thickness * options.sx : options.thickness;
  11. x6_common_1.Dom.attr(elem, {
  12. width: size,
  13. height: size,
  14. rx: size,
  15. ry: size,
  16. fill: options.color,
  17. });
  18. },
  19. };
  20. //# sourceMappingURL=fixed-dot.js.map