hqchart 1.1.14084 → 1.1.14097
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/umychart.vue.js +92 -91
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogSearchIndex.js +429 -5
- package/src/jscommon/umychart.js +133 -270
- package/src/jscommon/umychart.report.js +36 -5
- package/src/jscommon/umychart.resource/css/tools.css +136 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +170 -276
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +599 -281
|
@@ -5092,6 +5092,7 @@ function ChartReport()
|
|
|
5092
5092
|
var top=this.RectClient.Top;
|
|
5093
5093
|
var y=top+this.HeaderMergin.Top+(this.HeaderHeight-this.HeaderMergin.Top-this.HeaderMergin.Bottom)/2;
|
|
5094
5094
|
var yBottom=top+this.HeaderHeight;
|
|
5095
|
+
var bDrawSortBG=this.IsDrawSortBGIcon();
|
|
5095
5096
|
|
|
5096
5097
|
this.Canvas.font=this.HeaderFont;
|
|
5097
5098
|
|
|
@@ -5133,6 +5134,10 @@ function ChartReport()
|
|
|
5133
5134
|
{
|
|
5134
5135
|
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,this.SortInfo.Sort, textSize);
|
|
5135
5136
|
}
|
|
5137
|
+
else if (item.Sort>0 && bDrawSortBG)
|
|
5138
|
+
{
|
|
5139
|
+
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,0,textSize);
|
|
5140
|
+
}
|
|
5136
5141
|
else
|
|
5137
5142
|
{
|
|
5138
5143
|
this.DrawText(item.Title,item.TextAlign,x,yBottom,textWidth,textSize);
|
|
@@ -5186,6 +5191,10 @@ function ChartReport()
|
|
|
5186
5191
|
{
|
|
5187
5192
|
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,this.SortInfo.Sort,textSize);
|
|
5188
5193
|
}
|
|
5194
|
+
else if (item.Sort>0)
|
|
5195
|
+
{
|
|
5196
|
+
this.DrawSortHeader(item.Title,item.TextAlign,x,yBottom,textWidth,0, textSize);
|
|
5197
|
+
}
|
|
5189
5198
|
else
|
|
5190
5199
|
{
|
|
5191
5200
|
this.DrawText(item.Title,item.TextAlign,x,yBottom,textWidth,textSize);
|
|
@@ -5248,10 +5257,24 @@ function ChartReport()
|
|
|
5248
5257
|
}
|
|
5249
5258
|
}
|
|
5250
5259
|
|
|
5260
|
+
//是否绘制排序背景图标
|
|
5261
|
+
this.IsDrawSortBGIcon=function()
|
|
5262
|
+
{
|
|
5263
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.SortConfig.Arrow)) return false;
|
|
5264
|
+
if (!this.SortConfig.Arrow[0]) return false;
|
|
5265
|
+
|
|
5266
|
+
if (!IFrameSplitOperator.IsNonEmptyArray(this.SortConfig.Color)) return false;
|
|
5267
|
+
if (!this.SortConfig.Color[0]) return false;
|
|
5268
|
+
|
|
5269
|
+
return true;
|
|
5270
|
+
}
|
|
5271
|
+
|
|
5251
5272
|
this.DrawSortHeader=function(text, textAlign, x, yBottom, width, sortType,textSize)
|
|
5252
5273
|
{
|
|
5253
5274
|
var pixelRatio=GetDevicePixelRatio();
|
|
5254
5275
|
var sortText=this.SortConfig.Arrow[sortType];
|
|
5276
|
+
var sortBGText=this.SortConfig.Arrow[0];
|
|
5277
|
+
var sortBGColor=this.SortConfig.Color[0];
|
|
5255
5278
|
this.Canvas.font=this.HeaderFont;
|
|
5256
5279
|
var textWidth=this.Canvas.measureText(text).width;
|
|
5257
5280
|
var sortTextWidth=this.SortConfig.Size*pixelRatio+this.SortConfig.Margin.Left;
|
|
@@ -5275,8 +5298,17 @@ function ChartReport()
|
|
|
5275
5298
|
|
|
5276
5299
|
xText+=(textWidth+this.SortConfig.Margin.Left);
|
|
5277
5300
|
this.Canvas.font=this.SortFont;
|
|
5278
|
-
|
|
5279
|
-
|
|
5301
|
+
if (sortBGText && sortBGColor)
|
|
5302
|
+
{
|
|
5303
|
+
this.Canvas.fillStyle=sortBGColor;
|
|
5304
|
+
this.Canvas.fillText(sortBGText,xText,yBottom-this.SortConfig.Margin.Bottom);
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
if (sortType>0)
|
|
5308
|
+
{
|
|
5309
|
+
this.Canvas.fillStyle=this.SortConfig.Color[sortType];
|
|
5310
|
+
this.Canvas.fillText(sortText,xText,yBottom-this.SortConfig.Margin.Bottom);
|
|
5311
|
+
}
|
|
5280
5312
|
|
|
5281
5313
|
this.Canvas.font=this.HeaderFont;
|
|
5282
5314
|
this.Canvas.fillStyle=this.HeaderColor;
|
|
@@ -5288,7 +5320,6 @@ function ChartReport()
|
|
|
5288
5320
|
}
|
|
5289
5321
|
}
|
|
5290
5322
|
|
|
5291
|
-
|
|
5292
5323
|
this.DrawBorder=function()
|
|
5293
5324
|
{
|
|
5294
5325
|
if (!this.IsDrawBorder) return;
|
|
@@ -6067,7 +6098,7 @@ function ChartReport()
|
|
|
6067
6098
|
this.DrawSymbolName=function(data, column, left, top, rowType)
|
|
6068
6099
|
{
|
|
6069
6100
|
var stock=data.Stock;
|
|
6070
|
-
var symbol=data.Symbol;
|
|
6101
|
+
var symbol=IFrameSplitOperator.RemoveMarketSuffix(data.Symbol);
|
|
6071
6102
|
var name;
|
|
6072
6103
|
if (stock)
|
|
6073
6104
|
{
|
|
@@ -6124,7 +6155,7 @@ function ChartReport()
|
|
|
6124
6155
|
this.DrawSymbolNameV2=function(data, column, left, top, rowType)
|
|
6125
6156
|
{
|
|
6126
6157
|
var stock=data.Stock;
|
|
6127
|
-
var symbol=data.Symbol;
|
|
6158
|
+
var symbol=IFrameSplitOperator.RemoveMarketSuffix(data.Symbol);
|
|
6128
6159
|
var name;
|
|
6129
6160
|
if (stock)
|
|
6130
6161
|
{
|
|
@@ -1221,6 +1221,7 @@ input[type="color"] {
|
|
|
1221
1221
|
font-family: "微软雅黑";
|
|
1222
1222
|
cursor: default;
|
|
1223
1223
|
padding: 2px;
|
|
1224
|
+
z-index: 99;
|
|
1224
1225
|
|
|
1225
1226
|
}
|
|
1226
1227
|
|
|
@@ -1356,6 +1357,7 @@ input[type="color"] {
|
|
|
1356
1357
|
background-color: rgba(250,250,250,1);
|
|
1357
1358
|
left:1px;
|
|
1358
1359
|
top:1px;
|
|
1360
|
+
z-index: 99;
|
|
1359
1361
|
}
|
|
1360
1362
|
|
|
1361
1363
|
.UMyChart_DrawTool_Title_Div
|
|
@@ -1462,6 +1464,7 @@ input[type="color"] {
|
|
|
1462
1464
|
left:1px;
|
|
1463
1465
|
top:1px;
|
|
1464
1466
|
display: flex;
|
|
1467
|
+
z-index: 99;
|
|
1465
1468
|
}
|
|
1466
1469
|
|
|
1467
1470
|
.UMyChart_Draw_Modify_Dialog_Drag_Div
|
|
@@ -1510,6 +1513,7 @@ input[type="color"] {
|
|
|
1510
1513
|
border: solid 1px rgba(200, 210, 219, 0.92);
|
|
1511
1514
|
display: flex;
|
|
1512
1515
|
flex-flow: column;
|
|
1516
|
+
z-index: 99;
|
|
1513
1517
|
}
|
|
1514
1518
|
|
|
1515
1519
|
.jschart_pop_minute_chart
|
|
@@ -1563,6 +1567,7 @@ input[type="color"] {
|
|
|
1563
1567
|
border: solid 1px rgb(0, 0, 0);
|
|
1564
1568
|
display: flex;
|
|
1565
1569
|
flex-flow: column;
|
|
1570
|
+
z-index: 99;
|
|
1566
1571
|
}
|
|
1567
1572
|
|
|
1568
1573
|
.jschart_keyboard_Title_Div
|
|
@@ -1634,6 +1639,7 @@ input[type="color"] {
|
|
|
1634
1639
|
background-color: rgba(20,20,20,1);
|
|
1635
1640
|
left:1px;
|
|
1636
1641
|
top:1px;
|
|
1642
|
+
z-index: 99;
|
|
1637
1643
|
|
|
1638
1644
|
}
|
|
1639
1645
|
|
|
@@ -1728,6 +1734,7 @@ input[type="color"] {
|
|
|
1728
1734
|
background-color: rgba(230,230,230,1);
|
|
1729
1735
|
left:1px;
|
|
1730
1736
|
top:1px;
|
|
1737
|
+
z-index: 99;
|
|
1731
1738
|
}
|
|
1732
1739
|
|
|
1733
1740
|
.UMyChart_SelectRect_Title_Div
|
|
@@ -1868,6 +1875,7 @@ input[type="color"] {
|
|
|
1868
1875
|
left:1px;
|
|
1869
1876
|
top:1px;
|
|
1870
1877
|
pointer-events:none;
|
|
1878
|
+
z-index: 98;
|
|
1871
1879
|
}
|
|
1872
1880
|
|
|
1873
1881
|
|
|
@@ -1947,6 +1955,7 @@ input[type="color"] {
|
|
|
1947
1955
|
background-color: rgba(20,20,20,1);
|
|
1948
1956
|
left:1px;
|
|
1949
1957
|
top:1px;
|
|
1958
|
+
z-index: 99;
|
|
1950
1959
|
}
|
|
1951
1960
|
|
|
1952
1961
|
.UMyChart_SearchIndex_Title_Div
|
|
@@ -2044,6 +2053,133 @@ input[type="color"] {
|
|
|
2044
2053
|
}
|
|
2045
2054
|
|
|
2046
2055
|
|
|
2056
|
+
/*
|
|
2057
|
+
Copyright (c) 2018 jones
|
|
2058
|
+
|
|
2059
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
2060
|
+
|
|
2061
|
+
开源项目 https://github.com/jones2000/HQChart
|
|
2062
|
+
|
|
2063
|
+
jones_2000@163.com
|
|
2064
|
+
|
|
2065
|
+
内置修改指标参数对话框
|
|
2066
|
+
*/
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
.UMyChart_ModifyIndexParam_Dialog_Div
|
|
2070
|
+
{
|
|
2071
|
+
font-family: "微软雅黑";
|
|
2072
|
+
/*display: flex;*/
|
|
2073
|
+
border: 1px solid;
|
|
2074
|
+
width:fit-content;
|
|
2075
|
+
border-color: rgb(204,204,204);
|
|
2076
|
+
visibility:hidden;
|
|
2077
|
+
position: absolute;
|
|
2078
|
+
background-color: rgba(20,20,20,1);
|
|
2079
|
+
left:1px;
|
|
2080
|
+
top:1px;
|
|
2081
|
+
z-index: 99;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
.UMyChart_ModifyIndexParam_Title_Div
|
|
2085
|
+
{
|
|
2086
|
+
padding-left: 2px;
|
|
2087
|
+
height:20px;
|
|
2088
|
+
border-bottom: 1px solid;
|
|
2089
|
+
|
|
2090
|
+
display: flex;
|
|
2091
|
+
cursor: default;
|
|
2092
|
+
user-select: none;
|
|
2093
|
+
background-color:rgb(200, 66, 69)
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
.UMyChart_ModifyIndexParam_Name_Div
|
|
2097
|
+
{
|
|
2098
|
+
margin-left: 5px;
|
|
2099
|
+
color:rgb(250,250,250)
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.UMyChart_ModifyIndexParam_Close_Div
|
|
2103
|
+
{
|
|
2104
|
+
margin-left: auto;
|
|
2105
|
+
padding-right: 4px;
|
|
2106
|
+
cursor:pointer;
|
|
2107
|
+
color:rgb(180,180,180)
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
.UMyChart_ModifyIndexParam_Table_Div
|
|
2111
|
+
{
|
|
2112
|
+
min-height:100px;
|
|
2113
|
+
max-height: 500px;
|
|
2114
|
+
width: 270px;
|
|
2115
|
+
overflow-y:auto; /*纵向滚动条始终显示 */
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
.UMyChart_ModifyIndexParam_Table
|
|
2119
|
+
{
|
|
2120
|
+
border-spacing: 4px;
|
|
2121
|
+
user-select: none;
|
|
2122
|
+
font-size:13px;
|
|
2123
|
+
width: 100%;
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
.UMyChart_ModifyIndexParam_Tbody
|
|
2127
|
+
{
|
|
2128
|
+
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
.UMyChart_ModifyIndexParam_Tr
|
|
2132
|
+
{
|
|
2133
|
+
height: 25px;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
.UMyChart_ModifyIndexParam_Name_Td
|
|
2137
|
+
{
|
|
2138
|
+
width: 50px;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
.UMyChart_ModifyIndexParam_Name_Span
|
|
2143
|
+
{
|
|
2144
|
+
margin-left: 10px;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
.UMyChart_ModifyIndexParam_Value_Td
|
|
2148
|
+
{
|
|
2149
|
+
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
.UMyChart_ModifyIndexParam_Input
|
|
2153
|
+
{
|
|
2154
|
+
margin-left: 10px;
|
|
2155
|
+
margin-right: 10px;
|
|
2156
|
+
border:0.5px solid;
|
|
2157
|
+
line-height: 16px;
|
|
2158
|
+
background-color: transparent;
|
|
2159
|
+
width: 60px;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
.UMyChart_ModifyIndexParam_Button_Div
|
|
2163
|
+
{
|
|
2164
|
+
border-top: 1px solid #ccc;
|
|
2165
|
+
padding: 4px 14px;
|
|
2166
|
+
display: flex;
|
|
2167
|
+
justify-content: space-between;
|
|
2168
|
+
align-items: center;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
.UMyChart_ModifyIndexParam_Button_Div button
|
|
2172
|
+
{
|
|
2173
|
+
font-size: 12px;
|
|
2174
|
+
padding: 2px 10px 3px;
|
|
2175
|
+
border-radius: 10px;
|
|
2176
|
+
border: 1px solid #ccc;
|
|
2177
|
+
cursor: pointer;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2047
2183
|
|
|
2048
2184
|
|
|
2049
2185
|
|