centaline-data-driven 1.2.65 → 1.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/centaline/dynamicRichText/src/dynamicRichText.vue +16 -10
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/static/UEditor/dialogs/anchor/anchor.html +0 -40
- package/static/UEditor/dialogs/attachment/attachment.css +0 -681
- package/static/UEditor/dialogs/attachment/attachment.html +0 -60
- package/static/UEditor/dialogs/attachment/attachment.js +0 -768
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- package/static/UEditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/alignicon.png +0 -0
- package/static/UEditor/dialogs/attachment/images/bg.png +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/icons.png +0 -0
- package/static/UEditor/dialogs/attachment/images/image.png +0 -0
- package/static/UEditor/dialogs/attachment/images/progress.png +0 -0
- package/static/UEditor/dialogs/attachment/images/success.gif +0 -0
- package/static/UEditor/dialogs/attachment/images/success.png +0 -0
- package/static/UEditor/dialogs/background/background.css +0 -94
- package/static/UEditor/dialogs/background/background.html +0 -56
- package/static/UEditor/dialogs/background/background.js +0 -376
- package/static/UEditor/dialogs/background/images/bg.png +0 -0
- package/static/UEditor/dialogs/background/images/success.png +0 -0
- package/static/UEditor/dialogs/charts/chart.config.js +0 -65
- package/static/UEditor/dialogs/charts/charts.css +0 -165
- package/static/UEditor/dialogs/charts/charts.html +0 -89
- package/static/UEditor/dialogs/charts/charts.js +0 -519
- package/static/UEditor/dialogs/charts/images/charts0.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts1.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts2.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts3.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts4.png +0 -0
- package/static/UEditor/dialogs/charts/images/charts5.png +0 -0
- package/static/UEditor/dialogs/emotion/emotion.css +0 -43
- package/static/UEditor/dialogs/emotion/emotion.html +0 -54
- package/static/UEditor/dialogs/emotion/emotion.js +0 -186
- package/static/UEditor/dialogs/emotion/images/0.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/bface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/cface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/fface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/jxface2.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/dialogs/emotion/images/tface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/wface.gif +0 -0
- package/static/UEditor/dialogs/emotion/images/yface.gif +0 -0
- package/static/UEditor/dialogs/gmap/gmap.html +0 -89
- package/static/UEditor/dialogs/help/help.css +0 -7
- package/static/UEditor/dialogs/help/help.html +0 -82
- package/static/UEditor/dialogs/help/help.js +0 -56
- package/static/UEditor/dialogs/image/image.css +0 -894
- package/static/UEditor/dialogs/image/image.html +0 -120
- package/static/UEditor/dialogs/image/image.js +0 -1156
- package/static/UEditor/dialogs/image/images/alignicon.jpg +0 -0
- package/static/UEditor/dialogs/image/images/bg.png +0 -0
- package/static/UEditor/dialogs/image/images/icons.gif +0 -0
- package/static/UEditor/dialogs/image/images/icons.png +0 -0
- package/static/UEditor/dialogs/image/images/image.png +0 -0
- package/static/UEditor/dialogs/image/images/progress.png +0 -0
- package/static/UEditor/dialogs/image/images/success.gif +0 -0
- package/static/UEditor/dialogs/image/images/success.png +0 -0
- package/static/UEditor/dialogs/insertframe/insertframe.html +0 -98
- package/static/UEditor/dialogs/internal.js +0 -81
- package/static/UEditor/dialogs/link/link.html +0 -126
- package/static/UEditor/dialogs/map/map.html +0 -135
- package/static/UEditor/dialogs/map/show.html +0 -118
- package/static/UEditor/dialogs/music/music.css +0 -30
- package/static/UEditor/dialogs/music/music.html +0 -32
- package/static/UEditor/dialogs/music/music.js +0 -192
- package/static/UEditor/dialogs/preview/preview.html +0 -40
- package/static/UEditor/dialogs/scrawl/images/addimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/brush.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimg.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/delimgH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/empty.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/emptyH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/eraser.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/redoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scale.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/scaleH.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/size.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undo.png +0 -0
- package/static/UEditor/dialogs/scrawl/images/undoH.png +0 -0
- package/static/UEditor/dialogs/scrawl/scrawl.css +0 -72
- package/static/UEditor/dialogs/scrawl/scrawl.html +0 -95
- package/static/UEditor/dialogs/scrawl/scrawl.js +0 -671
- package/static/UEditor/dialogs/searchreplace/searchreplace.html +0 -102
- package/static/UEditor/dialogs/searchreplace/searchreplace.js +0 -164
- package/static/UEditor/dialogs/snapscreen/snapscreen.html +0 -58
- package/static/UEditor/dialogs/spechars/spechars.html +0 -21
- package/static/UEditor/dialogs/spechars/spechars.js +0 -57
- package/static/UEditor/dialogs/table/dragicon.png +0 -0
- package/static/UEditor/dialogs/table/edittable.css +0 -84
- package/static/UEditor/dialogs/table/edittable.html +0 -64
- package/static/UEditor/dialogs/table/edittable.js +0 -237
- package/static/UEditor/dialogs/table/edittd.html +0 -61
- package/static/UEditor/dialogs/table/edittip.html +0 -33
- package/static/UEditor/dialogs/template/config.js +0 -42
- package/static/UEditor/dialogs/template/images/bg.gif +0 -0
- package/static/UEditor/dialogs/template/images/pre0.png +0 -0
- package/static/UEditor/dialogs/template/images/pre1.png +0 -0
- package/static/UEditor/dialogs/template/images/pre2.png +0 -0
- package/static/UEditor/dialogs/template/images/pre3.png +0 -0
- package/static/UEditor/dialogs/template/images/pre4.png +0 -0
- package/static/UEditor/dialogs/template/template.css +0 -18
- package/static/UEditor/dialogs/template/template.html +0 -26
- package/static/UEditor/dialogs/template/template.js +0 -53
- package/static/UEditor/dialogs/video/images/bg.png +0 -0
- package/static/UEditor/dialogs/video/images/center_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/file-icons.png +0 -0
- package/static/UEditor/dialogs/video/images/icons.gif +0 -0
- package/static/UEditor/dialogs/video/images/icons.png +0 -0
- package/static/UEditor/dialogs/video/images/image.png +0 -0
- package/static/UEditor/dialogs/video/images/left_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/none_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/progress.png +0 -0
- package/static/UEditor/dialogs/video/images/right_focus.jpg +0 -0
- package/static/UEditor/dialogs/video/images/success.gif +0 -0
- package/static/UEditor/dialogs/video/images/success.png +0 -0
- package/static/UEditor/dialogs/video/video.css +0 -635
- package/static/UEditor/dialogs/video/video.html +0 -86
- package/static/UEditor/dialogs/video/video.js +0 -797
- package/static/UEditor/dialogs/webapp/webapp.html +0 -53
- package/static/UEditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- package/static/UEditor/dialogs/wordimage/imageUploader.swf +0 -0
- package/static/UEditor/dialogs/wordimage/tangram.js +0 -1495
- package/static/UEditor/dialogs/wordimage/wordimage.html +0 -110
- package/static/UEditor/dialogs/wordimage/wordimage.js +0 -157
- package/static/UEditor/index.html +0 -175
- package/static/UEditor/jsp/config.json +0 -94
- package/static/UEditor/jsp/controller.jsp +0 -14
- package/static/UEditor/jsp/lib/commons-codec-1.9.jar +0 -0
- package/static/UEditor/jsp/lib/commons-fileupload-1.3.1.jar +0 -0
- package/static/UEditor/jsp/lib/commons-io-2.4.jar +0 -0
- package/static/UEditor/jsp/lib/json.jar +0 -0
- package/static/UEditor/jsp/lib/ueditor-1.1.2.jar +0 -0
- package/static/UEditor/lang/en/en.js +0 -684
- package/static/UEditor/lang/en/images/addimage.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- package/static/UEditor/lang/en/images/alldeletebtnupskin.png +0 -0
- package/static/UEditor/lang/en/images/background.png +0 -0
- package/static/UEditor/lang/en/images/button.png +0 -0
- package/static/UEditor/lang/en/images/copy.png +0 -0
- package/static/UEditor/lang/en/images/deletedisable.png +0 -0
- package/static/UEditor/lang/en/images/deleteenable.png +0 -0
- package/static/UEditor/lang/en/images/listbackground.png +0 -0
- package/static/UEditor/lang/en/images/localimage.png +0 -0
- package/static/UEditor/lang/en/images/music.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotateleftenable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightdisable.png +0 -0
- package/static/UEditor/lang/en/images/rotaterightenable.png +0 -0
- package/static/UEditor/lang/en/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/images/copy.png +0 -0
- package/static/UEditor/lang/zh-cn/images/localimage.png +0 -0
- package/static/UEditor/lang/zh-cn/images/music.png +0 -0
- package/static/UEditor/lang/zh-cn/images/upload.png +0 -0
- package/static/UEditor/lang/zh-cn/zh-cn.js +0 -669
- package/static/UEditor/themes/default/css/ueditor.css +0 -1903
- package/static/UEditor/themes/default/css/ueditor.min.css +0 -8
- package/static/UEditor/themes/default/dialogbase.css +0 -100
- package/static/UEditor/themes/default/images/anchor.gif +0 -0
- package/static/UEditor/themes/default/images/arrow.png +0 -0
- package/static/UEditor/themes/default/images/arrow_down.png +0 -0
- package/static/UEditor/themes/default/images/arrow_up.png +0 -0
- package/static/UEditor/themes/default/images/button-bg.gif +0 -0
- package/static/UEditor/themes/default/images/cancelbutton.gif +0 -0
- package/static/UEditor/themes/default/images/charts.png +0 -0
- package/static/UEditor/themes/default/images/cursor_h.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_h.png +0 -0
- package/static/UEditor/themes/default/images/cursor_v.gif +0 -0
- package/static/UEditor/themes/default/images/cursor_v.png +0 -0
- package/static/UEditor/themes/default/images/dialog-title-bg.png +0 -0
- package/static/UEditor/themes/default/images/filescan.png +0 -0
- package/static/UEditor/themes/default/images/highlighted.gif +0 -0
- package/static/UEditor/themes/default/images/icons-all.gif +0 -0
- package/static/UEditor/themes/default/images/icons.gif +0 -0
- package/static/UEditor/themes/default/images/icons.png +0 -0
- package/static/UEditor/themes/default/images/loaderror.png +0 -0
- package/static/UEditor/themes/default/images/loading.gif +0 -0
- package/static/UEditor/themes/default/images/lock.gif +0 -0
- package/static/UEditor/themes/default/images/neweditor-tab-bg.png +0 -0
- package/static/UEditor/themes/default/images/pagebreak.gif +0 -0
- package/static/UEditor/themes/default/images/scale.png +0 -0
- package/static/UEditor/themes/default/images/sortable.png +0 -0
- package/static/UEditor/themes/default/images/spacer.gif +0 -0
- package/static/UEditor/themes/default/images/sparator_v.png +0 -0
- package/static/UEditor/themes/default/images/table-cell-align.png +0 -0
- package/static/UEditor/themes/default/images/tangram-colorpicker.png +0 -0
- package/static/UEditor/themes/default/images/toolbar_bg.png +0 -0
- package/static/UEditor/themes/default/images/unhighlighted.gif +0 -0
- package/static/UEditor/themes/default/images/upload.png +0 -0
- package/static/UEditor/themes/default/images/videologo.gif +0 -0
- package/static/UEditor/themes/default/images/word.gif +0 -0
- package/static/UEditor/themes/default/images/wordpaste.png +0 -0
- package/static/UEditor/themes/iframe.css +0 -1
- package/static/UEditor/third-party/SyntaxHighlighter/shCore.js +0 -3655
- package/static/UEditor/third-party/SyntaxHighlighter/shCoreDefault.css +0 -1
- package/static/UEditor/third-party/codemirror/codemirror.css +0 -104
- package/static/UEditor/third-party/codemirror/codemirror.js +0 -3581
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.js +0 -13
- package/static/UEditor/third-party/highcharts/adapters/mootools-adapter.src.js +0 -313
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.js +0 -15
- package/static/UEditor/third-party/highcharts/adapters/prototype-adapter.src.js +0 -316
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.js +0 -17
- package/static/UEditor/third-party/highcharts/adapters/standalone-framework.src.js +0 -583
- package/static/UEditor/third-party/highcharts/highcharts-more.js +0 -50
- package/static/UEditor/third-party/highcharts/highcharts-more.src.js +0 -2430
- package/static/UEditor/third-party/highcharts/highcharts.js +0 -283
- package/static/UEditor/third-party/highcharts/highcharts.src.js +0 -16974
- package/static/UEditor/third-party/highcharts/modules/annotations.js +0 -7
- package/static/UEditor/third-party/highcharts/modules/annotations.src.js +0 -401
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.js +0 -133
- package/static/UEditor/third-party/highcharts/modules/canvas-tools.src.js +0 -3113
- package/static/UEditor/third-party/highcharts/modules/data.js +0 -17
- package/static/UEditor/third-party/highcharts/modules/data.src.js +0 -582
- package/static/UEditor/third-party/highcharts/modules/drilldown.js +0 -11
- package/static/UEditor/third-party/highcharts/modules/drilldown.src.js +0 -447
- package/static/UEditor/third-party/highcharts/modules/exporting.js +0 -22
- package/static/UEditor/third-party/highcharts/modules/exporting.src.js +0 -709
- package/static/UEditor/third-party/highcharts/modules/funnel.js +0 -12
- package/static/UEditor/third-party/highcharts/modules/funnel.src.js +0 -289
- package/static/UEditor/third-party/highcharts/modules/heatmap.js +0 -1
- package/static/UEditor/third-party/highcharts/modules/heatmap.src.js +0 -53
- package/static/UEditor/third-party/highcharts/modules/map.js +0 -27
- package/static/UEditor/third-party/highcharts/modules/map.src.js +0 -1002
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.js +0 -12
- package/static/UEditor/third-party/highcharts/modules/no-data-to-display.src.js +0 -128
- package/static/UEditor/third-party/highcharts/themes/dark-blue.js +0 -254
- package/static/UEditor/third-party/highcharts/themes/dark-green.js +0 -255
- package/static/UEditor/third-party/highcharts/themes/gray.js +0 -257
- package/static/UEditor/third-party/highcharts/themes/grid.js +0 -103
- package/static/UEditor/third-party/highcharts/themes/skies.js +0 -89
- package/static/UEditor/third-party/jquery-1.10.2.js +0 -9789
- package/static/UEditor/third-party/jquery-1.10.2.min.js +0 -6
- package/static/UEditor/third-party/jquery-1.10.2.min.map +0 -1
- package/static/UEditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.eot +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.svg +0 -65
- package/static/UEditor/third-party/video-js/font/vjs.ttf +0 -0
- package/static/UEditor/third-party/video-js/font/vjs.woff +0 -0
- package/static/UEditor/third-party/video-js/video-js.css +0 -766
- package/static/UEditor/third-party/video-js/video-js.min.css +0 -5
- package/static/UEditor/third-party/video-js/video-js.swf +0 -0
- package/static/UEditor/third-party/video-js/video.dev.js +0 -7106
- package/static/UEditor/third-party/video-js/video.js +0 -129
- package/static/UEditor/third-party/webuploader/Uploader.swf +0 -0
- package/static/UEditor/third-party/webuploader/webuploader.css +0 -28
- package/static/UEditor/third-party/webuploader/webuploader.custom.js +0 -5670
- package/static/UEditor/third-party/webuploader/webuploader.custom.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.js +0 -4176
- package/static/UEditor/third-party/webuploader/webuploader.flashonly.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.html5only.js +0 -5559
- package/static/UEditor/third-party/webuploader/webuploader.html5only.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.js +0 -6733
- package/static/UEditor/third-party/webuploader/webuploader.min.js +0 -2
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.js +0 -4593
- package/static/UEditor/third-party/webuploader/webuploader.withoutimage.min.js +0 -2
- package/static/UEditor/third-party/xss.min.js +0 -1
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.js +0 -1256
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.min.js +0 -9
- package/static/UEditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- package/static/UEditor/ueditor.all.min.js +0 -29574
- package/static/UEditor/ueditor.config.js +0 -497
- package/static/UEditor/ueditor.parse.js +0 -1022
- package/static/UEditor/ueditor.parse.min.js +0 -7
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Highcharts Drilldown plugin
|
|
3
|
-
*
|
|
4
|
-
* Author: Torstein Honsi
|
|
5
|
-
* Last revision: 2013-02-18
|
|
6
|
-
* License: MIT License
|
|
7
|
-
*
|
|
8
|
-
* Demo: http://jsfiddle.net/highcharts/Vf3yT/
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*global HighchartsAdapter*/
|
|
12
|
-
(function (H) {
|
|
13
|
-
|
|
14
|
-
"use strict";
|
|
15
|
-
|
|
16
|
-
var noop = function () {},
|
|
17
|
-
defaultOptions = H.getOptions(),
|
|
18
|
-
each = H.each,
|
|
19
|
-
extend = H.extend,
|
|
20
|
-
wrap = H.wrap,
|
|
21
|
-
Chart = H.Chart,
|
|
22
|
-
seriesTypes = H.seriesTypes,
|
|
23
|
-
PieSeries = seriesTypes.pie,
|
|
24
|
-
ColumnSeries = seriesTypes.column,
|
|
25
|
-
fireEvent = HighchartsAdapter.fireEvent;
|
|
26
|
-
|
|
27
|
-
// Utilities
|
|
28
|
-
function tweenColors(startColor, endColor, pos) {
|
|
29
|
-
var rgba = [
|
|
30
|
-
Math.round(startColor[0] + (endColor[0] - startColor[0]) * pos),
|
|
31
|
-
Math.round(startColor[1] + (endColor[1] - startColor[1]) * pos),
|
|
32
|
-
Math.round(startColor[2] + (endColor[2] - startColor[2]) * pos),
|
|
33
|
-
startColor[3] + (endColor[3] - startColor[3]) * pos
|
|
34
|
-
];
|
|
35
|
-
return 'rgba(' + rgba.join(',') + ')';
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Add language
|
|
39
|
-
extend(defaultOptions.lang, {
|
|
40
|
-
drillUpText: '◁ Back to {series.name}'
|
|
41
|
-
});
|
|
42
|
-
defaultOptions.drilldown = {
|
|
43
|
-
activeAxisLabelStyle: {
|
|
44
|
-
cursor: 'pointer',
|
|
45
|
-
color: '#039',
|
|
46
|
-
fontWeight: 'bold',
|
|
47
|
-
textDecoration: 'underline'
|
|
48
|
-
},
|
|
49
|
-
activeDataLabelStyle: {
|
|
50
|
-
cursor: 'pointer',
|
|
51
|
-
color: '#039',
|
|
52
|
-
fontWeight: 'bold',
|
|
53
|
-
textDecoration: 'underline'
|
|
54
|
-
},
|
|
55
|
-
animation: {
|
|
56
|
-
duration: 500
|
|
57
|
-
},
|
|
58
|
-
drillUpButton: {
|
|
59
|
-
position: {
|
|
60
|
-
align: 'right',
|
|
61
|
-
x: -10,
|
|
62
|
-
y: 10
|
|
63
|
-
}
|
|
64
|
-
// relativeTo: 'plotBox'
|
|
65
|
-
// theme
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* A general fadeIn method
|
|
71
|
-
*/
|
|
72
|
-
H.SVGRenderer.prototype.Element.prototype.fadeIn = function () {
|
|
73
|
-
this
|
|
74
|
-
.attr({
|
|
75
|
-
opacity: 0.1,
|
|
76
|
-
visibility: 'visible'
|
|
77
|
-
})
|
|
78
|
-
.animate({
|
|
79
|
-
opacity: 1
|
|
80
|
-
}, {
|
|
81
|
-
duration: 250
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// Extend the Chart prototype
|
|
86
|
-
Chart.prototype.drilldownLevels = [];
|
|
87
|
-
|
|
88
|
-
Chart.prototype.addSeriesAsDrilldown = function (point, ddOptions) {
|
|
89
|
-
var oldSeries = point.series,
|
|
90
|
-
xAxis = oldSeries.xAxis,
|
|
91
|
-
yAxis = oldSeries.yAxis,
|
|
92
|
-
newSeries,
|
|
93
|
-
color = point.color || oldSeries.color,
|
|
94
|
-
pointIndex,
|
|
95
|
-
level;
|
|
96
|
-
|
|
97
|
-
ddOptions = extend({
|
|
98
|
-
color: color
|
|
99
|
-
}, ddOptions);
|
|
100
|
-
pointIndex = HighchartsAdapter.inArray(this, oldSeries.points);
|
|
101
|
-
level = {
|
|
102
|
-
seriesOptions: oldSeries.userOptions,
|
|
103
|
-
shapeArgs: point.shapeArgs,
|
|
104
|
-
bBox: point.graphic.getBBox(),
|
|
105
|
-
color: color,
|
|
106
|
-
newSeries: ddOptions,
|
|
107
|
-
pointOptions: oldSeries.options.data[pointIndex],
|
|
108
|
-
pointIndex: pointIndex,
|
|
109
|
-
oldExtremes: {
|
|
110
|
-
xMin: xAxis && xAxis.userMin,
|
|
111
|
-
xMax: xAxis && xAxis.userMax,
|
|
112
|
-
yMin: yAxis && yAxis.userMin,
|
|
113
|
-
yMax: yAxis && yAxis.userMax
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
this.drilldownLevels.push(level);
|
|
118
|
-
|
|
119
|
-
newSeries = this.addSeries(ddOptions, false);
|
|
120
|
-
if (xAxis) {
|
|
121
|
-
xAxis.oldPos = xAxis.pos;
|
|
122
|
-
xAxis.userMin = xAxis.userMax = null;
|
|
123
|
-
yAxis.userMin = yAxis.userMax = null;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Run fancy cross-animation on supported and equal types
|
|
127
|
-
if (oldSeries.type === newSeries.type) {
|
|
128
|
-
newSeries.animate = newSeries.animateDrilldown || noop;
|
|
129
|
-
newSeries.options.animation = true;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
oldSeries.remove(false);
|
|
133
|
-
|
|
134
|
-
this.redraw();
|
|
135
|
-
this.showDrillUpButton();
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
Chart.prototype.getDrilldownBackText = function () {
|
|
139
|
-
var lastLevel = this.drilldownLevels[this.drilldownLevels.length - 1];
|
|
140
|
-
|
|
141
|
-
return this.options.lang.drillUpText.replace('{series.name}', lastLevel.seriesOptions.name);
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
Chart.prototype.showDrillUpButton = function () {
|
|
146
|
-
var chart = this,
|
|
147
|
-
backText = this.getDrilldownBackText(),
|
|
148
|
-
buttonOptions = chart.options.drilldown.drillUpButton;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
if (!this.drillUpButton) {
|
|
152
|
-
this.drillUpButton = this.renderer.button(
|
|
153
|
-
backText,
|
|
154
|
-
null,
|
|
155
|
-
null,
|
|
156
|
-
function () {
|
|
157
|
-
chart.drillUp();
|
|
158
|
-
}
|
|
159
|
-
)
|
|
160
|
-
.attr(extend({
|
|
161
|
-
align: buttonOptions.position.align,
|
|
162
|
-
zIndex: 9
|
|
163
|
-
}, buttonOptions.theme))
|
|
164
|
-
.add()
|
|
165
|
-
.align(buttonOptions.position, false, buttonOptions.relativeTo || 'plotBox');
|
|
166
|
-
} else {
|
|
167
|
-
this.drillUpButton.attr({
|
|
168
|
-
text: backText
|
|
169
|
-
})
|
|
170
|
-
.align();
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
Chart.prototype.drillUp = function () {
|
|
175
|
-
var chart = this,
|
|
176
|
-
level = chart.drilldownLevels.pop(),
|
|
177
|
-
oldSeries = chart.series[0],
|
|
178
|
-
oldExtremes = level.oldExtremes,
|
|
179
|
-
newSeries = chart.addSeries(level.seriesOptions, false);
|
|
180
|
-
|
|
181
|
-
fireEvent(chart, 'drillup', { seriesOptions: level.seriesOptions });
|
|
182
|
-
|
|
183
|
-
if (newSeries.type === oldSeries.type) {
|
|
184
|
-
newSeries.drilldownLevel = level;
|
|
185
|
-
newSeries.animate = newSeries.animateDrillupTo || noop;
|
|
186
|
-
newSeries.options.animation = true;
|
|
187
|
-
|
|
188
|
-
if (oldSeries.animateDrillupFrom) {
|
|
189
|
-
oldSeries.animateDrillupFrom(level);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
oldSeries.remove(false);
|
|
194
|
-
|
|
195
|
-
// Reset the zoom level of the upper series
|
|
196
|
-
if (newSeries.xAxis) {
|
|
197
|
-
newSeries.xAxis.setExtremes(oldExtremes.xMin, oldExtremes.xMax, false);
|
|
198
|
-
newSeries.yAxis.setExtremes(oldExtremes.yMin, oldExtremes.yMax, false);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this.redraw();
|
|
203
|
-
|
|
204
|
-
if (this.drilldownLevels.length === 0) {
|
|
205
|
-
this.drillUpButton = this.drillUpButton.destroy();
|
|
206
|
-
} else {
|
|
207
|
-
this.drillUpButton.attr({
|
|
208
|
-
text: this.getDrilldownBackText()
|
|
209
|
-
})
|
|
210
|
-
.align();
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
PieSeries.prototype.animateDrilldown = function (init) {
|
|
215
|
-
var level = this.chart.drilldownLevels[this.chart.drilldownLevels.length - 1],
|
|
216
|
-
animationOptions = this.chart.options.drilldown.animation,
|
|
217
|
-
animateFrom = level.shapeArgs,
|
|
218
|
-
start = animateFrom.start,
|
|
219
|
-
angle = animateFrom.end - start,
|
|
220
|
-
startAngle = angle / this.points.length,
|
|
221
|
-
startColor = H.Color(level.color).rgba;
|
|
222
|
-
|
|
223
|
-
if (!init) {
|
|
224
|
-
each(this.points, function (point, i) {
|
|
225
|
-
var endColor = H.Color(point.color).rgba;
|
|
226
|
-
|
|
227
|
-
/*jslint unparam: true*/
|
|
228
|
-
point.graphic
|
|
229
|
-
.attr(H.merge(animateFrom, {
|
|
230
|
-
start: start + i * startAngle,
|
|
231
|
-
end: start + (i + 1) * startAngle
|
|
232
|
-
}))
|
|
233
|
-
.animate(point.shapeArgs, H.merge(animationOptions, {
|
|
234
|
-
step: function (val, fx) {
|
|
235
|
-
if (fx.prop === 'start') {
|
|
236
|
-
this.attr({
|
|
237
|
-
fill: tweenColors(startColor, endColor, fx.pos)
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}));
|
|
242
|
-
/*jslint unparam: false*/
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* When drilling up, keep the upper series invisible until the lower series has
|
|
250
|
-
* moved into place
|
|
251
|
-
*/
|
|
252
|
-
PieSeries.prototype.animateDrillupTo =
|
|
253
|
-
ColumnSeries.prototype.animateDrillupTo = function (init) {
|
|
254
|
-
if (!init) {
|
|
255
|
-
var newSeries = this,
|
|
256
|
-
level = newSeries.drilldownLevel;
|
|
257
|
-
|
|
258
|
-
each(this.points, function (point) {
|
|
259
|
-
point.graphic.hide();
|
|
260
|
-
if (point.dataLabel) {
|
|
261
|
-
point.dataLabel.hide();
|
|
262
|
-
}
|
|
263
|
-
if (point.connector) {
|
|
264
|
-
point.connector.hide();
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
// Do dummy animation on first point to get to complete
|
|
270
|
-
setTimeout(function () {
|
|
271
|
-
each(newSeries.points, function (point, i) {
|
|
272
|
-
// Fade in other points
|
|
273
|
-
var verb = i === level.pointIndex ? 'show' : 'fadeIn';
|
|
274
|
-
point.graphic[verb]();
|
|
275
|
-
if (point.dataLabel) {
|
|
276
|
-
point.dataLabel[verb]();
|
|
277
|
-
}
|
|
278
|
-
if (point.connector) {
|
|
279
|
-
point.connector[verb]();
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
}, Math.max(this.chart.options.drilldown.animation.duration - 50, 0));
|
|
283
|
-
|
|
284
|
-
// Reset
|
|
285
|
-
this.animate = noop;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
ColumnSeries.prototype.animateDrilldown = function (init) {
|
|
291
|
-
var animateFrom = this.chart.drilldownLevels[this.chart.drilldownLevels.length - 1].shapeArgs,
|
|
292
|
-
animationOptions = this.chart.options.drilldown.animation;
|
|
293
|
-
|
|
294
|
-
if (!init) {
|
|
295
|
-
|
|
296
|
-
animateFrom.x += (this.xAxis.oldPos - this.xAxis.pos);
|
|
297
|
-
|
|
298
|
-
each(this.points, function (point) {
|
|
299
|
-
point.graphic
|
|
300
|
-
.attr(animateFrom)
|
|
301
|
-
.animate(point.shapeArgs, animationOptions);
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* When drilling up, pull out the individual point graphics from the lower series
|
|
309
|
-
* and animate them into the origin point in the upper series.
|
|
310
|
-
*/
|
|
311
|
-
ColumnSeries.prototype.animateDrillupFrom =
|
|
312
|
-
PieSeries.prototype.animateDrillupFrom =
|
|
313
|
-
function (level) {
|
|
314
|
-
var animationOptions = this.chart.options.drilldown.animation,
|
|
315
|
-
group = this.group;
|
|
316
|
-
|
|
317
|
-
delete this.group;
|
|
318
|
-
each(this.points, function (point) {
|
|
319
|
-
var graphic = point.graphic,
|
|
320
|
-
startColor = H.Color(point.color).rgba;
|
|
321
|
-
|
|
322
|
-
delete point.graphic;
|
|
323
|
-
|
|
324
|
-
/*jslint unparam: true*/
|
|
325
|
-
graphic.animate(level.shapeArgs, H.merge(animationOptions, {
|
|
326
|
-
|
|
327
|
-
step: function (val, fx) {
|
|
328
|
-
if (fx.prop === 'start') {
|
|
329
|
-
this.attr({
|
|
330
|
-
fill: tweenColors(startColor, H.Color(level.color).rgba, fx.pos)
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
complete: function () {
|
|
335
|
-
graphic.destroy();
|
|
336
|
-
if (group) {
|
|
337
|
-
group = group.destroy();
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}));
|
|
341
|
-
/*jslint unparam: false*/
|
|
342
|
-
});
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
H.Point.prototype.doDrilldown = function () {
|
|
346
|
-
var series = this.series,
|
|
347
|
-
chart = series.chart,
|
|
348
|
-
drilldown = chart.options.drilldown,
|
|
349
|
-
i = drilldown.series.length,
|
|
350
|
-
seriesOptions;
|
|
351
|
-
|
|
352
|
-
while (i-- && !seriesOptions) {
|
|
353
|
-
if (drilldown.series[i].id === this.drilldown) {
|
|
354
|
-
seriesOptions = drilldown.series[i];
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// Fire the event. If seriesOptions is undefined, the implementer can check for
|
|
359
|
-
// seriesOptions, and call addSeriesAsDrilldown async if necessary.
|
|
360
|
-
fireEvent(chart, 'drilldown', {
|
|
361
|
-
point: this,
|
|
362
|
-
seriesOptions: seriesOptions
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
if (seriesOptions) {
|
|
366
|
-
chart.addSeriesAsDrilldown(this, seriesOptions);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
wrap(H.Point.prototype, 'init', function (proceed, series, options, x) {
|
|
372
|
-
var point = proceed.call(this, series, options, x),
|
|
373
|
-
chart = series.chart,
|
|
374
|
-
tick = series.xAxis && series.xAxis.ticks[x],
|
|
375
|
-
tickLabel = tick && tick.label;
|
|
376
|
-
|
|
377
|
-
if (point.drilldown) {
|
|
378
|
-
|
|
379
|
-
// Add the click event to the point label
|
|
380
|
-
H.addEvent(point, 'click', function () {
|
|
381
|
-
point.doDrilldown();
|
|
382
|
-
});
|
|
383
|
-
|
|
384
|
-
// Make axis labels clickable
|
|
385
|
-
if (tickLabel) {
|
|
386
|
-
if (!tickLabel._basicStyle) {
|
|
387
|
-
tickLabel._basicStyle = tickLabel.element.getAttribute('style');
|
|
388
|
-
}
|
|
389
|
-
tickLabel
|
|
390
|
-
.addClass('highcharts-drilldown-axis-label')
|
|
391
|
-
.css(chart.options.drilldown.activeAxisLabelStyle)
|
|
392
|
-
.on('click', function () {
|
|
393
|
-
if (point.doDrilldown) {
|
|
394
|
-
point.doDrilldown();
|
|
395
|
-
}
|
|
396
|
-
});
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
} else if (tickLabel && tickLabel._basicStyle) {
|
|
400
|
-
tickLabel.element.setAttribute('style', tickLabel._basicStyle);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
return point;
|
|
404
|
-
});
|
|
405
|
-
|
|
406
|
-
wrap(H.Series.prototype, 'drawDataLabels', function (proceed) {
|
|
407
|
-
var css = this.chart.options.drilldown.activeDataLabelStyle;
|
|
408
|
-
|
|
409
|
-
proceed.call(this);
|
|
410
|
-
|
|
411
|
-
each(this.points, function (point) {
|
|
412
|
-
if (point.drilldown && point.dataLabel) {
|
|
413
|
-
point.dataLabel
|
|
414
|
-
.attr({
|
|
415
|
-
'class': 'highcharts-drilldown-data-label'
|
|
416
|
-
})
|
|
417
|
-
.css(css)
|
|
418
|
-
.on('click', function () {
|
|
419
|
-
point.doDrilldown();
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
// Mark the trackers with a pointer
|
|
426
|
-
ColumnSeries.prototype.supportsDrilldown = true;
|
|
427
|
-
PieSeries.prototype.supportsDrilldown = true;
|
|
428
|
-
var type,
|
|
429
|
-
drawTrackerWrapper = function (proceed) {
|
|
430
|
-
proceed.call(this);
|
|
431
|
-
each(this.points, function (point) {
|
|
432
|
-
if (point.drilldown && point.graphic) {
|
|
433
|
-
point.graphic
|
|
434
|
-
.attr({
|
|
435
|
-
'class': 'highcharts-drilldown-point'
|
|
436
|
-
})
|
|
437
|
-
.css({ cursor: 'pointer' });
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
};
|
|
441
|
-
for (type in seriesTypes) {
|
|
442
|
-
if (seriesTypes[type].prototype.supportsDrilldown) {
|
|
443
|
-
wrap(seriesTypes[type].prototype, 'drawTracker', drawTrackerWrapper);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
}(Highcharts));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Highcharts JS v3.0.6 (2013-10-04)
|
|
3
|
-
Exporting module
|
|
4
|
-
|
|
5
|
-
(c) 2010-2013 Torstein Hønsi
|
|
6
|
-
|
|
7
|
-
License: www.highcharts.com/license
|
|
8
|
-
*/
|
|
9
|
-
(function(f){var A=f.Chart,t=f.addEvent,C=f.removeEvent,k=f.createElement,n=f.discardElement,u=f.css,o=f.merge,r=f.each,p=f.extend,D=Math.max,j=document,B=window,E=f.isTouchDevice,F=f.Renderer.prototype.symbols,x=f.getOptions(),y;p(x.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"});x.navigation={menuStyle:{border:"1px solid #A0A0A0",
|
|
10
|
-
background:"#FFFFFF",padding:"5px 0"},menuItemStyle:{padding:"0 10px",background:"none",color:"#303030",fontSize:E?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{symbolFill:"#E0E0E0",symbolSize:14,symbolStroke:"#666",symbolStrokeWidth:3,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,theme:{fill:"white",stroke:"none"},verticalAlign:"top",width:24}};x.exporting={type:"image/png",url:"http://export.highcharts.com/",buttons:{contextButton:{menuClassName:"highcharts-contextmenu",
|
|
11
|
-
symbol:"menu",_titleKey:"contextButtonTitle",menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]}}};f.post=function(c,a){var d,b;b=k("form",{method:"post",
|
|
12
|
-
action:c,enctype:"multipart/form-data"},{display:"none"},j.body);for(d in a)k("input",{type:"hidden",name:d,value:a[d]},null,b);b.submit();n(b)};p(A.prototype,{getSVG:function(c){var a=this,d,b,z,h,g=o(a.options,c);if(!j.createElementNS)j.createElementNS=function(a,b){return j.createElement(b)};c=k("div",null,{position:"absolute",top:"-9999em",width:a.chartWidth+"px",height:a.chartHeight+"px"},j.body);b=a.renderTo.style.width;h=a.renderTo.style.height;b=g.exporting.sourceWidth||g.chart.width||/px$/.test(b)&&
|
|
13
|
-
parseInt(b,10)||600;h=g.exporting.sourceHeight||g.chart.height||/px$/.test(h)&&parseInt(h,10)||400;p(g.chart,{animation:!1,renderTo:c,forExport:!0,width:b,height:h});g.exporting.enabled=!1;g.series=[];r(a.series,function(a){z=o(a.options,{animation:!1,showCheckbox:!1,visible:a.visible});z.isInternal||g.series.push(z)});d=new f.Chart(g,a.callback);r(["xAxis","yAxis"],function(b){r(a[b],function(a,c){var g=d[b][c],f=a.getExtremes(),h=f.userMin,f=f.userMax;g&&(h!==void 0||f!==void 0)&&g.setExtremes(h,
|
|
14
|
-
f,!0,!1)})});b=d.container.innerHTML;g=null;d.destroy();n(c);b=b.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/ /g," ").replace(/­/g,"").replace(/<IMG /g,"<image ").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,
|
|
15
|
-
'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" >]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(a){return a.toLowerCase()});return b=b.replace(/(url\(#highcharts-[0-9]+)"/g,"$1").replace(/"/g,"'")},exportChart:function(c,a){var c=c||{},d=this.options.exporting,d=this.getSVG(o({chart:{borderRadius:0}},d.chartOptions,a,{exporting:{sourceWidth:c.sourceWidth||
|
|
16
|
-
d.sourceWidth,sourceHeight:c.sourceHeight||d.sourceHeight}})),c=o(this.options.exporting,c);f.post(c.url,{filename:c.filename||"chart",type:c.type,width:c.width||0,scale:c.scale||2,svg:d})},print:function(){var c=this,a=c.container,d=[],b=a.parentNode,f=j.body,h=f.childNodes;if(!c.isPrinting)c.isPrinting=!0,r(h,function(a,b){if(a.nodeType===1)d[b]=a.style.display,a.style.display="none"}),f.appendChild(a),B.focus(),B.print(),setTimeout(function(){b.appendChild(a);r(h,function(a,b){if(a.nodeType===
|
|
17
|
-
1)a.style.display=d[b]});c.isPrinting=!1},1E3)},contextMenu:function(c,a,d,b,f,h,g){var e=this,j=e.options.navigation,q=j.menuItemStyle,l=e.chartWidth,m=e.chartHeight,o="cache-"+c,i=e[o],s=D(f,h),v,w,n;if(!i)e[o]=i=k("div",{className:c},{position:"absolute",zIndex:1E3,padding:s+"px"},e.container),v=k("div",null,p({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},j.menuStyle),i),w=function(){u(i,{display:"none"});g&&g.setState(0);e.openMenu=!1},t(i,
|
|
18
|
-
"mouseleave",function(){n=setTimeout(w,500)}),t(i,"mouseenter",function(){clearTimeout(n)}),t(document,"mousedown",function(a){e.pointer.inClass(a.target,c)||w()}),r(a,function(a){if(a){var b=a.separator?k("hr",null,null,v):k("div",{onmouseover:function(){u(this,j.menuItemHoverStyle)},onmouseout:function(){u(this,q)},onclick:function(){w();a.onclick.apply(e,arguments)},innerHTML:a.text||e.options.lang[a.textKey]},p({cursor:"pointer"},q),v);e.exportDivElements.push(b)}}),e.exportDivElements.push(v,
|
|
19
|
-
i),e.exportMenuWidth=i.offsetWidth,e.exportMenuHeight=i.offsetHeight;a={display:"block"};d+e.exportMenuWidth>l?a.right=l-d-f-s+"px":a.left=d-s+"px";b+h+e.exportMenuHeight>m&&g.alignOptions.verticalAlign!=="top"?a.bottom=m-b-s+"px":a.top=b+h-s+"px";u(i,a);e.openMenu=!0},addButton:function(c){var a=this,d=a.renderer,b=o(a.options.navigation.buttonOptions,c),j=b.onclick,h=b.menuItems,g,e,k={stroke:b.symbolStroke,fill:b.symbolFill},q=b.symbolSize||12;if(!a.btnCount)a.btnCount=0;if(!a.exportDivElements)a.exportDivElements=
|
|
20
|
-
[],a.exportSVGElements=[];if(b.enabled!==!1){var l=b.theme,m=l.states,n=m&&m.hover,m=m&&m.select,i;delete l.states;j?i=function(){j.apply(a,arguments)}:h&&(i=function(){a.contextMenu(e.menuClassName,h,e.translateX,e.translateY,e.width,e.height,e);e.setState(2)});b.text&&b.symbol?l.paddingLeft=f.pick(l.paddingLeft,25):b.text||p(l,{width:b.width,height:b.height,padding:0});e=d.button(b.text,0,0,i,l,n,m).attr({title:a.options.lang[b._titleKey],"stroke-linecap":"round"});e.menuClassName=c.menuClassName||
|
|
21
|
-
"highcharts-menu-"+a.btnCount++;b.symbol&&(g=d.symbol(b.symbol,b.symbolX-q/2,b.symbolY-q/2,q,q).attr(p(k,{"stroke-width":b.symbolStrokeWidth||1,zIndex:1})).add(e));e.add().align(p(b,{width:e.width,x:f.pick(b.x,y)}),!0,"spacingBox");y+=(e.width+b.buttonSpacing)*(b.align==="right"?-1:1);a.exportSVGElements.push(e,g)}},destroyExport:function(c){var c=c.target,a,d;for(a=0;a<c.exportSVGElements.length;a++)if(d=c.exportSVGElements[a])d.onclick=d.ontouchstart=null,c.exportSVGElements[a]=d.destroy();for(a=
|
|
22
|
-
0;a<c.exportDivElements.length;a++)d=c.exportDivElements[a],C(d,"mouseleave"),c.exportDivElements[a]=d.onmouseout=d.onmouseover=d.ontouchstart=d.onclick=null,n(d)}});F.menu=function(c,a,d,b){return["M",c,a+2.5,"L",c+d,a+2.5,"M",c,a+b/2+0.5,"L",c+d,a+b/2+0.5,"M",c,a+b-1.5,"L",c+d,a+b-1.5]};A.prototype.callbacks.push(function(c){var a,d=c.options.exporting,b=d.buttons;y=0;if(d.enabled!==!1){for(a in b)c.addButton(b[a]);t(c,"destroy",c.destroyExport)}})})(Highcharts);
|