"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: {
        offsetY: 6,
        style: {
            textAlign: 'center',
            fill: '#fff',
        },
    },
    // 默认不开启 图例筛选交互
    interactions: [
        { type: 'legend-filter', enable: false },
        // hover 激活的时候，元素的层级展示不太好 先移除该交互
        { type: 'legend-highlight', enable: false },
        { type: 'legend-active', enable: false },
    ],
};
//# sourceMappingURL=constant.js.map