From 0f9a9121b3e0f9dfee4b84913d0b7d5f627db4ba Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 25 Dec 2021 14:24:17 -0800 Subject: [PATCH] Add support on view mode to change sample map. --- .../map-render/css/compatibility.less | 75 +++-- .../playground/map-render/css/editor.less | 45 ++- .../playground/map-render/css/embedded.less | 10 +- .../playground/map-render/css/header.less | 78 +++--- .../playground/map-render/css/toolbar.less | 18 +- .../playground/map-render/css/viewmode.less | 25 +- .../test/playground/map-render/html/drag.html | 220 --------------- .../playground/map-render/html/viewmode.html | 5 +- .../map-render/samples/error-on-load.xml | 29 ++ .../playground/map-render/samples/issue.xml | 120 -------- .../playground/map-render/samples/sample1.xml | 262 +++++++----------- .../playground/map-render/samples/sample2.xml | 183 ++++++++++-- .../map-render/samples/welcome-reloaded.xml | 48 ---- 13 files changed, 453 insertions(+), 665 deletions(-) delete mode 100644 packages/mindplot/test/playground/map-render/html/drag.html create mode 100644 packages/mindplot/test/playground/map-render/samples/error-on-load.xml delete mode 100644 packages/mindplot/test/playground/map-render/samples/issue.xml delete mode 100644 packages/mindplot/test/playground/map-render/samples/welcome-reloaded.xml diff --git a/packages/mindplot/test/playground/map-render/css/compatibility.less b/packages/mindplot/test/playground/map-render/css/compatibility.less index 9bf1281c..37bf4d52 100644 --- a/packages/mindplot/test/playground/map-render/css/compatibility.less +++ b/packages/mindplot/test/playground/map-render/css/compatibility.less @@ -2,7 +2,29 @@ html { overflow: hidden; } -body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { +body, +div, +dl, +dt, +dd, +ul, +ol, +li, +h1, +h2, +h3, +h4, +h5, +h6, +pre, +form, +fieldset, +input, +textarea, +p, +blockquote, +th, +td { margin: 0; padding: 0; } @@ -12,33 +34,51 @@ table { border-spacing: 0; } -fieldset, img { +fieldset, +img { border: 0; } -address, caption, cite, code, dfn, em, strong, th, var { +address, +caption, +cite, +code, +dfn, +em, +strong, +th, +var { font-style: normal; font-weight: normal; } -ol, ul { +ol, +ul { list-style: none; } -caption, th { +caption, +th { text-align: left; } -h1, h2, h3, h4, h5, h6 { +h1, +h2, +h3, +h4, +h5, +h6 { font-size: 100%; font-weight: normal; } -q:before, q:after { +q:before, +q:after { content: ''; } -abbr, acronym { +abbr, +acronym { border: 0; } @@ -62,14 +102,17 @@ table { /** * 99% for safari; 100% is too large */ -select, input, textarea { +select, +input, +textarea { font: 99% arial, helvetica, clean, sans-serif; } /** * Bump up !IE to get to 13px equivalent */ -pre, code { +pre, +code { font: 115% monospace; font-size: 100%; } @@ -89,7 +132,7 @@ body * { } body { -// font: normal 80% "Helvetica Neue",Helvetica,Arial,sans-serif; + // font: normal 80% "Helvetica Neue",Helvetica,Arial,sans-serif; background-color: #fff; } @@ -110,7 +153,8 @@ ul { list-style-position: inside; } -a:hover, a:active { +a:hover, +a:active { font: bold 100%; text-decoration: underline; color: black; @@ -129,7 +173,7 @@ h1 { } h3 { -/* use as subhead on main body */ + /* use as subhead on main body */ clear: left; font-style: normal; font-size: 130%; @@ -137,12 +181,11 @@ h3 { } h4 { -/* use as headers in footer */ + /* use as headers in footer */ font-weight: bold; font-size: 120%; border-bottom: 1px solid #8e9181; color: #e2e3dd; padding-bottom: 10px; width: 400px; -} - +} \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/css/editor.less b/packages/mindplot/test/playground/map-render/css/editor.less index 395cbabe..11681a19 100644 --- a/packages/mindplot/test/playground/map-render/css/editor.less +++ b/packages/mindplot/test/playground/map-render/css/editor.less @@ -37,8 +37,8 @@ div#small_error_icon { background-color: #dfcf3c; padding: 5px 15px; color: #666666; -/*font-weight: bold;*/ -/*width: 100px;*/ + /*font-weight: bold;*/ + /*width: 100px;*/ font-size: 13px; -moz-border-radius: 3px; -webkit-border-radius: 3px; @@ -50,8 +50,8 @@ div#small_error_icon { background-color: #dfcf3c; padding: 5px 15px; color: #666666; -/*font-weight: bold;*/ -/*width: 100px;*/ + /*font-weight: bold;*/ + /*width: 100px;*/ font-size: 13px; -moz-border-radius: 3px; -webkit-border-radius: 3px; @@ -82,7 +82,7 @@ div.modalDialog { padding: 10px; overflow: auto; -/* IE6-7 */ + /* IE6-7 */ -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; @@ -125,43 +125,42 @@ div.shareModalDialog { width: 550px; } -#tutorialVideo{ +#tutorialVideo { background: url(../images/help.png) no-repeat left center; padding-left: 19px; } -#keyboardShortcuts{ +#keyboardShortcuts { background: url(../images/help.png) no-repeat left center; padding-left: 19px; } .panelIcon { - width:16px; - height:16px; - margin-left: 4px; - margin-top: 3px; - cursor: pointer + width: 16px; + height: 16px; + margin-left: 4px; + margin-top: 3px; + cursor: pointer } .panelIcon:hover { - background-color: #efefef; + background-color: #efefef; } .popoverBlack { - background: black; + background: black; } -.popoverBlack.bottom .arrow:after{ - border-bottom-color: black; +.popoverBlack.bottom .arrow:after { + border-bottom-color: black; } .popoverGray { - background: #e4e2d2; - box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); - border: 3px double #bebebe; -} - -.popoverGray.bottom .arrow:after{ - border-bottom-color: #e4e2d2; + background: #e4e2d2; + box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); + border: 3px double #bebebe; } +.popoverGray.bottom .arrow:after { + border-bottom-color: #e4e2d2; +} \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/css/embedded.less b/packages/mindplot/test/playground/map-render/css/embedded.less index 7a363e46..98ddd4e8 100644 --- a/packages/mindplot/test/playground/map-render/css/embedded.less +++ b/packages/mindplot/test/playground/map-render/css/embedded.less @@ -1,7 +1,7 @@ @import "editor.less"; /* Overwrite some styles */ -body{ +body { position: inherit; } @@ -13,7 +13,9 @@ div#header { height: 35px; } -div#headerMapTitle, #headerActions, #headerLogo { +div#headerMapTitle, +#headerActions, +#headerLogo { display: none; } @@ -101,6 +103,4 @@ div#infoPanel .textNode { border: 3px #023BB9 solid; padding: 4px; cursor: move -} - - +} \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/css/header.less b/packages/mindplot/test/playground/map-render/css/header.less index 67c32f59..27399eae 100644 --- a/packages/mindplot/test/playground/map-render/css/header.less +++ b/packages/mindplot/test/playground/map-render/css/header.less @@ -5,13 +5,20 @@ div#header { width: 100%; height: @header-height; - background: #393939; /* Old browsers */ - background: -moz-linear-gradient(top, #393939 0%, #000000 100%); /* FF3.6+ */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #393939), color-stop(100%, #000000)); /* Chrome,Safari4+ */ - background: -webkit-linear-gradient(top, #393939 0%, #000000 100%); /* Chrome10+,Safari5.1+ */ - background: -o-linear-gradient(top, #393939 0%, #000000 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, #393939 0%, #000000 100%); /* IE10+ */ - background: linear-gradient(top, #393939 0%, #000000 100%); /* W3C */ + background: #393939; + /* Old browsers */ + background: -moz-linear-gradient(top, #393939 0%, #000000 100%); + /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #393939), color-stop(100%, #000000)); + /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #393939 0%, #000000 100%); + /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #393939 0%, #000000 100%); + /* Opera11.10+ */ + background: -ms-linear-gradient(top, #393939 0%, #000000 100%); + /* IE10+ */ + background: linear-gradient(top, #393939 0%, #000000 100%); + /* W3C */ z-index: 1000; position: absolute; top: 0; @@ -30,7 +37,6 @@ div#headerInfo { height: @header-info-height; color: white; padding: 0px 0px - } div#headerActions { @@ -52,7 +58,7 @@ div#headerActions a { div#headerMapTitle { min-width: 200px; - height:@header-info-height - 13; + height: @header-info-height - 13; text-align: left; padding-top: 13px; padding-left: 50px; @@ -69,22 +75,22 @@ div#headerMapTitle span { -webkit-border-radius: 3px; border-radius: 3px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2); - white-space:nowrap; + white-space: nowrap; } div#headerNotifier { - border: 1px solid rgb(241,163,39); - background-color: rgb(252,235,192); + border: 1px solid rgb(241, 163, 39); + background-color: rgb(252, 235, 192); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; position: absolute; padding: 5px 9px; - color:back; - white-space:nowrap; - margin-top:5px; - /*margin-top:-34px;*/ - display:none; + color: back; + white-space: nowrap; + margin-top: 5px; + /*margin-top:-34px;*/ + display: none; /*right: 5px;*/ } @@ -98,28 +104,30 @@ div#embFooter { left: 0; border-top: 1px solid black; background: #E5E5E5; - font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } /* FIXME: duplicate in mindmapList ---------------------------- Scrollbar --------------------------------- */ ::-webkit-scrollbar { - width: 8px; - direction:rtl; - text-align: left; - position: relative; - left: 10px; -} -::-webkit-scrollbar-track { - border-radius: 10px; - background-color: #eaeaea; - border-left: 1px solid #ccc; -} -::-webkit-scrollbar-thumb { - border-radius: 10px; - background-color: #c6c6c6; -} -::-webkit-scrollbar-thumb:hover { - background-color: #08c; + width: 8px; + direction: rtl; + text-align: left; + position: relative; + left: 10px; } +::-webkit-scrollbar-track { + border-radius: 10px; + background-color: #eaeaea; + border-left: 1px solid #ccc; +} + +::-webkit-scrollbar-thumb { + border-radius: 10px; + background-color: #c6c6c6; +} + +::-webkit-scrollbar-thumb:hover { + background-color: #08c; +} \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/css/toolbar.less b/packages/mindplot/test/playground/map-render/css/toolbar.less index 2431dfa8..07f82f79 100644 --- a/packages/mindplot/test/playground/map-render/css/toolbar.less +++ b/packages/mindplot/test/playground/map-render/css/toolbar.less @@ -11,7 +11,7 @@ div#toolbar { background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.47, rgb(229, 227, 209)), color-stop(0.87, rgb(252, 250, 237))); border-bottom: 3px double rgb(190, 190, 190); border-top: 1px solid rgb(190, 190, 190); - padding: 0px 15px; + padding: 0px 15px; } div#toolbar .buttonContainer { @@ -24,7 +24,10 @@ div#toolbar .buttonContainer { /* Buttons*/ /******************************************************************************************/ -div#toolbar .buttonOn, div#toolbar .buttonOff, div#toolbar .buttonActive, div#toolbar .buttonOn:hover { +div#toolbar .buttonOn, +div#toolbar .buttonOff, +div#toolbar .buttonActive, +div#toolbar .buttonOn:hover { width: 28px; height: 28px; float: left; @@ -60,7 +63,10 @@ div#exportAnchor { left: 0; } -div#toolbar .buttonExtOn, div#toolbar .buttonExtOff, div#toolbar .buttonExtActive, div#toolbar .buttonExtOn:hover { +div#toolbar .buttonExtOn, +div#toolbar .buttonExtOff, +div#toolbar .buttonExtActive, +div#toolbar .buttonExtOn:hover { width: 40px; height: 28px; float: left; @@ -123,7 +129,8 @@ div#colorPalette { top: 89px; } -div.toolbarPanelLink, div.toolbarPanelLinkSelectedLink { +div.toolbarPanelLink, +div.toolbarPanelLinkSelectedLink { cursor: pointer; color: black; margin: 1px; @@ -133,7 +140,8 @@ div.toolbarPanelLink, div.toolbarPanelLinkSelectedLink { font-weight: bold; } -div.toolbarPanelLink:hover, div.toolbarPanelLinkSelectedLink { +div.toolbarPanelLink:hover, +div.toolbarPanelLinkSelectedLink { cursor: pointer; background-color: #efefef; } diff --git a/packages/mindplot/test/playground/map-render/css/viewmode.less b/packages/mindplot/test/playground/map-render/css/viewmode.less index e680b447..dc7c7d33 100644 --- a/packages/mindplot/test/playground/map-render/css/viewmode.less +++ b/packages/mindplot/test/playground/map-render/css/viewmode.less @@ -1,29 +1,26 @@ @import "editor.less"; /* Overwrite some styles */ -body{ +body { position: inherit; } div#footer { width: 100%; - height: 100px; - position: absolute; + padding: 20px 30px; + height: 80px; + position: absolute; bottom: 0; - background-color:chocolate; -} - -div#footer { - width: 100%; - padding: 20px 50px; - height: 100px; - position: absolute; - bottom: 0; - background-color:#ffa800; + background-color: #ffa800; } div#footer-desc { - float:left; + float: left; height: 100px; padding: 0px 10px; } + +div#footer-logo { + float: left; + height: 100px; +} \ No newline at end of file diff --git a/packages/mindplot/test/playground/map-render/html/drag.html b/packages/mindplot/test/playground/map-render/html/drag.html deleted file mode 100644 index 7f82668a..00000000 --- a/packages/mindplot/test/playground/map-render/html/drag.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - WiseMapping - Editor - - - - - - - - - - - - - - - - - - -
-
- -
-
Text Node !!
-
- -
- - - diff --git a/packages/mindplot/test/playground/map-render/html/viewmode.html b/packages/mindplot/test/playground/map-render/html/viewmode.html index 6ed8e9a5..76469067 100644 --- a/packages/mindplot/test/playground/map-render/html/viewmode.html +++ b/packages/mindplot/test/playground/map-render/html/viewmode.html @@ -14,7 +14,7 @@