hqchart 1.1.13526 → 1.1.13537

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.13526",
3
+ "version": "1.1.13537",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -124,15 +124,14 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
124
124
  this.OnSize=function(option)
125
125
  {
126
126
  //画布大小通过div获取 如果有style里的大小 使用style里的
127
+ var height=this.DivElement.offsetHeight;
128
+ var width=this.DivElement.offsetWidth;
127
129
  if (this.DivElement.style.height && this.DivElement.style.width)
128
130
  {
129
- var height=parseInt(this.DivElement.style.height.replace("px",""));
130
- var width=parseInt(this.DivElement.style.width.replace("px",""));
131
- }
132
- else
133
- {
134
- var height=this.DivElement.offsetHeight;
135
- var width=this.DivElement.offsetWidth;
131
+ if (this.DivElement.style.height.includes("px"))
132
+ height=parseInt(this.DivElement.style.height.replace("px",""));
133
+ if (this.DivElement.style.width.includes("px"))
134
+ width=parseInt(this.DivElement.style.width.replace("px",""));
136
135
  }
137
136
 
138
137
  if (this.ToolElement)
@@ -67198,9 +67197,9 @@ function JSChartResource()
67198
67197
  Mergin:{ Left:5, Right:5, Top:4, Bottom:2 },
67199
67198
 
67200
67199
  TabTitleColor:'rgb(60,60,60)',
67201
- TabSelectedTitleColor:'rgb(0,0,0)',
67202
- TabSelectedBGColor:"rgb(252,252,252)",
67203
- TabMoveOnTitleColor:"rgb(0,0,0)",
67200
+ TabSelectedTitleColor:'rgb(255,255,255)',
67201
+ TabSelectedBGColor:"rgb(234,85,4)",
67202
+ TabMoveOnTitleColor:"rgb(234,85,4)",
67204
67203
  TabBGColor:"rgb(220,220,220)"
67205
67204
  },
67206
67205