{{info}}
- {{/each}} -diff --git a/.gitignore b/.gitignore index 8e32f20..fdbd8b9 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,5 @@ node_modules/ plugins/ logs/ index.js -resources/List/Group_List.txt -resources/List/Friend_List.txt +resources/help/changelogs.html .env diff --git a/resources/state/css/_svg-circle.scss b/resources/state/css/_svg-circle.scss deleted file mode 100644 index 2ed5940..0000000 --- a/resources/state/css/_svg-circle.scss +++ /dev/null @@ -1,128 +0,0 @@ -:root { - --bg: rgba(255, 255, 255); - /* 背景颜色 */ - --back-bg: #c5ccda; - /* 定义宽度 */ - --w: 100px; - --back-shadow: #fff; - /* 父容器gap间距 */ - --gap: 8px; - /* 第二层圆形宽度 */ - --inner: calc(var(--w) - var(--gap)); - /* 文本颜色 */ - --text-color: #514f4f; - /* 定义stroke的宽度 */ - --stroke: 12px; - /* svg环形宽度 更正内容*/ - --circle: calc(var(--inner) - var(--stroke)); - /* 第三层圆形宽度 */ - --center: calc(var(--circle) - var(--stroke)); -} - - -.mainHardware { - width: 100%; - display: flex; - justify-content: space-around; - // font-weight: 700; - - .container-box { - width: var(--w); - height: var(--w); - position: relative; - } - - /* 添加百分比显示文字 */ - .container-box::after { - content: attr(data-num); - position: absolute; - font-size: 20px; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - color: var(--text-color); - } - - .circle-outer { - position: relative; - width: 100%; - height: 100%; - border-radius: 50%; - // box-shadow: 6px 6px 8px var(--back-bg), -3px -3px 8px var(--back-shadow); - background: var(--bg); - } - - .circle-outer::before { - width: var(--inner); - height: var(--inner); - box-shadow: inset 8px 8px 10px var(--back-bg), - inset -4px -4px 8px var(--back-shadow); - } - - .circle-outer::after { - width: var(--center); - height: var(--center); - box-shadow: 6px 6px 8px var(--back-bg), -2px -2px 8px var(--back-shadow); - } - - /* 合并代码 */ - .circle-outer::before, - .circle-outer::after { - content: ""; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - border-radius: 50%; - background: var(--bg); - } - - svg { - width: 100%; - height: 100%; - position: absolute; - left: 0; - top: 0; - z-index: 1; - transform: rotate(-90deg); - } - - svg circle { - cy: calc(var(--circle) / 2); - cx: calc(var(--circle) / 2); - r: calc(var(--circle) / 2); - fill: none; - /* 圆角 */ - stroke-linecap: round; - position: absolute; - --z: calc(var(--w) / 2); - --c: calc(var(--circle) / 2); - transform: translate(calc(var(--z) - var(--c)), - calc(var(--z) - var(--c))); - /* 圆的周长 */ - stroke-dasharray: calc(3.14 * var(--circle)); - stroke-dashoffset: calc(3.14 * var(--circle)); - stroke-width: var(--stroke); - } - - article { - width: 100px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - - summary { - font-size: 22px; - margin-top: 5px; - } - - p { - font-size: 12px; - color: #2f4f4f; - white-space: nowrap; - margin-top: 5px; - } - } - -} \ No newline at end of file diff --git a/resources/state/css/index.css b/resources/state/css/index.css deleted file mode 100644 index 12ddfa7..0000000 --- a/resources/state/css/index.css +++ /dev/null @@ -1,367 +0,0 @@ -@charset "UTF-8"; -:root { - --bg: rgba(255, 255, 255); - /* 背景颜色 */ - --back-bg: #c5ccda; - /* 定义宽度 */ - --w: 100px; - --back-shadow: #fff; - /* 父容器gap间距 */ - --gap: 8px; - /* 第二层圆形宽度 */ - --inner: calc(var(--w) - var(--gap)); - /* 文本颜色 */ - --text-color: #514f4f; - /* 定义stroke的宽度 */ - --stroke: 12px; - /* svg环形宽度 更正内容*/ - --circle: calc(var(--inner) - var(--stroke)); - /* 第三层圆形宽度 */ - --center: calc(var(--circle) - var(--stroke)); -} - -.mainHardware { - width: 100%; - display: flex; - justify-content: space-around; - /* 添加百分比显示文字 */ - /* 合并代码 */ -} -.mainHardware .container-box { - width: var(--w); - height: var(--w); - position: relative; -} -.mainHardware .container-box::after { - content: attr(data-num); - position: absolute; - font-size: 20px; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - color: var(--text-color); -} -.mainHardware .circle-outer { - position: relative; - width: 100%; - height: 100%; - border-radius: 50%; - background: var(--bg); -} -.mainHardware .circle-outer::before { - width: var(--inner); - height: var(--inner); - box-shadow: inset 8px 8px 10px var(--back-bg), inset -4px -4px 8px var(--back-shadow); -} -.mainHardware .circle-outer::after { - width: var(--center); - height: var(--center); - box-shadow: 6px 6px 8px var(--back-bg), -2px -2px 8px var(--back-shadow); -} -.mainHardware .circle-outer::before, -.mainHardware .circle-outer::after { - content: ""; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - border-radius: 50%; - background: var(--bg); -} -.mainHardware svg { - width: 100%; - height: 100%; - position: absolute; - left: 0; - top: 0; - z-index: 1; - transform: rotate(-90deg); -} -.mainHardware svg circle { - cy: calc(var(--circle) / 2); - cx: calc(var(--circle) / 2); - r: calc(var(--circle) / 2); - fill: none; - /* 圆角 */ - stroke-linecap: round; - position: absolute; - --z: calc(var(--w) / 2); - --c: calc(var(--circle) / 2); - transform: translate(calc(var(--z) - var(--c)), calc(var(--z) - var(--c))); - /* 圆的周长 */ - stroke-dasharray: calc(3.14 * var(--circle)); - stroke-dashoffset: calc(3.14 * var(--circle)); - stroke-width: var(--stroke); -} -.mainHardware article { - width: 100px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; -} -.mainHardware article summary { - font-size: 22px; - margin-top: 5px; -} -.mainHardware article p { - font-size: 12px; - color: #2f4f4f; - white-space: nowrap; - margin-top: 5px; -} - -.speed p, .HardDisk_li .mount, .botInfo .header h1 { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -:root { - --high-color: #d73403; - --medium-color: #ffa500; - --low-color: #87CEEB; - --avatar-main-color: #fff1eb; - --avatar-similar-color1: #fff1eb; - --avatar-similar-color2: #ace0f9; -} - -.container { - background-image: url("../img/default_bg.jpg"); - background-color: #e9e9e9; - background-position: center top; - background-repeat: no-repeat; - background-size: cover; -} - -li { - list-style: none; -} - -body { - display: flex; - height: 100%; - flex-direction: column; - justify-content: space-around; -} - -.box { - margin: 20px; - padding: 10px; - background: rgba(255, 255, 255, 0.45); - box-shadow: 0 8px 32px 0 rgba(51, 51, 52, 0.5), inset 3px 3px 10px 0px rgba(255, 255, 255, 0.8); - -webkit-backdrop-filter: blur(10px); - backdrop-filter: blur(10px); - border-radius: 18px; - border: 1px solid rgba(255, 255, 255, 0.18); - font-weight: 700; - position: relative; -} -.box .time { - position: absolute; - right: 20px; - top: -30px; - font-size: 11px; - color: #0e0e0e; - text-shadow: 1px 1px 2px #fff; -} - -.botInfo { - display: flex; - justify-content: flex-start; - align-items: center; -} -.botInfo .avatar-box { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - margin-right: 5px; -} -.botInfo .avatar-box .avatar { - position: relative; - height: 100px; - width: 100px; - border-radius: 50%; - margin: 0 20px; -} -.botInfo .avatar-box .avatar img { - width: 100%; - height: 100%; - border-radius: 50%; -} -.botInfo .avatar-box .avatar::before { - content: ""; - position: absolute; - inset: 0; - z-index: -1; - margin: -3px; - border-radius: 50%; - background: linear-gradient(135deg, var(--avatar-similar-color2), var(--avatar-similar-color1)); -} -.botInfo .avatar-box .info { - display: flex; - align-items: center; - justify-content: center; - margin-top: 10px; -} -.botInfo .avatar-box .info .onlineStatus { - width: 15px; - height: 15px; - margin-right: 5px; - display: flex; - align-items: center; - justify-content: center; -} -.botInfo .avatar-box .info .onlineStatus img { - width: 100%; - height: 100%; -} -.botInfo .avatar-box .info .platform { - line-height: 15px; - font-size: 11px; -} -.botInfo .header { - font-size: 14px; - width: 100%; - color: #000; -} -.botInfo .header hr { - margin: 5px 0px; -} -.botInfo .header p { - margin-top: 10px; - display: flex; - flex-wrap: wrap; - row-gap: 10px; - --purple:#B4A0D8; - --orange:#e0be92; - --blue:#aad5e6; -} -.botInfo .header p span { - border-radius: 5px; - box-shadow: -2px 2px 3px rgba(8, 8, 8, 0.5); - padding: 0px 5px; - margin-right: 8px; - white-space: nowrap; -} -.botInfo .header p span img { - width: 14px; - height: 14px; - vertical-align: -2px; -} -.botInfo .header p:nth-child(3) span:nth-child(1) { - background: #d799de; -} -.botInfo .header p:nth-child(3) span:nth-child(2) { - background: #CBC7C8; -} -.botInfo .header p:nth-child(4) span:nth-child(1), -.botInfo .header p:nth-child(4) span:nth-child(4) { - background: var(--purple); -} -.botInfo .header p:nth-child(4) span:nth-child(2), -.botInfo .header p:nth-child(4) span:nth-child(5) { - background: var(--orange); -} -.botInfo .header p:nth-child(4) span:nth-child(3), -.botInfo .header p:nth-child(4) span:nth-child(6) { - background: var(--blue); -} -.botInfo .header table { - background: #67abdb; - border-radius: 5px; - box-shadow: #000 1px 1px 3px; - margin: auto; - margin-top: 5px; -} -.botInfo .header table td { - line-height: 14px; -} -.botInfo .header table td.dyeing { - padding-left: 5px; - text-align: center; -} -.botInfo .header table td.dyeing:not(:last-child) { - border-right: 2px solid #2f4f4f; - padding-right: 10px; -} -.botInfo .header table td:nth-child(odd):not(:first-child) { - padding-left: 10px; -} -.botInfo .header h1 { - display: inline-block; - background-color: #000; - -webkit-background-clip: text; - background-clip: text; - color: transparent; -} - -hr { - border: 0; - height: 2px; - background-image: linear-gradient(135deg, #bdc3c7 10%, #2c3e50); - border-radius: 10px; -} - -.memory li { - margin: 10px; - display: flex; -} -.memory hr { - margin-bottom: 10px; -} -.memory .progress { - flex: 1; - height: 25px; - background: #c1c1c1; - margin: 0 5px; - position: relative; - border-radius: 8px; - overflow: hidden; - border: 1px solid #929292; -} -.memory .progress .current { - background: #90ee90; - height: 25px; - border-radius: inherit; -} -.memory .progress .word { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - white-space: nowrap; -} - -.HardDisk_li .mount { - min-width: 15px; - max-width: 3em; - line-height: 25px; - text-align: left; -} -.HardDisk_li .percentage { - min-width: 2em; - line-height: 25px; - text-align: center; -} - -.speed { - width: 100%; - display: flex; - height: 25px; - line-height: 25px; -} -.speed p:first-child { - flex-grow: 1; - flex-shrink: 0; - max-width: 50%; - text-align: left; - margin-right: 20px; -} -.speed p:last-child { - flex-grow: 1; - flex-shrink: 1; - margin-left: 20px; - text-align: right; -}/*# sourceMappingURL=index.css.map */ \ No newline at end of file diff --git a/resources/state/css/index.scss b/resources/state/css/index.scss deleted file mode 100644 index 3abf97b..0000000 --- a/resources/state/css/index.scss +++ /dev/null @@ -1,320 +0,0 @@ -@use 'svg-circle'; - -%text-overflow-mission { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -:root { - --high-color: #d73403; - --medium-color: #ffa500; - --low-color: #84A0DF; - --avatar-main-color: #fff1eb; - --avatar-similar-color1: #fff1eb; - --avatar-similar-color2: #ace0f9; -} - -.container { - background: { - image: url('../img/default_bg.jpg'); - color: #e9e9e9; - position: center top; - repeat: no-repeat; - size: cover; - } -} - -li { - list-style: none; -} - -body { - display: flex; - height: 100%; - flex-direction: column; - justify-content: space-around; -} - -.box { - margin: 20px; - padding: 10px; - background: rgba(255, 255, 255, 0.45); - box-shadow: 0 8px 32px 0 rgba(51, 51, 52, 0.5), inset 3px 3px 10px 0px rgba(255, 255, 255, 0.8); - backdrop-filter: blur(10px); - border-radius: 18px; - border: 1px solid rgba(255, 255, 255, 0.18); - font-weight: 700; - position: relative; - - .time { - position: absolute; - right: 20px; - top: -30px; - font-size: 11px; - color: #0e0e0e; - text-shadow: 1px 1px 2px #fff; - } -} - -.botInfo { - display: flex; - justify-content: flex-start; - align-items: center; - - .avatar-box { - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; - margin-right: 5px; - - .avatar { - position: relative; - height: 100px; - width: 100px; - border-radius: 50%; - margin: 0 20px; - // box-shadow: 0 0 12px 4px var(--avatar-main-color); - - img { - width: 100%; - height: 100%; - border-radius: 50%; - } - - &::before { - content: ''; - position: absolute; - inset: 0; - z-index: -1; - margin: -3px; - border-radius: 50%; - // box-shadow: 0 0 12px 7px var(--avatar-main-color); - background: linear-gradient(135deg, var(--avatar-similar-color2), var(--avatar-similar-color1)); - } - } - - .info { - display: flex; - align-items: center; - justify-content: center; - margin-top: 10px; - - .onlineStatus { - width: 15px; - height: 15px; - margin-right: 5px; - display: flex; - align-items: center; - justify-content: center; - - img { - width: 100%; - height: 100%; - } - } - - .platform { - line-height: 15px; - font-size: 11px; - } - - - } - - } - - .header { - font-size: 14px; - width: 100%; - color: #000; - - hr { - margin: 5px 0px; - } - - p { - margin-top: 10px; - display: flex; - flex-wrap: wrap; - row-gap: 10px; - - span { - border-radius: 5px; - box-shadow: -2px 2px 3px rgba(8, 8, 8, 0.5); - padding: 0px 5px; - margin-right: 8px; - white-space: nowrap; - - img { - width: 14px; - height: 14px; - vertical-align: -2px - } - } - - &:nth-child(3) { - span:nth-child(1) { - background: #d799de; - } - - span:nth-child(2) { - background: #CBC7C8; - } - } - - --purple:#B4A0D8; - --orange:#e0be92; - --blue:#aad5e6; - - &:nth-child(4) { - - span:nth-child(1), - span:nth-child(4) { - background: var(--purple); - - } - - span:nth-child(2), - span:nth-child(5) { - background: var(--orange); - } - - span:nth-child(3), - span:nth-child(6) { - background: var(--blue); - } - } - } - - table { - background: #67abdb; - border-radius: 5px; - box-shadow: #000 1px 1px 3px; - margin: auto; - margin-top: 5px; - - td { - line-height: 14px; - - &.dyeing { - // color: rgb(135, 206, 235); - // text-shadow: 1px 1px 1px #000; - padding-left: 5px; - text-align: center; - } - - &.dyeing:not(:last-child) { - border-right: 2px solid #2f4f4f; - padding-right: 10px; - } - - - - &:nth-child(odd):not(:first-child) { - padding-left: 10px - } - } - - } - - h1 { - @extend %text-overflow-mission; - display: inline-block; - // background-image: linear-gradient(271.14deg, - // #001bff 0.98%, - // #00f0ff 25.79%, - // #fce84a 47.33%, - // #f34628 65.77%, - // #b275ff 91.4%); - color: #000; - } - } -} - -hr { - border: 0; - height: 2px; - background-image: linear-gradient(135deg, #bdc3c7 10%, #2c3e50); - border-radius: 10px; -} - - -.memory { - li { - margin: 10px; - display: flex; - } - - hr { - margin-bottom: 10px; - } - - .progress { - flex: 1; - height: 25px; - background: #c1c1c1; - margin: 0 5px; - position: relative; - border-radius: 8px; - overflow: hidden; - border: 1px solid #929292; - - .current { - background: #90ee90; - height: 25px; - border-radius: inherit; - } - - .word { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - white-space: nowrap; - } - } -} - -.HardDisk_li { - .mount { - @extend %text-overflow-mission; - min-width: 15px; - max-width: 3em; - line-height: 25px; - text-align: left; - } - - .percentage { - min-width: 2em; - line-height: 25px; - text-align: center; - } -} - -.speed { - width: 100%; - display: flex; - height: 25px; - line-height: 25px; - - p { - @extend %text-overflow-mission; - - &:first-child { - flex-grow: 1; - flex-shrink: 0; - max-width: 50%; - text-align: left; - margin-right: 20px; - } - - &:last-child { - flex-grow: 1; - flex-shrink: 1; - margin-left: 20px; - text-align: right; - } - } -} \ No newline at end of file diff --git a/resources/state/icon/11.png b/resources/state/icon/11.png deleted file mode 100644 index a1b17b6..0000000 Binary files a/resources/state/icon/11.png and /dev/null differ diff --git a/resources/state/icon/31.png b/resources/state/icon/31.png deleted file mode 100644 index 4896601..0000000 Binary files a/resources/state/icon/31.png and /dev/null differ diff --git a/resources/state/icon/41.png b/resources/state/icon/41.png deleted file mode 100644 index af52ec1..0000000 Binary files a/resources/state/icon/41.png and /dev/null differ diff --git a/resources/state/icon/50.png b/resources/state/icon/50.png deleted file mode 100644 index 20fdae0..0000000 Binary files a/resources/state/icon/50.png and /dev/null differ diff --git a/resources/state/icon/60.png b/resources/state/icon/60.png deleted file mode 100644 index d4f7ff5..0000000 Binary files a/resources/state/icon/60.png and /dev/null differ diff --git a/resources/state/icon/70.png b/resources/state/icon/70.png deleted file mode 100644 index 7f8bc2b..0000000 Binary files a/resources/state/icon/70.png and /dev/null differ diff --git a/resources/state/icon/friend.png b/resources/state/icon/friend.png deleted file mode 100644 index 3e2b00f..0000000 Binary files a/resources/state/icon/friend.png and /dev/null differ diff --git a/resources/state/icon/group.png b/resources/state/icon/group.png deleted file mode 100644 index 7c00465..0000000 Binary files a/resources/state/icon/group.png and /dev/null differ diff --git a/resources/state/icon/groupMember.png b/resources/state/icon/groupMember.png deleted file mode 100644 index 6cedc90..0000000 Binary files a/resources/state/icon/groupMember.png and /dev/null differ diff --git a/resources/state/icon/recv.png b/resources/state/icon/recv.png deleted file mode 100644 index d8dda2c..0000000 Binary files a/resources/state/icon/recv.png and /dev/null differ diff --git a/resources/state/icon/screenshot.png b/resources/state/icon/screenshot.png deleted file mode 100644 index 948923e..0000000 Binary files a/resources/state/icon/screenshot.png and /dev/null differ diff --git a/resources/state/icon/sent.png b/resources/state/icon/sent.png deleted file mode 100644 index c79809c..0000000 Binary files a/resources/state/icon/sent.png and /dev/null differ diff --git a/resources/state/img/bg/1.jpg b/resources/state/img/bg/1.jpg deleted file mode 100644 index 3cf19e3..0000000 Binary files a/resources/state/img/bg/1.jpg and /dev/null differ diff --git a/resources/state/img/bg/2.jpg b/resources/state/img/bg/2.jpg deleted file mode 100644 index 9c1d78e..0000000 Binary files a/resources/state/img/bg/2.jpg and /dev/null differ diff --git a/resources/state/img/bg/default_bg.jpg b/resources/state/img/bg/default_bg.jpg deleted file mode 100644 index 754e22f..0000000 Binary files a/resources/state/img/bg/default_bg.jpg and /dev/null differ diff --git a/resources/state/img/default_avatar.jpg b/resources/state/img/default_avatar.jpg deleted file mode 100644 index 1f38312..0000000 Binary files a/resources/state/img/default_avatar.jpg and /dev/null differ diff --git a/resources/state/img/default_bg.jpg b/resources/state/img/default_bg.jpg deleted file mode 100644 index 754e22f..0000000 Binary files a/resources/state/img/default_bg.jpg and /dev/null differ diff --git a/resources/state/index.html b/resources/state/index.html deleted file mode 100644 index c47232e..0000000 --- a/resources/state/index.html +++ /dev/null @@ -1,165 +0,0 @@ -{{extend defaultLayout}} - -{{block 'css'}} - - -{{/block}} - -{{block 'main'}} - -{{each BotStatusList}} -
- - {{$value.botVersion}} - - - Bot已运行 {{$value.botRunTime}} - -
-
- {{each $value.countContacts v i}}
- {{if v}}
-
-
- {{v}}
-
- {{/if}}
- {{/each}}
- {{each $value.messageCount v i}}
- {{if v}}
-
-
- {{v}}
-
- {{/if}}
- {{/each}}
-
{{info}}
- {{/each}} -fsStats
-读 {{fsStats.rx_sec}}/s | 写 {{fsStats.wx_sec}}/s
-{{$value.first}}
-{{@$value.tail}}
-{{$value.first}}
-{{@$value.tail}}
-{{$value.first}}
-{{@$value.tail}}
-=a)}}for(var h=this.__startIndex;h t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function _M(t){return"center"===t.position}function bM(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*vM,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),c=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Ur(y.get("edgeDistance"),u),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Ur(S,u);var M=w.get("length2");if(M=Ur(M,u),Math.abs(c.endAngle-c.startAngle)0?"right":"left":k>0?"left":"right"}var B=Math.PI,F=0,G=y.get("rotate");if(j(G))F=G*(B/180);else if("center"===v)F=0;else if("radial"===G||!0===G){F=k<0?-A+B:-A}else if("tangential"===G&&"outside"!==v&&"outer"!==v){var W=Math.atan2(k,L);W<0&&(W=2*B+W),L>0&&(W=B+W),F=W-B}if(o=!!F,p.x=I,p.y=T,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:D});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var Y=p.getBoundingRect().clone();Y.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,r.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new De(k,L),linePoints:C,textAlign:D,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Sk(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Sk(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Mk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&C(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){E(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];E(B(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Rp),Ik=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return n(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(nb);function Tk(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=Dk(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Dk(s,[0,a]),r=o=Dk(s,[r,o]),i=0}e[0]=Dk(e[0],n),e[1]=Dk(e[1],n);var l=Ck(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=Dk(e[i],c),u=Ck(e,i),null!=r&&(u.sign!==l.sign||u.span