From e72997137ac0f68406070a11fab1b7c4f5522b2c Mon Sep 17 00:00:00 2001 From: ACTom Date: Wed, 10 Apr 2019 22:49:41 +0800 Subject: [PATCH] Fix the problem of incomplete display at low resolution --- Makefile | 2 +- appinfo/info.xml | 2 +- vendor/kityminder-editor/kityminder.editor.min.css | 2 +- vendor/kityminder-editor/kityminder.editor.min.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cd98a52..b8fceb3 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ source_dir=$(build_dir)/source sign_dir=$(build_dir)/sign package_name=$(app_name) cert_dir=$(CURDIR)/../../key -version+=0.0.12 +version+=0.0.13 all: appstore diff --git a/appinfo/info.xml b/appinfo/info.xml index bbc166d..6ad37f8 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Mind Map A Mind map editor - 0.0.12 + 0.0.13 agpl Jingtao Yan Files_MindMap diff --git a/vendor/kityminder-editor/kityminder.editor.min.css b/vendor/kityminder-editor/kityminder.editor.min.css index 97651ce..4e3146e 100644 --- a/vendor/kityminder-editor/kityminder.editor.min.css +++ b/vendor/kityminder-editor/kityminder.editor.min.css @@ -1 +1 @@ -.km-editor>.mask,div.minder-editor-container{top:0;bottom:0;position:absolute;right:0;left:0}.km-btn-group,.km-btn-item .km-btn-caption,.km-btn-item .km-btn-icon{vertical-align:middle;display:inline-block}#previewer-content pre,.gfm-render pre,.km-editor>.receiver{word-break:break-all;word-wrap:break-word}.km-editor{overflow:hidden;z-index:2}.km-editor>.mask{display:block;background-color:transparent}.km-editor>.receiver{position:absolute;background:#fff;outline:0;box-shadow:0 0 20px rgba(0,0,0,.5);left:0;top:0;padding:3px 5px;margin-left:-3px;margin-top:-5px;max-width:300px;width:auto;font-size:14px;line-height:1.4em;min-height:1.4em;box-sizing:border-box;overflow:hidden;border:none;-webkit-user-select:text;pointer-events:none;opacity:0;z-index:-1000}.km-editor>.receiver.debug{opacity:1;outline:green solid 1px;background:0 0;z-index:0}.km-editor>.receiver.input{pointer-events:all;opacity:1;z-index:999;background:#fff;outline:0}div.minder-editor-container{font-family:Arial,"Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif}.minder-editor{position:absolute;top:92px;left:0;right:0;bottom:0}.control-panel,.minder-divider,.minder-viewer{top:0;position:absolute;bottom:0}.minder-viewer{left:0;right:0}.control-panel{right:0;width:250px;border-left:1px solid #CCC}.minder-divider{right:250px;width:2px;background-color:#fbfbfb;cursor:ew-resize}.upload-image{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.top-tab .nav-tabs{background-color:#e1e1e1;border:0;height:32px}.top-tab .nav-tabs li{margin:0}.top-tab .nav-tabs li a{margin:0;border:0;padding:6px 15px;border-radius:0;vertical-align:middle}.top-tab .nav-tabs li a:focus,.top-tab .nav-tabs li a:hover{background:inherit;border:0}.km-btn-item[disabled]:active,.km-btn-item[disabled]:hover,.top-tab .tab-content{background-color:#fff}.top-tab .nav-tabs li.active a{border:0;background-color:#fff}.top-tab .nav-tabs li.active a:focus,.top-tab .nav-tabs li.active a:hover{border:0}.top-tab .tab-content{height:60px;border-bottom:1px solid #dbdbdb}.top-tab .tab-pane{font-size:0}.km-btn-group{margin:5px 0;padding:0 5px;border-right:1px dashed #eee}.km-btn-item{display:inline-block;margin:0 3px;font-size:0;cursor:default}.btn-group-vertical .hyperlink-caption .caption,.btn-group-vertical .image-btn-caption .caption{font-size:12px}.km-btn-item[disabled]{opacity:.5}.km-btn-item .km-btn-icon{background:url(images/icons.png) 0 20px no-repeat;width:20px;height:20px;padding:2px;margin:1px}.km-btn-item .km-btn-caption{font-size:12px}.km-btn-item:hover{background-color:#eff3fa}.km-btn-item:active{background-color:#c4d0ee}.do-group{width:38px}.undo .km-btn-icon{background-position:0 -1240px;background-size:25px}.redo .km-btn-icon{background-position:0 -1220px;background-size:25px}.append-group{width:360px}.arrange-group,.operation-group{width:120px}.append-child-node .km-btn-icon{background-position:0 0;background-size:25px}.append-sibling-node .km-btn-icon{background-position:0 -20px;background-size:25px}.append-parent-node .km-btn-icon{background-position:0 -40px;background-size:25px}.arrange-up .km-btn-icon{background-position:0 -280px;background-size:25px}.arrange-down .km-btn-icon{background-position:0 -300px;background-size:25px}.edit-node .km-btn-icon{background-position:0 -60px;background-size:25px}.remove-node .km-btn-icon{background-position:0 -80px;background-size:25px}.btn-group-vertical .hyperlink,.btn-group-vertical .hyperlink-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .hyperlink-caption:hover,.btn-group-vertical .hyperlink:hover{background-color:#eff3fa}.btn-group-vertical .hyperlink-caption:active,.btn-group-vertical .hyperlink:active{background-color:#c4d0ee}.btn-group-vertical .hyperlink-caption.active,.btn-group-vertical .hyperlink.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .hyperlink{height:25px;background:url(images/icons.png) center -100px no-repeat;background-size:25px}.btn-group-vertical .hyperlink-caption{height:20px}.btn-group-vertical .image-btn,.btn-group-vertical .image-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .image-btn-caption:hover,.btn-group-vertical .image-btn:hover{background-color:#eff3fa}.btn-group-vertical .image-btn-caption:active,.btn-group-vertical .image-btn:active{background-color:#c4d0ee}.btn-group-vertical .image-btn-caption.active,.btn-group-vertical .image-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .image-btn{height:25px;background:url(images/icons.png) center -125px no-repeat;background-size:25px}.btn-group-vertical .image-btn-caption{height:20px}.image-preview{display:block;max-width:50%}.modal-body .tab-pane{font-size:inherit;padding-top:15px}.btn-group-vertical .note-btn-caption .caption,.gfm-render{font-size:12px}.search-result{margin-top:15px;height:370px;overflow:hidden}.search-result ul{margin:0;padding:0;list-style:none;clear:both;height:100%;overflow-x:hidden;overflow-y:auto}.search-result ul li{list-style:none;float:left;display:block;width:130px;height:130px;line-height:130px;margin:6px;padding:0;font-size:12px;position:relative;vertical-align:top;text-align:center;overflow:hidden;cursor:pointer;border:2px solid #fcfcfc}.search-result ul li.selected{border:2px solid #fc8383}.search-result ul li img{max-width:126px;max-height:130px;vertical-align:middle}#previewer-content img,.gfm-render img{max-width:100%}.search-result ul li span{display:block;position:absolute;bottom:0;height:20px;background:rgba(0,0,0,.5);left:0;right:0;color:#fff;line-height:20px;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;opacity:0;-webkit-transform:translate(0,20px);-ms-transform:translate(0,20px);transform:translate(0,20px);-webkit-transition:all .2s ease;transition:all .2s ease}#previewer-content,.gfm-render{-webkit-user-select:text;line-height:1.8em}.search-result ul li:hover span{opacity:1;-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bg-color-wrap .bg-color-preview[disabled],.bg-color-wrap .quick-bg-color[disabled],.bg-color-wrap[disabled],.bg-color[disabled],.btn-wrap[disabled] span,.current-font-item[disabled],.current-temp-item[disabled],.font-bold[disabled],.font-color-wrap .font-color-preview[disabled],.font-color-wrap .quick-font-color[disabled],.font-color[disabled],.font-italics[disabled],.resource-editor .resource-dropdown .km-resource li[disabled],.s-btn-wrap[disabled] span,.theme-item-selected[disabled]{opacity:.5}@media (min-width:768px){.form-inline .form-control{width:422px}}.btn-group-vertical.note-btn-group{border-right:1px dashed #eee;padding-right:5px}.btn-group-vertical .note-btn,.btn-group-vertical .note-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .note-btn-caption:hover,.btn-group-vertical .note-btn:hover{background-color:#eff3fa}.btn-group-vertical .note-btn-caption:active,.btn-group-vertical .note-btn:active{background-color:#c4d0ee}.btn-group-vertical .note-btn-caption.active,.btn-group-vertical .note-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .note-btn{height:25px;background:url(images/icons.png) center -1150px no-repeat;background-size:25px}.btn-group-vertical .note-btn-caption{height:20px}.open>.dropdown-toggle.btn-default{background-color:#eff3fa}#previewer-content table th,.gfm-render table th{background:rgba(45,141,234,.2)}.gfm-render{color:#333}.gfm-render blockquote,.gfm-render hr,.gfm-render p,.gfm-render pre,.gfm-render table,.gfm-render ul{margin:1em 0;cursor:text}.gfm-render blockquote:first-child:last-child,.gfm-render hr:first-child:last-child,.gfm-render p:first-child:last-child,.gfm-render pre:first-child:last-child,.gfm-render table:first-child:last-child,.gfm-render ul:first-child:last-child{margin:0}.gfm-render a{color:#00f}.gfm-render a:hover{color:red}.gfm-render blockquote{display:block;border-left:4px solid #E4AD91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}.gfm-render ol,.gfm-render ul{padding-left:3em}.gfm-render table{width:100%;border-collapse:collapse;margin:1em 0}.gfm-render table td,.gfm-render table th{border:1px solid #666;padding:2px 4px}.gfm-render table tr:nth-child(even) td{background:rgba(45,141,234,.03)}.gfm-render em{color:red}.gfm-render del{color:#999}.gfm-render pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px}.gfm-render code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}#previewer-content pre code,.gfm-render pre code{background:0 0}.gfm-render hr{border:none;border-top:1px solid #CCC}.gfm-render .highlight{background:#ff0;color:red}.km-note{width:300px;border-left:1px solid #babfcd;padding:5px 10px;background:#fff;position:absolute;top:92px;right:0;bottom:0;left:auto;z-index:3}.km-note.panel{margin:0;padding:0}.km-note.panel .panel-heading h3{display:inline-block}.km-note.panel .panel-heading .close-note-editor{width:15px;height:15px;display:inline-block;float:right}.km-note.panel .panel-heading .close-note-editor:hover{cursor:pointer}.km-note.panel .panel-body{padding:0}.km-note .CodeMirror{position:absolute;top:41px;bottom:0;height:auto;cursor:text;font-size:14px;line-height:1.3em;font-family:consolas}.km-note-tips{color:#ccc;padding:3px 8px}#previewer-content{position:absolute;background:#FFD;padding:5px 15px;border-radius:5px;max-width:400px;max-height:200px;overflow:auto;z-index:10;box-shadow:0 0 15px rgba(0,0,0,.5);word-break:break-all;font-size:12px;color:#333}#previewer-content blockquote,#previewer-content hr,#previewer-content p,#previewer-content pre,#previewer-content table,#previewer-content ul{margin:1em 0;cursor:text}.btn-wrap,div a.theme-item{cursor:pointer;text-decoration:none}#previewer-content blockquote:first-child:last-child,#previewer-content hr:first-child:last-child,#previewer-content p:first-child:last-child,#previewer-content pre:first-child:last-child,#previewer-content table:first-child:last-child,#previewer-content ul:first-child:last-child{margin:0}#previewer-content a{color:#00f}#previewer-content a:hover,#previewer-content em{color:red}#previewer-content blockquote{display:block;border-left:4px solid #E4AD91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}#previewer-content ol,#previewer-content ul{padding-left:3em}#previewer-content table{width:100%;border-collapse:collapse;margin:1em 0}#previewer-content table td,#previewer-content table th{border:1px solid #666;padding:2px 4px}#previewer-content table tr:nth-child(even) td{background:rgba(45,141,234,.03)}#previewer-content del{color:#999}#previewer-content pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px}#previewer-content code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}#previewer-content hr{border:none;border-top:1px solid #CCC}.tab-content .km-priority,.tab-content .km-progress{font-size:inherit;width:140px;border-right:1px dashed #eee;vertical-align:middle}#previewer-content .highlight{background:#ff0;color:red}#previewer-content.ng-hide{display:block!important;left:-99999px!important;top:-99999px!important}.panel-body{padding:10px}.tab-content .km-priority{display:inline-block;margin:5px}.tab-content .km-priority .km-priority-item{margin:0 1px;padding:1px}.tab-content .km-priority .km-priority-item .km-priority-icon{background:url(images/iconpriority.png) repeat-y;background-size:40px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-0{background-position:0 20px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-1{background-position:0 0;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-2{background-position:0 -20px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-3{background-position:0 -40px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-4{background-position:0 -60px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-5{background-position:0 -80px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-6{background-position:0 -100px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-7{background-position:0 -120px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-8{background-position:0 -140px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-9{background-position:0 -160px;background-size:20px}.tab-content .km-progress{display:inline-block;margin:5px}.btn-label,.resource-editor .btn,.resource-editor .input-group,.resource-editor .km-resource,.resource-editor input.form-control,.s-btn-label{font-size:12px}.tab-content .km-progress .km-progress-item{margin:0 1px;padding:1px}.tab-content .km-progress .km-progress-item .km-progress-icon{background:url(images/iconprogress.png) repeat-y;background-size:25px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-0{background-position:0 20px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-1{background-position:0 0;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-2{background-position:0 -20px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-3{background-position:0 -40px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-4{background-position:0 -60px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-5{background-position:0 -80px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-6{background-position:0 -100px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-7{background-position:0 -120px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-8{background-position:0 -140px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-9{background-position:0 -160px;background-size:20px}.resource-editor{vertical-align:middle;display:inline-block;margin:5px}.resource-editor .input-group{height:20px;width:360px}.resource-editor .resource-dropdown{position:relative;width:360px;border:1px solid #ccc;margin-top:-1px;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.resource-editor .resource-dropdown .km-resource{position:absolute;width:345px;margin-bottom:3px;padding:0;list-style-type:none;overflow:auto;max-height:500px}.resource-editor .resource-dropdown .km-resource.open{z-index:3;background-color:#fff}.resource-editor .resource-dropdown .km-resource li{display:inline-block;padding:1px 2px 5px 5px;border-radius:4px;margin-left:2px;margin-right:3px}.resource-editor .resource-dropdown .resource-caret{display:block;float:right;vertical-align:middle;width:12px;height:24px;padding:8px 1px}.resource-editor .resource-dropdown .resource-caret:hover{background-color:#eff3fa}.resource-editor .resource-dropdown .resource-caret:active{background-color:#c4d0ee}.resource-editor input.form-control{padding:2px 4px;height:24px;border-bottom-left-radius:0}.resource-editor .input-group-btn .btn{padding:2px 4px;height:24px;width:80px;border-bottom-right-radius:0}.temp-item,.temp-item-wrap{width:50px;height:40px;display:inline-block}.temp-panel{margin:5px 5px 5px 10px;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.temp-list{min-width:124px}.temp-item-wrap{padding:0 2px;margin:5px}.temp-item{background-image:url(images/template.png);background-repeat:no-repeat}.temp-item.default{background-position:0 0;background-size:500px}.temp-item.structure{background-position:-50px 0;background-size:500px}.temp-item.filetree{background-position:-100px 0;background-size:500px}.temp-item.right{background-position:-150px 0;background-size:500px}.temp-item.fish-bone{background-position:-200px 0;background-size:500px}.temp-item.tianpan{background-position:-250px 0;background-size:500px}.current-temp-item{width:74px;padding:0 0 0 5px;border:1px solid #fff}.current-temp-item:hover{background-color:#eff3fa}.current-temp-item .caret{margin-left:-5px}.temp-item-selected{background-color:#87a9da}.theme-item-selected:hover,.theme-item-wrap:hover{background-color:#eff3fa}.theme-panel{height:42px;margin:5px;padding:0 5px 0 0;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.font-operator .font-family-list,.s-btn-icon{margin-right:3px}.theme-list{min-width:240px}div a.theme-item{display:inline-block;width:110px;height:30px;text-align:center;line-height:30px;padding:0 5px;font-size:12px;color:#000}.theme-item-selected{width:125px;padding:6px 7px;border:1px solid #fff}.readjust-layout,.style-operator{border-right:1px dashed #eee;vertical-align:middle}.theme-item-selected .caret{margin-left:100px}.theme-item-wrap{display:inline-block;width:119px;height:40px;padding:5px}.readjust-layout{display:inline-block;padding:0 10px 0 5px}.readjust-layout .btn-icon{margin-left:27px}.btn-icon{width:25px;height:25px;margin-left:12px;display:block}.btn-wrap,.font-operator,.s-btn-icon,.s-btn-label,.s-btn-wrap,.style-operator{display:inline-block}.btn-wrap{width:80px;height:42px}.btn-wrap[disabled],.s-btn-wrap[disabled]{cursor:default}.btn-wrap[disabled]:active,.btn-wrap[disabled]:hover{background-color:transparent}.btn-wrap:link,.btn-wrap:visited{text-decoration:none}.btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.btn-wrap:active{background-color:#c4d0ee}.reset-layout-icon{background:url(images/icons.png) 0 -150px no-repeat;background-size:25px}.style-operator{padding:0 5px}.style-operator .clear-style{vertical-align:middle}.style-operator .btn-icon{margin-left:27px}.clear-style-icon{background:url(images/icons.png) 0 -175px no-repeat;background-size:25px}.s-btn-group-vertical{display:inline-block;vertical-align:middle}.s-btn-icon{width:20px;height:20px;vertical-align:middle}.s-btn-label{vertical-align:middle}.s-btn-wrap{margin-bottom:2px;padding:0 5px 0 3px;text-decoration:none;font-size:0}.s-btn-wrap[disabled]:active,.s-btn-wrap[disabled]:hover{background-color:transparent}.s-btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.s-btn-wrap:active{background-color:#c4d0ee}.copy-style-icon{background:url(images/icons.png) 0 -200px no-repeat;background-size:25px}.paste-style-wrap{display:block}.paste-style-icon{background:url(images/icons.png) 0 -220px no-repeat;background-size:25px}.font-operator{width:180px;vertical-align:middle;font-size:12px;padding:0 5px}.current-font-family,.current-font-size{height:18px;overflow:hidden;vertical-align:bottom}.font-operator .font-family-list,.font-operator .font-size-list{border:1px solid #eee;padding:2px 4px;display:inline-block}.current-font-item a{text-decoration:none;display:inline-block}.current-font-family{width:75px}.current-font-size{width:32px}.font-item{line-height:1em;text-align:left}.font-item-selected{background-color:#87a9da}.font-bold,.font-italics{display:inline-block;background:url(images/icons.png) no-repeat;cursor:pointer;margin:0 3px;background-size:25px}.bg-color-wrap .quick-bg-color,.font-color-wrap .quick-font-color{line-height:16px;cursor:default;color:#000;display:inline-block;text-align:center}.font-bold:hover,.font-italics:hover{background-color:#eff3fa}.font-bold:active,.font-italics:active{background-color:#c4d0ee}.font-bold{background-position:0 -240px}.font-italics{background-position:0 -260px}.font-bold-selected,.font-italics-selected{background-color:#87a9da}.font-color-wrap{display:inline-block;width:49px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.font-color-wrap[disabled]{opacity:.5}.font-color-wrap .quick-font-color{width:20px;height:16px;font-size:14px;vertical-align:top}.font-color-wrap .quick-font-color:hover{background-color:#eff3fa}.font-color-wrap .quick-font-color:active{background-color:#c4d0ee}.font-color-wrap .font-color-preview{display:inline-block;width:48px;height:4px;background-color:#000}.font-color{display:inline-block;width:8px;height:16px}.font-color:hover{background-color:#eff3fa}.font-color:active{background-color:#c4d0ee}.font-color .caret{margin-left:15px;margin-top:7px}.bg-color-wrap{display:inline-block;width:50px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bg-color-wrap .quick-bg-color{width:20px;height:16px;font-size:14px;vertical-align:top;background:url(images/icons.png) center -1260px no-repeat;background-size:25px}.btn-group-vertical .expand-caption .caption,.btn-group-vertical .export-caption .caption,.btn-group-vertical .search-caption .caption,.btn-group-vertical .select-caption .caption{font-size:12px}.bg-color-wrap .quick-bg-color:hover{background-color:#eff3fa}.bg-color-wrap .quick-bg-color:active{background-color:#c4d0ee}.bg-color-wrap .bg-color-preview{display:inline-block;width:48px;height:4px;background-color:#fff}.bg-color{display:inline-block;width:8px;height:16px}.bg-color:hover{background-color:#eff3fa}.bg-color:active{background-color:#c4d0ee}.bg-color .caret{margin-left:15px;margin-top:7px}.btn-group-vertical .expand,.btn-group-vertical .expand-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .expand-caption:hover,.btn-group-vertical .expand:hover{background-color:#eff3fa}.btn-group-vertical .expand-caption:active,.btn-group-vertical .expand:active{background-color:#c4d0ee}.btn-group-vertical .expand-caption.active,.btn-group-vertical .expand.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .expand{height:25px;background:url(images/icons.png) 0 -995px no-repeat;background-position-x:50%;background-size:25px}.btn-group-vertical .expand-caption{height:20px}.btn-group-vertical .select,.btn-group-vertical .select-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .select-caption:hover,.btn-group-vertical .select:hover{background-color:#eff3fa}.btn-group-vertical .select-caption:active,.btn-group-vertical .select:active{background-color:#c4d0ee}.btn-group-vertical .select-caption.active,.btn-group-vertical .select.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .select{height:25px;background:url(images/icons.png) 7px -1175px no-repeat;background-size:25px}.btn-group-vertical .select-caption{height:20px}.btn-group-vertical .search,.btn-group-vertical .search-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .search-caption:hover,.btn-group-vertical .search:hover{background-color:#eff3fa}.btn-group-vertical .search-caption:active,.btn-group-vertical .search:active{background-color:#c4d0ee}.btn-group-vertical .search-caption.active,.btn-group-vertical .search.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .search{height:25px;background:url(images/icons.png) 0 -345px no-repeat;background-position-x:50%;background-size:25px}.btn-group-vertical .search-caption{height:20px}.btn-group-vertical{vertical-align:middle;margin:5px}.btn-group-vertical .export,.btn-group-vertical .export-caption{width:120px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .export-caption:hover,.btn-group-vertical .export:hover{background-color:#eff3fa}.btn-group-vertical .export-caption:active,.btn-group-vertical .export:active{background-color:#c4d0ee}.btn-group-vertical .export-caption.active,.btn-group-vertical .export.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .export{height:25px;background:url(images/icons.png) 0 -645px no-repeat;background-position-x:50%}.btn-group-vertical .export-caption{height:20px}.search-box{float:right;background-color:#fff;border:1px solid #dbdbdb;position:relative;top:0;z-index:3;width:360px;height:40px;padding:3px 6px;opacity:1}.search-box .prev-and-next-btn,.search-box .search-input-wrap{float:left}.search-box .close-search{float:right;height:16px;width:16px;padding:1px;border-radius:100%;margin-top:6px;margin-right:10px}.search-box .close-search .glyphicon{top:-1px}.search-box .close-search:hover{background-color:#efefef}.search-box .close-search:active{background-color:#999}.search-box .search-input-wrap{width:240px}.search-box .prev-and-next-btn{margin-left:5px}.search-box .prev-and-next-btn .btn:focus{outline:0}.search-box .search-addon{background-color:#fff}.tool-group{padding:0}.tool-group[disabled]{opacity:.5}.tool-group .tool-group-item{display:inline-block;border-radius:4px}.tool-group .tool-group-item .tool-group-icon{width:20px;height:20px;padding:2px;margin:1px}.tool-group .tool-group-item:hover{background-color:#eff3fa}.tool-group .tool-group-item.active,.tool-group .tool-group-item:active{background-color:#c4d0ee}.nav-bar{position:absolute;width:35px;height:240px;padding:5px 0;left:10px;bottom:10px;background:#fc8383;color:#fff;border-radius:4px;z-index:10;box-shadow:3px 3px 10px rgba(0,0,0,.2);transition:-webkit-transform .7s .1s ease;transition:transform .7s .1s ease}.nav-bar .nav-btn{width:35px;height:24px;line-height:24px;text-align:center}.nav-bar .nav-btn .icon{background:url(images/icons.png);width:20px;height:20px;margin:2px auto;display:block}.nav-bar .camera .icon,.nav-bar .hand .icon,.nav-bar .nav-trigger .icon{width:25px;height:25px;margin:0 auto;background-size:25px}.nav-bar .nav-btn.active{background-color:#5A6378}.nav-bar .zoom-in .icon{background-position:0 -730px;background-size:25px}.nav-bar .zoom-out .icon{background-position:0 -750px;background-size:25px}.nav-bar .hand .icon{background-position:0 -770px}.nav-bar .camera .icon{background-position:0 -870px}.nav-bar .nav-trigger .icon{background-position:0 -845px}.nav-bar .zoom-pan{width:2px;height:70px;box-shadow:0 1px #E50000;position:relative;background:#fff;margin:3px auto;overflow:visible}.nav-bar .zoom-pan .origin{position:absolute;width:20px;height:8px;left:-9px;margin-top:-4px;background:0 0}.nav-bar .zoom-pan .origin:after{content:' ';display:block;width:6px;height:2px;background:#fff;left:7px;top:3px;position:absolute}.nav-bar .zoom-pan .indicator{position:absolute;width:8px;height:8px;left:-3px;background:#fff;border-radius:100%;margin-top:-4px}.nav-previewer{background:#fff;width:140px;height:120px;position:absolute;left:45px;bottom:30px;box-shadow:0 0 8px rgba(0,0,0,.2);border-radius:0 2px 2px 0;padding:1px;z-index:9;cursor:crosshair;transition:-webkit-transform .7s .1s ease;transition:transform .7s .1s ease}.nav-previewer.grab{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing} \ No newline at end of file +.km-editor>.mask,div.minder-editor-container{top:0;bottom:0;position:absolute;right:0;left:0}.km-btn-group,.km-btn-item .km-btn-caption,.km-btn-item .km-btn-icon{vertical-align:middle;display:inline-block}#previewer-content pre,.gfm-render pre,.km-editor>.receiver{word-break:break-all;word-wrap:break-word}.km-editor{overflow:hidden;z-index:2}.km-editor>.mask{display:block;background-color:transparent}.km-editor>.receiver{position:absolute;background:#fff;outline:0;box-shadow:0 0 20px rgba(0,0,0,.5);left:0;top:0;padding:3px 5px;margin-left:-3px;margin-top:-5px;max-width:300px;width:auto;font-size:14px;line-height:1.4em;min-height:1.4em;box-sizing:border-box;overflow:hidden;border:none;-webkit-user-select:text;pointer-events:none;opacity:0;z-index:-1000}.km-editor>.receiver.debug{opacity:1;outline:green solid 1px;background:0 0;z-index:0}.km-editor>.receiver.input{pointer-events:all;opacity:1;z-index:999;background:#fff;outline:0}div.minder-editor-container{font-family:Arial,"Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif}.minder-editor{position:absolute;top:92px;left:0;right:0;bottom:0}.control-panel,.minder-divider,.minder-viewer{top:0;position:absolute;bottom:0}.minder-viewer{left:0;right:0}.control-panel{right:0;width:250px;border-left:1px solid #CCC}.minder-divider{right:250px;width:2px;background-color:#fbfbfb;cursor:ew-resize}.upload-image{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.top-tab .nav-tabs{background-color:#e1e1e1;border:0;height:32px}.top-tab .nav-tabs li{margin:0}.top-tab .nav-tabs li a{margin:0;border:0;padding:6px 15px;border-radius:0;vertical-align:middle}.top-tab .nav-tabs li a:focus,.top-tab .nav-tabs li a:hover{background:inherit;border:0}.km-btn-item[disabled]:active,.km-btn-item[disabled]:hover,.top-tab .tab-content{background-color:#fff}.top-tab .nav-tabs li.active a{border:0;background-color:#fff}.top-tab .nav-tabs li.active a:focus,.top-tab .nav-tabs li.active a:hover{border:0}.top-tab .tab-content{height:60px;border-bottom:1px solid #dbdbdb}.top-tab .tab-pane{font-size:0}.km-btn-group{margin:5px 0;padding:0 5px;border-right:1px dashed #eee}.km-btn-item{display:inline-block;margin:0 3px;font-size:0;cursor:default}.btn-group-vertical .hyperlink-caption .caption,.btn-group-vertical .image-btn-caption .caption{font-size:12px}.km-btn-item[disabled]{opacity:.5}.km-btn-item .km-btn-icon{background:url(images/icons.png) 0 20px no-repeat;width:20px;height:20px;padding:2px;margin:1px}.km-btn-item .km-btn-caption{font-size:12px}.km-btn-item:hover{background-color:#eff3fa}.km-btn-item:active{background-color:#c4d0ee}.do-group{width:38px}.undo .km-btn-icon{background-position:0 -1240px;background-size:25px}.redo .km-btn-icon{background-position:0 -1220px;background-size:25px}.append-group{width:330px}.arrange-group,.operation-group{width:100px}.append-child-node .km-btn-icon{background-position:0 0;background-size:25px}.append-sibling-node .km-btn-icon{background-position:0 -20px;background-size:25px}.append-parent-node .km-btn-icon{background-position:0 -40px;background-size:25px}.arrange-up .km-btn-icon{background-position:0 -280px;background-size:25px}.arrange-down .km-btn-icon{background-position:0 -300px;background-size:25px}.edit-node .km-btn-icon{background-position:0 -60px;background-size:25px}.remove-node .km-btn-icon{background-position:0 -80px;background-size:25px}.btn-group-vertical .hyperlink,.btn-group-vertical .hyperlink-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .hyperlink-caption:hover,.btn-group-vertical .hyperlink:hover{background-color:#eff3fa}.btn-group-vertical .hyperlink-caption:active,.btn-group-vertical .hyperlink:active{background-color:#c4d0ee}.btn-group-vertical .hyperlink-caption.active,.btn-group-vertical .hyperlink.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .hyperlink{height:25px;background:url(images/icons.png) center -100px no-repeat;background-size:25px}.btn-group-vertical .hyperlink-caption{height:20px}.btn-group-vertical .image-btn,.btn-group-vertical .image-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .image-btn-caption:hover,.btn-group-vertical .image-btn:hover{background-color:#eff3fa}.btn-group-vertical .image-btn-caption:active,.btn-group-vertical .image-btn:active{background-color:#c4d0ee}.btn-group-vertical .image-btn-caption.active,.btn-group-vertical .image-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .image-btn{height:25px;background:url(images/icons.png) center -125px no-repeat;background-size:25px}.btn-group-vertical .image-btn-caption{height:20px}.image-preview{display:block;max-width:50%}.modal-body .tab-pane{font-size:inherit;padding-top:15px}.btn-group-vertical .note-btn-caption .caption,.gfm-render{font-size:12px}.search-result{margin-top:15px;height:370px;overflow:hidden}.search-result ul{margin:0;padding:0;list-style:none;clear:both;height:100%;overflow-x:hidden;overflow-y:auto}.search-result ul li{list-style:none;float:left;display:block;width:130px;height:130px;line-height:130px;margin:6px;padding:0;font-size:12px;position:relative;vertical-align:top;text-align:center;overflow:hidden;cursor:pointer;border:2px solid #fcfcfc}.search-result ul li.selected{border:2px solid #fc8383}.search-result ul li img{max-width:126px;max-height:130px;vertical-align:middle}#previewer-content img,.gfm-render img{max-width:100%}.search-result ul li span{display:block;position:absolute;bottom:0;height:20px;background:rgba(0,0,0,.5);left:0;right:0;color:#fff;line-height:20px;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;opacity:0;-webkit-transform:translate(0,20px);-ms-transform:translate(0,20px);transform:translate(0,20px);-webkit-transition:all .2s ease;transition:all .2s ease}#previewer-content,.gfm-render{-webkit-user-select:text;line-height:1.8em}.search-result ul li:hover span{opacity:1;-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bg-color-wrap .bg-color-preview[disabled],.bg-color-wrap .quick-bg-color[disabled],.bg-color-wrap[disabled],.bg-color[disabled],.btn-wrap[disabled] span,.current-font-item[disabled],.current-temp-item[disabled],.font-bold[disabled],.font-color-wrap .font-color-preview[disabled],.font-color-wrap .quick-font-color[disabled],.font-color[disabled],.font-italics[disabled],.resource-editor .resource-dropdown .km-resource li[disabled],.s-btn-wrap[disabled] span,.theme-item-selected[disabled]{opacity:.5}@media (min-width:768px){.form-inline .form-control{width:422px}}.btn-group-vertical.note-btn-group{border-right:1px dashed #eee;padding-right:5px}.btn-group-vertical .note-btn,.btn-group-vertical .note-btn-caption{width:40px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .note-btn-caption:hover,.btn-group-vertical .note-btn:hover{background-color:#eff3fa}.btn-group-vertical .note-btn-caption:active,.btn-group-vertical .note-btn:active{background-color:#c4d0ee}.btn-group-vertical .note-btn-caption.active,.btn-group-vertical .note-btn.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .note-btn{height:25px;background:url(images/icons.png) center -1150px no-repeat;background-size:25px}.btn-group-vertical .note-btn-caption{height:20px}.open>.dropdown-toggle.btn-default{background-color:#eff3fa}#previewer-content table th,.gfm-render table th{background:rgba(45,141,234,.2)}.gfm-render{color:#333}.gfm-render blockquote,.gfm-render hr,.gfm-render p,.gfm-render pre,.gfm-render table,.gfm-render ul{margin:1em 0;cursor:text}.gfm-render blockquote:first-child:last-child,.gfm-render hr:first-child:last-child,.gfm-render p:first-child:last-child,.gfm-render pre:first-child:last-child,.gfm-render table:first-child:last-child,.gfm-render ul:first-child:last-child{margin:0}.gfm-render a{color:#00f}.gfm-render a:hover{color:red}.gfm-render blockquote{display:block;border-left:4px solid #E4AD91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}.gfm-render ol,.gfm-render ul{padding-left:3em}.gfm-render table{width:100%;border-collapse:collapse;margin:1em 0}.gfm-render table td,.gfm-render table th{border:1px solid #666;padding:2px 4px}.gfm-render table tr:nth-child(even) td{background:rgba(45,141,234,.03)}.gfm-render em{color:red}.gfm-render del{color:#999}.gfm-render pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px}.gfm-render code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}#previewer-content pre code,.gfm-render pre code{background:0 0}.gfm-render hr{border:none;border-top:1px solid #CCC}.gfm-render .highlight{background:#ff0;color:red}.km-note{width:300px;border-left:1px solid #babfcd;padding:5px 10px;background:#fff;position:absolute;top:92px;right:0;bottom:0;left:auto;z-index:3}.km-note.panel{margin:0;padding:0}.km-note.panel .panel-heading h3{display:inline-block}.km-note.panel .panel-heading .close-note-editor{width:15px;height:15px;display:inline-block;float:right}.km-note.panel .panel-heading .close-note-editor:hover{cursor:pointer}.km-note.panel .panel-body{padding:0}.km-note .CodeMirror{position:absolute;top:41px;bottom:0;height:auto;cursor:text;font-size:14px;line-height:1.3em;font-family:consolas}.km-note-tips{color:#ccc;padding:3px 8px}#previewer-content{position:absolute;background:#FFD;padding:5px 15px;border-radius:5px;max-width:400px;max-height:200px;overflow:auto;z-index:10;box-shadow:0 0 15px rgba(0,0,0,.5);word-break:break-all;font-size:12px;color:#333}#previewer-content blockquote,#previewer-content hr,#previewer-content p,#previewer-content pre,#previewer-content table,#previewer-content ul{margin:1em 0;cursor:text}.btn-wrap,div a.theme-item{cursor:pointer;text-decoration:none}#previewer-content blockquote:first-child:last-child,#previewer-content hr:first-child:last-child,#previewer-content p:first-child:last-child,#previewer-content pre:first-child:last-child,#previewer-content table:first-child:last-child,#previewer-content ul:first-child:last-child{margin:0}#previewer-content a{color:#00f}#previewer-content a:hover,#previewer-content em{color:red}#previewer-content blockquote{display:block;border-left:4px solid #E4AD91;color:#da8e68;padding-left:10px;font-style:italic;margin-left:2em}#previewer-content ol,#previewer-content ul{padding-left:3em}#previewer-content table{width:100%;border-collapse:collapse;margin:1em 0}#previewer-content table td,#previewer-content table th{border:1px solid #666;padding:2px 4px}#previewer-content table tr:nth-child(even) td{background:rgba(45,141,234,.03)}#previewer-content del{color:#999}#previewer-content pre{background:rgba(45,141,234,.1);padding:5px;border-radius:5px}#previewer-content code{background:rgba(45,141,234,.1);padding:0 5px;border-radius:3px}#previewer-content hr{border:none;border-top:1px solid #CCC}.tab-content .km-priority,.tab-content .km-progress{font-size:inherit;width:140px;border-right:1px dashed #eee;vertical-align:middle}#previewer-content .highlight{background:#ff0;color:red}#previewer-content.ng-hide{display:block!important;left:-99999px!important;top:-99999px!important}.panel-body{padding:10px}.tab-content .km-priority{display:inline-block;margin:5px}.tab-content .km-priority .km-priority-item{margin:0 1px;padding:1px}.tab-content .km-priority .km-priority-item .km-priority-icon{background:url(images/iconpriority.png) repeat-y;background-size:40px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-0{background-position:0 20px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-1{background-position:0 0;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-2{background-position:0 -20px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-3{background-position:0 -40px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-4{background-position:0 -60px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-5{background-position:0 -80px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-6{background-position:0 -100px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-7{background-position:0 -120px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-8{background-position:0 -140px;background-size:20px}.tab-content .km-priority .km-priority-item .km-priority-icon.priority-9{background-position:0 -160px;background-size:20px}.tab-content .km-progress{display:inline-block;margin:5px}.btn-label,.resource-editor .btn,.resource-editor .input-group,.resource-editor .km-resource,.resource-editor input.form-control,.s-btn-label{font-size:12px}.tab-content .km-progress .km-progress-item{margin:0 1px;padding:1px}.tab-content .km-progress .km-progress-item .km-progress-icon{background:url(images/iconprogress.png) repeat-y;background-size:25px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-0{background-position:0 20px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-1{background-position:0 0;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-2{background-position:0 -20px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-3{background-position:0 -40px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-4{background-position:0 -60px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-5{background-position:0 -80px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-6{background-position:0 -100px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-7{background-position:0 -120px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-8{background-position:0 -140px;background-size:20px}.tab-content .km-progress .km-progress-item .km-progress-icon.progress-9{background-position:0 -160px;background-size:20px}.resource-editor{vertical-align:middle;display:inline-block;margin:5px}.resource-editor .input-group{height:20px;width:268px}.resource-editor .resource-dropdown{position:relative;width:268px;border:1px solid #ccc;margin-top:-1px;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.resource-editor .resource-dropdown .km-resource{position:absolute;width:254px;margin-bottom:3px;padding:0;list-style-type:none;overflow:auto;max-height:500px}.resource-editor .resource-dropdown .km-resource.open{z-index:3;background-color:#fff}.resource-editor .resource-dropdown .km-resource li{display:inline-block;padding:0 2px 5px;border-radius:4px;margin:0 2px 0 3px}.resource-editor .resource-dropdown .resource-caret{display:block;float:right;vertical-align:middle;width:12px;height:24px;padding:8px 1px}.resource-editor .resource-dropdown .resource-caret:hover{background-color:#eff3fa}.resource-editor .resource-dropdown .resource-caret:active{background-color:#c4d0ee}.resource-editor input.form-control{padding:2px 4px;height:24px;border-bottom-left-radius:0}.resource-editor .input-group-btn .btn{padding:2px 4px;height:24px;width:80px;border-bottom-right-radius:0}.temp-item,.temp-item-wrap{width:50px;height:40px;display:inline-block}.temp-panel{margin:5px 5px 5px 10px;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.temp-list{min-width:124px}.temp-item-wrap{padding:0 2px;margin:5px}.temp-item{background-image:url(images/template.png);background-repeat:no-repeat}.temp-item.default{background-position:0 0;background-size:500px}.temp-item.structure{background-position:-50px 0;background-size:500px}.temp-item.filetree{background-position:-100px 0;background-size:500px}.temp-item.right{background-position:-150px 0;background-size:500px}.temp-item.fish-bone{background-position:-200px 0;background-size:500px}.temp-item.tianpan{background-position:-250px 0;background-size:500px}.current-temp-item{width:74px;padding:0 0 0 5px;border:1px solid #fff}.current-temp-item:hover{background-color:#eff3fa}.current-temp-item .caret{margin-left:-5px}.temp-item-selected{background-color:#87a9da}.theme-item-selected:hover,.theme-item-wrap:hover{background-color:#eff3fa}.theme-panel{height:42px;margin:5px;padding:0 5px 0 0;border-right:1px dashed #eee;display:inline-block;vertical-align:middle}.font-operator .font-family-list,.s-btn-icon{margin-right:3px}.theme-list{min-width:240px}div a.theme-item{display:inline-block;width:110px;height:30px;text-align:center;line-height:30px;padding:0 5px;font-size:12px;color:#000}.theme-item-selected{width:125px;padding:6px 7px;border:1px solid #fff}.readjust-layout,.style-operator{border-right:1px dashed #eee;vertical-align:middle}.theme-item-selected .caret{margin-left:100px}.theme-item-wrap{display:inline-block;width:119px;height:40px;padding:5px}.readjust-layout{display:inline-block;padding:0 10px 0 5px}.readjust-layout .btn-icon{margin-left:27px}.btn-icon{width:25px;height:25px;margin-left:12px;display:block}.btn-wrap,.font-operator,.s-btn-icon,.s-btn-label,.s-btn-wrap,.style-operator{display:inline-block}.btn-wrap{width:80px;height:42px}.btn-wrap[disabled],.s-btn-wrap[disabled]{cursor:default}.btn-wrap[disabled]:active,.btn-wrap[disabled]:hover{background-color:transparent}.btn-wrap:link,.btn-wrap:visited{text-decoration:none}.btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.btn-wrap:active{background-color:#c4d0ee}.reset-layout-icon{background:url(images/icons.png) 0 -150px no-repeat;background-size:25px}.style-operator{padding:0 5px}.style-operator .clear-style{vertical-align:middle}.style-operator .btn-icon{margin-left:27px}.clear-style-icon{background:url(images/icons.png) 0 -175px no-repeat;background-size:25px}.s-btn-group-vertical{display:inline-block;vertical-align:middle}.s-btn-icon{width:20px;height:20px;vertical-align:middle}.s-btn-label{vertical-align:middle}.s-btn-wrap{margin-bottom:2px;padding:0 5px 0 3px;text-decoration:none;font-size:0}.s-btn-wrap[disabled]:active,.s-btn-wrap[disabled]:hover{background-color:transparent}.s-btn-wrap:hover{background-color:#eff3fa;text-decoration:none}.s-btn-wrap:active{background-color:#c4d0ee}.copy-style-icon{background:url(images/icons.png) 0 -200px no-repeat;background-size:25px}.paste-style-wrap{display:block}.paste-style-icon{background:url(images/icons.png) 0 -220px no-repeat;background-size:25px}.font-operator{width:180px;vertical-align:middle;font-size:12px;padding:0 5px}.current-font-family,.current-font-size{height:18px;overflow:hidden;vertical-align:bottom}.font-operator .font-family-list,.font-operator .font-size-list{border:1px solid #eee;padding:2px 4px;display:inline-block}.current-font-item a{text-decoration:none;display:inline-block}.current-font-family{width:75px}.current-font-size{width:32px}.font-item{line-height:1em;text-align:left}.font-item-selected{background-color:#87a9da}.font-bold,.font-italics{display:inline-block;background:url(images/icons.png) no-repeat;cursor:pointer;margin:0 3px;background-size:25px}.bg-color-wrap .quick-bg-color,.font-color-wrap .quick-font-color{line-height:16px;cursor:default;color:#000;display:inline-block;text-align:center}.font-bold:hover,.font-italics:hover{background-color:#eff3fa}.font-bold:active,.font-italics:active{background-color:#c4d0ee}.font-bold{background-position:0 -240px}.font-italics{background-position:0 -260px}.font-bold-selected,.font-italics-selected{background-color:#87a9da}.font-color-wrap{display:inline-block;width:49px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.font-color-wrap[disabled]{opacity:.5}.font-color-wrap .quick-font-color{width:20px;height:16px;font-size:14px;vertical-align:top}.font-color-wrap .quick-font-color:hover{background-color:#eff3fa}.font-color-wrap .quick-font-color:active{background-color:#c4d0ee}.font-color-wrap .font-color-preview{display:inline-block;width:48px;height:4px;background-color:#000}.font-color{display:inline-block;width:8px;height:16px}.font-color:hover{background-color:#eff3fa}.font-color:active{background-color:#c4d0ee}.font-color .caret{margin-left:15px;margin-top:7px}.bg-color-wrap{display:inline-block;width:50px;height:22px;margin:3px 3px 0 0;border:1px solid #efefef;vertical-align:middle;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bg-color-wrap .quick-bg-color{width:20px;height:16px;font-size:14px;vertical-align:top;background:url(images/icons.png) center -1260px no-repeat;background-size:25px}.btn-group-vertical .expand-caption .caption,.btn-group-vertical .export-caption .caption,.btn-group-vertical .search-caption .caption,.btn-group-vertical .select-caption .caption{font-size:12px}.bg-color-wrap .quick-bg-color:hover{background-color:#eff3fa}.bg-color-wrap .quick-bg-color:active{background-color:#c4d0ee}.bg-color-wrap .bg-color-preview{display:inline-block;width:48px;height:4px;background-color:#fff}.bg-color{display:inline-block;width:8px;height:16px}.bg-color:hover{background-color:#eff3fa}.bg-color:active{background-color:#c4d0ee}.bg-color .caret{margin-left:15px;margin-top:7px}.btn-group-vertical .expand,.btn-group-vertical .expand-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .expand-caption:hover,.btn-group-vertical .expand:hover{background-color:#eff3fa}.btn-group-vertical .expand-caption:active,.btn-group-vertical .expand:active{background-color:#c4d0ee}.btn-group-vertical .expand-caption.active,.btn-group-vertical .expand.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .expand{height:25px;background:url(images/icons.png) 0 -995px no-repeat;background-position-x:50%;background-size:25px}.btn-group-vertical .expand-caption{height:20px}.btn-group-vertical .select,.btn-group-vertical .select-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .select-caption:hover,.btn-group-vertical .select:hover{background-color:#eff3fa}.btn-group-vertical .select-caption:active,.btn-group-vertical .select:active{background-color:#c4d0ee}.btn-group-vertical .select-caption.active,.btn-group-vertical .select.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .select{height:25px;background:url(images/icons.png) 7px -1175px no-repeat;background-size:25px}.btn-group-vertical .select-caption{height:20px}.btn-group-vertical .search,.btn-group-vertical .search-caption{width:80px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .search-caption:hover,.btn-group-vertical .search:hover{background-color:#eff3fa}.btn-group-vertical .search-caption:active,.btn-group-vertical .search:active{background-color:#c4d0ee}.btn-group-vertical .search-caption.active,.btn-group-vertical .search.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .search{height:25px;background:url(images/icons.png) 0 -345px no-repeat;background-position-x:50%;background-size:25px}.btn-group-vertical .search-caption{height:20px}.btn-group-vertical{vertical-align:middle;margin:5px}.btn-group-vertical .export,.btn-group-vertical .export-caption{width:120px;margin:0;padding:0;border:none!important;border-radius:0!important}.btn-group-vertical .export-caption:hover,.btn-group-vertical .export:hover{background-color:#eff3fa}.btn-group-vertical .export-caption:active,.btn-group-vertical .export:active{background-color:#c4d0ee}.btn-group-vertical .export-caption.active,.btn-group-vertical .export.active{box-shadow:none;background-color:#eff3fa}.btn-group-vertical .export{height:25px;background:url(images/icons.png) 0 -645px no-repeat;background-position-x:50%}.btn-group-vertical .export-caption{height:20px}.search-box{float:right;background-color:#fff;border:1px solid #dbdbdb;position:relative;top:0;z-index:3;width:360px;height:40px;padding:3px 6px;opacity:1}.search-box .prev-and-next-btn,.search-box .search-input-wrap{float:left}.search-box .close-search{float:right;height:16px;width:16px;padding:1px;border-radius:100%;margin-top:6px;margin-right:10px}.search-box .close-search .glyphicon{top:-1px}.search-box .close-search:hover{background-color:#efefef}.search-box .close-search:active{background-color:#999}.search-box .search-input-wrap{width:240px}.search-box .prev-and-next-btn{margin-left:5px}.search-box .prev-and-next-btn .btn:focus{outline:0}.search-box .search-addon{background-color:#fff}.tool-group{padding:0}.tool-group[disabled]{opacity:.5}.tool-group .tool-group-item{display:inline-block;border-radius:4px}.tool-group .tool-group-item .tool-group-icon{width:20px;height:20px;padding:2px;margin:1px}.tool-group .tool-group-item:hover{background-color:#eff3fa}.tool-group .tool-group-item.active,.tool-group .tool-group-item:active{background-color:#c4d0ee}.nav-bar{position:absolute;width:35px;height:240px;padding:5px 0;left:10px;bottom:10px;background:#fc8383;color:#fff;border-radius:4px;z-index:10;box-shadow:3px 3px 10px rgba(0,0,0,.2);transition:-webkit-transform .7s .1s ease;transition:transform .7s .1s ease}.nav-bar .nav-btn{width:35px;height:24px;line-height:24px;text-align:center}.nav-bar .nav-btn .icon{background:url(images/icons.png);width:20px;height:20px;margin:2px auto;display:block}.nav-bar .camera .icon,.nav-bar .hand .icon,.nav-bar .nav-trigger .icon{width:25px;height:25px;margin:0 auto;background-size:25px}.nav-bar .nav-btn.active{background-color:#5A6378}.nav-bar .zoom-in .icon{background-position:0 -730px;background-size:25px}.nav-bar .zoom-out .icon{background-position:0 -750px;background-size:25px}.nav-bar .hand .icon{background-position:0 -770px}.nav-bar .camera .icon{background-position:0 -870px}.nav-bar .nav-trigger .icon{background-position:0 -845px}.nav-bar .zoom-pan{width:2px;height:70px;box-shadow:0 1px #E50000;position:relative;background:#fff;margin:3px auto;overflow:visible}.nav-bar .zoom-pan .origin{position:absolute;width:20px;height:8px;left:-9px;margin-top:-4px;background:0 0}.nav-bar .zoom-pan .origin:after{content:' ';display:block;width:6px;height:2px;background:#fff;left:7px;top:3px;position:absolute}.nav-bar .zoom-pan .indicator{position:absolute;width:8px;height:8px;left:-3px;background:#fff;border-radius:100%;margin-top:-4px}.nav-previewer{background:#fff;width:140px;height:120px;position:absolute;left:45px;bottom:30px;box-shadow:0 0 8px rgba(0,0,0,.2);border-radius:0 2px 2px 0;padding:1px;z-index:9;cursor:crosshair;transition:-webkit-transform .7s .1s ease;transition:transform .7s .1s ease}.nav-previewer.grab{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing} \ No newline at end of file diff --git a/vendor/kityminder-editor/kityminder.editor.min.js b/vendor/kityminder-editor/kityminder.editor.min.js index 2cec39c..3407c06 100644 --- a/vendor/kityminder-editor/kityminder.editor.min.js +++ b/vendor/kityminder-editor/kityminder.editor.min.js @@ -1,6 +1,6 @@ /*! * ==================================================== - * kityminder-editor - v1.0.64 - 2019-04-08 + * kityminder-editor - v1.0.64 - 2019-04-10 * https://github.com/fex-team/kityminder-editor * GitHub: https://github.com/fex-team/kityminder-editor * Copyright (c) 2019 ; Licensed @@ -8,4 +8,4 @@ */ -!function(){var c={r:function(e){if(c[e].inited)return c[e].value;if("function"!=typeof c[e].value)return c[e].inited=!0,c[e].value;var t={exports:{}},n=c[e].value(null,t.exports,t);if(c[e].inited=!0,void 0!==(c[e].value=n))return n;for(var i in t.exports)if(t.exports.hasOwnProperty(i))return c[e].inited=!0,c[e].value=t.exports,t.exports}};c[0]={value:function(e,t,n){var i=[];function r(e){i.push(e)}function o(e,t){this.selector=e,this.lang=c.r(3),void 0!==t&&this.lang.setDefaultLang(t);for(var n=0;n drag",function(){}),t.when("drag -> *",function(e,t,n){});var a,l,s,d,c,u,p=1,m=!1,g=!1;function f(e,t){if(!e)return m=g=!1,u&&kity.releaseFrame(u),void(u=null);var n,i,r;u||(u=kity.requestFrame((n=e,i=t,r=o,function(e){switch(n){case"left":r._viewDragger.move({x:-i,y:0},0);break;case"top":r._viewDragger.move({x:0,y:-i},0);break;case"right":r._viewDragger.move({x:i,y:0},0);break;case"bottom":r._viewDragger.move({x:0,y:i},0);break;default:return}e.next()})))}o.on("mousedown",function(e){p=0;var t=o.getPaper().container.getBoundingClientRect();n=e.originEvent.clientX,i=e.originEvent.clientY,c=t.top,a=t.width,l=t.height}),o.on("mousemove",function(e){if("drag"===t.state()&&0==p&&o.getSelectedNode()&&(20 {2}",t,r,e),n=0;n *"),2==(i=e.split(" - ")).length?n="before":2==(i=e.split(" -> ")).length&&(n="after"),!n)throw new Error("Illegal fsm condition: "+e);r=i[0],o=i[1],t.condition={when:n,exit:r,enter:o},l.push(t)}}("normal")}}},c[10]={value:function(e,t,n){var f=c.r(22);return window.diff=f,n.exports=function(){var n,i,r,o,a=this.minder,e=this.hotbox,t=this.lang.t,l=100;function s(){r=[],o=[],n=a.exportJson()}function d(){var e=a.exportJson(),t=f(e,n);if(t.length){for(r.push(t);r.length>l;)r.shift();return n=e,!0}}function c(){i=!0;var e,t=r.pop();t&&(a.applyPatches(t),e=a.exportJson(),o.push(f(e,n)),n=e),i=!1}function u(){i=!0;var e=o.pop();e&&(a.applyPatches(e),d()),i=!1}function p(){return!!r.length}function m(){return!!o.length}this.history={reset:s,undo:c,redo:u,hasUndo:p,hasRedo:m},s(),a.on("contentchange",function(){i||d()&&(o=[])}),a.on("import",s),a.on("patch",function(e){if(i){var t=e.patch;switch(t.express){case"node.add":a.select(t.node.getChild(t.index),!0);break;case"node.remove":case"data.replace":case"data.remove":case"data.add":a.select(t.node,!0)}}});var g=e.state("main");g.button({position:"top",label:t("undo","runtime/history"),key:"Ctrl + Z",enable:p,action:c,next:"idle"}),g.button({position:"top",label:t("redo","runtime/history"),key:"Ctrl + Y",enable:m,action:u,next:"idle"})}}},c[11]={value:function(e,t,n){var i=c.r(2);return n.exports=function(){var e=this.fsm,a=this.minder,r=this.receiver,t=this.container,l=new i(t);l.setParentFSM(e),e.when("normal -> hotbox",function(e,t,n){var i,r=a.getSelectedNode();if(r){var o=r.getRenderBox();i={x:o.cx,y:o.cy}}l.active("main",i)}),e.when("normal -> normal",function(e,t,n,i){"shortcut-handle"==n&&(l.dispatch(i)?i.preventDefault():a.dispatchKeyEvent(i))}),e.when("modal -> normal",function(e,t,n,i){"import-text-finish"==n&&r.element.focus()}),this.hotbox=l}}},c[12]={value:function(e,t,n){c.r(21);var d=new(c.r(19))("input");return n.exports=function(){var r=this.fsm,m=this.minder,e=this.hotbox,o=this.receiver,a=o.element,l=window.kity.Browser.gecko,t=this.lang.t;function n(){var e=m.getSelectedNode();if(e){var t=a;if(a.innerText="","bold"===e.getData("font-weight")){var n=document.createElement("b");t.appendChild(n),t=n}if("italic"===e.getData("font-style")){var i=document.createElement("i");t.appendChild(i),t=i}t.innerText=m.queryCommandValue("text"),l&&o.fixFFCaretDisappeared(),r.jump("input","input-request"),o.selectAll()}}function i(){var e=m.getSelectedNode();if(e){var t=e.getData("font-size")||e.getStyle("font-size");a.style.fontSize=t+"px",a.style.minWidth=0,a.style.minWidth=a.clientWidth+"px",a.style.fontWeight=e.getData("font-weight")||"",a.style.fontStyle=e.getData("font-style")||"",a.classList.add("input"),a.focus()}}function g(){a.classList.remove("input"),o.selectAll()}function s(){var t=s,n=m.getSelectedNode();n&&(t.timer||(t.timer=setTimeout(function(){var e=n.getRenderBox("TextRenderer");a.style.left=Math.round(e.x)+"px",a.style.top=(d.flaged?Math.round(e.bottom+30):Math.round(e.y))+"px",t.timer=0})))}d.flaged&&a.classList.add("debug"),a.onmousedown=function(e){e.stopPropagation()},m.on("layoutallfinish viewchange viewchanged selectionchange",function(e){"viewchange"==e.type&&"input"!=r.state()||s()}),s(),r.when("* -> input",i),r.when("input -> *",function(e,t,n){switch(n){case"input-cancel":return g();case"input-commit":default:return function(){var e=[].slice.call(a.childNodes);setTimeout(function(){a.innerHTML=""},0);var t=m.getSelectedNode();if(e=function(e){for(var t,n,i,r="",o=/\S/,a=new RegExp("( |"+String.fromCharCode(160)+")"),l=document.createElement("br"),s=!1,d=!1,c=0,u=e.length;c/g,">").replace(/\n/g,"
")}))}},c[22]={value:function(e,t,n){var p=Object.keys?Object.keys:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t};function m(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}return n.exports=function(e,t){var n=[];return function e(t,n,i,r){for(var o=p(n),a=p(t),l=!1,s=a.length-1;0<=s;s--){var d=t[u=a[s]];if(n.hasOwnProperty(u)){var c=n[u];"object"==typeof d&&null!=d&&"object"==typeof c&&null!=c?e(d,c,i,r+"/"+m(u)):d!=c&&i.push({op:"replace",path:r+"/"+m(u),value:g(c)})}else i.push({op:"remove",path:r+"/"+m(u)}),l=!0}if(l||o.length!=a.length)for(s=0;s
{{ 'appendchildnode' | lang:'ui/command' }}
{{ 'appendparentnode' | lang:'ui/command' }}
{{ 'appendsiblingnode' | lang:'ui/command' }}
"),e.put("ui/directive/arrange/arrange.html","
{{ 'arrangeup' | lang:'ui/command' }}
{{ 'arrangedown' | lang:'ui/command' }}
"),e.put("ui/directive/colorPanel/colorPanel.html",'
'),e.put("ui/directive/expandLevel/expandLevel.html",'
'),e.put("ui/directive/fontOperator/fontOperator.html",''),e.put("ui/directive/hyperLink/hyperLink.html",'
'),e.put("ui/directive/imageBtn/imageBtn.html",'
'),e.put("ui/directive/kityminderEditor/kityminderEditor.html",'
'),e.put("ui/directive/kityminderViewer/kityminderViewer.html",'
'),e.put("ui/directive/layout/layout.html",''),e.put("ui/directive/navigator/navigator.html",''),e.put("ui/directive/noteBtn/noteBtn.html",'
'),e.put("ui/directive/noteEditor/noteEditor.html",'

{{ \'title\' | lang: \'ui/noteeditor\' }}

{{ \'hint\' | lang: \'ui/noteeditor\' }}

{{ \'placeholder\' | lang: \'ui/noteeditor\' }}

'),e.put("ui/directive/notePreviewer/notePreviewer.html",'
'),e.put("ui/directive/operation/operation.html","
{{ 'editnode' | lang:'ui/command' }}
{{ 'removenode' | lang:'ui/command' }}
"),e.put("ui/directive/priorityEditor/priorityEditor.html",'
'),e.put("ui/directive/progressEditor/progressEditor.html",'
'),e.put("ui/directive/resourceEditor/resourceEditor.html",'
'),e.put("ui/directive/searchBox/searchBox.html",''),e.put("ui/directive/searchBtn/searchBtn.html",'
'),e.put("ui/directive/selectAll/selectAll.html",'
'),e.put("ui/directive/styleOperator/styleOperator.html",''),e.put("ui/directive/templateList/templateList.html",''),e.put("ui/directive/themeList/themeList.html",''),e.put("ui/directive/topTab/topTab.html",''),e.put("ui/directive/undoRedo/undoRedo.html",'
'),e.put("ui/dialog/hyperlink/hyperlink.tpl.html",''),e.put("ui/dialog/imExportNode/imExportNode.tpl.html",''),e.put("ui/dialog/image/image.tpl.html",'')}]),angular.module("kityminderEditor").service("commandBinder",function(){return{bind:function(e,t,n){e.on("interactchange",function(){n.commandDisabled=-1===e.queryCommandState(t),n.commandValue=e.queryCommandValue(t),n.$apply()})}}}),angular.module("kityminderEditor").provider("config",function(){this.config={ctrlPanelMin:250,ctrlPanelWidth:parseInt(window.localStorage.__dev_minder_ctrlPanelWidth)||250,dividerWidth:3,lang:"zh_CN",zoom:[10,20,30,50,80,100,120,150,200]},this.set=function(e,t){var n=Object.keys(this.config),i={};for(var r in"object"==typeof e?i=e:i[e]=t,i){if(!i.hasOwnProperty(r)||-1===n.indexOf(r))return console.error("Unsupported config key: ",e,", please choose in :",n.join(", ")),!1;this.config[r]=i[r]}return!0},this.$get=function(){var t=this;return{get:function(e){return 0===arguments.length?t.config:t.config.hasOwnProperty(e)?t.config[e]:(console.warn("Missing config key pair for : ",e),"")}}}}),angular.module("kityminderEditor").service("memory",function(){return{get:function(e){var t=window.localStorage.getItem(e);return JSON.parse(t)},set:function(e,t){try{return window.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){if(function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e))return!1}},remove:function(e){var t=window.localStorage.getItem(e);return window.localStorage.removeItem(e),t},clear:function(){window.localStorage.clear()}}}),angular.module("kityminderEditor").service("minder.service",function(){var t=[];return{registerEvent:function(e){t.push(e)},executeCallback:function(){t.forEach(function(e){e.apply(this,arguments)})}}}),angular.module("kityminderEditor").service("resourceService",["$document",function(t){var n=null;this.open=function(e){n||(t.bind("click",i),t.bind("keydown",r)),n&&n!==e&&(n.resourceListOpen=!1),n=e},this.close=function(e){n===e&&(n=null,t.unbind("click",i),t.unbind("keydown",r))};var i=function(e){if(n){var t=n.getToggleElement();e&&t&&t[0].contains(e.target)||n.$apply(function(){console.log("to close the resourcelist"),n.resourceListOpen=!1})}},r=function(e){27===e.which&&(n.focusToggleElement(),i())}}]),angular.module("kityminderEditor").service("revokeDialog",["$uibModal","minder.service",function(e,t){return t.registerEvent(function(){var t=window.minder,n=window.editor,i=n.hotbox.getParentFSM();t.on("importNodeData",function(){i.jump("modal","import-text-modal"),e.open({animation:!0,templateUrl:"ui/dialog/imExportNode/imExportNode.tpl.html",controller:"imExportNode.ctrl",size:"md",resolve:{title:function(){return"导入节点"},defaultValue:function(){return""},type:function(){return"import"}}}).result.then(function(e){try{t.Text2Children(t.getSelectedNode(),e)}catch(e){alert(e)}i.jump("normal","import-text-finish"),n.receiver.selectAll()},function(){i.jump("normal","import-text-finish"),n.receiver.selectAll()})}),t.on("exportNodeData",function(){i.jump("modal","export-text-modal"),e.open({animation:!0,templateUrl:"ui/dialog/imExportNode/imExportNode.tpl.html",controller:"imExportNode.ctrl",size:"md",resolve:{title:function(){return"导出节点"},defaultValue:function(){var e=t.getSelectedNode();return(0,window.kityminder.data.getRegisterProtocol("text").Node2Text)(e)},type:function(){return"export"}}}).result.then(function(e){i.jump("normal","export-text-finish"),n.receiver.selectAll()},function(){i.jump("normal","export-text-finish"),n.receiver.selectAll()})})}),{}}]),angular.module("kityminderEditor").service("valueTransfer",function(){return{}}),angular.module("kityminderEditor").filter("commandState",function(){return function(e,t){return e.queryCommandState(t)}}).filter("commandValue",function(){return function(e,t){return e.queryCommandValue(t)}}),angular.module("kityminderEditor").filter("lang",["config",function(i){return function(e,t){var n=i.get("lang");return window.editor.lang.t(e,t,n)}}]),angular.module("kityminderEditor").controller("hyperlink.ctrl",["$scope","$modalInstance","link",function(t,n,e){t.R_URL=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),t.url=e.url||"",t.title=e.title||"",setTimeout(function(){var e=$("#link-url");e.focus(),e[0].setSelectionRange(0,t.url.length)},30),t.shortCut=function(e){e.stopPropagation(),13==e.keyCode?t.ok():27==e.keyCode&&t.cancel()},t.ok=function(){if(t.R_URL.test(t.url))n.close({url:t.url,title:t.title});else{t.urlPassed=!1;var e=$("#link-url");e.focus(),e[0].setSelectionRange(0,t.url.length)}editor.receiver.selectAll()},t.cancel=function(){n.dismiss("cancel"),editor.receiver.selectAll()}}]),angular.module("kityminderEditor").controller("imExportNode.ctrl",["$scope","$modalInstance","title","defaultValue","type",function(r,e,t,n,o){r.title=t,r.value=n,r.type=o,r.ok=function(){""!=r.value&&(e.close(r.value),editor.receiver.selectAll())},r.cancel=function(){e.dismiss("cancel"),editor.receiver.selectAll()},setTimeout(function(){$(".single-input").focus(),$(".single-input")[0].setSelectionRange(0,n.length)},30),r.shortCut=function(e){if(e.stopPropagation(),27==e.keyCode&&r.cancel(),8==e.keyCode&&"export"==o&&e.preventDefault(),9==e.keyCode){e.preventDefault();var t=e.target,n=function(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t}(t),i=t.value;t.value=i.substr(0,n)+"\t"+i.substr(n),function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}}(t,n+1)}}}]),angular.module("kityminderEditor").controller("image.ctrl",["$http","$scope","$modalInstance","image","$filter",function(i,r,t,e,n){r.lang=n("lang"),r.data={list:[],url:e.url||"",title:e.title||"",R_URL:/^(http|https|data)?\:\w+/},setTimeout(function(){var e=$("#image-url");e.focus(),e[0].setSelectionRange(0,r.data.url.length)},300),t.rendered.then(function(){$("#upload-image").change(function(){r.uploadImage()})}),r.searchImage=function(){var e,t,n;r.list=[],(e=r.data.searchKeyword2,t=new Date,n="http://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&fp=result&queryWord="+e+"&cl=2&lm=-1&ie=utf-8&oe=utf-8&st=-1&ic=0&word="+e+"&face=0&istype=2&nc=1&pn=60&rn=60&gsm=3c&"+t.getTime()+"=&callback=JSON_CALLBACK",i.jsonp(n)).success(function(e){if(e&&e.data)for(var t=0;t>1;e.push("M",t,n+o,"a",o,o,0,1,1,0,.01,"z")};default:return function(e,t,n,i,r){e.push("M",t,n,"h",i,"v",r,"h",-i,"z")}}}function p(){var e=minder.getRenderContainer().getBoundaryBox();s=e;r.setViewBox(e.x-30-.5,e.y-30-.5,e.width+60+1,e.height+60+1);var n=[],i=[];minder.getRoot().traverse(function(e){var t=e.getLayoutBox();c(n,t.x,t.y,t.width,t.height),e.getConnection()&&e.parent&&e.parent.isExpanded()&&i.push(e.getConnection().getPathData())}),r.setStyle("background",minder.getStyle("background")),n.length?o.fill(minder.getStyle("root-background")).setPathData(n):o.setPathData(null),i.length?a.stroke(minder.getStyle("connect-color"),"0.5%").setPathData(i):a.setPathData(null),m()}function m(){d=minder.getViewDragger().getView(),l.setBox(d.intersect(s))}minder.on("themechange",function(e){c=u(e.theme)}),function(){function t(e,t){var n=d;e.x=-e.x,e.y=-e.y;var i=minder.getPaper().getViewPortMatrix();n=i.transformBox(n);var r=e.offset(n.width/2,n.height/2);minder.getViewDragger().moveTo(r,t)}var n=!1;r.on("mousedown",function(e){n=!0,t(e.getPosition("top"),200),i.addClass("grab")}),r.on("mousemove",function(e){n&&t(e.getPosition("top"))}),$(window).on("mouseup",function(){n=!1,i.removeClass("grab")})}()}}}]),angular.module("kityminderEditor").directive("noteBtn",["valueTransfer",function(t){return{restrict:"E",templateUrl:"ui/directive/noteBtn/noteBtn.html",scope:{minder:"="},replace:!0,link:function(e){e.minder;e.addNote=function(){t.noteEditorOpen=!0}}}}]),angular.module("kityminderEditor").directive("noteEditor",["valueTransfer",function(a){return{restrict:"A",templateUrl:"ui/directive/noteEditor/noteEditor.html",scope:{minder:"="},replace:!0,controller:["$scope",function(n){var i,r=n.minder,o=!1;n.codemirrorLoaded=function(e){i=n.cmEditor=e,e.setSize("100%","100%")},n.$watch("noteContent",function(e){var t=-1!=r.queryCommandState("note");e&&t&&!o&&r.execCommand("note",e),setTimeout(function(){i.refresh()})});n.$watch(function(){return a.noteEditorOpen},function(e,t){e&&setTimeout(function(){i.refresh(),i.focus()}),n.noteEditorOpen=a.noteEditorOpen},!0),n.closeNoteEditor=function(){a.noteEditorOpen=!1,editor.receiver.selectAll()},r.on("interactchange",function(){var e=n.noteEnabled=-1!=r.queryCommandState("note"),t=r.queryCommandValue("note")||"";e&&(n.noteContent=t),o=!0,n.$apply(),o=!1})}]}}]),angular.module("kityminderEditor").directive("notePreviewer",["$sce","valueTransfer",function(h,e){return{restrict:"A",templateUrl:"ui/directive/notePreviewer/notePreviewer.html",link:function(p,e){var t,n=p.minder,m=e.parent(),g=e.children();p.showNotePreviewer=!1,marked.setOptions({gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1}),n.on("shownoterequest",function(e){t=setTimeout(function(){!function(e,t){var n=e.getRenderer("NoteIconRenderer").getRenderShape().getRenderBox("screen"),i=e.getData("note");g[0].scrollTop=0;var r=marked(i);t&&(r=r.replace(new RegExp("("+t+")","ig"),'$1'));p.noteContent=h.trustAsHtml(r),p.$apply();var o=$(m[0]).width(),a=$(m[0]).height(),l=$(g).outerWidth(),s=$(g).outerHeight(),d=n.cx-l/2-m[0].offsetLeft,c=n.bottom+10-m[0].offsetTop;d<0&&(d=10);o drag",function(){}),t.when("drag -> *",function(e,t,n){});var a,l,s,d,c,u,p=1,m=!1,g=!1;function f(e,t){if(!e)return m=g=!1,u&&kity.releaseFrame(u),void(u=null);var n,i,r;u||(u=kity.requestFrame((n=e,i=t,r=o,function(e){switch(n){case"left":r._viewDragger.move({x:-i,y:0},0);break;case"top":r._viewDragger.move({x:0,y:-i},0);break;case"right":r._viewDragger.move({x:i,y:0},0);break;case"bottom":r._viewDragger.move({x:0,y:i},0);break;default:return}e.next()})))}o.on("mousedown",function(e){p=0;var t=o.getPaper().container.getBoundingClientRect();n=e.originEvent.clientX,i=e.originEvent.clientY,c=t.top,a=t.width,l=t.height}),o.on("mousemove",function(e){if("drag"===t.state()&&0==p&&o.getSelectedNode()&&(20 {2}",t,r,e),n=0;n *"),2==(i=e.split(" - ")).length?n="before":2==(i=e.split(" -> ")).length&&(n="after"),!n)throw new Error("Illegal fsm condition: "+e);r=i[0],o=i[1],t.condition={when:n,exit:r,enter:o},l.push(t)}}("normal")}}},c[10]={value:function(e,t,n){var f=c.r(22);return window.diff=f,n.exports=function(){var n,i,r,o,a=this.minder,e=this.hotbox,t=this.lang.t,l=100;function s(){r=[],o=[],n=a.exportJson()}function d(){var e=a.exportJson(),t=f(e,n);if(t.length){for(r.push(t);r.length>l;)r.shift();return n=e,!0}}function c(){i=!0;var e,t=r.pop();t&&(a.applyPatches(t),e=a.exportJson(),o.push(f(e,n)),n=e),i=!1}function u(){i=!0;var e=o.pop();e&&(a.applyPatches(e),d()),i=!1}function p(){return!!r.length}function m(){return!!o.length}this.history={reset:s,undo:c,redo:u,hasUndo:p,hasRedo:m},s(),a.on("contentchange",function(){i||d()&&(o=[])}),a.on("import",s),a.on("patch",function(e){if(i){var t=e.patch;switch(t.express){case"node.add":a.select(t.node.getChild(t.index),!0);break;case"node.remove":case"data.replace":case"data.remove":case"data.add":a.select(t.node,!0)}}});var g=e.state("main");g.button({position:"top",label:t("undo","runtime/history"),key:"Ctrl + Z",enable:p,action:c,next:"idle"}),g.button({position:"top",label:t("redo","runtime/history"),key:"Ctrl + Y",enable:m,action:u,next:"idle"})}}},c[11]={value:function(e,t,n){var i=c.r(2);return n.exports=function(){var e=this.fsm,a=this.minder,r=this.receiver,t=this.container,l=new i(t);l.setParentFSM(e),e.when("normal -> hotbox",function(e,t,n){var i,r=a.getSelectedNode();if(r){var o=r.getRenderBox();i={x:o.cx,y:o.cy}}l.active("main",i)}),e.when("normal -> normal",function(e,t,n,i){"shortcut-handle"==n&&(l.dispatch(i)?i.preventDefault():a.dispatchKeyEvent(i))}),e.when("modal -> normal",function(e,t,n,i){"import-text-finish"==n&&r.element.focus()}),this.hotbox=l}}},c[12]={value:function(e,t,n){c.r(21);var d=new(c.r(19))("input");return n.exports=function(){var r=this.fsm,m=this.minder,e=this.hotbox,o=this.receiver,a=o.element,l=window.kity.Browser.gecko,t=this.lang.t;function n(){var e=m.getSelectedNode();if(e){var t=a;if(a.innerText="","bold"===e.getData("font-weight")){var n=document.createElement("b");t.appendChild(n),t=n}if("italic"===e.getData("font-style")){var i=document.createElement("i");t.appendChild(i),t=i}t.innerText=m.queryCommandValue("text"),l&&o.fixFFCaretDisappeared(),r.jump("input","input-request"),o.selectAll()}}function i(){var e=m.getSelectedNode();if(e){var t=e.getData("font-size")||e.getStyle("font-size");a.style.fontSize=t+"px",a.style.minWidth=0,a.style.minWidth=a.clientWidth+"px",a.style.fontWeight=e.getData("font-weight")||"",a.style.fontStyle=e.getData("font-style")||"",a.classList.add("input"),a.focus()}}function g(){a.classList.remove("input"),o.selectAll()}function s(){var t=s,n=m.getSelectedNode();n&&(t.timer||(t.timer=setTimeout(function(){var e=n.getRenderBox("TextRenderer");a.style.left=Math.round(e.x)+"px",a.style.top=(d.flaged?Math.round(e.bottom+30):Math.round(e.y))+"px",t.timer=0})))}d.flaged&&a.classList.add("debug"),a.onmousedown=function(e){e.stopPropagation()},m.on("layoutallfinish viewchange viewchanged selectionchange",function(e){"viewchange"==e.type&&"input"!=r.state()||s()}),s(),r.when("* -> input",i),r.when("input -> *",function(e,t,n){switch(n){case"input-cancel":return g();case"input-commit":default:return function(){var e=[].slice.call(a.childNodes);setTimeout(function(){a.innerHTML=""},0);var t=m.getSelectedNode();if(e=function(e){for(var t,n,i,r="",o=/\S/,a=new RegExp("( |"+String.fromCharCode(160)+")"),l=document.createElement("br"),s=!1,d=!1,c=0,u=e.length;c/g,">").replace(/\n/g,"
")}))}},c[22]={value:function(e,t,n){var p=Object.keys?Object.keys:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t};function m(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}return n.exports=function(e,t){var n=[];return function e(t,n,i,r){for(var o=p(n),a=p(t),l=!1,s=a.length-1;0<=s;s--){var d=t[u=a[s]];if(n.hasOwnProperty(u)){var c=n[u];"object"==typeof d&&null!=d&&"object"==typeof c&&null!=c?e(d,c,i,r+"/"+m(u)):d!=c&&i.push({op:"replace",path:r+"/"+m(u),value:g(c)})}else i.push({op:"remove",path:r+"/"+m(u)}),l=!0}if(l||o.length!=a.length)for(s=0;s
{{ 'appendchildnode' | lang:'ui/command' }}
{{ 'appendparentnode' | lang:'ui/command' }}
{{ 'appendsiblingnode' | lang:'ui/command' }}
"),e.put("ui/directive/arrange/arrange.html","
{{ 'arrangeup' | lang:'ui/command' }}
{{ 'arrangedown' | lang:'ui/command' }}
"),e.put("ui/directive/colorPanel/colorPanel.html",'
'),e.put("ui/directive/expandLevel/expandLevel.html",'
'),e.put("ui/directive/fontOperator/fontOperator.html",''),e.put("ui/directive/hyperLink/hyperLink.html",'
'),e.put("ui/directive/imageBtn/imageBtn.html",'
'),e.put("ui/directive/kityminderEditor/kityminderEditor.html",'
'),e.put("ui/directive/kityminderViewer/kityminderViewer.html",'
'),e.put("ui/directive/layout/layout.html",''),e.put("ui/directive/navigator/navigator.html",''),e.put("ui/directive/noteBtn/noteBtn.html",'
'),e.put("ui/directive/noteEditor/noteEditor.html",'

{{ \'title\' | lang: \'ui/noteeditor\' }}

{{ \'hint\' | lang: \'ui/noteeditor\' }}

{{ \'placeholder\' | lang: \'ui/noteeditor\' }}

'),e.put("ui/directive/notePreviewer/notePreviewer.html",'
'),e.put("ui/directive/operation/operation.html","
{{ 'editnode' | lang:'ui/command' }}
{{ 'removenode' | lang:'ui/command' }}
"),e.put("ui/directive/priorityEditor/priorityEditor.html",'
'),e.put("ui/directive/progressEditor/progressEditor.html",'
'),e.put("ui/directive/resourceEditor/resourceEditor.html",'
'),e.put("ui/directive/searchBox/searchBox.html",''),e.put("ui/directive/searchBtn/searchBtn.html",'
'),e.put("ui/directive/selectAll/selectAll.html",'
'),e.put("ui/directive/styleOperator/styleOperator.html",''),e.put("ui/directive/templateList/templateList.html",''),e.put("ui/directive/themeList/themeList.html",''),e.put("ui/directive/topTab/topTab.html",''),e.put("ui/directive/undoRedo/undoRedo.html",'
'),e.put("ui/dialog/hyperlink/hyperlink.tpl.html",''),e.put("ui/dialog/imExportNode/imExportNode.tpl.html",''),e.put("ui/dialog/image/image.tpl.html",'')}]),angular.module("kityminderEditor").service("commandBinder",function(){return{bind:function(e,t,n){e.on("interactchange",function(){n.commandDisabled=-1===e.queryCommandState(t),n.commandValue=e.queryCommandValue(t),n.$apply()})}}}),angular.module("kityminderEditor").provider("config",function(){this.config={ctrlPanelMin:250,ctrlPanelWidth:parseInt(window.localStorage.__dev_minder_ctrlPanelWidth)||250,dividerWidth:3,lang:"zh_CN",zoom:[10,20,30,50,80,100,120,150,200]},this.set=function(e,t){var n=Object.keys(this.config),i={};for(var r in"object"==typeof e?i=e:i[e]=t,i){if(!i.hasOwnProperty(r)||-1===n.indexOf(r))return console.error("Unsupported config key: ",e,", please choose in :",n.join(", ")),!1;this.config[r]=i[r]}return!0},this.$get=function(){var t=this;return{get:function(e){return 0===arguments.length?t.config:t.config.hasOwnProperty(e)?t.config[e]:(console.warn("Missing config key pair for : ",e),"")}}}}),angular.module("kityminderEditor").service("memory",function(){return{get:function(e){var t=window.localStorage.getItem(e);return JSON.parse(t)},set:function(e,t){try{return window.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){if(function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e))return!1}},remove:function(e){var t=window.localStorage.getItem(e);return window.localStorage.removeItem(e),t},clear:function(){window.localStorage.clear()}}}),angular.module("kityminderEditor").service("minder.service",function(){var t=[];return{registerEvent:function(e){t.push(e)},executeCallback:function(){t.forEach(function(e){e.apply(this,arguments)})}}}),angular.module("kityminderEditor").service("resourceService",["$document",function(t){var n=null;this.open=function(e){n||(t.bind("click",i),t.bind("keydown",r)),n&&n!==e&&(n.resourceListOpen=!1),n=e},this.close=function(e){n===e&&(n=null,t.unbind("click",i),t.unbind("keydown",r))};var i=function(e){if(n){var t=n.getToggleElement();e&&t&&t[0].contains(e.target)||n.$apply(function(){console.log("to close the resourcelist"),n.resourceListOpen=!1})}},r=function(e){27===e.which&&(n.focusToggleElement(),i())}}]),angular.module("kityminderEditor").service("revokeDialog",["$uibModal","minder.service",function(e,t){return t.registerEvent(function(){var t=window.minder,n=window.editor,i=n.hotbox.getParentFSM();t.on("importNodeData",function(){i.jump("modal","import-text-modal"),e.open({animation:!0,templateUrl:"ui/dialog/imExportNode/imExportNode.tpl.html",controller:"imExportNode.ctrl",size:"md",resolve:{title:function(){return"导入节点"},defaultValue:function(){return""},type:function(){return"import"}}}).result.then(function(e){try{t.Text2Children(t.getSelectedNode(),e)}catch(e){alert(e)}i.jump("normal","import-text-finish"),n.receiver.selectAll()},function(){i.jump("normal","import-text-finish"),n.receiver.selectAll()})}),t.on("exportNodeData",function(){i.jump("modal","export-text-modal"),e.open({animation:!0,templateUrl:"ui/dialog/imExportNode/imExportNode.tpl.html",controller:"imExportNode.ctrl",size:"md",resolve:{title:function(){return"导出节点"},defaultValue:function(){var e=t.getSelectedNode();return(0,window.kityminder.data.getRegisterProtocol("text").Node2Text)(e)},type:function(){return"export"}}}).result.then(function(e){i.jump("normal","export-text-finish"),n.receiver.selectAll()},function(){i.jump("normal","export-text-finish"),n.receiver.selectAll()})})}),{}}]),angular.module("kityminderEditor").service("valueTransfer",function(){return{}}),angular.module("kityminderEditor").filter("commandState",function(){return function(e,t){return e.queryCommandState(t)}}).filter("commandValue",function(){return function(e,t){return e.queryCommandValue(t)}}),angular.module("kityminderEditor").filter("lang",["config",function(i){return function(e,t){var n=i.get("lang");return window.editor.lang.t(e,t,n)}}]),angular.module("kityminderEditor").controller("hyperlink.ctrl",["$scope","$modalInstance","link",function(t,n,e){t.R_URL=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),t.url=e.url||"",t.title=e.title||"",setTimeout(function(){var e=$("#link-url");e.focus(),e[0].setSelectionRange(0,t.url.length)},30),t.shortCut=function(e){e.stopPropagation(),13==e.keyCode?t.ok():27==e.keyCode&&t.cancel()},t.ok=function(){if(t.R_URL.test(t.url))n.close({url:t.url,title:t.title});else{t.urlPassed=!1;var e=$("#link-url");e.focus(),e[0].setSelectionRange(0,t.url.length)}editor.receiver.selectAll()},t.cancel=function(){n.dismiss("cancel"),editor.receiver.selectAll()}}]),angular.module("kityminderEditor").controller("imExportNode.ctrl",["$scope","$modalInstance","title","defaultValue","type",function(r,e,t,n,o){r.title=t,r.value=n,r.type=o,r.ok=function(){""!=r.value&&(e.close(r.value),editor.receiver.selectAll())},r.cancel=function(){e.dismiss("cancel"),editor.receiver.selectAll()},setTimeout(function(){$(".single-input").focus(),$(".single-input")[0].setSelectionRange(0,n.length)},30),r.shortCut=function(e){if(e.stopPropagation(),27==e.keyCode&&r.cancel(),8==e.keyCode&&"export"==o&&e.preventDefault(),9==e.keyCode){e.preventDefault();var t=e.target,n=function(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t}(t),i=t.value;t.value=i.substr(0,n)+"\t"+i.substr(n),function(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if(e.createTextRange){var n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}}(t,n+1)}}}]),angular.module("kityminderEditor").controller("image.ctrl",["$http","$scope","$modalInstance","image","$filter",function(i,r,t,e,n){r.lang=n("lang"),r.data={list:[],url:e.url||"",title:e.title||"",R_URL:/^(http|https|data)?\:\w+/},setTimeout(function(){var e=$("#image-url");e.focus(),e[0].setSelectionRange(0,r.data.url.length)},300),t.rendered.then(function(){$("#upload-image").change(function(){r.uploadImage()})}),r.searchImage=function(){var e,t,n;r.list=[],(e=r.data.searchKeyword2,t=new Date,n="http://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&fp=result&queryWord="+e+"&cl=2&lm=-1&ie=utf-8&oe=utf-8&st=-1&ic=0&word="+e+"&face=0&istype=2&nc=1&pn=60&rn=60&gsm=3c&"+t.getTime()+"=&callback=JSON_CALLBACK",i.jsonp(n)).success(function(e){if(e&&e.data)for(var t=0;t>1;e.push("M",t,n+o,"a",o,o,0,1,1,0,.01,"z")};default:return function(e,t,n,i,r){e.push("M",t,n,"h",i,"v",r,"h",-i,"z")}}}function p(){var e=minder.getRenderContainer().getBoundaryBox();s=e;r.setViewBox(e.x-30-.5,e.y-30-.5,e.width+60+1,e.height+60+1);var n=[],i=[];minder.getRoot().traverse(function(e){var t=e.getLayoutBox();c(n,t.x,t.y,t.width,t.height),e.getConnection()&&e.parent&&e.parent.isExpanded()&&i.push(e.getConnection().getPathData())}),r.setStyle("background",minder.getStyle("background")),n.length?o.fill(minder.getStyle("root-background")).setPathData(n):o.setPathData(null),i.length?a.stroke(minder.getStyle("connect-color"),"0.5%").setPathData(i):a.setPathData(null),m()}function m(){d=minder.getViewDragger().getView(),l.setBox(d.intersect(s))}minder.on("themechange",function(e){c=u(e.theme)}),function(){function t(e,t){var n=d;e.x=-e.x,e.y=-e.y;var i=minder.getPaper().getViewPortMatrix();n=i.transformBox(n);var r=e.offset(n.width/2,n.height/2);minder.getViewDragger().moveTo(r,t)}var n=!1;r.on("mousedown",function(e){n=!0,t(e.getPosition("top"),200),i.addClass("grab")}),r.on("mousemove",function(e){n&&t(e.getPosition("top"))}),$(window).on("mouseup",function(){n=!1,i.removeClass("grab")})}()}}}]),angular.module("kityminderEditor").directive("noteBtn",["valueTransfer",function(t){return{restrict:"E",templateUrl:"ui/directive/noteBtn/noteBtn.html",scope:{minder:"="},replace:!0,link:function(e){e.minder;e.addNote=function(){t.noteEditorOpen=!0}}}}]),angular.module("kityminderEditor").directive("noteEditor",["valueTransfer",function(a){return{restrict:"A",templateUrl:"ui/directive/noteEditor/noteEditor.html",scope:{minder:"="},replace:!0,controller:["$scope",function(n){var i,r=n.minder,o=!1;n.codemirrorLoaded=function(e){i=n.cmEditor=e,e.setSize("100%","100%")},n.$watch("noteContent",function(e){var t=-1!=r.queryCommandState("note");e&&t&&!o&&r.execCommand("note",e),setTimeout(function(){i.refresh()})});n.$watch(function(){return a.noteEditorOpen},function(e,t){e&&setTimeout(function(){i.refresh(),i.focus()}),n.noteEditorOpen=a.noteEditorOpen},!0),n.closeNoteEditor=function(){a.noteEditorOpen=!1,editor.receiver.selectAll()},r.on("interactchange",function(){var e=n.noteEnabled=-1!=r.queryCommandState("note"),t=r.queryCommandValue("note")||"";e&&(n.noteContent=t),o=!0,n.$apply(),o=!1})}]}}]),angular.module("kityminderEditor").directive("notePreviewer",["$sce","valueTransfer",function(h,e){return{restrict:"A",templateUrl:"ui/directive/notePreviewer/notePreviewer.html",link:function(p,e){var t,n=p.minder,m=e.parent(),g=e.children();p.showNotePreviewer=!1,marked.setOptions({gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:!0,smartLists:!0,smartypants:!1}),n.on("shownoterequest",function(e){t=setTimeout(function(){!function(e,t){var n=e.getRenderer("NoteIconRenderer").getRenderShape().getRenderBox("screen"),i=e.getData("note");g[0].scrollTop=0;var r=marked(i);t&&(r=r.replace(new RegExp("("+t+")","ig"),'$1'));p.noteContent=h.trustAsHtml(r),p.$apply();var o=$(m[0]).width(),a=$(m[0]).height(),l=$(g).outerWidth(),s=$(g).outerHeight(),d=n.cx-l/2-m[0].offsetLeft,c=n.bottom+10-m[0].offsetTop;d<0&&(d=10);o