UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

21 lines 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dot = void 0; const common_1 = require("../../common"); exports.dot = { color: '#aaaaaa', thickness: 1, markup: 'rect', update(elem, options) { const width = options.thickness * options.sx; const height = options.thickness * options.sy; common_1.Dom.attr(elem, { width, height, rx: width, ry: height, fill: options.color, }); }, }; //# sourceMappingURL=dot.js.map