18 lines
454 B
JavaScript
18 lines
454 B
JavaScript
import { Dom } from '@antv/x6-common';
|
|
export const dot = {
|
|
color: '#aaaaaa',
|
|
thickness: 1,
|
|
markup: 'rect',
|
|
update(elem, options) {
|
|
const width = options.thickness * options.sx;
|
|
const height = options.thickness * options.sy;
|
|
Dom.attr(elem, {
|
|
width,
|
|
height,
|
|
rx: width,
|
|
ry: height,
|
|
fill: options.color,
|
|
});
|
|
},
|
|
};
|
|
//# sourceMappingURL=dot.js.map
|