403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/KPI monitor/node_modules/highcharts/esm/indicators/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/KPI monitor/node_modules/highcharts/esm/indicators/acceleration-bands.js
/**
 * Highstock JS v12.5.0 (2026-01-12)
 * @module highcharts/indicators/acceleration-bands
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Daniel Studencki
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */import*as e from"../highcharts.js";var t,a={};a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let i=e.default;var o=a.n(i);let r=e.default.SeriesRegistry;var s=a.n(r);let{sma:{prototype:n}}=s().seriesTypes,{defined:l,error:p,merge:h}=o();!function(e){let t=["bottomLine"],a=["top","bottom"],i=["top"];function o(e){return"plot"+e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){let a=[];return(e.pointArrayMap||[]).forEach(e=>{e!==t&&a.push(o(e))}),a}function s(){let e=this,t=e.pointValKey,a=e.linesApiNames,i=e.areaLinesNames,s=e.points,c=e.options,u=e.graph,d={options:{gapSize:c.gapSize}},f=[],y=r(e,t),m=s.length,g;if(y.forEach((e,t)=>{for(f[t]=[];m--;)g=s[m],f[t].push({x:g.x,plotX:g.plotX,plotY:g[e],isNull:!l(g[e])});m=s.length}),e.userOptions.fillColor&&i.length){let t=f[y.indexOf(o(i[0]))],a=1===i.length?s:f[y.indexOf(o(i[1]))],r=e.color;e.points=a,e.nextPoints=t,e.color=e.userOptions.fillColor,e.options=h(s,d),e.graph=e.area,e.fillGraph=!0,n.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=r}a.forEach((t,a)=>{f[a]?(e.points=f[a],c[t]?e.options=h(c[t].styles,d):p('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],n.drawGraph.call(e),e["graph"+t]=e.graph):p('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=s,e.options=c,e.graph=u,n.drawGraph.call(e)}function c(e){let t,a=[],i=[];if(e=e||this.points,this.fillGraph&&this.nextPoints){if((t=n.getGraphPath.call(this,this.nextPoints))&&t.length){t[0][0]="L",a=n.getGraphPath.call(this,e),i=t.slice(0,a.length);for(let e=i.length-1;e>=0;e--)a.push(i[e])}}else a=n.getGraphPath.apply(this,arguments);return a}function u(e){let t=[];return(this.pointArrayMap||[]).forEach(a=>{t.push(e[a])}),t}function d(){let e=this.pointArrayMap,t=[],a;t=r(this),n.translate.apply(this,arguments),this.points.forEach(i=>{e.forEach((e,o)=>{a=i[e],this.dataModify&&(a=this.dataModify.modifyValue(a)),null!==a&&(i[t[o]]=this.yAxis.toPixels(a,!0))})})}e.compose=function(e){let o=e.prototype;return o.linesApiNames=o.linesApiNames||t.slice(),o.pointArrayMap=o.pointArrayMap||a.slice(),o.pointValKey=o.pointValKey||"top",o.areaLinesNames=o.areaLinesNames||i.slice(),o.drawGraph=s,o.getGraphPath=c,o.toYData=u,o.translate=d,e}}(t||(t={}));let c=t,{sma:u}=s().seriesTypes,{correctFloat:d,extend:f,merge:y}=o();class m extends u{getValues(e,t){let a,i,o,r,s,n,l,p,h,c,u,f=t.period,y=t.factor,m=t.index,g=e.xData,x=e.yData,A=x?x.length:0,D=[],G=[],b=[],v=[],M=[];if(!(A<f)){for(u=0;u<=A;u++){if(u<A){var N,O;N=x[u][2],O=x[u][1],s=d(O-N)/(d(O+N)/2)*1e3*y,D.push(x[u][1]*d(1+2*s)),G.push(x[u][2]*d(1-2*s))}u>=f&&(h=g.slice(u-f,u),c=x.slice(u-f,u),l=super.getValues.call(this,{xData:h,yData:D.slice(u-f,u)},{period:f}),p=super.getValues.call(this,{xData:h,yData:G.slice(u-f,u)},{period:f}),r=(n=super.getValues.call(this,{xData:h,yData:c},{period:f,index:m})).xData[0],i=l.yData[0],o=p.yData[0],a=n.yData[0],b.push([r,i,a,o]),v.push(r),M.push([i,a,o]))}return{values:b,xData:v,yData:M}}}}m.defaultOptions=y(u.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}}),f(m.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),c.compose(m),s().registerSeriesType("abands",m);let g=o();export{g as default};

Youez - 2016 - github.com/yon3zu
LinuXploit