all files / common/model/ theme.js

100% Statements 46/46
100% Branches 12/12
100% Functions 5/5
100% Lines 46/46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190                                                                                         2803× 2803×   11×   11×       19×   19×   2768×   2768×   2803×   2625× 2625×   12×                                                 12×   2613×                                                 2613×   2625×   97× 97×   15×                   15×                                   80×               80×   97×      
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var Theme;
    (function (Theme) {
        Theme.axisLabelFont = {
            size: '12px',
            fontWeight: 'Normal',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.axisTitleFont = {
            size: '14px',
            fontWeight: 'Normal',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.chartTitleFont = {
            size: '15px',
            fontWeight: '500',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.crosshairLabelFont = {
            size: '13px',
            fontWeight: 'Normal',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.tooltipLabelFont = {
            size: '13px',
            fontWeight: 'Normal',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.legendLabelFont = {
            size: '13px',
            fontWeight: 'Normal',
            color: null,
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
        Theme.stripLineLabelFont = {
            size: '12px',
            fontWeight: 'Regular',
            color: '#353535',
            fontStyle: 'Normal',
            fontFamily: 'Segoe UI'
        };
    })(Theme = exports.Theme || (exports.Theme = {}));
    function getSeriesColor(theme) {
        var palette;
        switch (theme) {
            case 'Fabric':
                palette = ['#4472c4', '#ed7d31', '#ffc000', '#70ad47', '#5b9bd5',
                    '#c1c1c1', '#6f6fe2', '#e269ae', '#9e480e', '#997300'];
                break;
            case 'Bootstrap':
                palette = ['#a16ee5', '#f7ce69', '#55a5c2', '#7ddf1e', '#ff6ea6',
                    '#7953ac', '#b99b4f', '#407c92', '#5ea716', '#b91c52'];
                break;
            case 'Highcontrast':
                palette = ['#79ECE4', '#E98272', '#DFE6B6', '#C6E773', '#BA98FF',
                    '#FA83C3', '#00C27A', '#43ACEF', '#D681EF', '#D8BC6E'];
                break;
            default:
                palette = ['#00bdae', '#404041', '#357cd2', '#e56590', '#f8b883',
                    '#70ad47', '#dd8abd', '#7f84e8', '#7bb4eb', '#ea7a57'];
                break;
        }
        return palette;
    }
    exports.getSeriesColor = getSeriesColor;
    function getThemeColor(theme) {
        var style;
        switch (theme) {
            case 'Highcontrast':
                style = {
                    axisLabel: '#ffffff',
                    axisTitle: '#ffffff',
                    axisLine: '#ffffff',
                    majorGridLine: '#BFBFBF',
                    minorGridLine: '#969696',
                    majorTickLine: '#BFBFBF',
                    minorTickLine: '#969696',
                    chartTitle: '#ffffff',
                    legendLabel: '#ffffff',
                    background: '#000000',
                    areaBorder: '#ffffff',
                    errorBar: '#ffffff',
                    crosshairLine: '#ffffff',
                    crosshairFill: '#ffffff',
                    crosshairLabel: '#000000',
                    tooltipFill: '#ffffff',
                    tooltipBoldLabel: '#000000',
                    tooltipLightLabel: '#000000',
                    tooltipHeaderLine: '#969696',
                    markerShadow: '#BFBFBF',
                    selectionRectFill: 'rgba(255, 217, 57, 0.3)',
                    selectionRectStroke: '#ffffff',
                    selectionCircleStroke: '#FFD939'
                };
                break;
            default:
                style = {
                    axisLabel: '#686868',
                    axisTitle: '#424242',
                    axisLine: '#b5b5b5',
                    majorGridLine: '#dbdbdb',
                    minorGridLine: '#eaeaea',
                    majorTickLine: '#b5b5b5',
                    minorTickLine: '#d6d6d6',
                    chartTitle: '#424242',
                    legendLabel: '#353535',
                    background: '#FFFFFF',
                    areaBorder: 'Gray',
                    errorBar: '#000000',
                    crosshairLine: '#4f4f4f',
                    crosshairFill: '#4f4f4f',
                    crosshairLabel: '#e5e5e5',
                    tooltipFill: 'rgba(0, 8, 22, 0.75)',
                    tooltipBoldLabel: '#ffffff',
                    tooltipLightLabel: '#dbdbdb',
                    tooltipHeaderLine: '#ffffff',
                    markerShadow: null,
                    selectionRectFill: 'rgba(41, 171, 226, 0.1)',
                    selectionRectStroke: '#29abe2',
                    selectionCircleStroke: '#29abe2'
                };
                break;
        }
        return style;
    }
    exports.getThemeColor = getThemeColor;
    function getScrollbarThemeColor(theme) {
        var scrollStyle;
        switch (theme) {
            case 'Highcontrast':
                scrollStyle = {
                    backRect: '#333',
                    thumb: '#bfbfbf',
                    circle: '#fff',
                    circleHover: '#685708',
                    arrow: '#333',
                    grip: '#333',
                    arrowHover: '#fff',
                    backRectBorder: '#969696',
                };
                break;
            case 'Bootstrap':
                scrollStyle = {
                    backRect: '#f5f5f5',
                    thumb: '#e6e6e6',
                    circle: '#fff',
                    circleHover: '#eee',
                    arrow: '#8c8c8c',
                    grip: '#8c8c8c'
                };
                break;
            case 'Fabric':
                scrollStyle = {
                    backRect: '#f8f8f8',
                    thumb: '#eaeaea',
                    circle: '#fff',
                    circleHover: '#eaeaea',
                    arrow: '#a6a6a6',
                    grip: '#a6a6a6'
                };
                break;
            default:
                scrollStyle = {
                    backRect: '#f5f5f5',
                    thumb: '#e0e0e0',
                    circle: '#fff',
                    circleHover: '#eee',
                    arrow: '#9e9e9e',
                    grip: '#9e9e9e'
                };
                break;
        }
        return scrollStyle;
    }
    exports.getScrollbarThemeColor = getScrollbarThemeColor;
});