baidu_ueditor_rails5 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/baidu_ueditor.js +1 -1
- data/app/assets/javascripts/ueditor/dialogs/anchor/anchor.html +40 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.css +681 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.html +60 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/attachment.js +754 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_default.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/alignicon.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/file-icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/attachment/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.css +94 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.html +56 -0
- data/app/assets/javascripts/ueditor/dialogs/background/background.js +376 -0
- data/app/assets/javascripts/ueditor/dialogs/background/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/background/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/chart.config.js +65 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.css +165 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.html +89 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/charts.js +519 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts0.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts1.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts2.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts3.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts4.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/charts/images/charts5.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.css +43 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.html +54 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/emotion.js +186 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/0.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/bface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/cface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/fface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/jxface2.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/neweditor-tab-bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/tface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/wface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/emotion/images/yface.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/gmap/gmap.html +89 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.css +7 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.html +82 -0
- data/app/assets/javascripts/ueditor/dialogs/help/help.js +56 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.css +894 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.html +120 -0
- data/app/assets/javascripts/ueditor/dialogs/image/image.js +1142 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/alignicon.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/image/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/insertframe/insertframe.html +98 -0
- data/app/assets/javascripts/ueditor/dialogs/internal.js +81 -0
- data/app/assets/javascripts/ueditor/dialogs/link/link.html +126 -0
- data/app/assets/javascripts/ueditor/dialogs/map/map.html +135 -0
- data/app/assets/javascripts/ueditor/dialogs/map/show.html +118 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.css +30 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.html +32 -0
- data/app/assets/javascripts/ueditor/dialogs/music/music.js +192 -0
- data/app/assets/javascripts/ueditor/dialogs/preview/preview.html +40 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/addimg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/brush.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/delimg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/delimgH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/empty.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/emptyH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/eraser.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/redo.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/redoH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/scale.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/scaleH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/size.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/undo.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/images/undoH.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.css +72 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.html +95 -0
- data/app/assets/javascripts/ueditor/dialogs/scrawl/scrawl.js +671 -0
- data/app/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.html +102 -0
- data/app/assets/javascripts/ueditor/dialogs/searchreplace/searchreplace.js +164 -0
- data/app/assets/javascripts/ueditor/dialogs/snapscreen/snapscreen.html +58 -0
- data/app/assets/javascripts/ueditor/dialogs/spechars/spechars.html +21 -0
- data/app/assets/javascripts/ueditor/dialogs/spechars/spechars.js +57 -0
- data/app/assets/javascripts/ueditor/dialogs/table/dragicon.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.css +84 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.html +64 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittable.js +237 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittd.html +61 -0
- data/app/assets/javascripts/ueditor/dialogs/table/edittip.html +33 -0
- data/app/assets/javascripts/ueditor/dialogs/template/config.js +42 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/bg.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre0.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre1.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre2.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre3.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/images/pre4.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.css +18 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.html +26 -0
- data/app/assets/javascripts/ueditor/dialogs/template/template.js +53 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/bg.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/center_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/file-icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/file-icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/image.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/left_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/none_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/progress.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/right_focus.jpg +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/success.gif +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/images/success.png +0 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.css +635 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.html +86 -0
- data/app/assets/javascripts/ueditor/dialogs/video/video.js +791 -0
- data/app/assets/javascripts/ueditor/dialogs/webapp/webapp.html +53 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/fClipboard_ueditor.swf +0 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/imageUploader.swf +0 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/tangram.js +1495 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/wordimage.html +111 -0
- data/app/assets/javascripts/ueditor/dialogs/wordimage/wordimage.js +157 -0
- data/app/assets/javascripts/ueditor/index.html +175 -0
- data/app/assets/javascripts/ueditor/lang/en/en.js +684 -0
- data/app/assets/javascripts/ueditor/lang/en/images/addimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/alldeletebtnhoverskin.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/alldeletebtnupskin.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/background.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/button.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/copy.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/deletedisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/deleteenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/listbackground.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/localimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/music.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotateleftdisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotateleftenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotaterightdisable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/rotaterightenable.png +0 -0
- data/app/assets/javascripts/ueditor/lang/en/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/copy.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/localimage.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/music.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/lang/zh-cn/zh-cn.js +669 -0
- data/app/assets/javascripts/ueditor/themes/default/css/ueditor.css +1903 -0
- data/app/assets/javascripts/ueditor/themes/default/css/ueditor.min.css +8 -0
- data/app/assets/javascripts/ueditor/themes/default/dialogbase.css +100 -0
- data/app/assets/javascripts/ueditor/themes/default/images/anchor.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow_down.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/arrow_up.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/button-bg.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cancelbutton.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/charts.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_h.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_h.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_v.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/cursor_v.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/dialog-title-bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/filescan.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/highlighted.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons-all.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/icons.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/loaderror.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/loading.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/lock.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/neweditor-tab-bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/scale.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/sortable.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/spacer.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/sparator_v.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/table-cell-align.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/tangram-colorpicker.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/toolbar_bg.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/unhighlighted.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/upload.png +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/videologo.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/word.gif +0 -0
- data/app/assets/javascripts/ueditor/themes/default/images/wordpaste.png +0 -0
- data/app/assets/javascripts/ueditor/themes/iframe.css +1 -0
- data/app/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCore.js +3655 -0
- data/app/assets/javascripts/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css +1 -0
- data/app/assets/javascripts/ueditor/third-party/codemirror/codemirror.css +104 -0
- data/app/assets/javascripts/ueditor/third-party/codemirror/codemirror.js +3581 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.js +13 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js +313 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.js +15 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/prototype-adapter.src.js +316 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.js +17 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/adapters/standalone-framework.src.js +583 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.js +50 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts-more.src.js +2430 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts.js +283 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/highcharts.src.js +16974 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.js +7 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/annotations.src.js +401 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.js +133 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/canvas-tools.src.js +3113 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/data.js +17 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/data.src.js +582 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.js +11 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/drilldown.src.js +447 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.js +22 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/exporting.src.js +709 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.js +12 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/funnel.src.js +289 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.js +1 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/heatmap.src.js +53 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/map.js +27 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/map.src.js +1002 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.js +12 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/modules/no-data-to-display.src.js +128 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/dark-blue.js +254 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/dark-green.js +255 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/gray.js +257 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/grid.js +103 -0
- data/app/assets/javascripts/ueditor/third-party/highcharts/themes/skies.js +89 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.js +9789 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.js +6 -0
- data/app/assets/javascripts/ueditor/third-party/jquery-1.10.2.min.map +1 -0
- data/app/assets/javascripts/ueditor/third-party/snapscreen/UEditorSnapscreen.exe +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.eot +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.svg +65 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.ttf +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/font/vjs.woff +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.css +766 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.min.css +5 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video-js.swf +0 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video.dev.js +7108 -0
- data/app/assets/javascripts/ueditor/third-party/video-js/video.js +129 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/Uploader.swf +0 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.css +28 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.js +5670 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.custom.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.js +4176 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.flashonly.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.js +5559 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.html5only.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.js +6733 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.js +4593 -0
- data/app/assets/javascripts/ueditor/third-party/webuploader/webuploader.withoutimage.min.js +2 -0
- data/app/assets/javascripts/ueditor/third-party/xss.min.js +1 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.js +1256 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js +9 -0
- data/app/assets/javascripts/ueditor/third-party/zeroclipboard/ZeroClipboard.swf +0 -0
- data/app/assets/javascripts/ueditor/ueditor.all.js +29568 -0
- data/app/assets/javascripts/ueditor/ueditor.all.min.js +18 -0
- data/app/assets/javascripts/ueditor/ueditor.config.js +497 -0
- data/app/assets/javascripts/ueditor/ueditor.parse.js +1022 -0
- data/app/assets/javascripts/ueditor/ueditor.parse.min.js +7 -0
- data/app/assets/javascripts/{ueditor → ueditor_custom}/preinit.js.erb +0 -0
- data/lib/baidu_ueditor_rails/version.rb +1 -1
- metadata +292 -21
@@ -0,0 +1,11 @@
|
|
1
|
+
(function(e){function q(b,a,c){return"rgba("+[Math.round(b[0]+(a[0]-b[0])*c),Math.round(b[1]+(a[1]-b[1])*c),Math.round(b[2]+(a[2]-b[2])*c),b[3]+(a[3]-b[3])*c].join(",")+")"}var m=function(){},j=e.getOptions(),g=e.each,n=e.extend,o=e.wrap,h=e.Chart,i=e.seriesTypes,k=i.pie,l=i.column,r=HighchartsAdapter.fireEvent;n(j.lang,{drillUpText:"◁ Back to {series.name}"});j.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#039",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",
|
2
|
+
color:"#039",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};e.SVGRenderer.prototype.Element.prototype.fadeIn=function(){this.attr({opacity:0.1,visibility:"visible"}).animate({opacity:1},{duration:250})};h.prototype.drilldownLevels=[];h.prototype.addSeriesAsDrilldown=function(b,a){var c=b.series,d=c.xAxis,f=c.yAxis,e;e=b.color||c.color;var g,a=n({color:e},a);g=HighchartsAdapter.inArray(this,c.points);this.drilldownLevels.push({seriesOptions:c.userOptions,
|
3
|
+
shapeArgs:b.shapeArgs,bBox:b.graphic.getBBox(),color:e,newSeries:a,pointOptions:c.options.data[g],pointIndex:g,oldExtremes:{xMin:d&&d.userMin,xMax:d&&d.userMax,yMin:f&&f.userMin,yMax:f&&f.userMax}});e=this.addSeries(a,!1);if(d)d.oldPos=d.pos,d.userMin=d.userMax=null,f.userMin=f.userMax=null;if(c.type===e.type)e.animate=e.animateDrilldown||m,e.options.animation=!0;c.remove(!1);this.redraw();this.showDrillUpButton()};h.prototype.getDrilldownBackText=function(){return this.options.lang.drillUpText.replace("{series.name}",
|
4
|
+
this.drilldownLevels[this.drilldownLevels.length-1].seriesOptions.name)};h.prototype.showDrillUpButton=function(){var b=this,a=this.getDrilldownBackText(),c=b.options.drilldown.drillUpButton;this.drillUpButton?this.drillUpButton.attr({text:a}).align():this.drillUpButton=this.renderer.button(a,null,null,function(){b.drillUp()}).attr(n({align:c.position.align,zIndex:9},c.theme)).add().align(c.position,!1,c.relativeTo||"plotBox")};h.prototype.drillUp=function(){var b=this.drilldownLevels.pop(),a=this.series[0],
|
5
|
+
c=b.oldExtremes,d=this.addSeries(b.seriesOptions,!1);r(this,"drillup",{seriesOptions:b.seriesOptions});if(d.type===a.type)d.drilldownLevel=b,d.animate=d.animateDrillupTo||m,d.options.animation=!0,a.animateDrillupFrom&&a.animateDrillupFrom(b);a.remove(!1);d.xAxis&&(d.xAxis.setExtremes(c.xMin,c.xMax,!1),d.yAxis.setExtremes(c.yMin,c.yMax,!1));this.redraw();this.drilldownLevels.length===0?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align()};
|
6
|
+
k.prototype.animateDrilldown=function(b){var a=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],c=this.chart.options.drilldown.animation,d=a.shapeArgs,f=d.start,s=(d.end-f)/this.points.length,h=e.Color(a.color).rgba;b||g(this.points,function(a,b){var g=e.Color(a.color).rgba;a.graphic.attr(e.merge(d,{start:f+b*s,end:f+(b+1)*s})).animate(a.shapeArgs,e.merge(c,{step:function(a,d){d.prop==="start"&&this.attr({fill:q(h,g,d.pos)})}}))})};k.prototype.animateDrillupTo=l.prototype.animateDrillupTo=
|
7
|
+
function(b){if(!b){var a=this,c=a.drilldownLevel;g(this.points,function(a){a.graphic.hide();a.dataLabel&&a.dataLabel.hide();a.connector&&a.connector.hide()});setTimeout(function(){g(a.points,function(a,b){var e=b===c.pointIndex?"show":"fadeIn";a.graphic[e]();if(a.dataLabel)a.dataLabel[e]();if(a.connector)a.connector[e]()})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=m}};l.prototype.animateDrilldown=function(b){var a=this.chart.drilldownLevels[this.chart.drilldownLevels.length-
|
8
|
+
1].shapeArgs,c=this.chart.options.drilldown.animation;b||(a.x+=this.xAxis.oldPos-this.xAxis.pos,g(this.points,function(b){b.graphic.attr(a).animate(b.shapeArgs,c)}))};l.prototype.animateDrillupFrom=k.prototype.animateDrillupFrom=function(b){var a=this.chart.options.drilldown.animation,c=this.group;delete this.group;g(this.points,function(d){var f=d.graphic,g=e.Color(d.color).rgba;delete d.graphic;f.animate(b.shapeArgs,e.merge(a,{step:function(a,c){c.prop==="start"&&this.attr({fill:q(g,e.Color(b.color).rgba,
|
9
|
+
c.pos)})},complete:function(){f.destroy();c&&(c=c.destroy())}}))})};e.Point.prototype.doDrilldown=function(){for(var b=this.series.chart,a=b.options.drilldown,c=a.series.length,d;c--&&!d;)a.series[c].id===this.drilldown&&(d=a.series[c]);r(b,"drilldown",{point:this,seriesOptions:d});d&&b.addSeriesAsDrilldown(this,d)};o(e.Point.prototype,"init",function(b,a,c,d){var f=b.call(this,a,c,d),b=a.chart,a=(a=a.xAxis&&a.xAxis.ticks[d])&&a.label;if(f.drilldown){if(e.addEvent(f,"click",function(){f.doDrilldown()}),
|
10
|
+
a){if(!a._basicStyle)a._basicStyle=a.element.getAttribute("style");a.addClass("highcharts-drilldown-axis-label").css(b.options.drilldown.activeAxisLabelStyle).on("click",function(){f.doDrilldown&&f.doDrilldown()})}}else a&&a._basicStyle&&a.element.setAttribute("style",a._basicStyle);return f});o(e.Series.prototype,"drawDataLabels",function(b){var a=this.chart.options.drilldown.activeDataLabelStyle;b.call(this);g(this.points,function(b){if(b.drilldown&&b.dataLabel)b.dataLabel.attr({"class":"highcharts-drilldown-data-label"}).css(a).on("click",
|
11
|
+
function(){b.doDrilldown()})})});l.prototype.supportsDrilldown=!0;k.prototype.supportsDrilldown=!0;var p,j=function(b){b.call(this);g(this.points,function(a){a.drilldown&&a.graphic&&a.graphic.attr({"class":"highcharts-drilldown-point"}).css({cursor:"pointer"})})};for(p in i)i[p].prototype.supportsDrilldown&&o(i[p].prototype,"drawTracker",j)})(Highcharts);
|
@@ -0,0 +1,447 @@
|
|
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));
|