hqchart 1.1.13220 → 1.1.13227
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 +4 -4
- package/package.json +1 -1
- package/src/jscommon/umychart.js +13 -5
- package/src/jscommon/umychart.resource/font/iconfont.css +7 -3
- package/src/jscommon/umychart.resource/font/iconfont.ttf +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff +0 -0
- package/src/jscommon/umychart.resource/font/iconfont.woff2 +0 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +14 -6
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +14 -6
package/lib/umychart.vue.js
CHANGED
|
@@ -6022,9 +6022,9 @@ this.Super_ExportStorageData=this.ExportStorageData;//this.Label; //{Tex
|
|
|
6022
6022
|
this.LineWidth=1;this.Precision=2;//小数位数
|
|
6023
6023
|
this.ValueTextColor='rgb(250,250,250)';this.IsShowCorssCursor=true;//画的时候是否显示十字光标
|
|
6024
6024
|
this.GetLabelCallback;//绘制标题回调函数
|
|
6025
|
-
this.PointCount=1;this.ClassName='ChartDrawHLine';this.Font=14*GetDevicePixelRatio()+"px 微软雅黑";this.TextFont=12*GetDevicePixelRatio()+"px 微软雅黑";this.RightSpaceWidth=50;this.ButtonPosition=0;//按钮位置, 0=价格后面, 1=价格上面
|
|
6025
|
+
this.PointCount=1;this.ClassName='ChartDrawHLine';this.Font=14*GetDevicePixelRatio()+"px 微软雅黑";this.TextFont=12*GetDevicePixelRatio()+"px 微软雅黑";this.RightSpaceWidth=50;this.ButtonPosition=0;//按钮位置, 0=价格后面, 1=价格上面 2=价格上面 左对齐
|
|
6026
6026
|
this.ButtonBGColor='rgb(190,190,190)';this.ButtonSpace=3;this.TextMargin={Left:0,Right:0};this.Button={CloseIcon:{Text:'\uE62B',Color:'rgb(255,255,255)',Family:"iconfont",Size:16,ID:JSCHART_BUTTON_ID.DRAW_PICTURE_DELETE,TooltipText:null,Margin:{Left:2,Right:2}},SettingIcon:{Text:'\uE623',Color:'rgb(255,255,255)',Family:"iconfont",Size:16,ID:JSCHART_BUTTON_ID.DRAW_PICTURE_SETTING,TooltipText:null,Margin:{Left:2,Right:2}//修改ID, Text , TooltipText 可以外部定制按钮
|
|
6027
|
-
}};this.CustomButton=[];//自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null }
|
|
6027
|
+
}};this.CustomButton=[];//自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null, Data:null }
|
|
6028
6028
|
this.AryShowButton=[];//需要显示的按钮 { Data:, Width }
|
|
6029
6029
|
this.AryButton=[];this.ExtendData;//扩展数据
|
|
6030
6030
|
this.ShowPriceTextConfig={IsShow:[false,false,true],//[0]=left内 [1]=right内 [2]=right外
|
|
@@ -6051,7 +6051,7 @@ if(labInfo.BGColor){this.Canvas.fillStyle=labInfo.BGColor;var rtTop=y-labSize.He
|
|
|
6051
6051
|
if(labInfo.BGColor){this.Canvas.fillStyle=labInfo.BGColor;var rtTop=drawTop;this.Canvas.fillRect(ToFixedRect(drawLeft),ToFixedRect(rtTop),ToFixedRect(labSize.Width),ToFixedRect(labSize.Height));}var yText=drawTop+1+lineSpace;this.Canvas.textBaseline="top";for(var i=0;i<labInfo.AryText.length;++i){var item=labInfo.AryText[i];if(item.Name){this.Canvas.textAlign="left";this.Canvas.fillStyle=item.NameColor;this.Canvas.fillText(item.Name,drawLeft+1,yText+1);}if(item.Text){this.Canvas.textAlign="right";this.Canvas.fillStyle=item.TextColor;this.Canvas.fillText(item.Text,drawRight-1,yText+1);}yText+=labSize.LineHeight+lineSpace;}};this.DrawCustomHLine=function(labInfo,yLine){if(!labInfo)return;if(!IFrameSplitOperator.IsNonEmptyArray(labInfo.AryLine))return;var left=this.Frame.ChartBorder.GetLeft();var right=this.Frame.ChartBorder.GetRight();var pixelRatio=GetDevicePixelRatio();var yMax=yLine,yMin=yLine;for(var i=0;i<labInfo.AryLine.length;++i){var item=labInfo.AryLine[i];if(!IFrameSplitOperator.IsNumber(item.Value))continue;if(item.Width<0)continue;var y=this.Frame.GetYFromData(item.Value);var yFixed=ToFixedPoint(y);var xRight=right;if(IFrameSplitOperator.IsPlusNumber(item.Width)){if(item.Width<1)xRight=left+item.Width*(right-left);//0.3 百分比
|
|
6052
6052
|
else xRight=left+item.Width*pixelRatio;//>1 实际数值就是长度
|
|
6053
6053
|
}if(item.Color)this.Canvas.strokeStyle=item.Color;else this.Canvas.strokeStyle=this.LineColor;this.Canvas.beginPath();this.Canvas.moveTo(left,yFixed);this.Canvas.lineTo(xRight,yFixed);this.Canvas.stroke();if(yMax<yFixed)yMax=yFixed;if(yMin>yFixed)yMin=yFixed;}if(yMax!=yMin&&labInfo.VLine){var item=labInfo.VLine;var x=left+20*pixelRatio;if(IFrameSplitOperator.IsNumber(item.XOffset))x=left+item.XOffset*pixelRatio;x=ToFixedPoint(x);if(item.Color)this.Canvas.strokeStyle=item.Color;else this.Canvas.strokeStyle=this.LineColor;this.Canvas.beginPath();this.Canvas.moveTo(x,yMax);this.Canvas.lineTo(x,yMin);this.Canvas.stroke();}};this.DrawValueText=function(y,rtDraw,labInfo){var left=this.Frame.ChartBorder.GetLeft();var right=this.Frame.ChartBorder.GetRight();if(this.RightSpaceWidth>0){this.Canvas.strokeStyle=this.LineColor;this.Canvas.beginPath();this.Canvas.moveTo(right,ToFixedPoint(y));this.Canvas.lineTo(right+this.RightSpaceWidth,ToFixedPoint(y));this.Canvas.stroke();}var yValue=this.Frame.GetYData(y);var strValue=yValue.toFixed(this.Precision);if(labInfo&&labInfo.PriceSuffixText)strValue+=labInfo.PriceSuffixText;this.Canvas.fillStyle=this.LineColor;this.Canvas.font=this.Font;var textWidth=this.Canvas.measureText(strValue).width;var lineHeight=this.GetFontHeight();var rtBG={Left:right+this.RightSpaceWidth,Top:y-lineHeight/2,Width:textWidth+4,Height:lineHeight};//rtBG.Right=rtBG.Left+rtBG.Width;
|
|
6054
|
-
rtBG.Bottom=rtBG.Top+rtBG.Height;rtBG.Width+=this.TextMargin.Left+this.TextMargin.Right;rtBG.Right=rtBG.Left+rtBG.Width;var xText=rtBG.Left+this.TextMargin.Left+2;if(this.ButtonPosition==1){this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width+this.ButtonBGWidth),ToFixedRect(rtBG.Height));}else{this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width),ToFixedRect(rtBG.Height));}this.Canvas.fillStyle=this.ValueTextColor;this.Canvas.textAlign="left";this.Canvas.textBaseline="middle";this.Canvas.fillText(strValue,xText,y);rtDraw.Left=rtBG.Left;rtDraw.Top=rtBG.Top;rtDraw.Bottom=rtBG.Bottom;rtDraw.Right=rtBG.Right;this.DrawButton(rtBG.Top,rtBG.Right,lineHeight,rtDraw);};this.DrawPriceText=function(text,ptStart,ptEnd,position){if(position!=1&&position!=0)return;var font=this.ShowPriceTextConfig.Font[position];this.Canvas.fillStyle=this.LineColor;this.Canvas.font=font;var textWidth=this.Canvas.measureText(text).width;var lineHeight=this.GetFontHeight();var rtBG=null;if(position==1){var rtBG={Left:ptStart.X,Top:ptStart.Y-lineHeight/2,Width:textWidth+4,Height:lineHeight};rtBG.Right=rtBG.Left+rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;}else if(position==0){var rtBG={Right:ptEnd.X,Top:ptEnd.Y-lineHeight/2,Width:textWidth+4,Height:lineHeight};rtBG.Left=rtBG.Right-rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;}this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width+this.ButtonBGWidth),ToFixedRect(rtBG.Height));this.Canvas.fillStyle=this.ValueTextColor;this.Canvas.textAlign="left";this.Canvas.textBaseline="middle";this.Canvas.fillText(text,rtBG.Left+2,ptStart.Y);};this.CalculateButtonSize=function(){var pixelRatio=GetDevicePixelRatio();if(!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton))return;var totalWidth=0;for(var i=0;i<this.AryShowButton.length;++i){var item=this.AryShowButton[i];var icon=item.Data;var font=icon.Size*pixelRatio+'px '+icon.Family;this.Canvas.font=font;item.Width=this.Canvas.measureText(icon.Text).width+2;if(icon.Margin){var margin=icon.Margin;if(IFrameSplitOperator.IsNumber(margin.Left))item.Width+=margin.Left;if(IFrameSplitOperator.IsNumber(margin.Right))item.Width+=margin.Right;}totalWidth+=item.Width;}this.ButtonBGWidth=totalWidth;};this.DrawButton=function(drawTop,drawLeft,drawHeight,rtDraw){if(!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton))return;if(this.ButtonPosition==1)drawTop-=drawHeight;this.Canvas.fillStyle=this.LineColor;var left=drawLeft;var rtBG={Left:drawLeft,Top:drawTop,Width:this.ButtonBGWidth,Height:drawHeight};rtBG.Right=rtBG.Left+rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;this.Canvas.fillStyle=this.ButtonBGColor;this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width),ToFixedRect(rtBG.Height));var pixelRatio=GetDevicePixelRatio();for(var i=0;i<this.AryShowButton.length;++i){var item=this.AryShowButton[i];var icon=item.Data;var rtButton={Left:left,Top:drawTop,Width:item.Width,Height:drawHeight};rtButton.Right=rtButton.Left+rtButton.Width;rtButton.Bottom=rtButton.Top+rtButton.Height;var yCenter=rtButton.Top+rtButton.Height/2;var xCenter=rtButton.Left+rtButton.Width/2;var font=icon.Size*pixelRatio+'px '+icon.Family;this.Canvas.font=font;this.Canvas.textAlign="center";this.Canvas.textBaseline="middle";this.Canvas.fillStyle=icon.Color;this.Canvas.fillText(icon.Text,xCenter,yCenter);this.AryButton.push({Rect:rtButton,ID:icon.ID,TooltipText:icon.TooltipText});left=rtButton.Right;}};this.PtInButtons=function(x,y){for(var i=0;i<this.AryButton.length;++i){var item=this.AryButton[i];if(!item.Rect)continue;var rect=item.Rect;this.Canvas.beginPath();this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);if(this.Canvas.isPointInPath(x,y)){return{ID:item.ID,Rect:rect};}}return null;};}//趋势线
|
|
6054
|
+
rtBG.Bottom=rtBG.Top+rtBG.Height;rtBG.Width+=this.TextMargin.Left+this.TextMargin.Right;rtBG.Right=rtBG.Left+rtBG.Width;var xText=rtBG.Left+this.TextMargin.Left+2;if(this.ButtonPosition==1){this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width+this.ButtonBGWidth),ToFixedRect(rtBG.Height));}else{this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width),ToFixedRect(rtBG.Height));}this.Canvas.fillStyle=this.ValueTextColor;this.Canvas.textAlign="left";this.Canvas.textBaseline="middle";this.Canvas.fillText(strValue,xText,y);rtDraw.Left=rtBG.Left;rtDraw.Top=rtBG.Top;rtDraw.Bottom=rtBG.Bottom;rtDraw.Right=rtBG.Right;this.DrawButton(rtBG.Top,rtBG.Right,lineHeight,rtDraw);};this.DrawPriceText=function(text,ptStart,ptEnd,position){if(position!=1&&position!=0)return;var font=this.ShowPriceTextConfig.Font[position];this.Canvas.fillStyle=this.LineColor;this.Canvas.font=font;var textWidth=this.Canvas.measureText(text).width;var lineHeight=this.GetFontHeight();var rtBG=null;if(position==1){var rtBG={Left:ptStart.X,Top:ptStart.Y-lineHeight/2,Width:textWidth+4,Height:lineHeight};rtBG.Right=rtBG.Left+rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;}else if(position==0){var rtBG={Right:ptEnd.X,Top:ptEnd.Y-lineHeight/2,Width:textWidth+4,Height:lineHeight};rtBG.Left=rtBG.Right-rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;}this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width+this.ButtonBGWidth),ToFixedRect(rtBG.Height));this.Canvas.fillStyle=this.ValueTextColor;this.Canvas.textAlign="left";this.Canvas.textBaseline="middle";this.Canvas.fillText(text,rtBG.Left+2,ptStart.Y);};this.CalculateButtonSize=function(){var pixelRatio=GetDevicePixelRatio();if(!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton))return;var totalWidth=0;for(var i=0;i<this.AryShowButton.length;++i){var item=this.AryShowButton[i];var icon=item.Data;var font=icon.Size*pixelRatio+'px '+icon.Family;this.Canvas.font=font;item.Width=this.Canvas.measureText(icon.Text).width+2;if(icon.Margin){var margin=icon.Margin;if(IFrameSplitOperator.IsNumber(margin.Left))item.Width+=margin.Left;if(IFrameSplitOperator.IsNumber(margin.Right))item.Width+=margin.Right;}totalWidth+=item.Width;}this.ButtonBGWidth=totalWidth;};this.DrawButton=function(drawTop,drawLeft,drawHeight,rtDraw){if(!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton))return;if(this.ButtonPosition==1){drawTop-=drawHeight;}else if(this.ButtonPosition==2){drawTop-=drawHeight;drawLeft=rtDraw.Left;}this.Canvas.fillStyle=this.LineColor;var left=drawLeft;var rtBG={Left:drawLeft,Top:drawTop,Width:this.ButtonBGWidth,Height:drawHeight};rtBG.Right=rtBG.Left+rtBG.Width;rtBG.Bottom=rtBG.Top+rtBG.Height;this.Canvas.fillStyle=this.ButtonBGColor;this.Canvas.fillRect(ToFixedRect(rtBG.Left),ToFixedRect(rtBG.Top),ToFixedRect(rtBG.Width),ToFixedRect(rtBG.Height));var pixelRatio=GetDevicePixelRatio();for(var i=0;i<this.AryShowButton.length;++i){var item=this.AryShowButton[i];var icon=item.Data;var rtButton={Left:left,Top:drawTop,Width:item.Width,Height:drawHeight};rtButton.Right=rtButton.Left+rtButton.Width;rtButton.Bottom=rtButton.Top+rtButton.Height;var yCenter=rtButton.Top+rtButton.Height/2;var xCenter=rtButton.Left+rtButton.Width/2;var font=icon.Size*pixelRatio+'px '+icon.Family;this.Canvas.font=font;this.Canvas.textAlign="center";this.Canvas.textBaseline="middle";this.Canvas.fillStyle=icon.Color;this.Canvas.fillText(icon.Text,xCenter,yCenter);this.AryButton.push({Rect:rtButton,ID:icon.ID,TooltipText:icon.TooltipText,Data:icon.Data});left=rtButton.Right;}};this.PtInButtons=function(x,y){for(var i=0;i<this.AryButton.length;++i){var item=this.AryButton[i];if(!item.Rect)continue;var rect=item.Rect;this.Canvas.beginPath();this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);if(this.Canvas.isPointInPath(x,y)){return{ID:item.ID,Rect:rect,Data:item.Data};}}return null;};}//趋势线
|
|
6055
6055
|
function ChartDrawPictureTrendLine(){this.newMethod=IChartDrawPicture;//派生
|
|
6056
6056
|
this.newMethod();delete this.newMethod;this.ClassName='ChartDrawPictureTrendLine';this.IsPointIn=this.IsPointIn_XYValue_Line;this.GetXYCoordinate=this.GetXYCoordinate_default;this.OnlyMoveXIndex=true;this.IsSupportMagnet=true;this.Draw=function(){this.LinePoint=[];if(this.IsFrameMinSize())return;if(!this.IsShow)return;var drawPoint=this.CalculateDrawPoint({IsCheckX:false,IsCheckY:false});if(!drawPoint||drawPoint.length!=2)return;var ptStart=drawPoint[0];var ptEnd=drawPoint[1];var extendLine=this.CalculateExtendLinePoint(ptStart,ptEnd);this.ClipFrame();this.Canvas.strokeStyle=this.LineColor;this.SetLineWidth();this.Canvas.beginPath();this.Canvas.moveTo(extendLine.Start.X,extendLine.Start.Y);this.Canvas.lineTo(extendLine.End.X,extendLine.End.Y);this.Canvas.stroke();this.RestoreLineWidth();var line={Start:ptStart,End:ptEnd};this.LinePoint.push(line);this.DrawPoint(drawPoint);//画点
|
|
6057
6057
|
this.Canvas.restore();};}//画图工具-矩形
|
|
@@ -13187,7 +13187,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13187
13187
|
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);};}/********************************************************************************
|
|
13188
13188
|
* 版本信息输出
|
|
13189
13189
|
*
|
|
13190
|
-
*/var HQCHART_VERSION="1.1.
|
|
13190
|
+
*/var HQCHART_VERSION="1.1.13225";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();//把给外界调用的方法暴露出来
|
|
13191
13191
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13192
13192
|
// BaseIndex:BaseIndex,
|
|
13193
13193
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -56117,7 +56117,7 @@ function ChartDrawHLine()
|
|
|
56117
56117
|
this.TextFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
56118
56118
|
this.RightSpaceWidth=50;
|
|
56119
56119
|
|
|
56120
|
-
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面
|
|
56120
|
+
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面 2=价格上面 左对齐
|
|
56121
56121
|
this.ButtonBGColor='rgb(190,190,190)';
|
|
56122
56122
|
this.ButtonSpace=3;
|
|
56123
56123
|
|
|
@@ -56130,7 +56130,7 @@ function ChartDrawHLine()
|
|
|
56130
56130
|
//修改ID, Text , TooltipText 可以外部定制按钮
|
|
56131
56131
|
}
|
|
56132
56132
|
|
|
56133
|
-
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null }
|
|
56133
|
+
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null, Data:null }
|
|
56134
56134
|
|
|
56135
56135
|
this.AryShowButton=[]; //需要显示的按钮 { Data:, Width }
|
|
56136
56136
|
this.AryButton=[];
|
|
@@ -56687,7 +56687,15 @@ function ChartDrawHLine()
|
|
|
56687
56687
|
{
|
|
56688
56688
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton)) return;
|
|
56689
56689
|
|
|
56690
|
-
if (this.ButtonPosition==1)
|
|
56690
|
+
if (this.ButtonPosition==1)
|
|
56691
|
+
{
|
|
56692
|
+
drawTop-=drawHeight;
|
|
56693
|
+
}
|
|
56694
|
+
else if (this.ButtonPosition==2)
|
|
56695
|
+
{
|
|
56696
|
+
drawTop-=drawHeight;
|
|
56697
|
+
drawLeft=rtDraw.Left;
|
|
56698
|
+
}
|
|
56691
56699
|
|
|
56692
56700
|
this.Canvas.fillStyle=this.LineColor;
|
|
56693
56701
|
var left=drawLeft;
|
|
@@ -56716,7 +56724,7 @@ function ChartDrawHLine()
|
|
|
56716
56724
|
this.Canvas.fillStyle=icon.Color;
|
|
56717
56725
|
this.Canvas.fillText(icon.Text,xCenter,yCenter);
|
|
56718
56726
|
|
|
56719
|
-
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText });
|
|
56727
|
+
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText, Data:icon.Data });
|
|
56720
56728
|
|
|
56721
56729
|
left=rtButton.Right;
|
|
56722
56730
|
}
|
|
@@ -56734,7 +56742,7 @@ function ChartDrawHLine()
|
|
|
56734
56742
|
this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);
|
|
56735
56743
|
if (this.Canvas.isPointInPath(x,y))
|
|
56736
56744
|
{
|
|
56737
|
-
return { ID:item.ID, Rect:rect };
|
|
56745
|
+
return { ID:item.ID, Rect:rect, Data:item.Data };
|
|
56738
56746
|
}
|
|
56739
56747
|
}
|
|
56740
56748
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "iconfont"; /* Project id 1040563 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1714022152085') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1714022152085') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1714022152085') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.icon-accountbox:before {
|
|
17
|
+
content: "\e6b0";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.icon-checked:before {
|
|
17
21
|
content: "\e6af";
|
|
18
22
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -60009,7 +60009,7 @@ function ChartDrawHLine()
|
|
|
60009
60009
|
this.TextFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
60010
60010
|
this.RightSpaceWidth=50;
|
|
60011
60011
|
|
|
60012
|
-
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面
|
|
60012
|
+
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面 2=价格上面 左对齐
|
|
60013
60013
|
this.ButtonBGColor='rgb(190,190,190)';
|
|
60014
60014
|
this.ButtonSpace=3;
|
|
60015
60015
|
|
|
@@ -60022,7 +60022,7 @@ function ChartDrawHLine()
|
|
|
60022
60022
|
//修改ID, Text , TooltipText 可以外部定制按钮
|
|
60023
60023
|
}
|
|
60024
60024
|
|
|
60025
|
-
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null }
|
|
60025
|
+
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null, Data:null }
|
|
60026
60026
|
|
|
60027
60027
|
this.AryShowButton=[]; //需要显示的按钮 { Data:, Width }
|
|
60028
60028
|
this.AryButton=[];
|
|
@@ -60579,7 +60579,15 @@ function ChartDrawHLine()
|
|
|
60579
60579
|
{
|
|
60580
60580
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton)) return;
|
|
60581
60581
|
|
|
60582
|
-
if (this.ButtonPosition==1)
|
|
60582
|
+
if (this.ButtonPosition==1)
|
|
60583
|
+
{
|
|
60584
|
+
drawTop-=drawHeight;
|
|
60585
|
+
}
|
|
60586
|
+
else if (this.ButtonPosition==2)
|
|
60587
|
+
{
|
|
60588
|
+
drawTop-=drawHeight;
|
|
60589
|
+
drawLeft=rtDraw.Left;
|
|
60590
|
+
}
|
|
60583
60591
|
|
|
60584
60592
|
this.Canvas.fillStyle=this.LineColor;
|
|
60585
60593
|
var left=drawLeft;
|
|
@@ -60608,7 +60616,7 @@ function ChartDrawHLine()
|
|
|
60608
60616
|
this.Canvas.fillStyle=icon.Color;
|
|
60609
60617
|
this.Canvas.fillText(icon.Text,xCenter,yCenter);
|
|
60610
60618
|
|
|
60611
|
-
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText });
|
|
60619
|
+
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText, Data:icon.Data });
|
|
60612
60620
|
|
|
60613
60621
|
left=rtButton.Right;
|
|
60614
60622
|
}
|
|
@@ -60626,7 +60634,7 @@ function ChartDrawHLine()
|
|
|
60626
60634
|
this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);
|
|
60627
60635
|
if (this.Canvas.isPointInPath(x,y))
|
|
60628
60636
|
{
|
|
60629
|
-
return { ID:item.ID, Rect:rect };
|
|
60637
|
+
return { ID:item.ID, Rect:rect, Data:item.Data };
|
|
60630
60638
|
}
|
|
60631
60639
|
}
|
|
60632
60640
|
|
|
@@ -132015,7 +132023,7 @@ function ScrollBarBGChart()
|
|
|
132015
132023
|
|
|
132016
132024
|
|
|
132017
132025
|
|
|
132018
|
-
var HQCHART_VERSION="1.1.
|
|
132026
|
+
var HQCHART_VERSION="1.1.13225";
|
|
132019
132027
|
|
|
132020
132028
|
function PrintHQChartVersion()
|
|
132021
132029
|
{
|
|
@@ -60053,7 +60053,7 @@ function ChartDrawHLine()
|
|
|
60053
60053
|
this.TextFont=12*GetDevicePixelRatio() +"px 微软雅黑";
|
|
60054
60054
|
this.RightSpaceWidth=50;
|
|
60055
60055
|
|
|
60056
|
-
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面
|
|
60056
|
+
this.ButtonPosition=0; //按钮位置, 0=价格后面, 1=价格上面 2=价格上面 左对齐
|
|
60057
60057
|
this.ButtonBGColor='rgb(190,190,190)';
|
|
60058
60058
|
this.ButtonSpace=3;
|
|
60059
60059
|
|
|
@@ -60066,7 +60066,7 @@ function ChartDrawHLine()
|
|
|
60066
60066
|
//修改ID, Text , TooltipText 可以外部定制按钮
|
|
60067
60067
|
}
|
|
60068
60068
|
|
|
60069
|
-
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null }
|
|
60069
|
+
this.CustomButton=[]; //自定义的按钮 { Text:'\ue62b', Color:'rgb(255,255,255)', Family:"iconfont", Size:16, ID:JSCHART_BUTTON_ID.DRAW_PICTURE_BUTTON_1, TooltipText:null, Data:null }
|
|
60070
60070
|
|
|
60071
60071
|
this.AryShowButton=[]; //需要显示的按钮 { Data:, Width }
|
|
60072
60072
|
this.AryButton=[];
|
|
@@ -60623,7 +60623,15 @@ function ChartDrawHLine()
|
|
|
60623
60623
|
{
|
|
60624
60624
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.AryShowButton)) return;
|
|
60625
60625
|
|
|
60626
|
-
if (this.ButtonPosition==1)
|
|
60626
|
+
if (this.ButtonPosition==1)
|
|
60627
|
+
{
|
|
60628
|
+
drawTop-=drawHeight;
|
|
60629
|
+
}
|
|
60630
|
+
else if (this.ButtonPosition==2)
|
|
60631
|
+
{
|
|
60632
|
+
drawTop-=drawHeight;
|
|
60633
|
+
drawLeft=rtDraw.Left;
|
|
60634
|
+
}
|
|
60627
60635
|
|
|
60628
60636
|
this.Canvas.fillStyle=this.LineColor;
|
|
60629
60637
|
var left=drawLeft;
|
|
@@ -60652,7 +60660,7 @@ function ChartDrawHLine()
|
|
|
60652
60660
|
this.Canvas.fillStyle=icon.Color;
|
|
60653
60661
|
this.Canvas.fillText(icon.Text,xCenter,yCenter);
|
|
60654
60662
|
|
|
60655
|
-
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText });
|
|
60663
|
+
this.AryButton.push({Rect:rtButton,ID:icon.ID, TooltipText:icon.TooltipText, Data:icon.Data });
|
|
60656
60664
|
|
|
60657
60665
|
left=rtButton.Right;
|
|
60658
60666
|
}
|
|
@@ -60670,7 +60678,7 @@ function ChartDrawHLine()
|
|
|
60670
60678
|
this.Canvas.rect(rect.Left,rect.Top,rect.Width,rect.Height);
|
|
60671
60679
|
if (this.Canvas.isPointInPath(x,y))
|
|
60672
60680
|
{
|
|
60673
|
-
return { ID:item.ID, Rect:rect };
|
|
60681
|
+
return { ID:item.ID, Rect:rect, Data:item.Data };
|
|
60674
60682
|
}
|
|
60675
60683
|
}
|
|
60676
60684
|
|
|
@@ -134928,7 +134936,7 @@ function HQChartScriptWorker()
|
|
|
134928
134936
|
|
|
134929
134937
|
|
|
134930
134938
|
|
|
134931
|
-
var HQCHART_VERSION="1.1.
|
|
134939
|
+
var HQCHART_VERSION="1.1.13225";
|
|
134932
134940
|
|
|
134933
134941
|
function PrintHQChartVersion()
|
|
134934
134942
|
{
|