| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.DEFAULT_OPTIONS = exports.PATH_FIELD = exports.ID_FIELD = void 0;
- // 一些字段常量定义,需要在文档初告知用户
- exports.ID_FIELD = 'id';
- exports.PATH_FIELD = 'path';
- /**
- * 韦恩图 默认配置项
- */
- exports.DEFAULT_OPTIONS = {
- appendPadding: [10, 0, 20, 0],
- blendMode: 'multiply',
- tooltip: {
- showTitle: false,
- showMarkers: false,
- fields: ['id', 'size'],
- formatter: function (datum) {
- return { name: datum.id, value: datum.size };
- },
- },
- legend: { position: 'top-left' },
- label: {
- style: {
- textAlign: 'center',
- fill: '#fff',
- },
- },
- // 默认不开启 图例筛选交互
- interactions: [{ type: 'legend-filter', enable: false }],
- state: {
- active: {
- style: {
- stroke: '#000',
- },
- },
- selected: {
- style: {
- stroke: '#000',
- lineWidth: 2,
- },
- },
- inactive: {
- style: {
- fillOpacity: 0.3,
- strokeOpacity: 0.3,
- },
- },
- },
- // 韦恩图的默认内置注册的交互
- defaultInteractions: ['tooltip', 'venn-legend-active'],
- };
- //# sourceMappingURL=constant.js.map
|