SourceTermAnalysisSystem_vue/node_modules/@antv/x6/es/registry/grid/fixed-dot.js
2026-05-15 10:22:44 +08:00

17 lines
456 B
JavaScript

import { Dom } from '@antv/x6-common';
export const fixedDot = {
color: '#aaaaaa',
thickness: 1,
markup: 'rect',
update(elem, options) {
const size = options.sx <= 1 ? options.thickness * options.sx : options.thickness;
Dom.attr(elem, {
width: size,
height: size,
rx: size,
ry: size,
fill: options.color,
});
},
};
//# sourceMappingURL=fixed-dot.js.map