Files
ai/charting_library/static/bundles/series-pane-views.1ef988f4c3e8149e0428.js
Jenkins 9d8b63e068 VERSION 1.14 @ 2019-04-04 08:32:01.655131
x axis retains previous scale after restoring layout #3828
getVisiblePriceRange() not working in 1.14 (unstable) #3774
uppercase_instrument_names doesn't work for compare/overlay #3746
API method to trigger the Zoom Out #3739
Provide event that study properties was changed #3736
Fixed security issue in master #3699
widget.save have old data #3623
JS error on switching chart types #3602
Add a way to prevent scrolling beyond the beginning of bars #3597
Chart customization - overrides #3572
Theme override colors from saved_data #3557
Error while applying Pivot Points Indicator #3521
Month timeframe combining months #3510
initialSettings from settings adapter does not work #3479
Add Indexed to 100 mode for price scale #3391
RTL #3335
Add warning about incorrect usage disable_resolution_rebuild and has_empty_bars #3329
Unable to load DOME and Bottom Widget when open_account_manager disabled #3312
Randomly clickable area on chart that redirects user to tradingview.com #3299
Apply to all #3298
Save container element while charting library's life #3297
Gap appearing in chart layout #3246
User's colors not working when theme is enabled #3232
Chart is outside of visible range when in auto scale and load study template or load chart #3229
Please make getVisibleRange return the range in UTC #3173
Remove TradingView.onready from API #3162
Add API to export data from the chart #3152
Market status is not updated properly #3122
Placeholders disappear in "Compare or Add Symbol" popup when the cursor is set into the fields #2966
getVisibleRange to return 0, any way of getting the last bar in active chart ? #2757
"onListAdded" event is not fired when user click on "Save Watchlist As" #2654
Error report : Parabolic SAR #2205
TERMINAL: make a flag to disable support of stop orders #2181
Add Change % in the OHLC label Charting Library #2120
Request more bars for indicators #1362
Drawing tool does not work on Samsung Edge and  Note 5 #984
2019-04-04 11:32:07 +03:00

1 line
2.4 KiB
JavaScript

webpackJsonp([25],{810:function(t,e,i){"use strict";function a(){this._data=null}function s(t,e){this._gotoDateResult=e,this._series=t,this._invalidated=!0,this._renderer=new a}var n=i(6).Point,r=i(69).CompositeRenderer,o=i(201).DateFormatter,l=i(130).TimeFormatter,d=i(81).calcTextHorizontalShift;a.prototype.setData=function(t){this._data=t},a.prototype.hitTest=function(){return null},a.prototype.draw=function(t){var e,i,a,s,n,r,o,l,h,_,u,m,p,f,T,S,c,g,x;null!==this._data&&(e=5,i=12,a=5,s=8,n=13,r=0,t.save(),t.setFont(n+"px Arial"),h=$.t("Last available bar"),this._data.eod?r=t.measureText(h).width:(o=t.measureText(this._data.dateString||"").width,l=t.measureText(this._data.timeString||"").width,r=Math.max(o,l)),_=this._data.timeString?2:1,t.fillStyle=this._data.eod?"#FF4040":"#58A3CD",t.translate(this._data.point.x+.5,this._data.point.y+.5),u=Math.round(-r/2)-s,m=-(n+e)*_-e-i-a,p=Math.round(u+r+2*s),f=-i-a,t.beginPath(),t.moveTo(u,m),t.lineTo(p,m),t.lineTo(p,f),t.lineTo(i,f),t.lineTo(0,f+i),t.lineTo(-i,f),t.lineTo(u,f),t.fill(),t.fillStyle="#FFFFFF",t.textBaseline="middle",this._data.eod?(T=d(t,r),t.fillText(h,u+s+T,m+(f-m)/2)):(S=u+s+(r-o)/2,c=d(t,o),t.fillText(this._data.dateString,S+c,m+n/2+e),this._data.timeString&&(g=d(t,l),x=u+s+(r-l)/2,t.fillText(this._data.timeString,x+g,m+(n+e)*_-.5*n))),t.restore())},s.prototype.update=function(){this._invalidated=!0},s.prototype.updateImpl=function(){var t,e,i,a,s,r,d;delete this._point,delete this._dateString,delete this._timeString,delete this._eod,t=this._series.model().timeScale().timePointToIndex(this._gotoDateResult.timestamp),e=this._series.bars(),i=null,t<e.firstIndex()&&null!==e.first()?(t=e.firstIndex(),i=e.first().value):t>e.lastIndex()&&null!==e.last()?(t=e.lastIndex(),i=e.last().value):i=e.valueAt(t),null!==i&&null!=(a=this._series.firstValue())&&(s=this._series.priceScale().priceToCoordinate(i[TradingView.HIGH_PLOT],a),r=this._series.model().timeScale().indexToCoordinate(t),this._point=new n(r,s),this._gotoDateResult.eod?this._eod=!0:(d=this._series.model().timeScale().indexToUserTime(t),this._dateString=(new o).format(d),this._series.isDWM()||(this._timeString=(new l).format(d))))},s.prototype.renderer=function(){return this._invalidated&&(this.updateImpl(),this._invalidated=!1),this._point?(this._renderer.setData({point:this._point,dateString:this._dateString,timeString:this._timeString,eod:this._eod}),this._renderer):new r},t.exports.GotoDateView=s}});