20 lines
576 B
JavaScript
20 lines
576 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.fixedDot = void 0;
|
|
const x6_common_1 = require("@antv/x6-common");
|
|
exports.fixedDot = {
|
|
color: '#aaaaaa',
|
|
thickness: 1,
|
|
markup: 'rect',
|
|
update(elem, options) {
|
|
const size = options.sx <= 1 ? options.thickness * options.sx : options.thickness;
|
|
x6_common_1.Dom.attr(elem, {
|
|
width: size,
|
|
height: size,
|
|
rx: size,
|
|
ry: size,
|
|
fill: options.color,
|
|
});
|
|
},
|
|
};
|
|
//# sourceMappingURL=fixed-dot.js.map
|