hqchart 1.1.15138 → 1.1.15152
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 +53 -42
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogDrawTool.js +20 -6
- package/src/jscommon/umychart.DialogSearchIndex.js +18 -48
- package/src/jscommon/umychart.js +80 -48
- package/src/jscommon/umychart.resource/css/tools.css +240 -26
- package/src/jscommon/umychart.style.js +0 -11
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +81 -60
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +119 -114
|
@@ -6615,6 +6615,13 @@ JSChart.SetStyle=function(option)
|
|
|
6615
6615
|
if (option) g_JSChartResource.SetStyle(option);
|
|
6616
6616
|
}
|
|
6617
6617
|
|
|
6618
|
+
|
|
6619
|
+
//CSS风格
|
|
6620
|
+
JSChart.SetCSSStyle=function(styleID)
|
|
6621
|
+
{
|
|
6622
|
+
document.documentElement.setAttribute('hqchart_style', styleID);
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6618
6625
|
//value { EN:'', CH:'' }
|
|
6619
6626
|
JSChart.SetTextResource=function(key,value)
|
|
6620
6627
|
{
|
|
@@ -7040,6 +7047,8 @@ var JSCHART_EVENT_ID=
|
|
|
7040
7047
|
ON_FORMAT_COUNTDOWN_TEXT:177, //倒计时
|
|
7041
7048
|
ON_CLICK_INDEX_LOCK:178, //点击指标锁
|
|
7042
7049
|
ON_CORSSCURSOR_STATUS_CHANGE:179, //十字光标状态改变
|
|
7050
|
+
|
|
7051
|
+
ON_FORMAT_DRAW_HLINE_LABEL:180, //画图工具-水平线(ChartDrawPictureHorizontalLine)格式化标签文字
|
|
7043
7052
|
}
|
|
7044
7053
|
|
|
7045
7054
|
var JSCHART_OPERATOR_ID=
|
|
@@ -10579,6 +10588,11 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10579
10588
|
chartItem.Canvas=canvas; //叠加图形
|
|
10580
10589
|
}
|
|
10581
10590
|
}
|
|
10591
|
+
|
|
10592
|
+
if (item.Frame.LockPaint)
|
|
10593
|
+
{
|
|
10594
|
+
item.Frame.LockPaint.Canvas=canvas;
|
|
10595
|
+
}
|
|
10582
10596
|
}
|
|
10583
10597
|
}
|
|
10584
10598
|
|
|
@@ -68704,7 +68718,7 @@ function IChartDrawPicture()
|
|
|
68704
68718
|
this.PointType=g_JSChartResource.DrawPicture.PointType; // 0=圆点 1=方框 2= 空心圆
|
|
68705
68719
|
this.IsShowPoint=g_JSChartResource.DrawPicture.IsShowPoint; //是否始终显示点
|
|
68706
68720
|
this.LimitFrameID; //限制在指定窗口绘图
|
|
68707
|
-
|
|
68721
|
+
this.CacheData; //数据缓存
|
|
68708
68722
|
|
|
68709
68723
|
//接口函数
|
|
68710
68724
|
this.SetLastPoint=null; //this.SetLastPoint=function(obj) obj={X:,Y:}
|
|
@@ -71056,9 +71070,9 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71056
71070
|
|
|
71057
71071
|
this.LabelConfig=
|
|
71058
71072
|
{
|
|
71059
|
-
Left:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 } },
|
|
71060
|
-
Right:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 } },
|
|
71061
|
-
Font:`${12*GetDevicePixelRatio()}px 微软雅黑`, TextColor:"rgb(255,255,255)", BGColor:null
|
|
71073
|
+
Left:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 }, LineOffset:null, Text:null },
|
|
71074
|
+
Right:{ IsShow:true, Margin:{ Left:5, Top:4, Bottom:2, Right:5 }, LineOffset:null, Text:null },
|
|
71075
|
+
Font:`${12*GetDevicePixelRatio()}px 微软雅黑`, TextColor:"rgb(255,255,255)", BGColor:null,
|
|
71062
71076
|
};
|
|
71063
71077
|
|
|
71064
71078
|
this.InsideLabelConfig=
|
|
@@ -71157,6 +71171,9 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71157
71171
|
left=this.Frame.ChartBorder.GetTop();
|
|
71158
71172
|
right=this.Frame.ChartBorder.GetBottom();
|
|
71159
71173
|
}
|
|
71174
|
+
|
|
71175
|
+
|
|
71176
|
+
|
|
71160
71177
|
this.ClipFrame();
|
|
71161
71178
|
|
|
71162
71179
|
this.Canvas.strokeStyle=this.LineColor;
|
|
@@ -71196,6 +71213,8 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71196
71213
|
//画点
|
|
71197
71214
|
this.DrawPoint(drawPoint);
|
|
71198
71215
|
|
|
71216
|
+
this.FormatLabelTextEvent(drawPoint);
|
|
71217
|
+
|
|
71199
71218
|
//显示价格
|
|
71200
71219
|
this.DrawInsideLabel(drawPoint[0])
|
|
71201
71220
|
|
|
@@ -71203,6 +71222,16 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71203
71222
|
|
|
71204
71223
|
this.DrawValueLabel(drawPoint[0]);
|
|
71205
71224
|
}
|
|
71225
|
+
|
|
71226
|
+
this.FormatLabelTextEvent=function(point)
|
|
71227
|
+
{
|
|
71228
|
+
if (!this.HQChart) return;
|
|
71229
|
+
var event=this.HQChart.GetEventCallback(JSCHART_EVENT_ID.ON_FORMAT_DRAW_HLINE_LABEL);
|
|
71230
|
+
if (!event || !event.Callback) return;
|
|
71231
|
+
|
|
71232
|
+
var sendData={ ID:this.Guid, LabelConfig:this.LabelConfig, InsideLabelConfig:this.InsideLabelConfig };
|
|
71233
|
+
event.Callback(event, sendData, this);
|
|
71234
|
+
}
|
|
71206
71235
|
|
|
71207
71236
|
this.DrawValueLabel=function(point)
|
|
71208
71237
|
{
|
|
@@ -71210,6 +71239,8 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71210
71239
|
if (this.Frame.IsHScreen) return; //不支持横屏
|
|
71211
71240
|
|
|
71212
71241
|
var y=point.Y;
|
|
71242
|
+
var yFixed=ToFixedPoint2(this.LineWidth,y);
|
|
71243
|
+
|
|
71213
71244
|
var yValue=this.Frame.GetYData(y);
|
|
71214
71245
|
var text=yValue.toFixed(2);
|
|
71215
71246
|
|
|
@@ -71218,12 +71249,27 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71218
71249
|
|
|
71219
71250
|
this.Canvas.font=config.Font;
|
|
71220
71251
|
var textHeight=this.Canvas.measureText("擎").width;
|
|
71221
|
-
var textWidth=this.Canvas.measureText(text).width;
|
|
71222
71252
|
|
|
71223
71253
|
if (config.Left.IsShow && this.Frame.ChartBorder.Left>5)
|
|
71224
71254
|
{
|
|
71255
|
+
var leftText=text;
|
|
71256
|
+
if (config.Left.Text) leftText=config.Left.Text;
|
|
71257
|
+
var textWidth=this.Canvas.measureText(leftText).width;
|
|
71258
|
+
var left=border.Left;
|
|
71259
|
+
if (IFrameSplitOperator.IsNumber(config.Left.LineOffset)&& config.Left.LineOffset!==0)
|
|
71260
|
+
{
|
|
71261
|
+
left-=config.Left.LineOffset;
|
|
71262
|
+
this.Canvas.strokeStyle=this.LineColor;
|
|
71263
|
+
this.SetLineWidth();
|
|
71264
|
+
this.Canvas.beginPath();
|
|
71265
|
+
this.Canvas.moveTo(border.Left,yFixed);
|
|
71266
|
+
this.Canvas.lineTo(left,yFixed);
|
|
71267
|
+
this.Canvas.stroke();
|
|
71268
|
+
this.RestoreLineWidth();
|
|
71269
|
+
}
|
|
71270
|
+
|
|
71225
71271
|
var margin=config.Left.Margin;
|
|
71226
|
-
var rtBG={ Right:
|
|
71272
|
+
var rtBG={ Right:left+1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
|
|
71227
71273
|
rtBG.Top=y-textHeight/2-margin.Top;
|
|
71228
71274
|
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
71229
71275
|
rtBG.Left=rtBG.Right-rtBG.Width;
|
|
@@ -71237,13 +71283,30 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71237
71283
|
var xText=rtBG.Left+margin.Left;
|
|
71238
71284
|
var yText=rtBG.Top+margin.Top;
|
|
71239
71285
|
this.Canvas.fillStyle=config.TextColor;
|
|
71240
|
-
this.Canvas.fillText(
|
|
71286
|
+
this.Canvas.fillText(leftText,xText,yText);
|
|
71241
71287
|
}
|
|
71242
71288
|
|
|
71243
71289
|
if (config.Right.IsShow && this.Frame.ChartBorder.Right>5)
|
|
71244
71290
|
{
|
|
71291
|
+
var rightText=text;
|
|
71292
|
+
if (config.Right.Text) rightText=config.Right.Text;
|
|
71293
|
+
var textWidth=this.Canvas.measureText(rightText).width;
|
|
71294
|
+
|
|
71295
|
+
var left=border.Right;
|
|
71296
|
+
if (IFrameSplitOperator.IsNumber(config.Right.LineOffset)&& config.Right.LineOffset!==0)
|
|
71297
|
+
{
|
|
71298
|
+
left+=config.Right.LineOffset;
|
|
71299
|
+
this.Canvas.strokeStyle=this.LineColor;
|
|
71300
|
+
this.SetLineWidth();
|
|
71301
|
+
this.Canvas.beginPath();
|
|
71302
|
+
this.Canvas.moveTo(border.Right,yFixed);
|
|
71303
|
+
this.Canvas.lineTo(left,yFixed);
|
|
71304
|
+
this.Canvas.stroke();
|
|
71305
|
+
this.RestoreLineWidth();
|
|
71306
|
+
}
|
|
71307
|
+
|
|
71245
71308
|
var margin=config.Right.Margin;
|
|
71246
|
-
var rtBG={ Left:
|
|
71309
|
+
var rtBG={ Left:left-1, Height:textHeight+margin.Top+margin.Bottom, Width:textWidth+margin.Left+margin.Right };
|
|
71247
71310
|
rtBG.Top=y-textHeight/2-margin.Top;
|
|
71248
71311
|
rtBG.Bottom=rtBG.Top+rtBG.Height;
|
|
71249
71312
|
rtBG.Right=rtBG.Left+rtBG.Width;
|
|
@@ -71257,7 +71320,7 @@ function ChartDrawPictureHorizontalLine()
|
|
|
71257
71320
|
var xText=rtBG.Left+margin.Left;
|
|
71258
71321
|
var yText=rtBG.Top+margin.Top;
|
|
71259
71322
|
this.Canvas.fillStyle=config.TextColor;
|
|
71260
|
-
this.Canvas.fillText(
|
|
71323
|
+
this.Canvas.fillText(rightText,xText,yText);
|
|
71261
71324
|
}
|
|
71262
71325
|
}
|
|
71263
71326
|
|
|
@@ -82047,30 +82110,6 @@ function JSChartResource()
|
|
|
82047
82110
|
}
|
|
82048
82111
|
};
|
|
82049
82112
|
|
|
82050
|
-
//指标搜索
|
|
82051
|
-
this.DialogSearchIndex=
|
|
82052
|
-
{
|
|
82053
|
-
BGColor:'rgb(250,250,250)', //背景色
|
|
82054
|
-
BorderColor:'rgb(20,20,20)', //边框颜色
|
|
82055
|
-
TitleColor:'rgb(250,250,250)', //标题颜色
|
|
82056
|
-
TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
|
|
82057
|
-
|
|
82058
|
-
IndexNameColor:"rgb(0,0,0)", //数值名称
|
|
82059
|
-
GroupNameColor:"rgb(0,0,0)",
|
|
82060
|
-
InputTextColor:"rgb(0,0,0)"
|
|
82061
|
-
};
|
|
82062
|
-
|
|
82063
|
-
this.DialogModifyIndexParam=
|
|
82064
|
-
{
|
|
82065
|
-
BGColor:'rgb(250,250,250)', //背景色
|
|
82066
|
-
BorderColor:'rgb(20,20,20)', //边框颜色
|
|
82067
|
-
TitleColor:'rgb(250,250,250)', //标题颜色
|
|
82068
|
-
TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
|
|
82069
|
-
|
|
82070
|
-
ParamNameColor:"rgb(0,0,0)", //数值名称
|
|
82071
|
-
InputTextColor:"rgb(0,0,0)"
|
|
82072
|
-
};
|
|
82073
|
-
|
|
82074
82113
|
//弹幕
|
|
82075
82114
|
this.Barrage= {
|
|
82076
82115
|
Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
|
|
@@ -83295,20 +83334,6 @@ function JSChartResource()
|
|
|
83295
83334
|
}
|
|
83296
83335
|
}
|
|
83297
83336
|
|
|
83298
|
-
if (style.DialogSearchIndex)
|
|
83299
|
-
{
|
|
83300
|
-
var item=style.DialogSearchIndex;
|
|
83301
|
-
|
|
83302
|
-
if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
|
|
83303
|
-
if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
|
|
83304
|
-
if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
|
|
83305
|
-
if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
|
|
83306
|
-
|
|
83307
|
-
if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
|
|
83308
|
-
if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
|
|
83309
|
-
if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
|
|
83310
|
-
}
|
|
83311
|
-
|
|
83312
83337
|
if (style.MinuteInfo)
|
|
83313
83338
|
{
|
|
83314
83339
|
var item=style.MinuteInfo;
|
|
@@ -91619,7 +91644,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91619
91644
|
if (item)
|
|
91620
91645
|
{
|
|
91621
91646
|
drawPicture=item.Create();
|
|
91622
|
-
drawPicture.HQChart=this;
|
|
91623
91647
|
}
|
|
91624
91648
|
|
|
91625
91649
|
if (!drawPicture) //iconfont图标
|
|
@@ -91642,6 +91666,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91642
91666
|
drawPicture.Period=this.Period;
|
|
91643
91667
|
drawPicture.Right=this.Right;
|
|
91644
91668
|
drawPicture.Option=this.ChartDrawOption;
|
|
91669
|
+
drawPicture.HQChart=this;
|
|
91645
91670
|
|
|
91646
91671
|
if (callback) drawPicture.FinishedCallback=callback; //完成通知上层回调
|
|
91647
91672
|
if (option) drawPicture.SetOption(option);
|
|
@@ -91672,8 +91697,10 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91672
91697
|
drawPicture.Period=this.Period;
|
|
91673
91698
|
drawPicture.Right=this.Right;
|
|
91674
91699
|
drawPicture.Option=this.ChartDrawOption;
|
|
91700
|
+
drawPicture.HQChart=this;
|
|
91675
91701
|
if (obj.Value) drawPicture.Value=obj.Value;
|
|
91676
91702
|
if (obj.Guid) drawPicture.Guid=obj.Guid;
|
|
91703
|
+
if (obj.CacheData) drawPicture.CacheData=obj.CacheData; //缓存数据
|
|
91677
91704
|
|
|
91678
91705
|
if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(obj);
|
|
91679
91706
|
drawPicture.SetOption(obj);
|
|
@@ -92289,6 +92316,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
92289
92316
|
drawPicture.Status=10;
|
|
92290
92317
|
drawPicture.Frame=this.Frame.SubFrame[item.FrameID].Frame; //绑定框架坐标
|
|
92291
92318
|
drawPicture.Option=this.ChartDrawOption;
|
|
92319
|
+
drawPicture.HQChart=this;
|
|
92292
92320
|
|
|
92293
92321
|
if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(item);
|
|
92294
92322
|
if (drawPicture.Period!=this.Period)
|
|
@@ -100051,6 +100079,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100051
100079
|
drawPicture.Symbol=this.Symbol;
|
|
100052
100080
|
drawPicture.Period=888888888;
|
|
100053
100081
|
drawPicture.Option=this.ChartDrawOption;
|
|
100082
|
+
drawPicture.HQChart=this;
|
|
100054
100083
|
|
|
100055
100084
|
if (callback) drawPicture.FinishedCallback=callback; //完成通知上层回调
|
|
100056
100085
|
if (option) drawPicture.SetOption(option);
|
|
@@ -100081,8 +100110,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100081
100110
|
drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame; //绑定框架坐标
|
|
100082
100111
|
drawPicture.Symbol=this.Symbol;
|
|
100083
100112
|
drawPicture.Period=888888888;
|
|
100113
|
+
drawPicture.HQChart=this;
|
|
100084
100114
|
if (obj.Value) drawPicture.Value=obj.Value;
|
|
100085
100115
|
if (obj.Guid) drawPicture.Guid=obj.Guid;
|
|
100116
|
+
if (obj.CacheData) drawPicture.CacheData=obj.CacheData; //缓存数据
|
|
100086
100117
|
|
|
100087
100118
|
if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(obj);
|
|
100088
100119
|
drawPicture.SetOption(obj);
|
|
@@ -100128,6 +100159,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100128
100159
|
|
|
100129
100160
|
drawPicture.Canvas=this.Canvas;
|
|
100130
100161
|
drawPicture.Status=10;
|
|
100162
|
+
drawPicture.HQChart=this;
|
|
100131
100163
|
drawPicture.Frame=this.Frame.SubFrame[item.FrameID].Frame; //绑定框架坐标
|
|
100132
100164
|
if (drawPicture.ImportStorageData) drawPicture.ImportStorageData(item);
|
|
100133
100165
|
drawPicture.ResetXValue();
|
|
@@ -137175,17 +137207,6 @@ function GetBlackStyle()
|
|
|
137175
137207
|
PositionColor:"rgb(255,0,255)" //持仓
|
|
137176
137208
|
},
|
|
137177
137209
|
|
|
137178
|
-
DialogSearchIndex:
|
|
137179
|
-
{
|
|
137180
|
-
BGColor:'rgb(20,20,20)', //背景色
|
|
137181
|
-
BorderColor:'rgb(170,170,170)', //边框颜色
|
|
137182
|
-
TitleColor:'rgb(230,230,230)', //标题颜色
|
|
137183
|
-
|
|
137184
|
-
IndexNameColor:"rgb(210,210,210)",
|
|
137185
|
-
GroupNameColor:"rgb(210,210,210)",
|
|
137186
|
-
InputTextColor:"rgb(210,210,210)",
|
|
137187
|
-
},
|
|
137188
|
-
|
|
137189
137210
|
DialogPopKeyboard:
|
|
137190
137211
|
{
|
|
137191
137212
|
BGColor:'rgb(20,20,20)', //背景色
|
|
@@ -158234,7 +158255,7 @@ function JSDialogModifyDraw()
|
|
|
158234
158255
|
|
|
158235
158256
|
var spanDom=document.createElement("span");
|
|
158236
158257
|
spanDom.className="hqchart_drawtool icon-tuodong";
|
|
158237
|
-
spanDom.classList.add("
|
|
158258
|
+
spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Drag_Span");
|
|
158238
158259
|
drgDiv.appendChild(spanDom);
|
|
158239
158260
|
|
|
158240
158261
|
for(var i=0;i<this.AryButton.length;++i)
|
|
@@ -158260,7 +158281,7 @@ function JSDialogModifyDraw()
|
|
|
158260
158281
|
|
|
158261
158282
|
var spanDom=document.createElement("span");
|
|
158262
158283
|
spanDom.className=item.ClassName;
|
|
158263
|
-
spanDom.classList.add("
|
|
158284
|
+
spanDom.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
|
|
158264
158285
|
divItem.appendChild(spanDom);
|
|
158265
158286
|
|
|
158266
158287
|
|
|
@@ -158289,7 +158310,6 @@ function JSDialogModifyDraw()
|
|
|
158289
158310
|
break;
|
|
158290
158311
|
case JS_DRAWTOOL_MENU_ID.CMD_LOCK_DRAW_CHART_ID:
|
|
158291
158312
|
this.LockButton=data;
|
|
158292
|
-
this.LockButton.Span.style['color']="rgb(220,220,220)";
|
|
158293
158313
|
break;
|
|
158294
158314
|
case JS_DRAWTOOL_MENU_ID.CMD_ZOOM_FONT_ID:
|
|
158295
158315
|
this.FontZoomButton=data;
|
|
@@ -158494,7 +158514,23 @@ function JSDialogModifyDraw()
|
|
|
158494
158514
|
if (!this.ChartPicture || !this.HQChart) return;
|
|
158495
158515
|
this.ChartPicture.EnableMove=!this.ChartPicture.EnableMove;
|
|
158496
158516
|
|
|
158497
|
-
|
|
158517
|
+
return this.UpdateLockButtonStyle();
|
|
158518
|
+
}
|
|
158519
|
+
|
|
158520
|
+
this.UpdateLockButtonStyle=function()
|
|
158521
|
+
{
|
|
158522
|
+
if (!this.LockButton) return;
|
|
158523
|
+
|
|
158524
|
+
if (this.ChartPicture.EnableMove)
|
|
158525
|
+
{
|
|
158526
|
+
this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Button_Span");
|
|
158527
|
+
this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
|
|
158528
|
+
}
|
|
158529
|
+
else
|
|
158530
|
+
{
|
|
158531
|
+
this.LockButton.Span.classList.remove("UMyChart_Draw_Modify_Dialog_Unlock_Button_Span");
|
|
158532
|
+
this.LockButton.Span.classList.add("UMyChart_Draw_Modify_Dialog_Button_Span");
|
|
158533
|
+
}
|
|
158498
158534
|
}
|
|
158499
158535
|
|
|
158500
158536
|
this.ModifyBorderColor=function()
|
|
@@ -158679,8 +158715,7 @@ function JSDialogModifyDraw()
|
|
|
158679
158715
|
|
|
158680
158716
|
if (this.LockButton)
|
|
158681
158717
|
{
|
|
158682
|
-
|
|
158683
|
-
item.Span.style['color']=this.ChartPicture.EnableMove?"rgb(220,220,220)":"rgb(0,0,0)";
|
|
158718
|
+
this.UpdateLockButtonStyle();
|
|
158684
158719
|
}
|
|
158685
158720
|
|
|
158686
158721
|
if (this.FontZoomButton)
|
|
@@ -164266,14 +164301,6 @@ function JSDialogSearchIndex()
|
|
|
164266
164301
|
//{ WindowIndex:窗口索引, OpType:1=切换主图指标 2=添加叠加指标 3=新增指标窗口, Title: };
|
|
164267
164302
|
this.OpData=null;
|
|
164268
164303
|
|
|
164269
|
-
this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;
|
|
164270
|
-
this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
|
|
164271
|
-
this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
|
|
164272
|
-
this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
|
|
164273
|
-
this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
|
|
164274
|
-
this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
|
|
164275
|
-
this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
|
|
164276
|
-
|
|
164277
164304
|
this.MaxRowCount=30; //行
|
|
164278
164305
|
this.ColCount=3; //列
|
|
164279
164306
|
this.MaxGroupCount=20; //分类最多个数
|
|
@@ -164640,15 +164667,7 @@ function JSDialogSearchIndex()
|
|
|
164640
164667
|
|
|
164641
164668
|
this.UpdateStyle=function()
|
|
164642
164669
|
{
|
|
164643
|
-
|
|
164644
|
-
|
|
164645
|
-
if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
|
|
164646
|
-
if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
|
|
164647
|
-
|
|
164648
|
-
if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
|
|
164649
|
-
if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
|
|
164650
|
-
|
|
164651
|
-
if (this.InputTextColor) this.InputDom.style['color']=this.InputTextColor;
|
|
164670
|
+
|
|
164652
164671
|
};
|
|
164653
164672
|
|
|
164654
164673
|
this.ChangeGroup=function(groupID)
|
|
@@ -164683,7 +164702,6 @@ function JSDialogSearchIndex()
|
|
|
164683
164702
|
cell.Span.innerText=item.Group.Name;
|
|
164684
164703
|
cell.Span.dataset.groupid=item.Group.ID;
|
|
164685
164704
|
cell.Span.dataset.groupname=item.Group.Name;
|
|
164686
|
-
cell.Span.style.color=this.GroupNameColor;
|
|
164687
164705
|
|
|
164688
164706
|
if (cell.Div.style.display=="none") cell.Div.style.display="";
|
|
164689
164707
|
}
|
|
@@ -164709,7 +164727,6 @@ function JSDialogSearchIndex()
|
|
|
164709
164727
|
{
|
|
164710
164728
|
var indexItem=data.AryIndex[index];
|
|
164711
164729
|
cell.Span.innerText=indexItem.Name;
|
|
164712
|
-
cell.Span.style.color=this.IndexNameColor;
|
|
164713
164730
|
if (cell.Td.style.display=="none") cell.Td.style.display="";
|
|
164714
164731
|
cell.IndexItem=indexItem;
|
|
164715
164732
|
++index;
|
|
@@ -164798,17 +164815,7 @@ function JSDialogSearchIndex()
|
|
|
164798
164815
|
//配色修改
|
|
164799
164816
|
this.ReloadResource=function(option)
|
|
164800
164817
|
{
|
|
164801
|
-
|
|
164802
|
-
this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;
|
|
164803
|
-
this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;
|
|
164804
|
-
this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;
|
|
164805
|
-
this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;
|
|
164806
|
-
this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;
|
|
164807
|
-
this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;
|
|
164808
|
-
|
|
164809
|
-
if (!this.DivDialog) return;
|
|
164810
|
-
|
|
164811
|
-
this.UpdateStyle();
|
|
164818
|
+
|
|
164812
164819
|
}
|
|
164813
164820
|
|
|
164814
164821
|
}
|
|
@@ -165119,13 +165126,6 @@ function JSDialogModifyIndexParam()
|
|
|
165119
165126
|
this.TitleBox=null; //{ DivTitle, DivName, DivName }
|
|
165120
165127
|
this.Style=0; //样式 预留
|
|
165121
165128
|
|
|
165122
|
-
this.TitleColor=g_JSChartResource.DialogModifyIndexParam.TitleColor;
|
|
165123
|
-
this.TitleBGColor=g_JSChartResource.DialogModifyIndexParam.TitleBGColor;
|
|
165124
|
-
this.BGColor=g_JSChartResource.DialogModifyIndexParam.BGColor;
|
|
165125
|
-
this.BorderColor=g_JSChartResource.DialogModifyIndexParam.BorderColor;
|
|
165126
|
-
this.ParamNameColor=g_JSChartResource.DialogModifyIndexParam.ParamNameColor;
|
|
165127
|
-
this.InputTextColor=g_JSChartResource.DialogModifyIndexParam.InputTextColor;
|
|
165128
|
-
|
|
165129
165129
|
this.MaxRowCount=30; //行
|
|
165130
165130
|
|
|
165131
165131
|
this.HQChart=null;
|
|
@@ -165373,8 +165373,9 @@ function JSDialogModifyIndexParam()
|
|
|
165373
165373
|
input.className='UMyChart_ModifyIndexParam_Input';
|
|
165374
165374
|
input.type="number";
|
|
165375
165375
|
input.step=1;
|
|
165376
|
-
input.addEventListener("mouseup", (e)=>{ this.OnParamMouseUp(e)});
|
|
165377
|
-
input.addEventListener("keyup", (e)=>{ this.OnParamKeyUp(e)})
|
|
165376
|
+
//input.addEventListener("mouseup", (e)=>{ this.OnParamMouseUp(e)});
|
|
165377
|
+
//input.addEventListener("keyup", (e)=>{ this.OnParamKeyUp(e)} );
|
|
165378
|
+
input.addEventListener("input", (e)=>{ this.OnParamInput(e)} );
|
|
165378
165379
|
tdDom.appendChild(input);
|
|
165379
165380
|
rowItem.Input=input;
|
|
165380
165381
|
|
|
@@ -165383,13 +165384,7 @@ function JSDialogModifyIndexParam()
|
|
|
165383
165384
|
|
|
165384
165385
|
this.UpdateStyle=function()
|
|
165385
165386
|
{
|
|
165386
|
-
|
|
165387
|
-
|
|
165388
|
-
if (this.BGColor) this.DivDialog.style['background-color']=this.BGColor;
|
|
165389
|
-
if (this.BorderColor) this.DivDialog.style['border-color']=this.BorderColor;
|
|
165390
|
-
|
|
165391
|
-
if (this.TitleBGColor) this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;
|
|
165392
|
-
if (this.TitleColor) this.TitleBox.DivName.style['color']=this.TitleColor;
|
|
165387
|
+
|
|
165393
165388
|
};
|
|
165394
165389
|
|
|
165395
165390
|
this.UpdateParamTable=function(aryText)
|
|
@@ -165400,10 +165395,9 @@ function JSDialogModifyIndexParam()
|
|
|
165400
165395
|
var item=aryText[index];
|
|
165401
165396
|
var row=this.AryData[index];
|
|
165402
165397
|
row.SpanName.innerText=`${item.Name}: `;
|
|
165403
|
-
|
|
165398
|
+
|
|
165404
165399
|
|
|
165405
165400
|
row.Input.value=item.Value;
|
|
165406
|
-
row.Input.style.color=this.InputTextColor;
|
|
165407
165401
|
row.Input.dataset.paramid=item.Index;
|
|
165408
165402
|
|
|
165409
165403
|
if (row.Tr.style.display=="none") row.Tr.style.display="";
|
|
@@ -165510,6 +165504,7 @@ function JSDialogModifyIndexParam()
|
|
|
165510
165504
|
}
|
|
165511
165505
|
}
|
|
165512
165506
|
|
|
165507
|
+
/*
|
|
165513
165508
|
this.OnParamMouseUp=function(e)
|
|
165514
165509
|
{
|
|
165515
165510
|
var input=e.target;
|
|
@@ -165527,6 +165522,16 @@ function JSDialogModifyIndexParam()
|
|
|
165527
165522
|
|
|
165528
165523
|
this.ModifyParam(id, parseInt(value));
|
|
165529
165524
|
}
|
|
165525
|
+
*/
|
|
165526
|
+
|
|
165527
|
+
this.OnParamInput=function(e)
|
|
165528
|
+
{
|
|
165529
|
+
var input=e.target;
|
|
165530
|
+
var value=input.value;
|
|
165531
|
+
var id=input.dataset.paramid;
|
|
165532
|
+
|
|
165533
|
+
this.ModifyParam(id, parseInt(value));
|
|
165534
|
+
}
|
|
165530
165535
|
|
|
165531
165536
|
this.ModifyParam=function(id, value)
|
|
165532
165537
|
{
|
|
@@ -165804,7 +165809,7 @@ function HQChartScriptWorker()
|
|
|
165804
165809
|
|
|
165805
165810
|
|
|
165806
165811
|
|
|
165807
|
-
var HQCHART_VERSION="1.1.
|
|
165812
|
+
var HQCHART_VERSION="1.1.15151";
|
|
165808
165813
|
|
|
165809
165814
|
function PrintHQChartVersion()
|
|
165810
165815
|
{
|