hqchart 1.1.12687 → 1.1.12706
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 +94 -50
- package/package.json +15 -47
- package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +409 -115
- package/src/jscommon/umychart.vue/umychart.vue.js +409 -115
- package/.babelrc +0 -6
- package/.vscode/settings.json +0 -4
- package/Makefile +0 -9
- package/README.md +0 -452
- package/index.js +0 -17
- package/postcss.config.js +0 -5
- package/src/index.html +0 -18
- package/src/jscommon/backup/announcement.png +0 -0
- package/src/jscommon/backup/announcement2.png +0 -0
- package/src/jscommon/backup/blocktrading.png +0 -0
- package/src/jscommon/backup/investor.png +0 -0
- package/src/jscommon/backup/pforecast.png +0 -0
- package/src/jscommon/backup/research.png +0 -0
- package/src/jscommon/backup/tradedetail.png +0 -0
- package/src/jscommon/backup/umychart - backup.js +0 -17631
- package/src/jscommon/backup/umychart.macro.js +0 -4
- package/src/jscommon/backup/umychart.macro.vue.js +0 -3
- package/src/jscommon/commonindextree.json +0 -92
- package/src/jscommon/index.html +0 -13
- package/src/jscommon/jschinamapdata.js +0 -3
- package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
- package/src/jscommon/umychart.aliYunnetwork.js +0 -47
- package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
- package/src/jscommon/umychart.complier.js +0 -25291
- package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
- package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
- package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
- package/src/jscommon/umychart.console.js +0 -12
- package/src/jscommon/umychart.deal.js +0 -1452
- package/src/jscommon/umychart.dragdiv.js +0 -48
- package/src/jscommon/umychart.index.data.js +0 -4132
- package/src/jscommon/umychart.js +0 -90257
- package/src/jscommon/umychart.keyboard.js +0 -1659
- package/src/jscommon/umychart.listctrl.js +0 -690
- package/src/jscommon/umychart.mind.js +0 -2203
- package/src/jscommon/umychart.network.js +0 -44
- package/src/jscommon/umychart.news.js +0 -823
- package/src/jscommon/umychart.node.build/buildall.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
- package/src/jscommon/umychart.regressiontest.js +0 -400
- package/src/jscommon/umychart.report.js +0 -5803
- package/src/jscommon/umychart.scrollbar.js +0 -1345
- package/src/jscommon/umychart.stock.js +0 -4218
- package/src/jscommon/umychart.style.js +0 -618
- package/src/jscommon/umychart.testdata.js +0 -150
- package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
- package/src/jscommon/umychart.user.js +0 -137
- package/src/jscommon/umychart.version.js +0 -30
- package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
- package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
- package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
- package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
- package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
- package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
- package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
- package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
- package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
- package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
- package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
- package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
- package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
- package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
- package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
- package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
- package/src/jscommon/umychart.vue.components/login.vue +0 -178
- package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
- package/src/jscommon/umychart.vue.components/readme.txt +0 -8
- package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
- package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
- package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
- package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
- package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
- package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
- package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
- package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
- package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
- package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
- package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
- package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
- package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
- package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
- package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
- package/src/jscommon/umychart.vue.components/test.vue +0 -0
- package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
- package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
- package/src/jscommon/umychart.wechat/readme.txt +0 -3
- package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
- package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
- package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
- package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2931
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
- package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
- package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
- package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
- package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
- package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
- package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
- package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
- package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
- package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
- package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
- package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
- package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
- package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
- package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
- package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
- package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
- package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
- package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
- package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
- package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
- package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
- package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
- package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
- package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
- package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
- package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
- package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
- package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12051
- package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
- package/src/jscommon/umychart.worker.js +0 -114
- package/src/jscommon/umychart.ws.stock.js +0 -110
- package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
- package/src/jscommon/umychart_python/__init__.py +0 -4
- package/src/jscommon/umychart_python/build.cmd +0 -2
- package/src/jscommon/umychart_python/setup.py +0 -25
- package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
- package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
- package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
- package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
- package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
- package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
- package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
- package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
- package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
- package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
- package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
- package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
- package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
- package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
- package/src/jscommon/vendor.js +0 -2
- package/src/pages/block.list.demo.page/App.vue +0 -117
- package/src/pages/block.list.demo.page/index.js +0 -12
- package/src/pages/brushTool.demo.page/App.vue +0 -19
- package/src/pages/brushTool.demo.page/index.js +0 -12
- package/src/pages/container.demo.page/App.vue +0 -118
- package/src/pages/container.demo.page/index.js +0 -18
- package/src/pages/dataZoom.demo.page/App.vue +0 -265
- package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
- package/src/pages/dataZoom.demo.page/index.js +0 -12
- package/src/pages/historydayline.demo.page/App.vue +0 -57
- package/src/pages/historydayline.demo.page/index.js +0 -12
- package/src/pages/hq.demo.page/App.vue +0 -163
- package/src/pages/hq.demo.page/index.js +0 -12
- package/src/pages/hqchart.black/App.vue +0 -90
- package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
- package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
- package/src/pages/hqchart.black/components/stockfull.vue +0 -313
- package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
- package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
- package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
- package/src/pages/hqchart.black/index.js +0 -30
- package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
- package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
- package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
- package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
- package/src/pages/hqchart.page/App.vue +0 -101
- package/src/pages/hqchart.page/index.js +0 -18
- package/src/pages/index/App.vue +0 -1408
- package/src/pages/index/index.js +0 -7
- package/src/pages/indexHq/App.vue +0 -110
- package/src/pages/indexHq/index.js +0 -18
- package/src/pages/login.demo.page/App.vue +0 -22
- package/src/pages/login.demo.page/index.js +0 -12
- package/src/pages/queryContent.demo.page/App.vue +0 -29
- package/src/pages/queryContent.demo.page/index.js +0 -18
- package/src/pages/ranking.black/App.vue +0 -199
- package/src/pages/ranking.black/index.js +0 -18
- package/src/pages/search.demo.page/App.vue +0 -28
- package/src/pages/search.demo.page/index.js +0 -12
- package/src/pages/simulatetrade.demo.page/app.vue +0 -121
- package/src/pages/simulatetrade.demo.page/index.js +0 -17
- package/src/pages/stockdeal.demo.page/App.vue +0 -63
- package/src/pages/stockdeal.demo.page/index.js +0 -19
- package/src/pages/stockdealcount.demo.page/App.vue +0 -37
- package/src/pages/stockdealcount.demo.page/index.js +0 -12
- package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
- package/src/pages/stockdeallastest.demo.page/index.js +0 -18
- package/src/pages/stockinfo.demo.page/App.vue +0 -92
- package/src/pages/stockinfo.demo.page/index.html +0 -13
- package/src/pages/stockinfo.demo.page/index.js +0 -19
- package/src/pages/stockkline.demo.page/App.vue +0 -55
- package/src/pages/stockkline.demo.page/index.js +0 -18
- package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
- package/src/pages/stockmultiorder.demo.page/index.js +0 -18
- package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
- package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
- package/src/pages/stockorder.demo.page/App.vue +0 -69
- package/src/pages/stockorder.demo.page/index.js +0 -18
- package/src/pages/test/App.vue +0 -22
- package/src/pages/test/index.js +0 -7
- package/src/pages/tradeinfopage/app.vue +0 -40
- package/src/pages/tradeinfopage/index.js +0 -7
- package/src/pages/tradeinfopage/tradeinfo.html +0 -12
- package/src/utils/urlObj.js +0 -81
- package/src/vendor.js +0 -2
- package/webpack.config.js +0 -104
|
@@ -1,919 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
copyright (c) 2018 jones
|
|
3
|
-
|
|
4
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
-
|
|
6
|
-
开源项目 https://github.com/jones2000/HQChart
|
|
7
|
-
|
|
8
|
-
jones_2000@163.com
|
|
9
|
-
|
|
10
|
-
全局配置颜色
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function JSChartResource()
|
|
15
|
-
{
|
|
16
|
-
this.TooltipBGColor = "rgb(255, 255, 255)"; //背景色
|
|
17
|
-
this.TooltipAlpha = 0.92; //透明度
|
|
18
|
-
|
|
19
|
-
this.SelectRectBGColor = "rgba(1,130,212,0.06)"; //背景色
|
|
20
|
-
// this.SelectRectAlpha=0.06; //透明度
|
|
21
|
-
this.BGColor = 'rgb(255,255,255)'; //背景色
|
|
22
|
-
|
|
23
|
-
this.UpBarColor = "rgb(238,21,21)";
|
|
24
|
-
this.DownBarColor = "rgb(25,158,0)";
|
|
25
|
-
this.UnchagneBarColor = "rgb(0,0,0)";
|
|
26
|
-
this.MinKLineBarWidth=4; //最小的柱子宽度 比这个还小就画直线
|
|
27
|
-
this.MinColorKBarWidth=4;
|
|
28
|
-
|
|
29
|
-
this.Minute = {};
|
|
30
|
-
this.Minute.VolBarColor = null;
|
|
31
|
-
this.Minute.PriceColor = "rgb(50,171,205)";
|
|
32
|
-
this.Minute.AreaPriceColor = 'rgba(50,171,205,0.1)';
|
|
33
|
-
this.Minute.AvPriceColor = "rgb(238,127,9)";
|
|
34
|
-
|
|
35
|
-
this.DefaultTextColor = "rgb(43,54,69)";
|
|
36
|
-
this.DefaultTextFont = '14px 微软雅黑';
|
|
37
|
-
this.IndexTitleBGColor='rgb(217,219,220)'; //指标名字背景色
|
|
38
|
-
this.IndexTitleBorderColor='rgb(180,180,180)';
|
|
39
|
-
this.IndexTitleColor="rgb(43,54,69)";
|
|
40
|
-
this.DynamicTitleFont = '12px 微软雅黑'; //指标动态标题字体
|
|
41
|
-
this.OverlayIndexTitleBGColor='rgba(255,255,255,0.7)';
|
|
42
|
-
|
|
43
|
-
this.UpTextColor = "rgb(238,21,21)";
|
|
44
|
-
this.DownTextColor = "rgb(25,158,0)";
|
|
45
|
-
this.UnchagneTextColor = "rgb(0,0,0)";
|
|
46
|
-
this.CloseLineColor = 'rgb(0,191,255)';
|
|
47
|
-
this.CloseLineAreaColor = ['rgba(0,191,255,0.8)', 'rgba(0,191,255,0.2)'];
|
|
48
|
-
|
|
49
|
-
this.Title = {
|
|
50
|
-
TradeIndexColor:'rgb(105,105,105)', //交易指标颜色
|
|
51
|
-
ColorIndexColor:'rgb(112,128,144)', //五彩K线颜色
|
|
52
|
-
|
|
53
|
-
VolColor:"rgb(43,54,69)", //标题成交量
|
|
54
|
-
AmountColor:"rgb(43,54,69)", //成交金额
|
|
55
|
-
DateTimeColor:"rgb(43,54,69)", //时间,日期
|
|
56
|
-
SettingColor:"rgb(43,54,69)", //周期,复权
|
|
57
|
-
NameColor:"rgb(43,54,69)" , //股票名称
|
|
58
|
-
TurnoverRateColor:'rgb(43,54,69)', //换手率
|
|
59
|
-
PositionColor:"rgb(43,54,69)" //持仓
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
this.FrameBorderPen = "rgb(225,236,242)";
|
|
63
|
-
this.FrameSplitPen = "rgb(225,236,242)"; //分割线
|
|
64
|
-
this.FrameSplitTextColor = "rgb(51,51,51)"; //刻度文字颜色
|
|
65
|
-
this.FrameSplitTextFont = "12px 微软雅黑"; //坐标刻度文字字体
|
|
66
|
-
this.FrameYLineDash=[2, 2]; //Y轴线段虚线点间距,填null 就是实线
|
|
67
|
-
this.FrameXLineDash=null; //X轴线段虚线点间距,填null 就是实线
|
|
68
|
-
//this.FrameSplitTextFont = "14px PingFang-SC-Bold";//坐标刻度文字字体
|
|
69
|
-
this.FrameTitleBGColor = "rgb(246,251,253)"; //标题栏背景色
|
|
70
|
-
this.Frame = {
|
|
71
|
-
XBottomOffset: 0 , //X轴文字向下偏移
|
|
72
|
-
YTopOffset:2, //Y轴顶部文字向下偏移
|
|
73
|
-
YTextPadding:[2,2]
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
this.FrameLogo=
|
|
77
|
-
{
|
|
78
|
-
TextColor:'rgb(178,34,34)',
|
|
79
|
-
Font:"bold 16px 微软雅黑",
|
|
80
|
-
Text:"*仅学习使用*" //请求不要修改声明, 任何修改声明产生的任何法律责任由修改者自行独立承担,与HQChart插件作者无关。
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
this.FrameLatestPrice =
|
|
84
|
-
{
|
|
85
|
-
TextColor: 'rgb(255,255,255)', //最新价格文字颜色
|
|
86
|
-
UpBarColor: "rgb(238,21,21)", //上涨
|
|
87
|
-
DownBarColor: "rgb(25,158,0)", //下跌
|
|
88
|
-
UnchagneBarColor: "rgb(0,0,0)", //平盘
|
|
89
|
-
BGAlpha: 0.6,
|
|
90
|
-
|
|
91
|
-
OverlayTextColor:"rgb(255,255,255)", //叠加股票的文字颜色
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
this.FrameMargin = 4; //左右一共的边距
|
|
95
|
-
this.FrameLeftMargin = 2;
|
|
96
|
-
this.FrameRightMargin=2;
|
|
97
|
-
|
|
98
|
-
//叠加指标框架
|
|
99
|
-
this.OverlayFrame=
|
|
100
|
-
{
|
|
101
|
-
BolderPen:'rgb(190,190,190)', //指标边框线
|
|
102
|
-
TitleColor:'rgb(105,105,105)', //指标名字颜色
|
|
103
|
-
TitleFont:'11px arial', //指标名字字体
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
this.CorssCursorBGColor = "rgb(43,54,69)"; //十字光标背景
|
|
107
|
-
this.CorssCursorTextColor = "rgb(255,255,255)";
|
|
108
|
-
this.CorssCursorTextFont = "12px 微软雅黑";
|
|
109
|
-
this.CorssCursorHPenColor = "rgb(130,130,130)"; //十字光标线段颜色(水平)
|
|
110
|
-
this.CorssCursorVPenColor = "rgb(130,130,130)"; //十字光标线段颜色(垂直)
|
|
111
|
-
|
|
112
|
-
this.Domain = "http://127.0.0.1:8080"; //API域名
|
|
113
|
-
this.CacheDomain = "http://127.0.0.1:8087"; //缓存域名
|
|
114
|
-
|
|
115
|
-
this.KLine =
|
|
116
|
-
{
|
|
117
|
-
MaxMin: { Font: '12px 微软雅黑', Color: 'rgb(111,111,111)', RightArrow:"→", LeftArrow:"←", HighYOffset:0, LowYOffset:0 }, //K线最大最小值显示
|
|
118
|
-
Info: //信息地雷
|
|
119
|
-
{
|
|
120
|
-
Color: 'rgb(205,149,12)',
|
|
121
|
-
Color2: 'rgb(255,133,3)', //三角图形颜色
|
|
122
|
-
TextColor: '#197de9',
|
|
123
|
-
TextBGColor: 'rgba(220,220,220,0.5)',
|
|
124
|
-
Investor:
|
|
125
|
-
{
|
|
126
|
-
ApiUrl: '/API/NewsInteract', //互动易
|
|
127
|
-
},
|
|
128
|
-
Announcement: //公告
|
|
129
|
-
{
|
|
130
|
-
ApiUrl: '/API/ReportList',
|
|
131
|
-
},
|
|
132
|
-
Pforecast: //业绩预告
|
|
133
|
-
{
|
|
134
|
-
ApiUrl: '/API/StockHistoryDay',
|
|
135
|
-
},
|
|
136
|
-
Research: //调研
|
|
137
|
-
{
|
|
138
|
-
ApiUrl: '/API/InvestorRelationsList',
|
|
139
|
-
},
|
|
140
|
-
BlockTrading: //大宗交易
|
|
141
|
-
{
|
|
142
|
-
ApiUrl: '/API/StockHistoryDay',
|
|
143
|
-
},
|
|
144
|
-
TradeDetail: //龙虎榜
|
|
145
|
-
{
|
|
146
|
-
ApiUrl: '/API/StockHistoryDay',
|
|
147
|
-
},
|
|
148
|
-
Policy: //策略
|
|
149
|
-
{
|
|
150
|
-
ApiUrl: '/API/StockHistoryDay',
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
this.Index = {};
|
|
156
|
-
//指标线段颜色
|
|
157
|
-
this.Index.LineColor =
|
|
158
|
-
[
|
|
159
|
-
"rgb(255,189,09)",
|
|
160
|
-
"rgb(22,198,255)",
|
|
161
|
-
"rgb(174,35,161)",
|
|
162
|
-
"rgb(236,105,65)",
|
|
163
|
-
"rgb(68,114,196)",
|
|
164
|
-
"rgb(229,0,79)",
|
|
165
|
-
"rgb(0,128,255)",
|
|
166
|
-
"rgb(252,96,154)",
|
|
167
|
-
"rgb(42,230,215)",
|
|
168
|
-
"rgb(24,71,178)",
|
|
169
|
-
|
|
170
|
-
];
|
|
171
|
-
|
|
172
|
-
this.ColorArray = //自定义指标默认颜色
|
|
173
|
-
[
|
|
174
|
-
"rgb(255,174,0)",
|
|
175
|
-
"rgb(25,199,255)",
|
|
176
|
-
"rgb(175,95,162)",
|
|
177
|
-
"rgb(236,105,65)",
|
|
178
|
-
"rgb(68,114,196)",
|
|
179
|
-
"rgb(229,0,79)",
|
|
180
|
-
"rgb(0,128,255)",
|
|
181
|
-
"rgb(252,96,154)",
|
|
182
|
-
"rgb(42,230,215)",
|
|
183
|
-
"rgb(24,71,178)",
|
|
184
|
-
];
|
|
185
|
-
|
|
186
|
-
//历史数据api
|
|
187
|
-
this.Index.StockHistoryDayApiUrl = "https://opensource.zealink.com/API/StockHistoryDay";
|
|
188
|
-
//市场多空
|
|
189
|
-
this.Index.MarketLongShortApiUrl = "https://opensource.zealink.com/API/FactorTiming";
|
|
190
|
-
//市场关注度
|
|
191
|
-
this.Index.MarketAttentionApiUrl = "https://opensource.zealink.com/API/MarketAttention";
|
|
192
|
-
//行业,指数热度
|
|
193
|
-
this.Index.MarketHeatApiUrl = "https://opensource.zealink.com/API/MarketHeat"
|
|
194
|
-
//自定义指数热度
|
|
195
|
-
this.Index.CustomIndexHeatApiUrl = "https://opensource.zealink.com/API/QuadrantCalculate";
|
|
196
|
-
|
|
197
|
-
//指标不支持信息
|
|
198
|
-
this.Index.NotSupport = { Font: "14px 微软雅黑", TextColor: "rgb(52,52,52)" };
|
|
199
|
-
|
|
200
|
-
//画图工具
|
|
201
|
-
this.DrawPicture = {};
|
|
202
|
-
this.DrawPicture.LineColor =
|
|
203
|
-
[
|
|
204
|
-
"rgb(30,144,255)",
|
|
205
|
-
];
|
|
206
|
-
|
|
207
|
-
this.DrawPicture.PointColor =
|
|
208
|
-
[
|
|
209
|
-
"rgb(105,105,105)",
|
|
210
|
-
];
|
|
211
|
-
|
|
212
|
-
this.KLineTrain =
|
|
213
|
-
{
|
|
214
|
-
Font: 'bold 14px 宋体',
|
|
215
|
-
LastDataIcon: { Color: 'rgb(0,0,205)', Text: '⬇' },
|
|
216
|
-
BuyIcon: { Color: 'rgb(255,185, 15)', Text: '买' },
|
|
217
|
-
SellIcon: { Color: 'rgb(70,130,180)', Text: '卖' }
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
//K线tooltip
|
|
221
|
-
this.TooltipPaint =
|
|
222
|
-
{
|
|
223
|
-
BGColor: 'rgba(250,250,250,0.8)', //背景色
|
|
224
|
-
BorderColor: 'rgb(120,120,120)', //边框颜色
|
|
225
|
-
TitleColor: 'rgb(120,120,120)', //标题颜色
|
|
226
|
-
TitleFont: '13px 微软雅黑' //字体
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
//弹幕
|
|
230
|
-
this.Barrage =
|
|
231
|
-
{
|
|
232
|
-
Font: '16px 微软雅黑', //字体
|
|
233
|
-
Height: 20,
|
|
234
|
-
Color: 'RGB(109,109,109)'
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
//走势图 信息地雷
|
|
238
|
-
this.MinuteInfo = {
|
|
239
|
-
TextColor: 'rgb(84,143,255)',
|
|
240
|
-
Font: '14px 微软雅黑',
|
|
241
|
-
PointColor: 'rgb(38,113,254)',
|
|
242
|
-
LineColor: 'rgb(120,167,255)',
|
|
243
|
-
TextBGColor: 'rgba(255,255,255,0.8)'
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
//单图标指标ChartSingleText -> DRAWICON
|
|
247
|
-
this.DRAWICON=
|
|
248
|
-
{
|
|
249
|
-
Text:
|
|
250
|
-
{
|
|
251
|
-
MaxSize:50, //字体最大
|
|
252
|
-
MinSize:20, //字体最小
|
|
253
|
-
|
|
254
|
-
Zoom:
|
|
255
|
-
{
|
|
256
|
-
Type:2, //0=放大(K线宽度*Value) 1=放大(K线+间距)*Value 2=(K线+间距)+2*Value;
|
|
257
|
-
Value:1
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
FontName:'Arial' //字体
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
this.DRAWTEXT=
|
|
265
|
-
{
|
|
266
|
-
MaxSize:18, //字体最大
|
|
267
|
-
MinSize:18, //字体最小
|
|
268
|
-
|
|
269
|
-
Zoom:
|
|
270
|
-
{
|
|
271
|
-
Type:1, //0=放大(K线宽度*Value) 1=放大(K线+间距)*Value 2=(K线+间距)+2*Value;
|
|
272
|
-
Value:1
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
FontName:'微软雅黑' //字体
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
this.DRAWNUMBER=
|
|
279
|
-
{
|
|
280
|
-
MaxSize:18, //字体最大
|
|
281
|
-
MinSize:18, //字体最小
|
|
282
|
-
|
|
283
|
-
Zoom:
|
|
284
|
-
{
|
|
285
|
-
Type:1, //0=放大(K线宽度*Value) 1=放大(K线+间距)*Value 2=(K线+间距)+2*Value;
|
|
286
|
-
Value:1
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
FontName:'微软雅黑' //字体
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
this.DRAWABOVE=
|
|
293
|
-
{
|
|
294
|
-
YOffset:0 //y坐标向上偏移
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
this.CIRCLEDOT=
|
|
298
|
-
{
|
|
299
|
-
Radius:1.3
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
this.POINTDOT=
|
|
303
|
-
{
|
|
304
|
-
Radius:2
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
//深度图
|
|
308
|
-
this.DepthChart=
|
|
309
|
-
{
|
|
310
|
-
BidColor: { Line:"rgb(82,176,123)", Area:"rgba(82,176,123,0.8)"}, //卖
|
|
311
|
-
AskColor: { Line:"rgb(207,76,89)", Area:"rgba(207,76,89, 0.8)"}, //买
|
|
312
|
-
LineWidth:4
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
this.DepthCorss=
|
|
316
|
-
{
|
|
317
|
-
BidColor: { Line:"rgb(82,176,123)" }, //卖
|
|
318
|
-
AskColor: { Line:"rgb(207,76,89)" }, //买
|
|
319
|
-
LineWidth:2, //线段宽度
|
|
320
|
-
LineDash:[3,3],
|
|
321
|
-
Tooltip:
|
|
322
|
-
{
|
|
323
|
-
BGColor:'rgba(236,240,245, 0.8)', TextColor:"rgb(130,140,151)",
|
|
324
|
-
Border:{ Top:5, Left:20, Right:20, Bottom:5, ItemSpace: 5},
|
|
325
|
-
Font:"14px 微软雅黑",
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
//报价列表
|
|
330
|
-
this.Report=
|
|
331
|
-
{
|
|
332
|
-
BorderColor:'rgb(192,192,192)', //边框线
|
|
333
|
-
SelectedColor:"rgb(180,240,240)", //选中行
|
|
334
|
-
Header:
|
|
335
|
-
{
|
|
336
|
-
Color:"rgb(60,60,60)", //表头文字颜色
|
|
337
|
-
SortColor:"rgb(255,0,0)", //排序箭头颜色
|
|
338
|
-
Mergin:{ Left:5, Right:5, Top:4, Bottom:2}, //表头四周间距
|
|
339
|
-
Font:{ Size:15, Name:"微软雅黑" } //表头字体
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
Item:
|
|
343
|
-
{
|
|
344
|
-
Mergin:{ Top:2, Bottom:0,Left:5, Right:5 }, //单元格四周间距
|
|
345
|
-
Font:{ Size:15, Name:"微软雅黑"},
|
|
346
|
-
BarMergin:{ Top:2, Left:3, Right:3, Bottom:2 },//单元格字体
|
|
347
|
-
NameFont:{ Size:14, Name:"微软雅黑" },
|
|
348
|
-
SymbolFont:{ Size:12, Name:"微软雅黑" }
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
//固定行
|
|
352
|
-
FixedItem:
|
|
353
|
-
{
|
|
354
|
-
Font:{ Size:15, Name:"微软雅黑"},
|
|
355
|
-
},
|
|
356
|
-
|
|
357
|
-
LimitBorder:
|
|
358
|
-
{
|
|
359
|
-
Color:"rgb(180,180,180)",
|
|
360
|
-
Mergin:{ Top:1, Bottom:1,Left:0, Right:0 },
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
FieldColor:
|
|
364
|
-
{
|
|
365
|
-
Index:"rgb(60,60,60)", //序号
|
|
366
|
-
Symbol:"rgb(60,60,60)",
|
|
367
|
-
Name:"rgb(60,60,60)",
|
|
368
|
-
Vol:"rgb(90,90,90)", //成交量
|
|
369
|
-
Amount:"rgb(90,90,90)", //成交金额
|
|
370
|
-
Text:"rgb(60,60,60)", //默认文本
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
UpTextColor:"rgb(238,21,21)", //上涨文字颜色
|
|
374
|
-
DownTextColor:"rgb(25,158,0)", //下跌文字颜色
|
|
375
|
-
UnchagneTextColor:"rgb(90,90,90)", //平盘文字颜色
|
|
376
|
-
CloseLineColor:"rgb(30,144,255)",
|
|
377
|
-
PageInfo:
|
|
378
|
-
{
|
|
379
|
-
Font:{ Size:15, Name:"微软雅黑"},
|
|
380
|
-
TextColor:"rgb(0,0,0)",
|
|
381
|
-
BGColor:"rgba(180,180,180,0.5)",
|
|
382
|
-
Mergin:{ Left:5, Right:5, Top:4, Bottom:2 },
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// //自定义风格
|
|
387
|
-
this.SetStyle = function (style)
|
|
388
|
-
{
|
|
389
|
-
if (style.TooltipBGColor) this.TooltipBGColor = style.TooltipBGColor;
|
|
390
|
-
if (style.TooltipAlpha) this.TooltipAlpha = style.TooltipAlpha;
|
|
391
|
-
if (style.BGColor) this.BGColor = style.BGColor;
|
|
392
|
-
if (style.SelectRectBGColor) this.SelectRectBGColor = style.SelectRectBGColor;
|
|
393
|
-
if (style.UpBarColor) this.UpBarColor = style.UpBarColor;
|
|
394
|
-
if (style.DownBarColor) this.DownBarColor = style.DownBarColor;
|
|
395
|
-
if (style.UnchagneBarColor) this.UnchagneBarColor = style.UnchagneBarColor;
|
|
396
|
-
if (style.Minute)
|
|
397
|
-
{
|
|
398
|
-
if (style.Minute.VolBarColor) this.Minute.VolBarColor = style.Minute.VolBarColor;
|
|
399
|
-
if (style.Minute.PriceColor) this.Minute.PriceColor = style.Minute.PriceColor;
|
|
400
|
-
if (style.Minute.AvPriceColor) this.Minute.AvPriceColor = style.Minute.AvPriceColor;
|
|
401
|
-
if (style.Minute.AreaPriceColor) this.Minute.AreaPriceColor = style.Minute.AreaPriceColor;
|
|
402
|
-
}
|
|
403
|
-
if (style.DefaultTextColor) this.DefaultTextColor = style.DefaultTextColor;
|
|
404
|
-
if (style.DefaultTextFont) this.DefaultTextFont = style.DefaultTextFont;
|
|
405
|
-
if (style.DynamicTitleFont) this.DynamicTitleFont = style.DynamicTitleFont;
|
|
406
|
-
if (style.IndexTitleBGColor) this.IndexTitleBGColor=style.IndexTitleBGColor;
|
|
407
|
-
if (style.OverlayIndexTitleBGColor) this.OverlayIndexTitleBGColor=style.OverlayIndexTitleBGColor;
|
|
408
|
-
if (style.IndexTitleBorderColor) this.IndexTitleBorderColor=style.IndexTitleBorderColor;
|
|
409
|
-
if (style.IndexTitleColor) this.IndexTitleColor=style.IndexTitleColor;
|
|
410
|
-
if (style.UpTextColor) this.UpTextColor = style.UpTextColor;
|
|
411
|
-
if (style.DownTextColor) this.DownTextColor = style.DownTextColor;
|
|
412
|
-
if (style.UnchagneTextColor) this.UnchagneTextColor = style.UnchagneTextColor;
|
|
413
|
-
if (style.CloseLineColor) this.CloseLineColor = style.CloseLineColor;
|
|
414
|
-
if (style.CloseLineAreaColor) this.CloseLineAreaColor = style.CloseLineAreaColor;
|
|
415
|
-
if (style.FrameBorderPen) this.FrameBorderPen = style.FrameBorderPen;
|
|
416
|
-
if (style.FrameSplitPen) this.FrameSplitPen = style.FrameSplitPen;
|
|
417
|
-
if (style.FrameSplitTextColor) this.FrameSplitTextColor = style.FrameSplitTextColor;
|
|
418
|
-
if (style.FrameSplitTextFont) this.FrameSplitTextFont = style.FrameSplitTextFont;
|
|
419
|
-
if (style.FrameTitleBGColor) this.FrameTitleBGColor = style.FrameTitleBGColor;
|
|
420
|
-
|
|
421
|
-
if (style.Frame)
|
|
422
|
-
{
|
|
423
|
-
if (style.Frame.XBottomOffset) this.Frame.XBottomOffset = style.Frame.XBottomOffset;
|
|
424
|
-
if (style.Frame.YTopOffset) this.Frame.YTopOffset = style.Frame.YTopOffset;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
if (style.FrameLatestPrice)
|
|
428
|
-
{
|
|
429
|
-
if (style.FrameLatestPrice.TextColor) this.FrameLatestPrice.TextColor = style.FrameLatestPrice.TextColor;
|
|
430
|
-
if (style.FrameLatestPrice.UpBarColor) this.FrameLatestPrice.UpBarColor = style.FrameLatestPrice.UpBarColor;
|
|
431
|
-
if (style.FrameLatestPrice.DownBarColor) this.FrameLatestPrice.DownBarColor = style.FrameLatestPrice.DownBarColor;
|
|
432
|
-
if (style.FrameLatestPrice.UnchagneBarColor) this.FrameLatestPrice.UnchagneBarColor = style.FrameLatestPrice.UnchagneBarColor;
|
|
433
|
-
if (style.FrameLatestPrice.BGAlpha) this.FrameLatestPrice.BGAlpha = style.FrameLatestPrice.BGAlpha;
|
|
434
|
-
if (style.FrameLatestPrice.OverlayTextColor) this.FrameLatestPrice.OverlayTextColor = style.FrameLatestPrice.OverlayTextColor;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (style.CorssCursorBGColor) this.CorssCursorBGColor = style.CorssCursorBGColor;
|
|
438
|
-
if (style.CorssCursorTextColor) this.CorssCursorTextColor = style.CorssCursorTextColor;
|
|
439
|
-
if (style.CorssCursorTextFont) this.CorssCursorTextFont = style.CorssCursorTextFont;
|
|
440
|
-
if (style.CorssCursorHPenColor) this.CorssCursorHPenColor = style.CorssCursorHPenColor;
|
|
441
|
-
if (style.CorssCursorVPenColor) this.CorssCursorVPenColor = style.CorssCursorVPenColor;
|
|
442
|
-
if (style.KLine) this.KLine = style.KLine;
|
|
443
|
-
if (style.Index)
|
|
444
|
-
{
|
|
445
|
-
if (style.Index.LineColor) this.Index.LineColor = style.Index.LineColor;
|
|
446
|
-
if (style.Index.NotSupport) this.Index.NotSupport = style.Index.NotSupport;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
if (style.ColorArray) this.ColorArray = style.ColorArray;
|
|
450
|
-
|
|
451
|
-
if (style.DrawPicture)
|
|
452
|
-
{
|
|
453
|
-
this.DrawPicture.LineColor = style.DrawPicture.LineColor;
|
|
454
|
-
this.DrawPicture.PointColor = style.DrawPicture.PointColor;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
if (style.TooltipPaint)
|
|
458
|
-
{
|
|
459
|
-
if (style.TooltipPaint.BGColor) this.TooltipPaint.BGColor = style.TooltipPaint.BGColor;
|
|
460
|
-
if (style.TooltipPaint.BorderColor) this.TooltipPaint.BorderColor = style.TooltipPaint.BorderColor;
|
|
461
|
-
if (style.TooltipPaint.TitleColor) this.TooltipPaint.TitleColor = style.TooltipPaint.TitleColor;
|
|
462
|
-
if (style.TooltipPaint.TitleFont) this.TooltipPaint.TitleFont = style.TooltipPaint.TitleFont;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
if (style.Title)
|
|
466
|
-
{
|
|
467
|
-
if (style.Title.TradeIndexColor) this.Title.TradeIndexColor=style.Title.TradeIndexColor;
|
|
468
|
-
if (style.Title.ColorIndexColor) this.Title.ColorIndexColor=style.Title.ColorIndexColor;
|
|
469
|
-
|
|
470
|
-
if (style.Title.VolColor) this.Title.VolColor=style.Title.VolColor;
|
|
471
|
-
if (style.Title.AmountColor) this.Title.AmountColor=style.Title.AmountColor;
|
|
472
|
-
if (style.Title.DateTimeColor) this.Title.DateTimeColor=style.Title.DateTimeColor;
|
|
473
|
-
if (style.Title.NameColor) this.Title.NameColor=style.Title.NameColor;
|
|
474
|
-
if (style.Title.SettingColor) this.Title.SettingColor=style.Title.SettingColor;
|
|
475
|
-
if (style.Title.TurnoverRateColor) this.Title.TurnoverRateColor=style.Title.TurnoverRateColor;
|
|
476
|
-
if (style.Title.PositionColor) this.Title.PositionColor=style.Title.PositionColor;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
if (style.DRAWICON)
|
|
480
|
-
{
|
|
481
|
-
if (style.DRAWICON.Text)
|
|
482
|
-
{
|
|
483
|
-
var item=style.DRAWICON.Text;
|
|
484
|
-
if (this.IsPlusNumber(item.MaxSize)) this.DRAWICON.Text.MaxSize=item.MaxSize;
|
|
485
|
-
if (this.IsPlusNumber(item.MinSize)) this.DRAWICON.Text.MinSize=item.MinSize;
|
|
486
|
-
if (item.Zoom) this.DRAWICON.Text.Zoom=item.Zoom;
|
|
487
|
-
if (item.FontName) this.DRAWICON.Text.FontName=item.FontName;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
if (style.DRAWTEXT)
|
|
492
|
-
{
|
|
493
|
-
var item=style.DRAWTEXT;
|
|
494
|
-
if (this.IsPlusNumber(item.MaxSize)) this.DRAWICON.MaxSize=item.MaxSize;
|
|
495
|
-
if (this.IsPlusNumber(item.MinSize)) this.DRAWICON.MinSize=item.MinSize;
|
|
496
|
-
if (item.Zoom) this.DRAWICON.Zoom=item.Zoom;
|
|
497
|
-
if (item.FontName) this.DRAWICON.FontName=item.FontName;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
if (style.DRAWNUMBER)
|
|
501
|
-
{
|
|
502
|
-
var item=style.DRAWNUMBER;
|
|
503
|
-
if (this.IsPlusNumber(item.MaxSize)) this.DRAWNUMBER.MaxSize=item.MaxSize;
|
|
504
|
-
if (this.IsPlusNumber(item.MinSize)) this.DRAWNUMBER.MinSize=item.MinSize;
|
|
505
|
-
if (item.Zoom) this.DRAWNUMBER.Zoom=item.Zoom;
|
|
506
|
-
if (item.FontName) this.DRAWNUMBER.FontName=item.FontName;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
if (style.DRAWABOVE)
|
|
510
|
-
{
|
|
511
|
-
var item=style.DRAWABOVE;
|
|
512
|
-
if (this.IsNumber(item.YOffset)) this.DRAWABOVE.YOffset=item.YOffset;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
if (style.DepthChart)
|
|
516
|
-
{
|
|
517
|
-
var item=style.DepthChart;
|
|
518
|
-
if (item.BidColor)
|
|
519
|
-
{
|
|
520
|
-
if (item.BidColor.Line) this.DepthChart.BidColor.Line=item.BidColor.Line;
|
|
521
|
-
if (item.BidColor.Area) this.DepthChart.BidColor.Area=item.BidColor.Area;
|
|
522
|
-
}
|
|
523
|
-
if (item.AskColor)
|
|
524
|
-
{
|
|
525
|
-
if (item.AskColor.Line) this.DepthChart.AskColor.Line=item.AskColor.Line;
|
|
526
|
-
if (item.AskColor.Area) this.DepthChart.AskColor.Area=item.AskColor.Area;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
if (item.LineWidth) this.DepthChart.LineWidth=item.LineWidth;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
if (style.DepthCorss)
|
|
533
|
-
{
|
|
534
|
-
var item=style.DepthCorss;
|
|
535
|
-
if (item.BidColor)
|
|
536
|
-
{
|
|
537
|
-
if (item.BidColor.Line) this.DepthCorss.BidColor.Line=item.BidColor.Line;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
if (item.AskColor)
|
|
541
|
-
{
|
|
542
|
-
if (item.AskColor.Line) this.DepthCorss.AskColor.Line=item.AskColor.Line;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
if (item.LineWidth) this.DepthCorss.LineWidth=item.LineWidth;
|
|
546
|
-
if (item.LineDash) this.DepthCorss.LineDash=item.LineDash;
|
|
547
|
-
|
|
548
|
-
if (item.Tooltip)
|
|
549
|
-
{
|
|
550
|
-
var tooltip=item.Tooltip;
|
|
551
|
-
if (tooltip.BGColor) this.DepthCorss.Tooltip.BGColor=tooltip.BGColor;
|
|
552
|
-
if (tooltip.TextColor) this.DepthCorss.Tooltip.TextColor=tooltip.TextColor;
|
|
553
|
-
if (tooltip.Font) this.DepthCorss.Tooltip.Font=tooltip.Font;
|
|
554
|
-
if (tooltip.LineHeight) this.DepthCorss.Tooltip.LineHeight=tooltip.LineHeight;
|
|
555
|
-
|
|
556
|
-
var border=tooltip.Border;
|
|
557
|
-
if (this.IsNumber(border.Top)) this.DepthCorss.Tooltip.Border.Top=border.Top;
|
|
558
|
-
if (this.IsNumber(border.Left)) this.DepthCorss.Tooltip.Border.Left=border.Left;
|
|
559
|
-
if (this.IsNumber(border.Right)) this.DepthCorss.Tooltip.Border.Right=border.Right;
|
|
560
|
-
if (this.IsNumber(border.Bottom)) this.DepthCorss.Tooltip.Border.Bottom=border.Bottom;
|
|
561
|
-
if (this.IsNumber(border.ItemSpace)) this.DepthCorss.Tooltip.Border.ItemSpace=border.ItemSpace;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
if (style.CIRCLEDOT)
|
|
566
|
-
{
|
|
567
|
-
var item=style.CIRCLEDOT;
|
|
568
|
-
if (this.IsNumber(item.Radius)) this.CIRCLEDOT.Radius=item.Radius;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
if (style.POINTDOT)
|
|
572
|
-
{
|
|
573
|
-
var item=style.POINTDOT;
|
|
574
|
-
if (this.IsNumber(item.Radius)) this.POINTDOT.Radius=item.Radius;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (style.Report)
|
|
578
|
-
{
|
|
579
|
-
var item=style.Report;
|
|
580
|
-
if (item.BorderColor) this.Report.BorderColor=item.BorderColor;
|
|
581
|
-
if (item.UpTextColor) this.Report.UpTextColor=item.UpTextColor;
|
|
582
|
-
if (item.DownTextColor) this.Report.DownTextColor=item.DownTextColor;
|
|
583
|
-
if (item.UnchagneTextColor) this.Report.UnchagneTextColor=item.UnchagneTextColor;
|
|
584
|
-
if (item.BorderColor) this.Report.SelectedColor=item.SelectedColor;
|
|
585
|
-
if (item.CloseLineColor) this.Report.CloseLineColor=item.CloseLineColor;
|
|
586
|
-
|
|
587
|
-
if (item.Header)
|
|
588
|
-
{
|
|
589
|
-
var header=item.Header;
|
|
590
|
-
if (header.Color) this.Report.Header.Color=header.Color;
|
|
591
|
-
if (header.SortColor) this.Report.Header.SortColor=header.SortColor;
|
|
592
|
-
if (header.Mergin)
|
|
593
|
-
{
|
|
594
|
-
var mergin=header.Mergin;
|
|
595
|
-
if (this.IsNumber(mergin.Left)) this.Report.Header.Mergin.Left=mergin.Left;
|
|
596
|
-
if (this.IsNumber(mergin.Right)) this.Report.Header.Mergin.Left=mergin.Right;
|
|
597
|
-
if (this.IsNumber(mergin.Top)) this.Report.Header.Mergin.Top=mergin.Top;
|
|
598
|
-
if (this.IsNumber(mergin.Bottom)) this.Report.Header.Mergin.Bottom=mergin.Bottom;
|
|
599
|
-
}
|
|
600
|
-
if (header.Font)
|
|
601
|
-
{
|
|
602
|
-
var font=header.Font;
|
|
603
|
-
if (font.Name) this.Report.Header.Font.Name=font.Name;
|
|
604
|
-
if (this.IsNumber(font.Size)) this.Report.Header.Font.Size=font.Size;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
if (item.Item)
|
|
609
|
-
{
|
|
610
|
-
var row=item.Item;
|
|
611
|
-
if (row.Mergin)
|
|
612
|
-
{
|
|
613
|
-
var mergin=row.Mergin;
|
|
614
|
-
if (this.IsNumber(mergin.Left)) this.Report.Item.Mergin.Left=mergin.Left;
|
|
615
|
-
if (this.IsNumber(mergin.Right)) this.Report.Item.Mergin.Right=mergin.Right;
|
|
616
|
-
if (this.IsNumber(mergin.Top)) this.Report.Item.Mergin.Top=mergin.Top;
|
|
617
|
-
if (this.IsNumber(mergin.Bottom)) this.Report.Item.Mergin.Bottom=mergin.Bottom;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
if (row.Font)
|
|
621
|
-
{
|
|
622
|
-
var font=row.Font;
|
|
623
|
-
if (font.Name) this.Report.Item.Font.Name=font.Name;
|
|
624
|
-
if (this.IsNumber(font.Size)) this.Report.Item.Font.Size=font.Size;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
if (row.BarMergin)
|
|
628
|
-
{
|
|
629
|
-
var mergin=row.BarMergin;
|
|
630
|
-
if (this.IsNumber(mergin.Left)) this.Report.Item.BarMergin.Left=mergin.Left;
|
|
631
|
-
if (this.IsNumber(mergin.Top)) this.Report.Item.BarMergin.Top=mergin.Top;
|
|
632
|
-
if (this.IsNumber(mergin.Right)) this.Report.Item.BarMergin.Right=mergin.Right;
|
|
633
|
-
if (this.IsNumber(mergin.Bottom)) this.Report.Item.BarMergin.Bottom=mergin.Bottom;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
if (row.NameFont)
|
|
637
|
-
{
|
|
638
|
-
var font=row.NameFont;
|
|
639
|
-
if (font.Name) this.Report.Item.NameFont.Name=font.Name;
|
|
640
|
-
if (this.IsNumber(font.Size)) this.Report.Item.NameFont.Size=font.Size;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
if (row.SymbolFont)
|
|
644
|
-
{
|
|
645
|
-
var font=row.SymbolFont;
|
|
646
|
-
if (font.Name) this.Report.Item.SymbolFont.Name=font.Name;
|
|
647
|
-
if (this.IsNumber(font.Size)) this.Report.Item.SymbolFont.Size=font.Size;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
if (item.FixedItem)
|
|
652
|
-
{
|
|
653
|
-
var row=item.FixedItem;
|
|
654
|
-
if (row.Font)
|
|
655
|
-
{
|
|
656
|
-
var font=row.Font;
|
|
657
|
-
if (font.Name) this.Report.FixedItem.Font.Name=font.Name;
|
|
658
|
-
if (this.IsNumber(font.Size)) this.Report.FixedItem.Font.Size=font.Size;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
if (item.LimitBorder)
|
|
663
|
-
{
|
|
664
|
-
var limit=item.LimitBorder;
|
|
665
|
-
if (limit.Color) this.Report.LimitBorder.Color=limit.Color;
|
|
666
|
-
if (limit.Mergin)
|
|
667
|
-
{
|
|
668
|
-
var mergin=limit.Mergin;
|
|
669
|
-
if (this.IsNumber(mergin.Left)) this.Report.LimitBorder.Mergin.Left=mergin.Left;
|
|
670
|
-
if (this.IsNumber(mergin.Top)) this.Report.LimitBorder.Mergin.Top=mergin.Top;
|
|
671
|
-
if (this.IsNumber(mergin.Right)) this.Report.LimitBorder.Mergin.Right=mergin.Right;
|
|
672
|
-
if (this.IsNumber(mergin.Bottom)) this.Report.LimitBorder.Mergin.Bottom=mergin.Bottom;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
if (item.FieldColor)
|
|
677
|
-
{
|
|
678
|
-
var filed=item.FieldColor;
|
|
679
|
-
if (filed.Name) this.Report.FieldColor.Name=filed.Name;
|
|
680
|
-
if (filed.Symbol) this.Report.FieldColor.Symbol=filed.Symbol;
|
|
681
|
-
if (filed.Vol) this.Report.FieldColor.Vol=filed.Vol;
|
|
682
|
-
if (filed.Amount) this.Report.FieldColor.Amount=filed.Amount;
|
|
683
|
-
if (filed.Index) this.Report.FieldColor.Index=filed.Index;
|
|
684
|
-
if (filed.BarTitle) this.Report.FieldColor.BarTitle=filed.BarTitle;
|
|
685
|
-
if (filed.Text) this.Report.FieldColor.Text=filed.Text;
|
|
686
|
-
|
|
687
|
-
if (this.IsNonEmptyArray(filed.Bar))
|
|
688
|
-
{
|
|
689
|
-
for(var i=0;i<filed.Bar.length;++i)
|
|
690
|
-
this.Report.FieldColor.Bar[i]=filed.Bar[i];
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
if (item.PageInfo)
|
|
695
|
-
{
|
|
696
|
-
var pageinfo=item.PageInfo;
|
|
697
|
-
if (pageinfo.Font)
|
|
698
|
-
{
|
|
699
|
-
var font=pageinfo.Font;
|
|
700
|
-
if (font.Name) this.Report.PageInfo.Font.Name=font.Name;
|
|
701
|
-
if (this.IsNumber(font.Size)) this.Report.PageInfo.Font.Size=font.Size;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
if (pageinfo.TextColor) this.Report.PageInfo.TextColor=pageinfo.TextColor;
|
|
705
|
-
if (pageinfo.BGColor) this.Report.PageInfo.BGColor=pageinfo.BGColor;
|
|
706
|
-
|
|
707
|
-
if (pageinfo.Mergin)
|
|
708
|
-
{
|
|
709
|
-
var mergin=pageinfo.Mergin;
|
|
710
|
-
if (this.IsNumber(mergin.Left)) this.Report.PageInfo.Mergin.Left=mergin.Left;
|
|
711
|
-
if (this.IsNumber(mergin.Top)) this.Report.PageInfo.Mergin.Top=mergin.Top;
|
|
712
|
-
if (this.IsNumber(mergin.Right)) this.Report.PageInfo.Mergin.Right=mergin.Right;
|
|
713
|
-
if (this.IsNumber(mergin.Bottom)) this.Report.PageInfo.Mergin.Bottom=mergin.Bottom;
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
this.IsNumber=function(value)
|
|
721
|
-
{
|
|
722
|
-
if (value==null) return false;
|
|
723
|
-
if (isNaN(value)) return false;
|
|
724
|
-
|
|
725
|
-
return true;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
//判断是否是正数
|
|
729
|
-
this.IsPlusNumber=function(value)
|
|
730
|
-
{
|
|
731
|
-
if (value==null) return false;
|
|
732
|
-
if (isNaN(value)) return false;
|
|
733
|
-
|
|
734
|
-
return value>0;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
//是否是非空的数组
|
|
738
|
-
this.IsNonEmptyArray=function(ary)
|
|
739
|
-
{
|
|
740
|
-
if (!ary) return;
|
|
741
|
-
if (!Array.isArray(ary)) return;
|
|
742
|
-
|
|
743
|
-
return ary.length>0;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
var g_JSChartResource = new JSChartResource();
|
|
748
|
-
|
|
749
|
-
var JSCHART_LANGUAGE_ID =
|
|
750
|
-
{
|
|
751
|
-
LANGUAGE_CHINESE_ID: 0, //简体中文 CN
|
|
752
|
-
LANGUAGE_ENGLISH_ID: 1, //英文 EN
|
|
753
|
-
LANGUAGE_TRADITIONAL_CHINESE_ID:2, //繁体中文 TC
|
|
754
|
-
};
|
|
755
|
-
|
|
756
|
-
function JSChartLocalization()
|
|
757
|
-
{
|
|
758
|
-
this.TextResource = new Map([
|
|
759
|
-
//内部tooltip
|
|
760
|
-
['Tooltip-Open', {CN:'开:', EN:'O:', TC:'開'}],
|
|
761
|
-
['Tooltip-High', {CN:'高:', EN:'H:', TC:'高'}],
|
|
762
|
-
['Tooltip-Low', {CN:'低:', EN:'L:', TC:'低'}],
|
|
763
|
-
['Tooltip-Close', {CN:'收:', EN:'C:', TC:'收'}],
|
|
764
|
-
['Tooltip-Increase', {CN:'幅:', EN:'I:', TC:'幅'}],
|
|
765
|
-
['Tooltip-Vol', {CN:'量:', EN:'V:', TC:'量'}],
|
|
766
|
-
['Tooltip-Amount', {CN:'额:', EN:'A:', TC:'額'}],
|
|
767
|
-
['Tooltip-AvPrice', {CN:'均:', EN:'AP:', TC:'均'}],
|
|
768
|
-
['Tooltip-Price', {CN:'价:', EN:'P:', TC:'價'}],
|
|
769
|
-
['Tooltip-Exchange', {CN:'换:', EN:'E:', TC:'換'}],
|
|
770
|
-
['Tooltip-Position',{CN:'持:', EN:'P:', TC:'持'}],
|
|
771
|
-
|
|
772
|
-
//K线动态标题
|
|
773
|
-
['KTitle-Open', {CN:'开:', EN:'O:', TC:'開'}],
|
|
774
|
-
['KTitle-High', {CN:'高:', EN:'H:', TC:'高'}],
|
|
775
|
-
['KTitle-Low', {CN:'低:', EN:'L:', TC:'低'}],
|
|
776
|
-
['KTitle-Close', {CN:'收:', EN:'C:', TC:'收'}],
|
|
777
|
-
['KTitle-Increase', {CN:'幅:', EN:'I:', TC:'幅'}],
|
|
778
|
-
['KTitle-Vol', {CN:'量:', EN:'V:', TC:'量'}],
|
|
779
|
-
['KTitle-Amount', {CN:'额:', EN:'A:', TC:'額'}],
|
|
780
|
-
['KTitle-Exchange', {CN:'换:', EN:'E:', TC:'換'}],
|
|
781
|
-
['KTitle-Position', {CN:'持:', EN:'P:', TC:'持'}],
|
|
782
|
-
['KTitle-Price', {CN:'价:', EN:'Price:', TC:'價'}],
|
|
783
|
-
|
|
784
|
-
//走势图动态标题
|
|
785
|
-
['MTitle-Close', {CN:'价:', EN:'C:', TC:'價'}],
|
|
786
|
-
['MTitle-AvPrice', {CN:'均:', EN:'AC:', TC:'均'}],
|
|
787
|
-
['MTitle-Increase', {CN:'幅:', EN:'I:', TC:'幅'}],
|
|
788
|
-
['MTitle-Vol', {CN:'量:', EN:'V:', TC:'量'}],
|
|
789
|
-
['MTitle-Amount', {CN:'额:', EN:'A:', TC:'額'}],
|
|
790
|
-
['MTitle-Position', {CN:'持:', EN:'P:', TC:'持'}],
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
//周期
|
|
794
|
-
['日线', {CN:'日线', EN:'1D', TC:'日綫'}],
|
|
795
|
-
['周线', {CN:'周线', EN:'1W', TC:'周綫'}],
|
|
796
|
-
['双周', {CN:'双周', EN:"2W", TC:'雙周'}],
|
|
797
|
-
['月线', {CN:'月线', EN:'1M', TC:'月綫'}],
|
|
798
|
-
["半年", {CN:'半年', EN:'HY', TC:'半年'}],
|
|
799
|
-
['年线', {CN:'年线', EN:'1Y', TC:'年綫'}],
|
|
800
|
-
['1分', {CN:'1分', EN:'1Min', TC:'1分'}],
|
|
801
|
-
['5分', {CN:'5分', EN:'5Min', TC:'5分'}],
|
|
802
|
-
['15分', {CN:'15分', EN:'15Min', TC:'15分'}],
|
|
803
|
-
['30分', {CN:'30分', EN:'30Min', TC:'30分'}],
|
|
804
|
-
['60分', {CN:'60分', EN:'60Min', TC:'60分'}],
|
|
805
|
-
['季线', {CN:'季线', EN:'1Q', TC:'季綫'}],
|
|
806
|
-
['分笔', {CN:'分笔', EN:'Tick', TC:'分筆'}],
|
|
807
|
-
['2小时', {CN:'2小时', EN:'2H', TC:'2小時'}],
|
|
808
|
-
['4小时', {CN:'4小时', EN:'4H', TC:'4小時'}],
|
|
809
|
-
|
|
810
|
-
//复权
|
|
811
|
-
['不复权', {CN:'不复权', EN:'No Right', TC:'不復權'}],
|
|
812
|
-
['前复权', {CN:'前复权', EN:'Pro Right', TC:'前復權'}],
|
|
813
|
-
['后复权', {CN:'后复权', EN:'Post Right', TC:'后復權'}],
|
|
814
|
-
|
|
815
|
-
//week
|
|
816
|
-
['日', {CN:'日', EN:'Sun.', TC:'日'}],
|
|
817
|
-
['一', {CN:'一', EN:'Mon.', TC:'壹'}],
|
|
818
|
-
['二', {CN:'二', EN:'Tues.', TC:'貳'}],
|
|
819
|
-
['三', {CN:'三', EN:'Wed.', TC:'叁'}],
|
|
820
|
-
['四', {CN:'四', EN:'Thur.', TC:'肆'}],
|
|
821
|
-
['五', {CN:'五', EN:'Fri.', TC:'伍'}],
|
|
822
|
-
['六', {CN:'六', EN:'Sat.', TC:'陸'}],
|
|
823
|
-
|
|
824
|
-
['1月', {CN:'1月', EN:'Jan', TC:'1月'}],
|
|
825
|
-
['2月', {CN:'2月', EN:'Feb', TC:'2月'}],
|
|
826
|
-
['3月', {CN:'3月', EN:'Mar', TC:'3月'}],
|
|
827
|
-
['4月', {CN:'4月', EN:'Apr', TC:'4月'}],
|
|
828
|
-
['5月', {CN:'5月', EN:'May', TC:'5月'}],
|
|
829
|
-
['6月', {CN:'6月', EN:'Jun', TC:'6月'}],
|
|
830
|
-
['7月', {CN:'7月', EN:'Jul', TC:'7月'}],
|
|
831
|
-
['8月', {CN:'8月', EN:'Aug', TC:'8月'}],
|
|
832
|
-
['9月', {CN:'9月', EN:'Sept', TC:'9月'}],
|
|
833
|
-
['10月', {CN:'10月', EN:'Oct', TC:'10月'}],
|
|
834
|
-
['11月', {CN:'11月', EN:'Nov', TC:'11月'}],
|
|
835
|
-
['12月', {CN:'12月', EN:'Dec', TC:'12月'}],
|
|
836
|
-
|
|
837
|
-
['自定义分钟', {CN:'分', EN:'Min', TC:'分'}],
|
|
838
|
-
['自定义日线', {CN:'日', EN:'D', TC:'日'}],
|
|
839
|
-
['自定义秒', {CN:'秒', EN:'S', TC:'秒'}],
|
|
840
|
-
|
|
841
|
-
//深度图
|
|
842
|
-
["Depth-Price", {CN:"委托价", EN:"Price", TC:'委托價'}],
|
|
843
|
-
["Depth-Sum", {CN:"累计", EN:"Sum", TC:'累計'}]
|
|
844
|
-
|
|
845
|
-
]);
|
|
846
|
-
|
|
847
|
-
this.GetText = function (key, language)
|
|
848
|
-
{
|
|
849
|
-
var item = this.TextResource.get(key);
|
|
850
|
-
if (!item) return '';
|
|
851
|
-
|
|
852
|
-
switch (language)
|
|
853
|
-
{
|
|
854
|
-
case JSCHART_LANGUAGE_ID.LANGUAGE_CHINESE_ID:
|
|
855
|
-
return item.CN;
|
|
856
|
-
case JSCHART_LANGUAGE_ID.LANGUAGE_ENGLISH_ID:
|
|
857
|
-
return item.EN;
|
|
858
|
-
case JSCHART_LANGUAGE_ID.LANGUAGE_TRADITIONAL_CHINESE_ID:
|
|
859
|
-
return item.TC;
|
|
860
|
-
default:
|
|
861
|
-
return item.CN;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
this.SetTextResource = function (key, value)
|
|
866
|
-
{
|
|
867
|
-
this.TextResource.set(key, value)
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
this.GetLanguageID=function(languageName)
|
|
871
|
-
{
|
|
872
|
-
var languageID=null;
|
|
873
|
-
switch(languageName)
|
|
874
|
-
{
|
|
875
|
-
case 'EN':
|
|
876
|
-
languageID=JSCHART_LANGUAGE_ID.LANGUAGE_ENGLISH_ID;
|
|
877
|
-
break;
|
|
878
|
-
case 'CN':
|
|
879
|
-
languageID=JSCHART_LANGUAGE_ID.LANGUAGE_CHINESE_ID;
|
|
880
|
-
break;
|
|
881
|
-
case "TC":
|
|
882
|
-
languageID=JSCHART_LANGUAGE_ID.LANGUAGE_TRADITIONAL_CHINESE_ID;
|
|
883
|
-
break;
|
|
884
|
-
default:
|
|
885
|
-
break;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
return languageID;
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
var g_JSChartLocalization = new JSChartLocalization();
|
|
893
|
-
|
|
894
|
-
//导出统一使用JSCommon命名空间名
|
|
895
|
-
export
|
|
896
|
-
{
|
|
897
|
-
JSChartResource,
|
|
898
|
-
g_JSChartResource,
|
|
899
|
-
g_JSChartLocalization,
|
|
900
|
-
JSCHART_LANGUAGE_ID
|
|
901
|
-
};
|
|
902
|
-
/*
|
|
903
|
-
module.exports =
|
|
904
|
-
{
|
|
905
|
-
JSCommonResource:
|
|
906
|
-
{
|
|
907
|
-
JSChartResource: JSChartResource,
|
|
908
|
-
Global_JSChartResource: g_JSChartResource,
|
|
909
|
-
Global_JSChartLocalization: g_JSChartLocalization,
|
|
910
|
-
JSCHART_LANGUAGE_ID: JSCHART_LANGUAGE_ID,
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
//单个类导出
|
|
914
|
-
JSCommonResource_JSChartResource: JSChartResource,
|
|
915
|
-
JSCommonResource_Global_JSChartResource: g_JSChartResource,
|
|
916
|
-
JSCommonResource_Global_JSChartLocalization: g_JSChartLocalization,
|
|
917
|
-
JSCommonResource_JSCHART_LANGUAGE_ID: JSCHART_LANGUAGE_ID
|
|
918
|
-
};
|
|
919
|
-
*/
|