hqchart 1.1.13160 → 1.1.13162
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
CHANGED
|
@@ -7273,7 +7273,7 @@ this.ChangeCoordinateType=function(obj){if(!this.Frame)return;if(!IFrameSplitOpe
|
|
|
7273
7273
|
{frame.Frame.YSplitOperator.CoordinateType=2;}else{return;}}else{if(obj.Type>=0&&obj.Type<=5)frame.YSplitOperator.CoordinateType=obj.Type;if(obj.IsReverse===true)frame.CoordinateType=1;else if(obj.IsReverse==false)frame.CoordinateType=0;}//请求缓存的最大最小值
|
|
7274
7274
|
frame.YMaxMin.Max=null;frame.YMaxMin.Min=null;this.UpdateFrameMaxMin();//调整坐标最大 最小值
|
|
7275
7275
|
this.Frame.SetSizeChage(true);this.Draw();};//设置指标窗口个数
|
|
7276
|
-
this.ChangeIndexWindowCount=function(count,option){var _this23=this;if(count<=0)return;if(this.Frame.SubFrame.length==count)return;this.Frame.RestoreIndexWindows();var currentLength=this.Frame.SubFrame.length;if(currentLength>count){var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_DELETE_FRAME);for(var i=currentLength-1;i>=count;--i){this.DeleteIndexPaint(i);this.Frame.SubFrame[i].Frame.ClearToolbar();if(event&&event.Callback){var sendData={SubFrame:this.Frame.SubFrame[i],WindowIndex:i};event.Callback(event,sendData,this);}}this.Frame.SubFrame.splice(count,currentLength-count);this.WindowIndex.splice(count,currentLength-count);//最后一个显示X轴坐标
|
|
7276
|
+
this.ChangeIndexWindowCount=function(count,option){var _this23=this;if(count<=0)return;if(this.Frame.SubFrame.length==count)return;this.Frame.RestoreIndexWindows();var currentLength=this.Frame.SubFrame.length;if(currentLength>count){var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_DELETE_FRAME);for(var i=currentLength-1;i>=count;--i){this.DeleteIndexPaint(i);this.Frame.SubFrame[i].Frame.ClearToolbar();if(event&&event.Callback){var sendData={SubFrame:this.Frame.SubFrame[i],WindowIndex:i};event.Callback(event,sendData,this);}}this.Frame.SubFrame.splice(count,currentLength-count);this.WindowIndex.splice(count,currentLength-count);this.TitlePaint.splice(count+1,currentLength-count);//最后一个显示X轴坐标
|
|
7277
7277
|
for(var i=0;i<this.Frame.SubFrame.length;++i){var item=this.Frame.SubFrame[i].Frame;if(i==this.Frame.SubFrame.length-1)item.XSplitOperator.ShowText=true;else item.XSplitOperator.ShowText=false;}this.Frame.SetSizeChage(true);this.ResetFrameXYSplit();this.UpdateFrameMaxMin();//调整坐标最大 最小值
|
|
7278
7278
|
this.Draw();}else{//创建新的指标窗口
|
|
7279
7279
|
var pixelRatio=GetDevicePixelRatio();for(var i=currentLength;i<count;++i){var subFrame=this.CreateSubFrameItem(i);subFrame.Frame.ChartBorder.TitleHeight*=pixelRatio;this.Frame.SubFrame[i]=subFrame;var titlePaint=new DynamicChartTitlePainting();titlePaint.Frame=this.Frame.SubFrame[i].Frame;titlePaint.Canvas=this.Canvas;titlePaint.LanguageID=this.LanguageID;titlePaint.GetEventCallback=function(id){return _this23.GetEventCallback(id);};titlePaint.SelectedChart=this.SelectedChart;this.TitlePaint[i+1]=titlePaint;}//最后一个显示X轴坐标
|
|
@@ -7801,7 +7801,7 @@ this.UpdateFrameMaxMin();//调整坐标最大 最小值
|
|
|
7801
7801
|
this.Draw();};this.ChangeIndex=function(windowIndex,indexName,option){if(this.Frame.SubFrame.length<3)return;if(option&&option.API)return this.ChangeAPIIndex(windowIndex,option);//查找系统指标
|
|
7802
7802
|
var scriptData=new JSIndexScript();var indexInfo=scriptData.Get(indexName);if(!indexInfo)return;if(windowIndex<2)windowIndex=2;if(windowIndex>=this.Frame.SubFrame.length)windowIndex=2;JSIndexScript.ModifyAttribute(indexInfo,option);return this.ChangeScriptIndex(windowIndex,indexInfo,option);};//设置指标窗口个数
|
|
7803
7803
|
this.ChangeIndexWindowCount=function(count){var _this32=this;if(count<2)return;//1,2个窗口固定的不能动
|
|
7804
|
-
if(this.Frame.SubFrame.length==count)return;var currentLength=this.Frame.SubFrame.length;if(currentLength>count){var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_DELETE_FRAME);for(var i=currentLength-1;i>=count;--i){this.DeleteIndexPaint(i);var item=this.Frame.SubFrame[i].Frame;if(item.ClearToolbar)item.ClearToolbar();if(event&&event.Callback){var sendData={SubFrame:this.Frame.SubFrame[i],WindowIndex:i};event.Callback(event,sendData,this);}}this.Frame.SubFrame.splice(count,currentLength-count);this.WindowIndex.splice(count,currentLength-count);}else{//创建新的指标窗口
|
|
7804
|
+
if(this.Frame.SubFrame.length==count)return;var currentLength=this.Frame.SubFrame.length;if(currentLength>count){var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_DELETE_FRAME);for(var i=currentLength-1;i>=count;--i){this.DeleteIndexPaint(i);var item=this.Frame.SubFrame[i].Frame;if(item.ClearToolbar)item.ClearToolbar();if(event&&event.Callback){var sendData={SubFrame:this.Frame.SubFrame[i],WindowIndex:i};event.Callback(event,sendData,this);}}this.Frame.SubFrame.splice(count,currentLength-count);this.WindowIndex.splice(count,currentLength-count);this.TitlePaint.splice(count+1,currentLength-count);}else{//创建新的指标窗口
|
|
7805
7805
|
var mainFrame=this.Frame.SubFrame[0].Frame;for(var i=currentLength;i<count;++i){var subFrame=this.CreateSubFrameItem(i,mainFrame);this.Frame.SubFrame[i]=subFrame;var titlePaint=new DynamicChartTitlePainting();titlePaint.Frame=this.Frame.SubFrame[i].Frame;titlePaint.Canvas=this.Canvas;titlePaint.LanguageID=this.LanguageID;titlePaint.GetEventCallback=function(id){return _this32.GetEventCallback(id);};titlePaint.SelectedChart=this.SelectedChart;this.TitlePaint[i+1]=titlePaint;}//创建指标
|
|
7806
7806
|
var indexName=["RSI","MACD","DMA","DMI","KDJ","WR"];var scriptData=new JSIndexScript();for(var i=currentLength;i<count;++i){var name=indexName[i%indexName.length];var indexInfo=scriptData.Get(name);this.WindowIndex[i]=new ScriptIndex(indexInfo.Name,indexInfo.Script,indexInfo.Args,indexInfo);//脚本执行
|
|
7807
7807
|
var bindData=this.SourceData;this.BindIndexData(i,bindData);//执行脚本
|
|
@@ -13104,7 +13104,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13104
13104
|
this.ExecuteScript(item,data);}this.Status=0;}};this.OnExecuteFinish=function(data,indexInfo,jsExectute,jobInfo){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT,JobInfo:jobInfo};postMessage(message);};this.OnExecuteError=function(error,indexInfo,jobData){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
13105
13105
|
* 版本信息输出
|
|
13106
13106
|
*
|
|
13107
|
-
*/var HQCHART_VERSION="1.1.
|
|
13107
|
+
*/var HQCHART_VERSION="1.1.13161";function PrintHQChartVersion(){var log='*************************************************************************************************************\n*\n* HQChart Ver: '+HQCHART_VERSION+' \n* \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n*************************************************************************************************************\n';console.log(log);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
13108
13108
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13109
13109
|
// BaseIndex:BaseIndex,
|
|
13110
13110
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -70346,6 +70346,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
70346
70346
|
|
|
70347
70347
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
70348
70348
|
this.WindowIndex.splice(count,currentLength-count);
|
|
70349
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
70349
70350
|
|
|
70350
70351
|
//最后一个显示X轴坐标
|
|
70351
70352
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -75869,6 +75870,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
75869
75870
|
|
|
75870
75871
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
75871
75872
|
this.WindowIndex.splice(count,currentLength-count);
|
|
75873
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
75872
75874
|
}
|
|
75873
75875
|
else
|
|
75874
75876
|
{
|
|
@@ -74238,6 +74238,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
74238
74238
|
|
|
74239
74239
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
74240
74240
|
this.WindowIndex.splice(count,currentLength-count);
|
|
74241
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
74241
74242
|
|
|
74242
74243
|
//最后一个显示X轴坐标
|
|
74243
74244
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -79761,6 +79762,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79761
79762
|
|
|
79762
79763
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
79763
79764
|
this.WindowIndex.splice(count,currentLength-count);
|
|
79765
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
79764
79766
|
}
|
|
79765
79767
|
else
|
|
79766
79768
|
{
|
|
@@ -132192,7 +132194,7 @@ function ScrollBarBGChart()
|
|
|
132192
132194
|
|
|
132193
132195
|
|
|
132194
132196
|
|
|
132195
|
-
var HQCHART_VERSION="1.1.
|
|
132197
|
+
var HQCHART_VERSION="1.1.13161";
|
|
132196
132198
|
|
|
132197
132199
|
function PrintHQChartVersion()
|
|
132198
132200
|
{
|
|
@@ -74282,6 +74282,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
74282
74282
|
|
|
74283
74283
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
74284
74284
|
this.WindowIndex.splice(count,currentLength-count);
|
|
74285
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
74285
74286
|
|
|
74286
74287
|
//最后一个显示X轴坐标
|
|
74287
74288
|
for(var i=0;i<this.Frame.SubFrame.length;++i)
|
|
@@ -79805,6 +79806,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
79805
79806
|
|
|
79806
79807
|
this.Frame.SubFrame.splice(count,currentLength-count);
|
|
79807
79808
|
this.WindowIndex.splice(count,currentLength-count);
|
|
79809
|
+
this.TitlePaint.splice(count+1,currentLength-count);
|
|
79808
79810
|
}
|
|
79809
79811
|
else
|
|
79810
79812
|
{
|
|
@@ -134756,7 +134758,7 @@ function HQChartScriptWorker()
|
|
|
134756
134758
|
|
|
134757
134759
|
|
|
134758
134760
|
|
|
134759
|
-
var HQCHART_VERSION="1.1.
|
|
134761
|
+
var HQCHART_VERSION="1.1.13161";
|
|
134760
134762
|
|
|
134761
134763
|
function PrintHQChartVersion()
|
|
134762
134764
|
{
|