UNPKG

highcharts

Version:
202 lines (190 loc) 5.74 kB
/** * @license Highcharts JS v12.3.0 (2025-06-21) * @module highcharts/themes/sand-signika * @requires highcharts * * (c) 2009-2025 Torstein Honsi * * License: www.highcharts.com/license */ import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__ from "../highcharts.src.js"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ (() => { /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = (module) => { /******/ var getter = module && module.__esModule ? /******/ () => (module['default']) : /******/ () => (module); /******/ __webpack_require__.d(getter, { a: getter }); /******/ return getter; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ ;// external ["../highcharts.src.js","default"] const external_highcharts_src_js_default_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__["default"]; var external_highcharts_src_js_default_default = /*#__PURE__*/__webpack_require__.n(external_highcharts_src_js_default_namespaceObject); ;// ./code/es-modules/Extensions/Themes/SandSignika.js /* * * * (c) 2010-2025 Torstein Honsi * * License: www.highcharts.com/license * * Sand-Signika theme for Highcharts JS * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ const { setOptions } = (external_highcharts_src_js_default_default()); const { addEvent, createElement } = (external_highcharts_src_js_default_default()); /* * * * Theme * * */ var SandSignikaTheme; (function (SandSignikaTheme) { /* * * * Constants * * */ SandSignikaTheme.options = { colors: [ '#f45b5b', '#8085e9', '#8d4654', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee' ], chart: { backgroundColor: null, style: { fontFamily: 'Signika, serif' } }, title: { style: { color: 'black', fontSize: '16px', fontWeight: 'bold' } }, subtitle: { style: { color: 'black' } }, tooltip: { borderWidth: 0 }, legend: { backgroundColor: '#E0E0E8', itemStyle: { fontWeight: 'bold', fontSize: '13px' } }, xAxis: { labels: { style: { color: '#6e6e70' } } }, yAxis: { labels: { style: { color: '#6e6e70' } } }, plotOptions: { series: { shadow: true }, candlestick: { lineColor: '#404048' }, map: { shadow: false } }, // Highcharts Stock specific navigator: { xAxis: { gridLineColor: '#D0D0D8' } }, rangeSelector: { buttonTheme: { fill: 'white', stroke: '#C0C0C8', 'stroke-width': 1, states: { select: { fill: '#D0D0D8' } } } }, scrollbar: { trackBorderColor: '#C0C0C8' } }; /* * * * Functions * * */ /** * Apply the theme. */ function apply() { // Load the fonts createElement('link', { href: 'https://fonts.googleapis.com/css?family=Signika:400,700', rel: 'stylesheet', type: 'text/css' }, null, document.getElementsByTagName('head')[0]); // Add the background image to the container addEvent((external_highcharts_src_js_default_default()).Chart, 'afterGetContainer', function () { // eslint-disable-next-line no-invalid-this this.container.style.background = 'url(https://www.highcharts.com/samples/graphics/sand.png)'; }); // Apply the theme setOptions(SandSignikaTheme.options); } SandSignikaTheme.apply = apply; })(SandSignikaTheme || (SandSignikaTheme = {})); /* * * * Default Export * * */ /* harmony default export */ const SandSignika = (SandSignikaTheme); ;// ./code/es-modules/masters/themes/sand-signika.src.js (external_highcharts_src_js_default_default()).theme = SandSignika.options; SandSignika.apply(); /* harmony default export */ const sand_signika_src = ((external_highcharts_src_js_default_default())); export { sand_signika_src as default };