UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

107 lines (106 loc) 2.85 kB
/** * DevExtreme (cjs/__internal/viz/core/themes/generic/light/sankey.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _contants = require("./contants"); var _default = exports.default = { sankey: { sourceField: "source", targetField: "target", weightField: "weight", hoverEnabled: true, alignment: _contants.CENTER, adaptiveLayout: { width: 80, height: 80, keepLabels: true }, label: { visible: true, horizontalOffset: 8, verticalOffset: 0, overlappingBehavior: "ellipsis", useNodeColors: false, font: { color: _contants.BLACK, weight: 500 }, border: { visible: false, width: 2, color: _contants.WHITE }, customizeText: info => info.title, shadow: { opacity: .2, offsetX: 0, offsetY: 1, blur: 1, color: _contants.WHITE } }, title: { margin: 10, font: { size: 28, weight: 200 }, subtitle: { font: { size: 16 } } }, tooltip: { enabled: true }, node: { padding: 30, width: 8, opacity: 1, border: { color: _contants.WHITE, width: 1, visible: false }, hoverStyle: { hatching: { opacity: .75, step: 6, width: 2, direction: _contants.RIGHT }, border: {} } }, link: { color: "#888888", colorMode: "none", opacity: .3, border: { color: _contants.WHITE, width: 1, visible: false }, hoverStyle: { opacity: .5, hatching: { opacity: .75, step: 6, width: 2, direction: _contants.RIGHT }, border: {} } } } };