devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
31 lines (30 loc) • 846 B
JavaScript
/**
* DevExtreme (esm/viz/tree_map/common.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/
*/
import {
patchFontOptions as _patchFontOptions
} from "../core/utils";
export function buildRectAppearance(option) {
const border = option.border || {};
return {
fill: option.color,
opacity: option.opacity,
stroke: border.color,
"stroke-width": border.width,
"stroke-opacity": border.opacity,
hatching: option.hatching
}
}
export function buildTextAppearance(options, filter) {
return {
attr: {
filter: filter
},
css: _patchFontOptions(options.font)
}
}