@visactor/vchart
Version:
charts lib based @visactor/VGrammar
16 lines (11 loc) • 484 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.getThemeObject = void 0;
const theme_1 = require("../../theme"), vutils_1 = require("@visactor/vutils");
function getThemeObject(theme) {
return (0, vutils_1.isString)(theme) ? theme_1.ThemeManager.themeExist(theme) ? theme_1.ThemeManager.getTheme(theme) : {} : (0,
vutils_1.isObject)(theme) ? theme : {};
}
exports.getThemeObject = getThemeObject;
//# sourceMappingURL=common.js.map