hqchart 1.1.15176 → 1.1.15178
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
|
@@ -1529,7 +1529,7 @@ this.StartAnimation=function(option){if(this.JSChartContainer&&typeof this.JSCha
|
|
|
1529
1529
|
this.AddEventCallback=function(obj){if(this.JSChartContainer&&typeof this.JSChartContainer.AddEventCallback=='function'){JSConsole.Chart.Log('[JSChart:AddEventCallback] ',obj);this.JSChartContainer.AddEventCallback(obj);}};//设置语言 'EN', 'CN'
|
|
1530
1530
|
this.SetLanguage=function(language){if(this.JSChartContainer&&typeof this.JSChartContainer.SetLanguage=='function'){JSConsole.Chart.Log('[JSChart:SetLanguage] ',language);this.JSChartContainer.SetLanguage(language);}};//切换指标模板
|
|
1531
1531
|
this.ChangeIndexTemplate=function(option){if(this.JSChartContainer&&typeof this.JSChartContainer.ChangeIndexTemplate=='function'){JSConsole.Chart.Log('[JSChart:ChangeIndexTemplate] ',option);this.JSChartContainer.ChangeIndexTemplate(option);}};//画图工具
|
|
1532
|
-
this.SetChartDrawOption=function(option){if(this.JSChartContainer&&typeof this.JSChartContainer.SetChartDrawOption=='function'){JSConsole.Chart.Log('[JSChart:SetChartDrawOption] ',option);this.JSChartContainer.SetChartDrawOption(option);}};this.CreateChartDrawPicture=function(name,option){if(this.JSChartContainer&&typeof this.JSChartContainer.CreateChartDrawPicture=='function'){JSConsole.Chart.Log('[JSChart:CreateChartDrawPicture] ',name);this.JSChartContainer.CreateChartDrawPicture(name,option);}};this.AddChartDrawPicture=function(obj){if(this.JSChartContainer&&typeof this.JSChartContainer.AddChartDrawPicture=='function'){JSConsole.Chart.Log('[JSChart:AddChartDrawPicture] ',obj);return this.JSChartContainer.AddChartDrawPicture(obj);}};//删除画图工具
|
|
1532
|
+
this.SetChartDrawOption=function(option){if(this.JSChartContainer&&typeof this.JSChartContainer.SetChartDrawOption=='function'){JSConsole.Chart.Log('[JSChart:SetChartDrawOption] ',option);this.JSChartContainer.SetChartDrawOption(option);}};this.CreateChartDrawPicture=function(name,option){if(this.JSChartContainer&&typeof this.JSChartContainer.CreateChartDrawPicture=='function'){JSConsole.Chart.Log('[JSChart:CreateChartDrawPicture] ',name);this.JSChartContainer.CreateChartDrawPicture(name,option);}};this.AddChartDrawPicture=function(obj,option){if(this.JSChartContainer&&typeof this.JSChartContainer.AddChartDrawPicture=='function'){JSConsole.Chart.Log('[JSChart:AddChartDrawPicture] ',obj);return this.JSChartContainer.AddChartDrawPicture(obj,option);}};//删除画图工具
|
|
1533
1533
|
this.ClearChartDrawPicture=function(drawPicture,option){if(this.JSChartContainer&&typeof this.JSChartContainer.ClearChartDrawPicture=='function'){//JSConsole.Chart.Log('[JSChart:ClearChartDrawPicture] ', drawPicture);
|
|
1534
1534
|
this.JSChartContainer.ClearChartDrawPicture(drawPicture,option);}};//复制一个画图
|
|
1535
1535
|
this.PasteChartDrawPicture=function(data,frameID,option){if(this.JSChartContainer&&typeof this.JSChartContainer.PasteChartDrawPicture=='function'){JSConsole.Chart.Log('[JSChart:PasteChartDrawPicture] ',data,frameID,option);return this.JSChartContainer.PasteChartDrawPicture(data,frameID,option);}};//重新加载配置
|
|
@@ -8625,9 +8625,10 @@ this.CreateChartDrawPicture=function(name,option,callback){var drawPicture=null;
|
|
|
8625
8625
|
{if(IChartDrawPicture.MapIonFont.has(name)){var iconItem=IChartDrawPicture.MapIonFont.get(name);drawPicture=new ChartDrawPictureIconFont();drawPicture.FontOption.Family=iconItem.Family;drawPicture.Text=iconItem.Text;if(iconItem.Color)drawPicture.LineColor=iconItem.Color;}}if(!drawPicture)return false;drawPicture.Canvas=this.Canvas;drawPicture.Status=0;drawPicture.Symbol=this.Symbol;drawPicture.Period=this.Period;drawPicture.Right=this.Right;drawPicture.Option=this.ChartDrawOption;drawPicture.HQChart=this;if(callback)drawPicture.FinishedCallback=callback;//完成通知上层回调
|
|
8626
8626
|
if(option)drawPicture.SetOption(option);var self=this;drawPicture.Update=function()//更新回调函数
|
|
8627
8627
|
{self.DrawDynamicInfo();};drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};this.CurrentChartDrawPicture=drawPicture;//JSConsole.Chart.Log("[KLineChartContainer::CreateChartDrawPicture] ", name,this.CurrentChartDrawPicture);
|
|
8628
|
-
return true;};this.AddChartDrawPicture=function(obj){if(!obj)return null;if(obj.FrameID<0||obj.FrameID>=this.Frame.SubFrame.length)return null;var self=this;var item=IChartDrawPicture.GetDrawPictureByClassName(obj.ClassName);if(!item)return null;var drawPicture=item.Create();drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame;//绑定框架坐标
|
|
8628
|
+
return true;};this.AddChartDrawPicture=function(obj,option){if(!obj)return null;if(obj.FrameID<0||obj.FrameID>=this.Frame.SubFrame.length)return null;var self=this;var item=IChartDrawPicture.GetDrawPictureByClassName(obj.ClassName);if(!item)return null;var drawPicture=item.Create();drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame;//绑定框架坐标
|
|
8629
8629
|
drawPicture.Symbol=this.Symbol;drawPicture.Period=this.Period;drawPicture.Right=this.Right;drawPicture.Option=this.ChartDrawOption;drawPicture.HQChart=this;if(obj.Value)drawPicture.Value=obj.Value;if(obj.Guid)drawPicture.Guid=obj.Guid;if(obj.CacheData)drawPicture.CacheData=obj.CacheData;//缓存数据
|
|
8630
|
-
if(drawPicture.ImportStorageData)drawPicture.ImportStorageData(obj);drawPicture.SetOption(obj);if(obj.EnableUpdateXValue)drawPicture.UpdateXValue();drawPicture.ValueToPoint();drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};if(drawPicture.ClassName==='ChartDrawPictureText')drawPicture.IsInitialized=true;this.ChartDrawPicture.push(drawPicture);
|
|
8630
|
+
if(drawPicture.ImportStorageData)drawPicture.ImportStorageData(obj);drawPicture.SetOption(obj);if(obj.EnableUpdateXValue)drawPicture.UpdateXValue();drawPicture.ValueToPoint();drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};if(drawPicture.ClassName==='ChartDrawPictureText')drawPicture.IsInitialized=true;this.ChartDrawPicture.push(drawPicture);if(option&&option.Save===true)//存盘
|
|
8631
|
+
{if(this.ChartDrawStorage)this.ChartDrawStorage.SaveDrawData(drawPicture);}this.DrawDynamicInfo();return drawPicture;};this.PasteChartDrawPicture=function(data,frameID,option){if(!data||!data.ClassName)return null;if(frameID<0||frameID>=this.Frame.SubFrame.length)return null;var item=IChartDrawPicture.GetDrawPictureByClassName(data.ClassName);if(!item)return null;var drawPicture=item.Create();if(!drawPicture)return null;var self=this;drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.Frame=this.Frame.SubFrame[frameID].Frame;//绑定框架坐标
|
|
8631
8632
|
drawPicture.Symbol=this.Symbol;drawPicture.Period=this.Period;drawPicture.Right=this.Right;drawPicture.Option=this.ChartDrawOption;drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};if(drawPicture.SetOption)drawPicture.SetOption(data);this.RandomDrawPictureValue(drawPicture,data);drawPicture.PointToValue();if(drawPicture.ClassName==='ChartDrawPictureText')drawPicture.IsInitialized=true;this.ChartDrawPicture.push(drawPicture);//存盘
|
|
8632
8633
|
if(this.ChartDrawStorage)this.ChartDrawStorage.SaveDrawData(drawPicture);this.DrawDynamicInfo();return drawPicture;};//随机生成画图的点
|
|
8633
8634
|
this.RandomDrawPictureValue=function(chart,data){if(!IFrameSplitOperator.IsNonEmptyArray(data.Value))return;var kData=this.GetKLineChart();if(!kData||!kData.Data||!IFrameSplitOperator.IsNumber(kData.Data.DataOffset)||kData.Data.DataOffset<0)return null;if(!IFrameSplitOperator.IsNonEmptyArray(kData.Data.Data))return null;var aryKData=kData.Data.Data;var startIndex=kData.Data.DataOffset;var endIndex=kData.Data.DataOffset+kData.ChartFrame.XPointCount-1;if(endIndex>=aryKData.length)endIndex=aryKData.length-1;var frameHeight=chart.Frame.ChartBorder.GetHeight();var max=chart.Frame.HorizontalMax;var min=chart.Frame.HorizontalMin;var y=chart.Frame.ChartBorder.GetBottomEx()-frameHeight*data.YFristScale;var range={Max:5,Min:2};var xRandomOffset=Math.floor(Math.random()*(range.Max-range.Min+1))+range.Min;var xValue=data.Value[0].XIndex+xRandomOffset;var firstPoint=null;chart.Value=[];for(var i=0;i<data.Value.length;++i){var item=data.Value[i];chart.Value[i]={XValue:xValue+item.XOffset};chart.Point[i]={Y:y+item.YOffset,X:chart.Frame.GetXFromIndex(xValue+item.XOffset,false)};}};//xStep,yStep 移动的偏移量
|
|
@@ -9530,8 +9531,9 @@ this.Draw();};this.CreateChartDrawPicture=function(name,option,callback){var dra
|
|
|
9530
9531
|
{if(IChartDrawPicture.MapIonFont.has(name)){var iconItem=IChartDrawPicture.MapIonFont.get(name);drawPicture=new ChartDrawPictureIconFont();drawPicture.FontOption.Family=iconItem.Family;drawPicture.Text=iconItem.Text;if(iconItem.Color)drawPicture.LineColor=iconItem.Color;}}if(!drawPicture)return false;drawPicture.Canvas=this.Canvas;drawPicture.Status=0;drawPicture.Symbol=this.Symbol;drawPicture.Period=888888888;drawPicture.Option=this.ChartDrawOption;drawPicture.HQChart=this;if(callback)drawPicture.FinishedCallback=callback;//完成通知上层回调
|
|
9531
9532
|
if(option)drawPicture.SetOption(option);var self=this;drawPicture.Update=function()//更新回调函数
|
|
9532
9533
|
{self.DrawDynamicInfo();};drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};this.CurrentChartDrawPicture=drawPicture;JSConsole.Chart.Log("[MinuteChartContainer::CreateChartDrawPicture] ",name,this.CurrentChartDrawPicture);return true;};//手动添加画线
|
|
9533
|
-
this.AddChartDrawPicture=function(obj){if(!obj)return null;if(obj.FrameID<0||obj.FrameID>=this.Frame.SubFrame.length)return null;var self=this;var item=IChartDrawPicture.GetDrawPictureByClassName(obj.ClassName);if(!item)return null;var drawPicture=item.Create();drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame;//绑定框架坐标
|
|
9534
|
-
drawPicture.Symbol=this.Symbol;drawPicture.Period=888888888;drawPicture.HQChart=this;if(obj.Value)drawPicture.Value=obj.Value;if(obj.Guid)drawPicture.Guid=obj.Guid;if(drawPicture.ImportStorageData)drawPicture.ImportStorageData(obj);drawPicture.SetOption(obj);if(obj.EnableUpdateXValue)drawPicture.UpdateXValue();drawPicture.ValueToPoint();drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};this.ChartDrawPicture.push(drawPicture);if(
|
|
9534
|
+
this.AddChartDrawPicture=function(obj,option){if(!obj)return null;if(obj.FrameID<0||obj.FrameID>=this.Frame.SubFrame.length)return null;var self=this;var item=IChartDrawPicture.GetDrawPictureByClassName(obj.ClassName);if(!item)return null;var drawPicture=item.Create();drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.Frame=this.Frame.SubFrame[obj.FrameID].Frame;//绑定框架坐标
|
|
9535
|
+
drawPicture.Symbol=this.Symbol;drawPicture.Period=888888888;drawPicture.HQChart=this;if(obj.Value)drawPicture.Value=obj.Value;if(obj.Guid)drawPicture.Guid=obj.Guid;if(drawPicture.ImportStorageData)drawPicture.ImportStorageData(obj);drawPicture.SetOption(obj);if(obj.EnableUpdateXValue)drawPicture.UpdateXValue();drawPicture.ValueToPoint();drawPicture.GetActiveDrawPicture=function(){return self.GetActiveDrawPicture();};this.ChartDrawPicture.push(drawPicture);if(option&&option.Save)//存盘
|
|
9536
|
+
{if(this.ChartDrawStorage)this.ChartDrawStorage.SaveDrawData(drawPicture);}if(obj.Draw==true)this.DrawDynamicInfo();return drawPicture;};this.ReloadChartDrawPicture=function(){this.ChartDrawPicture=[];if(this.SelectChartDrawPicture)this.SelectChartDrawPicture.IsSelected=false;this.SelectChartDrawPicture=null;this.CurrentChartDrawPicture=null;this.MoveOnChartDrawPicture=null;if(this.ChartDrawStorage){this.ChartDrawStorageCache=this.ChartDrawStorage.GetDrawData({Symbol:this.Symbol,Period:888888888});}};this.CreateChartDrawPictureByStorage=function()//把缓存(this.ChartDrawStorageCache) 画图工具创建出来
|
|
9535
9537
|
{var _this43=this;if(!this.ChartDrawStorageCache||this.ChartDrawStorageCache.length<=0)return;var kData=this.GetKData();for(var i=0;i<this.ChartDrawStorageCache.length;++i){var item=this.ChartDrawStorageCache[i];if(item.FrameID<0||!this.Frame.SubFrame||this.Frame.SubFrame.length<item.FrameID)continue;var drawPicture=IChartDrawPicture.CreateChartDrawPicture(item);if(!drawPicture)continue;drawPicture.Canvas=this.Canvas;drawPicture.Status=10;drawPicture.HQChart=this;drawPicture.Frame=this.Frame.SubFrame[item.FrameID].Frame;//绑定框架坐标
|
|
9536
9538
|
if(drawPicture.ImportStorageData)drawPicture.ImportStorageData(item);drawPicture.ResetXValue();drawPicture.UpdateXValue();drawPicture.ValueToPoint();drawPicture.GetActiveDrawPicture=function(){return _this43.GetActiveDrawPicture();};this.ChartDrawPicture.push(drawPicture);}this.ChartDrawStorageCache=null;//清空缓存
|
|
9537
9539
|
};this.SetSizeChange=function(bChanged){this.Frame.SetSizeChage(bChanged);for(var i in this.ExtendChartPaint){var item=this.ExtendChartPaint[i];item.SizeChange=bChanged;}};this.SetSizeChage=this.SetSizeChange;//根据X坐标获取数据索引
|
|
@@ -15632,7 +15634,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
15632
15634
|
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);};}/********************************************************************************
|
|
15633
15635
|
* 版本信息输出
|
|
15634
15636
|
*
|
|
15635
|
-
*/var HQCHART_VERSION="1.1.
|
|
15637
|
+
*/var HQCHART_VERSION="1.1.15177";function PrintHQChartVersion(){var logo='\n\n*************************************************************************************************************************************************************************** \n* \n* :%@@- \n* :@@@@- \n* =@@@@ :#@@@ .:+#@@@#=: :=*@@@@@@#+-. *@@@@. \n* :@@@@@ .@@@@@ .#@@@@@@@@@@@- +@@@@@@@@@@@@@+ @@@@@ -%@@* \n* +@@@@% #@@@@# *@@@@@@@@@@@@@@%. =@@@@@@@@@@@@@@@- @@@@@ -@@@@+ \n* %@@@@* @@@@@+ .%@@@@@@@@@@@@@@@@%: #@@@@@@@@@@@@@@@% @@@@# *@@@@= \n* @@@@@= @@@@@- .%@@@@@@@*++*%@@@@@@% .%@@@@@@@%*+==+**= -@@@@+ #@@@@- \n* @@@@@. @@@@@. #@@@@@%= =@@@@@@* %@@@@@@#: *@@@@- :::. .-+*###+: ::: .+##+: -%%@@@@@%%%% \n* .@@@@@ .@@@@@. +@@@@@% .@@@@@@ *@@@@@@: %@@@@: +@@@@@%. :%@@@@@@@@@@: *@@@ :@@@@@* @@@@@@@@@@@@ \n* :@@@@@ :@@@@@ @@@@@% :@@@@@+ @@@@@@: %@@@@-@@@@@@@@@. @@@@@@@@@@@@@. :@@@%-@@@@@@.:@@@@@@@@@@@# \n* -@@@@% -@@@@@ =@@@@@. %@@@@% %@@@@@- %@@@@@@@@@@@@@@* %@@@@@@@@@@@@+ -@@@@@@@@@@# -@@@@@@@@@@@. \n* +@@@@%=========#@@@@% @@@@@# :@@@@@ .@@@@@% @@@@@@@@%@@@@@@@ -%+:. .#@@@@* +@@@@@@@%%@. .::+@@@@#:: \n* #@@@@@@@@@@@@@@@@@@@# .@@@@@ .@@@@@ :@@@@@. @@@@@@#. #@@@@@. -@@@@* #@@@@@@: *@@@@+ \n* %@@@@@@@@@@@@@@@@@@@+ :@@@@@ .@@@@@ -@@@@@ @@@@@+ @@@@@. :@@@@* @@@@@% #@@@@- \n* @@@@@@@@@@@@@@@@@@@@: :@@@@% :@@@@@ +@@@@% -@@@@+ @@@@@ -@@@@+ @@@@@. @@@@@. \n* .@@@@@@@@@@@@@@@@@@@@ :@@@@% -@@@@% *@@@@% #@@@@. @@@@@ .=*#%%%@@@@@= :@@@@# @@@@@. \n* -@@@@@:::::::::=@@@@@ :@@@@@ @@@@@* +@@@@% @@@@@ @@@@% -#@@@@@@@@@@@@: -@@@@* @@@@@ \n* =@@@@% =@@@@% .@@@@@ :@@@@@. -@@@@% @@@@@ .@@@@* +@@@@@@@@@@@@@@. =@@@@+ .@@@@@ \n* +@@@@# +@@@@# @@@@@# %@@@@% :@@@@@ .@@@@% =@@@@= -@@@@@*-:..%@@@@ +@@@@= :@@@@# \n* *@@@@* *@@@@* +@@@@@: #@@@@@+ .@@@@@@ :@@@@% *@@@@- @@@@@. @@@@% #@@@@: =@@@@+ \n* %@@@@= %@@@@+ @@@@@@- .%@@@@@# #@@@@@# :@@@@% #@@@@: @@@@% @@@@* %@@@@. #@@@@- \n* @@@@@- @@@@@= =@@@@@@#=...-*@@@@@@@: @@@@@@%=. :+**. :@@@@* %@@@@. .@@@@* *@@@@= @@@@@ %@@@@+ \n* .@@@@@: .@@@@@: *@@@@@@@@@@@@@@@@@@@# =@@@@@@@@%%%@@@@@@ +@@@@- @@@@@ .@@@@@: :%@@@@@- .@@@@% %@@@@@*+- \n* :@@@@@ :@@@@@ +@@@@@@@@@@@@@@@@@@@# =@@@@@@@@@@@@@@@@% %@@@@ @@@@@ @@@@@@@@@@@@@@@: -@@@@* *@@@@@@@@- \n* =@@@@@ -@@@@@ :@@@@@@@@@@@@@@@@@@@# :@@@@@@@@@@@@@@@% @@@@@ %@@@% #@@@@@@@@@#@@@@. +@@@@- .@@@@@@@@# \n* *@@@@# =@@@@% :#@@@@@@@#: :@@@@@= =@@@@@@@@@@@+. @@@@@ :@@@+ *@@@@@@@- %@@@ *@@@= =@@@@@@@* \n* =++++- -++++= .:::. .=*+: :-=+++=:. ****= .=+. .-++=: :+++ -+=: .-=+=:. \n* \n* \n* HQChart \n* Ver: '+HQCHART_VERSION+' \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n************************************************************************************************************************************************************************** \n ';console.log(logo);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
15636
15638
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
15637
15639
|
// BaseIndex:BaseIndex,
|
|
15638
15640
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -2328,12 +2328,12 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
|
-
this.AddChartDrawPicture=function(obj)
|
|
2331
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
2332
2332
|
{
|
|
2333
2333
|
if(this.JSChartContainer && typeof(this.JSChartContainer.AddChartDrawPicture)=='function')
|
|
2334
2334
|
{
|
|
2335
2335
|
JSConsole.Chart.Log('[JSChart:AddChartDrawPicture] ', obj);
|
|
2336
|
-
return this.JSChartContainer.AddChartDrawPicture(obj);
|
|
2336
|
+
return this.JSChartContainer.AddChartDrawPicture(obj, option);
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
@@ -87626,7 +87626,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
87626
87626
|
return true;
|
|
87627
87627
|
}
|
|
87628
87628
|
|
|
87629
|
-
this.AddChartDrawPicture=function(obj)
|
|
87629
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
87630
87630
|
{
|
|
87631
87631
|
if (!obj) return null;
|
|
87632
87632
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -87658,6 +87658,11 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
87658
87658
|
if (drawPicture.ClassName==='ChartDrawPictureText') drawPicture.IsInitialized=true;
|
|
87659
87659
|
this.ChartDrawPicture.push(drawPicture);
|
|
87660
87660
|
|
|
87661
|
+
if (option && option.Save===true) //存盘
|
|
87662
|
+
{
|
|
87663
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
87664
|
+
}
|
|
87665
|
+
|
|
87661
87666
|
this.DrawDynamicInfo();
|
|
87662
87667
|
|
|
87663
87668
|
return drawPicture;
|
|
@@ -96040,7 +96045,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96040
96045
|
}
|
|
96041
96046
|
|
|
96042
96047
|
//手动添加画线
|
|
96043
|
-
this.AddChartDrawPicture=function(obj)
|
|
96048
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
96044
96049
|
{
|
|
96045
96050
|
if (!obj) return null;
|
|
96046
96051
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -96069,6 +96074,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96069
96074
|
|
|
96070
96075
|
this.ChartDrawPicture.push(drawPicture);
|
|
96071
96076
|
|
|
96077
|
+
if (option && option.Save) //存盘
|
|
96078
|
+
{
|
|
96079
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
96080
|
+
}
|
|
96081
|
+
|
|
96072
96082
|
if (obj.Draw==true) this.DrawDynamicInfo();
|
|
96073
96083
|
|
|
96074
96084
|
return drawPicture;
|
|
@@ -6424,12 +6424,12 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
6424
6424
|
}
|
|
6425
6425
|
}
|
|
6426
6426
|
|
|
6427
|
-
this.AddChartDrawPicture=function(obj)
|
|
6427
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
6428
6428
|
{
|
|
6429
6429
|
if(this.JSChartContainer && typeof(this.JSChartContainer.AddChartDrawPicture)=='function')
|
|
6430
6430
|
{
|
|
6431
6431
|
JSConsole.Chart.Log('[JSChart:AddChartDrawPicture] ', obj);
|
|
6432
|
-
return this.JSChartContainer.AddChartDrawPicture(obj);
|
|
6432
|
+
return this.JSChartContainer.AddChartDrawPicture(obj, option);
|
|
6433
6433
|
}
|
|
6434
6434
|
}
|
|
6435
6435
|
|
|
@@ -91722,7 +91722,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91722
91722
|
return true;
|
|
91723
91723
|
}
|
|
91724
91724
|
|
|
91725
|
-
this.AddChartDrawPicture=function(obj)
|
|
91725
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
91726
91726
|
{
|
|
91727
91727
|
if (!obj) return null;
|
|
91728
91728
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -91754,6 +91754,11 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91754
91754
|
if (drawPicture.ClassName==='ChartDrawPictureText') drawPicture.IsInitialized=true;
|
|
91755
91755
|
this.ChartDrawPicture.push(drawPicture);
|
|
91756
91756
|
|
|
91757
|
+
if (option && option.Save===true) //存盘
|
|
91758
|
+
{
|
|
91759
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
91760
|
+
}
|
|
91761
|
+
|
|
91757
91762
|
this.DrawDynamicInfo();
|
|
91758
91763
|
|
|
91759
91764
|
return drawPicture;
|
|
@@ -100136,7 +100141,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100136
100141
|
}
|
|
100137
100142
|
|
|
100138
100143
|
//手动添加画线
|
|
100139
|
-
this.AddChartDrawPicture=function(obj)
|
|
100144
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
100140
100145
|
{
|
|
100141
100146
|
if (!obj) return null;
|
|
100142
100147
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -100165,6 +100170,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100165
100170
|
|
|
100166
100171
|
this.ChartDrawPicture.push(drawPicture);
|
|
100167
100172
|
|
|
100173
|
+
if (option && option.Save) //存盘
|
|
100174
|
+
{
|
|
100175
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
100176
|
+
}
|
|
100177
|
+
|
|
100168
100178
|
if (obj.Draw==true) this.DrawDynamicInfo();
|
|
100169
100179
|
|
|
100170
100180
|
return drawPicture;
|
|
@@ -154129,7 +154139,7 @@ function ScrollBarBGChart()
|
|
|
154129
154139
|
|
|
154130
154140
|
|
|
154131
154141
|
|
|
154132
|
-
var HQCHART_VERSION="1.1.
|
|
154142
|
+
var HQCHART_VERSION="1.1.15177";
|
|
154133
154143
|
|
|
154134
154144
|
function PrintHQChartVersion()
|
|
154135
154145
|
{
|
|
@@ -6468,12 +6468,12 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
6468
6468
|
}
|
|
6469
6469
|
}
|
|
6470
6470
|
|
|
6471
|
-
this.AddChartDrawPicture=function(obj)
|
|
6471
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
6472
6472
|
{
|
|
6473
6473
|
if(this.JSChartContainer && typeof(this.JSChartContainer.AddChartDrawPicture)=='function')
|
|
6474
6474
|
{
|
|
6475
6475
|
JSConsole.Chart.Log('[JSChart:AddChartDrawPicture] ', obj);
|
|
6476
|
-
return this.JSChartContainer.AddChartDrawPicture(obj);
|
|
6476
|
+
return this.JSChartContainer.AddChartDrawPicture(obj, option);
|
|
6477
6477
|
}
|
|
6478
6478
|
}
|
|
6479
6479
|
|
|
@@ -91766,7 +91766,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91766
91766
|
return true;
|
|
91767
91767
|
}
|
|
91768
91768
|
|
|
91769
|
-
this.AddChartDrawPicture=function(obj)
|
|
91769
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
91770
91770
|
{
|
|
91771
91771
|
if (!obj) return null;
|
|
91772
91772
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -91798,6 +91798,11 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
91798
91798
|
if (drawPicture.ClassName==='ChartDrawPictureText') drawPicture.IsInitialized=true;
|
|
91799
91799
|
this.ChartDrawPicture.push(drawPicture);
|
|
91800
91800
|
|
|
91801
|
+
if (option && option.Save===true) //存盘
|
|
91802
|
+
{
|
|
91803
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
91804
|
+
}
|
|
91805
|
+
|
|
91801
91806
|
this.DrawDynamicInfo();
|
|
91802
91807
|
|
|
91803
91808
|
return drawPicture;
|
|
@@ -100180,7 +100185,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100180
100185
|
}
|
|
100181
100186
|
|
|
100182
100187
|
//手动添加画线
|
|
100183
|
-
this.AddChartDrawPicture=function(obj)
|
|
100188
|
+
this.AddChartDrawPicture=function(obj, option)
|
|
100184
100189
|
{
|
|
100185
100190
|
if (!obj) return null;
|
|
100186
100191
|
if (obj.FrameID<0 || obj.FrameID>=this.Frame.SubFrame.length) return null;
|
|
@@ -100209,6 +100214,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
100209
100214
|
|
|
100210
100215
|
this.ChartDrawPicture.push(drawPicture);
|
|
100211
100216
|
|
|
100217
|
+
if (option && option.Save) //存盘
|
|
100218
|
+
{
|
|
100219
|
+
if (this.ChartDrawStorage) this.ChartDrawStorage.SaveDrawData(drawPicture);
|
|
100220
|
+
}
|
|
100221
|
+
|
|
100212
100222
|
if (obj.Draw==true) this.DrawDynamicInfo();
|
|
100213
100223
|
|
|
100214
100224
|
return drawPicture;
|
|
@@ -166142,7 +166152,7 @@ function HQChartScriptWorker()
|
|
|
166142
166152
|
|
|
166143
166153
|
|
|
166144
166154
|
|
|
166145
|
-
var HQCHART_VERSION="1.1.
|
|
166155
|
+
var HQCHART_VERSION="1.1.15177";
|
|
166146
166156
|
|
|
166147
166157
|
function PrintHQChartVersion()
|
|
166148
166158
|
{
|