smoothie.js 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049
  1. (function(personwarehouse) {
  2. Date.now = Date.now || function() {
  3. return new Date().getTime();
  4. };
  5. var command = {
  6. 'extend': function() {
  7. arguments[0] = arguments[0] || {};
  8. for (var personwarehouse = 1; personwarehouse < arguments.length; personwarehouse++) {
  9. for (var gold in arguments[personwarehouse]) {
  10. if ('kVzPL' !== 'mjNcE') {
  11. if (arguments[personwarehouse].hasOwnProperty(gold)) {
  12. if ('rTDzq' === 'rTDzq') {
  13. if ('object' === typeof arguments[personwarehouse][gold]) {
  14. if (arguments[personwarehouse][gold] instanceof Array) {
  15. arguments[0][gold] = arguments[personwarehouse][gold];
  16. } else {
  17. arguments[0][gold] = command.extend(arguments[0][gold], arguments[personwarehouse][gold]);
  18. }
  19. } else {
  20. arguments[0][gold] = arguments[personwarehouse][gold];
  21. }
  22. } else {
  23. for (var combat = 0; combat < o.horizontalLines.length; combat++) {
  24. var debuff = o.horizontalLines[combat],
  25. rokansymbol = Math.round(r(debuff.value)) - 0.5;
  26. a.strokeStyle = debuff.color || '#ffffff';
  27. a.lineWidth = debuff.lineWidth || 1;
  28. a.beginPath();
  29. a.moveTo(0, rokansymbol);
  30. a.lineTo(n.width, rokansymbol);
  31. a.stroke();
  32. a.closePath();
  33. }
  34. }
  35. }
  36. } else {
  37. return;
  38. }
  39. }
  40. }
  41. return arguments[0];
  42. },
  43. 'binarySearch': function(personwarehouse, command) {
  44. var juice = 0,
  45. tear = personwarehouse.length;
  46. while (juice < tear) {
  47. if ('zWEIh' !== 'RcflT') {
  48. var fairy = juice + tear >> 1;
  49. if (command < personwarehouse[fairy][0]) {
  50. tear = fairy;
  51. } else {
  52. juice = fairy + 1;
  53. }
  54. } else {
  55. tear = fairy;
  56. }
  57. }
  58. return juice;
  59. }
  60. };
  61. function jawbone(personwarehouse) {
  62. this.options = command.extend({}, jawbone.defaultOptions, personwarehouse);
  63. this.disabled = ![];
  64. this.clear();
  65. }
  66. jawbone.defaultOptions = {
  67. 'resetBoundsInterval': 3000,
  68. 'resetBounds': !![]
  69. };
  70. jawbone.prototype.clear = function() {
  71. if ('aPkAu' !== 'gVQlJ') {
  72. this.data = [];
  73. this.maxValue = Number.NaN;
  74. this.minValue = Number.NaN;
  75. } else {
  76. var dashcut = h(u);
  77. if (!o.scrollBackwards && dashcut < D || o.scrollBackwards && dashcut > D) {
  78. var driedmeat = new Date(u),
  79. salad = o.timestampFormatter(driedmeat),
  80. changecolorenable = a.measureText(salad).width;
  81. D = o.scrollBackwards ? dashcut + changecolorenable + 2 : dashcut - changecolorenable - 2;
  82. a.fillStyle = o.labels.fillStyle;
  83. if (o.scrollBackwards) {
  84. a.fillText(salad, dashcut, n.height - 2);
  85. } else {
  86. a.fillText(salad, dashcut - changecolorenable, n.height - 2);
  87. }
  88. }
  89. }
  90. };
  91. jawbone.prototype.resetBounds = function() {
  92. if (this.data.length) {
  93. this.maxValue = this.data[0][1];
  94. this.minValue = this.data[0][1];
  95. for (var personwarehouse = 1; personwarehouse < this.data.length; personwarehouse++) {
  96. var command = this.data[personwarehouse][1];
  97. if (command > this.maxValue) {
  98. this.maxValue = command;
  99. }
  100. if (command < this.minValue) {
  101. if ('kIDtN' !== 'GMtlF') {
  102. this.minValue = command;
  103. } else {
  104. return parseFloat(personwarehouse).toFixed(command);
  105. }
  106. }
  107. }
  108. } else {
  109. if ('CQwCR' !== 'CQwCR') {
  110. command = parseInt(this.canvas.getAttribute('width'));
  111. jawbone = parseInt(this.canvas.getAttribute('height'));
  112. if (!this.originalWidth || Math.floor(this.originalWidth * personwarehouse) !== command) {
  113. this.originalWidth = command;
  114. this.canvas.setAttribute('width', Math.floor(command * personwarehouse).toString());
  115. this.canvas.style.width = command + 'px';
  116. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  117. }
  118. if (!this.originalHeight || Math.floor(this.originalHeight * personwarehouse) !== jawbone) {
  119. this.originalHeight = jawbone;
  120. this.canvas.setAttribute('height', Math.floor(jawbone * personwarehouse).toString());
  121. this.canvas.style.height = jawbone + 'px';
  122. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  123. }
  124. } else {
  125. this.maxValue = Number.NaN;
  126. this.minValue = Number.NaN;
  127. }
  128. }
  129. };
  130. jawbone.prototype.append = function(personwarehouse, command, jawbone) {
  131. if (isNaN(personwarehouse) || isNaN(command)) {
  132. if ('jIsun' === 'jIsun') {
  133. return;
  134. } else {
  135. this.lastWidth = command;
  136. this.canvas.setAttribute('width', Math.floor(command * personwarehouse).toString());
  137. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  138. }
  139. }
  140. var bluebottle = this.data.length - 1;
  141. while (bluebottle >= 0 && this.data[bluebottle][0] > personwarehouse) {
  142. bluebottle--;
  143. }
  144. if (-1 === bluebottle) {
  145. this.data.splice(0, 0, [personwarehouse, command]);
  146. } else if (this.data.length > 0 && this.data[bluebottle][0] === personwarehouse) {
  147. if ('EqOQr' !== 'UAxra') {
  148. if (jawbone) {
  149. if ('FgEns' === 'FgEns') {
  150. this.data[bluebottle][1] += command;
  151. command = this.data[bluebottle][1];
  152. } else {
  153. command = personwarehouse.maxValue;
  154. }
  155. } else {
  156. if ('Cjkbx' !== 'MnUrZ') {
  157. this.data[bluebottle][1] = command;
  158. } else {
  159. command = !isNaN(command) ? Math.max(command, a.maxValue) : a.maxValue;
  160. }
  161. }
  162. } else {
  163. return;
  164. }
  165. } else if (bluebottle < this.data.length - 1) {
  166. if ('RGeBe' !== 'RGeBe') {
  167. return;
  168. } else {
  169. this.data.splice(bluebottle + 1, 0, [personwarehouse, command]);
  170. }
  171. } else {
  172. this.data.push([personwarehouse, command]);
  173. }
  174. this.maxValue = isNaN(this.maxValue) ? command : Math.max(this.maxValue, command);
  175. this.minValue = isNaN(this.minValue) ? command : Math.min(this.minValue, command);
  176. };
  177. jawbone.prototype.dropOldData = function(personwarehouse, command) {
  178. if ('QBCLR' !== 'JuxPa') {
  179. var jawbone = 0;
  180. while (this.data.length - jawbone >= command && this.data[jawbone + 1][0] < personwarehouse) {
  181. if ('UALKe' === 'UALKe') {
  182. jawbone++;
  183. } else {
  184. var poporikid = jawbone[food][0];
  185. personwarehouse = personwarehouse > poporikid ? personwarehouse : poporikid;
  186. }
  187. }
  188. if (0 !== jawbone) {
  189. this.data.splice(0, jawbone);
  190. }
  191. } else {
  192. b = V;
  193. w = F;
  194. a.moveTo(V, F);
  195. }
  196. };
  197. function food(personwarehouse) {
  198. this.options = command.extend({}, food.defaultChartOptions, personwarehouse);
  199. this.seriesSet = [];
  200. this.currentValueRange = 1;
  201. this.currentVisMinValue = 0;
  202. this.lastRenderTimeMillis = 0;
  203. this.lastChartTimestamp = 0;
  204. this.mousemove = this.mousemove.bind(this);
  205. this.mouseout = this.mouseout.bind(this);
  206. }
  207. food.tooltipFormatter = function(personwarehouse, command) {
  208. if ('egekq' === 'egekq') {
  209. for (var jawbone = this.options.timestampFormatter || food.timeFormatter, poporiboy = [jawbone(new Date(personwarehouse))], ironcue, homunculussmurf = 0; homunculussmurf < command.length; ++homunculussmurf) {
  210. if ('iWKPJ' !== 'iWKPJ') {
  211. for (var boxjewel = this.seriesSet.length, crestspiritofconfusion = 0; crestspiritofconfusion < boxjewel; crestspiritofconfusion++) {
  212. if (this.seriesSet[crestspiritofconfusion].timeSeries === personwarehouse) {
  213. return this.seriesSet[crestspiritofconfusion].options;
  214. }
  215. }
  216. } else {
  217. ironcue = command[homunculussmurf].series.options.tooltipLabel || '';
  218. if ('' !== ironcue) {
  219. if ('PklRC' !== 'SuNhZ') {
  220. ironcue += ' ';
  221. } else {
  222. this.maxValue = Number.NaN;
  223. this.minValue = Number.NaN;
  224. }
  225. }
  226. poporiboy.push('<span style=\"color:' + command[homunculussmurf].series.options.strokeStyle + '\">' + ironcue + this.options.yMaxFormatter(command[homunculussmurf].value, this.options.labels.precision) + '</span>');
  227. }
  228. }
  229. return poporiboy.join('<br>');
  230. } else {
  231. var bladeknife = window.cancelAnimationFrame || function(bloodbottle) {
  232. clearTimeout(bloodbottle);
  233. };
  234. return bladeknife.call(window, personwarehouse);
  235. }
  236. };
  237. food.defaultChartOptions = {
  238. 'millisPerPixel': 20,
  239. 'enableDpiScaling': !![],
  240. 'yMinFormatter': function(personwarehouse, command) {
  241. if ('eGeDZ' === 'eGeDZ') {
  242. return parseFloat(personwarehouse).toFixed(command);
  243. } else {
  244. if (arguments[personwarehouse][jawbone] instanceof Array) {
  245. arguments[0][jawbone] = arguments[personwarehouse][jawbone];
  246. } else {
  247. arguments[0][jawbone] = command.extend(arguments[0][jawbone], arguments[personwarehouse][jawbone]);
  248. }
  249. }
  250. },
  251. 'yMaxFormatter': function(personwarehouse, command) {
  252. return parseFloat(personwarehouse).toFixed(command);
  253. },
  254. 'yIntermediateFormatter': function(personwarehouse, command) {
  255. if ('gBJFz' !== 'gBJFz') {
  256. this.canvas = personwarehouse;
  257. this.delay = command;
  258. this.start();
  259. } else {
  260. return parseFloat(personwarehouse).toFixed(command);
  261. }
  262. },
  263. 'maxValueScale': 1,
  264. 'minValueScale': 1,
  265. 'interpolation': 'bezier',
  266. 'scaleSmoothing': 0.125,
  267. 'maxDataSetLength': 2,
  268. 'scrollBackwards': ![],
  269. 'displayDataFromPercentile': 1,
  270. 'grid': {
  271. 'fillStyle': '#000000',
  272. 'strokeStyle': '#777777',
  273. 'lineWidth': 1,
  274. 'sharpLines': ![],
  275. 'millisPerLine': 1000,
  276. 'verticalSections': 2,
  277. 'borderVisible': !![]
  278. },
  279. 'labels': {
  280. 'fillStyle': '#ffffff',
  281. 'disabled': ![],
  282. 'fontSize': 10,
  283. 'fontFamily': 'monospace',
  284. 'precision': 2,
  285. 'showIntermediateLabels': ![],
  286. 'intermediateLabelSameAxis': !![]
  287. },
  288. 'title': {
  289. 'text': '',
  290. 'fillStyle': '#ffffff',
  291. 'fontSize': 15,
  292. 'fontFamily': 'monospace',
  293. 'verticalAlign': 'middle'
  294. },
  295. 'horizontalLines': [],
  296. 'tooltip': ![],
  297. 'tooltipLine': {
  298. 'lineWidth': 1,
  299. 'strokeStyle': '#BBBBBB'
  300. },
  301. 'tooltipFormatter': food.tooltipFormatter,
  302. 'nonRealtimeData': ![],
  303. 'responsive': ![],
  304. 'limitFPS': 0
  305. };
  306. food.AnimateCompatibility = function() {
  307. var personwarehouse = function(personwarehouse, command) {
  308. if ('stRaI' !== 'stRaI') {
  309. this.data.splice(0, jawbone);
  310. } else {
  311. var jawbone = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(personwarehouse) {
  312. if ('hqNzN' === 'hqNzN') {
  313. return window.setTimeout(function() {
  314. if ('xZypM' !== 'xZypM') {
  315. a.textBaseline = 'bottom';
  316. var recipeweapon = n.height;
  317. } else {
  318. personwarehouse(Date.now());
  319. }
  320. }, 16);
  321. } else {
  322. arguments[0][jawbone] = command.extend(arguments[0][jawbone], arguments[personwarehouse][jawbone]);
  323. }
  324. };
  325. return jawbone.call(window, personwarehouse, command);
  326. }
  327. },
  328. command = function(personwarehouse) {
  329. var command = window.cancelAnimationFrame || function(personwarehouse) {
  330. clearTimeout(personwarehouse);
  331. };
  332. return command.call(window, personwarehouse);
  333. };
  334. return {
  335. 'requestAnimationFrame': personwarehouse,
  336. 'cancelAnimationFrame': command
  337. };
  338. }();
  339. food.defaultSeriesPresentationOptions = {
  340. 'lineWidth': 1,
  341. 'strokeStyle': '#ffffff'
  342. };
  343. food.prototype.addTimeSeries = function(personwarehouse, jawbone) {
  344. this.seriesSet.push({
  345. 'timeSeries': personwarehouse,
  346. 'options': command.extend({}, food.defaultSeriesPresentationOptions, jawbone)
  347. });
  348. if (personwarehouse.options.resetBounds && personwarehouse.options.resetBoundsInterval > 0) {
  349. personwarehouse.resetBoundsTimerId = setInterval(function() {
  350. personwarehouse.resetBounds();
  351. }, personwarehouse.options.resetBoundsInterval);
  352. }
  353. };
  354. food.prototype.removeTimeSeries = function(personwarehouse) {
  355. for (var command = this.seriesSet.length, jawbone = 0; jawbone < command; jawbone++) {
  356. if ('BNMWv' !== 'BNMWv') {
  357. personwarehouse.innerHTML = this.options.tooltipFormatter.call(this, food, a);
  358. personwarehouse.style.display = 'block';
  359. } else {
  360. if (this.seriesSet[jawbone].timeSeries === personwarehouse) {
  361. this.seriesSet.splice(jawbone, 1);
  362. break;
  363. }
  364. }
  365. }
  366. if (personwarehouse.resetBoundsTimerId) {
  367. clearInterval(personwarehouse.resetBoundsTimerId);
  368. }
  369. };
  370. food.prototype.getTimeSeriesOptions = function(personwarehouse) {
  371. if ('WvTfS' !== 'WvTfS') {
  372. a.stroke();
  373. } else {
  374. for (var command = this.seriesSet.length, jawbone = 0; jawbone < command; jawbone++) {
  375. if (this.seriesSet[jawbone].timeSeries === personwarehouse) {
  376. if ('MiJoG' !== 'SxzhY') {
  377. return this.seriesSet[jawbone].options;
  378. } else {
  379. clearTimeout(personwarehouse);
  380. }
  381. }
  382. }
  383. }
  384. };
  385. food.prototype.bringToFront = function(personwarehouse) {
  386. if ('lVvgu' !== 'lVvgu') {
  387. this.data[food][1] = command;
  388. } else {
  389. for (var command = this.seriesSet.length, jawbone = 0; jawbone < command; jawbone++) {
  390. if ('bGzxL' === 'bGzxL') {
  391. if (this.seriesSet[jawbone].timeSeries === personwarehouse) {
  392. var food = this.seriesSet.splice(jawbone, 1);
  393. this.seriesSet.push(food[0]);
  394. break;
  395. }
  396. } else {
  397. return window.setTimeout(function() {
  398. personwarehouse(Date.now());
  399. }, 16);
  400. }
  401. }
  402. }
  403. };
  404. food.prototype.streamTo = function(personwarehouse, command) {
  405. this.canvas = personwarehouse;
  406. this.delay = command;
  407. this.start();
  408. };
  409. food.prototype.getTooltipEl = function() {
  410. if ('FLMxm' === 'frvpd') {
  411. return;
  412. } else {
  413. if (!this.tooltipEl) {
  414. this.tooltipEl = document.createElement('div');
  415. this.tooltipEl.className = 'smoothie-chart-tooltip';
  416. this.tooltipEl.style.position = 'absolute';
  417. this.tooltipEl.style.display = 'none';
  418. document.body.appendChild(this.tooltipEl);
  419. }
  420. return this.tooltipEl;
  421. }
  422. };
  423. food.prototype.updateTooltip = function() {
  424. if (!this.options.tooltip) {
  425. if ('rEvSc' !== 'zxwvx') {
  426. return;
  427. } else {
  428. if (jawbone) {
  429. this.data[food][1] += command;
  430. command = this.data[food][1];
  431. } else {
  432. this.data[food][1] = command;
  433. }
  434. }
  435. }
  436. var personwarehouse = this.getTooltipEl();
  437. if (!this.mouseover || !this.options.tooltip) {
  438. personwarehouse.style.display = 'none';
  439. return;
  440. }
  441. for (var jawbone = this.lastChartTimestamp, food = this.options.scrollBackwards ? jawbone - this.mouseX * this.options.millisPerPixel : jawbone - (this.canvas.offsetWidth - this.mouseX) * this.options.millisPerPixel, crystalcue = [], godpotion = 0; godpotion < this.seriesSet.length; godpotion++) {
  442. if ('XSdOH' !== 'XSdOH') {
  443. var mineral = command - jawbone,
  444. color = mineral - this.currentValueRange,
  445. twoh = jawbone - this.currentVisMinValue;
  446. this.isAnimatingScale = Math.abs(color) > 0.1 || Math.abs(twoh) > 0.1;
  447. this.currentValueRange += personwarehouse.scaleSmoothing * color;
  448. this.currentVisMinValue += personwarehouse.scaleSmoothing * twoh;
  449. } else {
  450. var bugbeetle = this.seriesSet[godpotion].timeSeries;
  451. if (bugbeetle.disabled) {
  452. if ('RJwau' !== 'RJwau') {
  453. var strengthenmana = Math.round(d * bugbeetle.height / godpotion.grid.verticalSections);
  454. if (godpotion.grid.sharpLines) {
  455. strengthenmana -= 0.5;
  456. }
  457. crystalcue.beginPath();
  458. crystalcue.moveTo(0, strengthenmana);
  459. crystalcue.lineTo(bugbeetle.width, strengthenmana);
  460. crystalcue.stroke();
  461. crystalcue.closePath();
  462. } else {
  463. continue;
  464. }
  465. }
  466. var scrollopen = command.binarySearch(bugbeetle.data, food);
  467. if (scrollopen > 0 && scrollopen < bugbeetle.data.length) {
  468. crystalcue.push({
  469. 'series': this.seriesSet[godpotion],
  470. 'index': scrollopen,
  471. 'value': bugbeetle.data[scrollopen][1]
  472. });
  473. }
  474. }
  475. }
  476. if (crystalcue.length) {
  477. personwarehouse.innerHTML = this.options.tooltipFormatter.call(this, food, crystalcue);
  478. personwarehouse.style.display = 'block';
  479. } else {
  480. personwarehouse.style.display = 'none';
  481. }
  482. };
  483. food.prototype.mousemove = function(personwarehouse) {
  484. if ('vVJVi' !== 'uqFHl') {
  485. this.mouseover = !![];
  486. this.mouseX = personwarehouse.offsetX;
  487. this.mouseY = personwarehouse.offsetY;
  488. this.mousePageX = personwarehouse.pageX;
  489. this.mousePageY = personwarehouse.pageY;
  490. if (!this.options.tooltip) {
  491. return;
  492. }
  493. var command = this.getTooltipEl();
  494. command.style.top = Math.round(this.mousePageY) + 'px';
  495. command.style.left = Math.round(this.mousePageX) + 'px';
  496. this.updateTooltip();
  497. } else {
  498. a.textBaseline = 'top';
  499. var towhand = 0;
  500. }
  501. };
  502. food.prototype.mouseout = function() {
  503. this.mouseover = ![];
  504. this.mouseX = this.mouseY = -1;
  505. if (this.tooltipEl) {
  506. if ('AvqTF' === 'AvqTF') {
  507. this.tooltipEl.style.display = 'none';
  508. } else {
  509. arguments[0][jawbone] = arguments[personwarehouse][jawbone];
  510. }
  511. }
  512. };
  513. food.prototype.resize = function() {
  514. var personwarehouse = !this.options.enableDpiScaling || !window ? 1 : window.devicePixelRatio,
  515. command, jawbone;
  516. if (this.options.responsive) {
  517. command = this.canvas.offsetWidth;
  518. jawbone = this.canvas.offsetHeight;
  519. if (command !== this.lastWidth) {
  520. if ('Gjmvs' !== 'Gjmvs') {
  521. personwarehouse(Date.now());
  522. } else {
  523. this.lastWidth = command;
  524. this.canvas.setAttribute('width', Math.floor(command * personwarehouse).toString());
  525. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  526. }
  527. }
  528. if (jawbone !== this.lastHeight) {
  529. if ('DxYoR' === 'DTlzO') {
  530. jawbone = a + 1;
  531. } else {
  532. this.lastHeight = jawbone;
  533. this.canvas.setAttribute('height', Math.floor(jawbone * personwarehouse).toString());
  534. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  535. }
  536. }
  537. } else if (1 !== personwarehouse) {
  538. command = parseInt(this.canvas.getAttribute('width'));
  539. jawbone = parseInt(this.canvas.getAttribute('height'));
  540. if (!this.originalWidth || Math.floor(this.originalWidth * personwarehouse) !== command) {
  541. this.originalWidth = command;
  542. this.canvas.setAttribute('width', Math.floor(command * personwarehouse).toString());
  543. this.canvas.style.width = command + 'px';
  544. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  545. }
  546. if (!this.originalHeight || Math.floor(this.originalHeight * personwarehouse) !== jawbone) {
  547. this.originalHeight = jawbone;
  548. this.canvas.setAttribute('height', Math.floor(jawbone * personwarehouse).toString());
  549. this.canvas.style.height = jawbone + 'px';
  550. this.canvas.getContext('2d').scale(personwarehouse, personwarehouse);
  551. }
  552. }
  553. };
  554. food.prototype.start = function() {
  555. if (this.frame) {
  556. return;
  557. }
  558. this.canvas.addEventListener('mousemove', this.mousemove);
  559. this.canvas.addEventListener('mouseout', this.mouseout);
  560. var personwarehouse = function() {
  561. if ('IgIuk' !== 'lDFvK') {
  562. this.frame = food.AnimateCompatibility.requestAnimationFrame(function() {
  563. if ('CSYAR' === 'MENop') {
  564. return new Date().getTime();
  565. } else {
  566. if (this.options.nonRealtimeData) {
  567. if ('qbrAf' === 'qbrAf') {
  568. var command = new Date(0),
  569. jawbone = this.seriesSet.reduce(function(personwarehouse, command) {
  570. if ('Actrx' !== 'thAMS') {
  571. var jawbone = command.timeSeries.data,
  572. food = Math.round(this.options.displayDataFromPercentile * jawbone.length) - 1;
  573. food = food >= 0 ? food : 0;
  574. food = food <= jawbone.length - 1 ? food : jawbone.length - 1;
  575. if (jawbone && jawbone.length > 0) {
  576. var spirit = jawbone[food][0];
  577. personwarehouse = personwarehouse > spirit ? personwarehouse : spirit;
  578. }
  579. return personwarehouse;
  580. } else {
  581. personwarehouse.style.display = 'none';
  582. return;
  583. }
  584. } ['bind'](this), command);
  585. this.render(this.canvas, jawbone > command ? jawbone : null);
  586. } else {
  587. a.beginPath();
  588. for (var vender = command - command % o.grid.millisPerLine; vender >= l; vender -= o.grid.millisPerLine) {
  589. var fabrication = h(vender);
  590. if (o.grid.sharpLines) {
  591. fabrication -= 0.5;
  592. }
  593. a.moveTo(fabrication, 0);
  594. a.lineTo(fabrication, n.height);
  595. }
  596. a.stroke();
  597. a.closePath();
  598. }
  599. } else {
  600. this.render();
  601. }
  602. personwarehouse();
  603. }
  604. } ['bind'](this));
  605. } else {
  606. this.data[food][1] += command;
  607. command = this.data[food][1];
  608. }
  609. } ['bind'](this);
  610. personwarehouse();
  611. };
  612. food.prototype.stop = function() {
  613. if ('NPBit' === 'MSWzB') {
  614. this.options = command.extend({}, food.defaultChartOptions, personwarehouse);
  615. this.seriesSet = [];
  616. this.currentValueRange = 1;
  617. this.currentVisMinValue = 0;
  618. this.lastRenderTimeMillis = 0;
  619. this.lastChartTimestamp = 0;
  620. this.mousemove = this.mousemove.bind(this);
  621. this.mouseout = this.mouseout.bind(this);
  622. } else {
  623. if (this.frame) {
  624. if ('qVUmj' !== 'qVUmj') {
  625. var customizestonecue = h(u);
  626. if (o.grid.sharpLines) {
  627. customizestonecue -= 0.5;
  628. }
  629. a.moveTo(customizestonecue, 0);
  630. a.lineTo(customizestonecue, n.height);
  631. } else {
  632. food.AnimateCompatibility.cancelAnimationFrame(this.frame);
  633. delete this.frame;
  634. this.canvas.removeEventListener('mousemove', this.mousemove);
  635. this.canvas.removeEventListener('mouseout', this.mouseout);
  636. }
  637. }
  638. }
  639. };
  640. food.prototype.updateValueRange = function() {
  641. if ('Sfjar' !== 'KZDHK') {
  642. for (var personwarehouse = this.options, command = Number.NaN, jawbone = Number.NaN, food = 0; food < this.seriesSet.length; food++) {
  643. var woodbillet = this.seriesSet[food].timeSeries;
  644. if (woodbillet.disabled) {
  645. if ('RqGiK' !== 'RqGiK') {
  646. fieldboss = command[stylecostumeid].series.options.tooltipLabel || '';
  647. if ('' !== fieldboss) {
  648. fieldboss += ' ';
  649. }
  650. woodbillet.push('<span style=\"color:' + command[stylecostumeid].series.options.strokeStyle + '\">' + fieldboss + this.options.yMaxFormatter(command[stylecostumeid].value, this.options.labels.precision) + '</span>');
  651. } else {
  652. continue;
  653. }
  654. }
  655. if (!isNaN(woodbillet.maxValue)) {
  656. command = !isNaN(command) ? Math.max(command, woodbillet.maxValue) : woodbillet.maxValue;
  657. }
  658. if (!isNaN(woodbillet.minValue)) {
  659. if ('yHodP' !== 'yHodP') {
  660. this.maxValue = command;
  661. } else {
  662. jawbone = !isNaN(jawbone) ? Math.min(jawbone, woodbillet.minValue) : woodbillet.minValue;
  663. }
  664. }
  665. }
  666. if (null != personwarehouse.maxValue) {
  667. if ('evJmg' !== 'VIDVy') {
  668. command = personwarehouse.maxValue;
  669. } else {
  670. m -= 0.5;
  671. }
  672. } else {
  673. command *= personwarehouse.maxValueScale;
  674. }
  675. if (null != personwarehouse.minValue) {
  676. jawbone = personwarehouse.minValue;
  677. } else {
  678. jawbone -= Math.abs(jawbone * personwarehouse.minValueScale - jawbone);
  679. }
  680. if (this.options.yRangeFunction) {
  681. if ('nEevk' === 'nEevk') {
  682. var fieldboss = this.options.yRangeFunction({
  683. 'min': jawbone,
  684. 'max': command
  685. });
  686. jawbone = fieldboss.min;
  687. command = fieldboss.max;
  688. } else {
  689. var custom = jawbone + food >> 1;
  690. if (command < personwarehouse[custom][0]) {
  691. food = custom;
  692. } else {
  693. jawbone = custom + 1;
  694. }
  695. }
  696. }
  697. if (!isNaN(command) && !isNaN(jawbone)) {
  698. var stylecostumeid = command - jawbone,
  699. bluewingspixie = stylecostumeid - this.currentValueRange,
  700. additive = jawbone - this.currentVisMinValue;
  701. this.isAnimatingScale = Math.abs(bluewingspixie) > 0.1 || Math.abs(additive) > 0.1;
  702. this.currentValueRange += personwarehouse.scaleSmoothing * bluewingspixie;
  703. this.currentVisMinValue += personwarehouse.scaleSmoothing * additive;
  704. }
  705. this.valueRange = {
  706. 'min': jawbone,
  707. 'max': command
  708. };
  709. } else {
  710. arguments[0][jawbone] = arguments[personwarehouse][jawbone];
  711. }
  712. };
  713. food.prototype.render = function(personwarehouse, command) {
  714. if ('XjUkx' === 'xenqx') {
  715. return parseFloat(personwarehouse).toFixed(command);
  716. } else {
  717. var jawbone = Date.now();
  718. if (this.options.limitFPS > 0 && jawbone - this.lastRenderTimeMillis < 1000 / this.options.limitFPS) {
  719. if ('pTdrF' !== 'pTdrF') {
  720. var holloweencake = 0;
  721. while (this.data.length - holloweencake >= command && this.data[holloweencake + 1][0] < personwarehouse) {
  722. holloweencake++;
  723. }
  724. if (0 !== holloweencake) {
  725. this.data.splice(0, holloweencake);
  726. }
  727. } else {
  728. return;
  729. }
  730. }
  731. if (!this.isAnimatingScale) {
  732. var food = Math.min(1000 / 6, this.options.millisPerPixel);
  733. if (jawbone - this.lastRenderTimeMillis < food) {
  734. return;
  735. }
  736. }
  737. this.resize();
  738. this.updateTooltip();
  739. this.lastRenderTimeMillis = jawbone;
  740. personwarehouse = personwarehouse || this.canvas;
  741. command = command || jawbone - (this.delay || 0);
  742. command -= command % this.options.millisPerPixel;
  743. this.lastChartTimestamp = command;
  744. var bodyrobe = personwarehouse.getContext('2d'),
  745. tower = this.options,
  746. crystalarmor = {
  747. 'top': 0,
  748. 'left': 0,
  749. 'width': personwarehouse.clientWidth,
  750. 'height': personwarehouse.clientHeight
  751. },
  752. itemmixid = command - crystalarmor.width * tower.millisPerPixel,
  753. twister = function(personwarehouse) {
  754. if ('RvHrV' !== 'RvHrV') {
  755. var point = crystalarmor.height - Math.round(token * stoneofdimension);
  756. if (tower.grid.sharpLines) {
  757. point -= 0.5;
  758. }
  759. var twohand = tower.yIntermediateFormatter(this.valueRange.min + token * blueenchantpotion, tower.labels.precision);
  760. intermediateLabelPos = tower.labels.intermediateLabelSameAxis ? tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(twohand).width - 2 : tower.scrollBackwards ? crystalarmor.width - bodyrobe.measureText(twohand).width - 2 : 0;
  761. bodyrobe.fillText(twohand, intermediateLabelPos, point - tower.grid.lineWidth);
  762. } else {
  763. var command = personwarehouse - this.currentVisMinValue;
  764. return 0 === this.currentValueRange ? crystalarmor.height : crystalarmor.height - Math.round(command / this.currentValueRange * crystalarmor.height);
  765. }
  766. } ['bind'](this),
  767. smallenergylivid = function(personwarehouse) {
  768. if ('qOYTa' !== 'qOYTa') {
  769. bodyrobe.lineWidth = tower.tooltipLine.lineWidth;
  770. bodyrobe.strokeStyle = tower.tooltipLine.strokeStyle;
  771. bodyrobe.beginPath();
  772. bodyrobe.moveTo(this.mouseX, 0);
  773. bodyrobe.lineTo(this.mouseX, crystalarmor.height);
  774. bodyrobe.closePath();
  775. bodyrobe.stroke();
  776. this.updateTooltip();
  777. } else {
  778. if (tower.scrollBackwards) {
  779. return Math.round((command - personwarehouse) / tower.millisPerPixel);
  780. }
  781. return Math.round(crystalarmor.width - (command - personwarehouse) / tower.millisPerPixel);
  782. }
  783. };
  784. this.updateValueRange();
  785. bodyrobe.font = tower.labels.fontSize + 'px ' + tower.labels.fontFamily;
  786. bodyrobe.save();
  787. bodyrobe.translate(crystalarmor.left, crystalarmor.top);
  788. bodyrobe.beginPath();
  789. bodyrobe.rect(0, 0, crystalarmor.width, crystalarmor.height);
  790. bodyrobe.clip();
  791. bodyrobe.save();
  792. bodyrobe.fillStyle = tower.grid.fillStyle;
  793. bodyrobe.clearRect(0, 0, crystalarmor.width, crystalarmor.height);
  794. bodyrobe.fillRect(0, 0, crystalarmor.width, crystalarmor.height);
  795. bodyrobe.restore();
  796. bodyrobe.save();
  797. bodyrobe.lineWidth = tower.grid.lineWidth;
  798. bodyrobe.strokeStyle = tower.grid.strokeStyle;
  799. if (tower.grid.millisPerLine > 0) {
  800. if ('YFzPB' === 'oLVtM') {
  801. clearInterval(personwarehouse.resetBoundsTimerId);
  802. } else {
  803. bodyrobe.beginPath();
  804. for (var cooltime = command - command % tower.grid.millisPerLine; cooltime >= itemmixid; cooltime -= tower.grid.millisPerLine) {
  805. var whitescale = smallenergylivid(cooltime);
  806. if (tower.grid.sharpLines) {
  807. if ('egfTL' !== 'EKlNQ') {
  808. whitescale -= 0.5;
  809. } else {
  810. food--;
  811. }
  812. }
  813. bodyrobe.moveTo(whitescale, 0);
  814. bodyrobe.lineTo(whitescale, crystalarmor.height);
  815. }
  816. bodyrobe.stroke();
  817. bodyrobe.closePath();
  818. }
  819. }
  820. for (var token = 1; token < tower.grid.verticalSections; token++) {
  821. var linkcustomizingid = Math.round(token * crystalarmor.height / tower.grid.verticalSections);
  822. if (tower.grid.sharpLines) {
  823. linkcustomizingid -= 0.5;
  824. }
  825. bodyrobe.beginPath();
  826. bodyrobe.moveTo(0, linkcustomizingid);
  827. bodyrobe.lineTo(crystalarmor.width, linkcustomizingid);
  828. bodyrobe.stroke();
  829. bodyrobe.closePath();
  830. }
  831. if (tower.grid.borderVisible) {
  832. bodyrobe.beginPath();
  833. bodyrobe.strokeRect(0, 0, crystalarmor.width, crystalarmor.height);
  834. bodyrobe.closePath();
  835. }
  836. bodyrobe.restore();
  837. if (tower.horizontalLines && tower.horizontalLines.length) {
  838. for (var sortingnumber = 0; sortingnumber < tower.horizontalLines.length; sortingnumber++) {
  839. var collection = tower.horizontalLines[sortingnumber],
  840. crestflashball = Math.round(twister(collection.value)) - 0.5;
  841. bodyrobe.strokeStyle = collection.color || '#ffffff';
  842. bodyrobe.lineWidth = collection.lineWidth || 1;
  843. bodyrobe.beginPath();
  844. bodyrobe.moveTo(0, crestflashball);
  845. bodyrobe.lineTo(crystalarmor.width, crestflashball);
  846. bodyrobe.stroke();
  847. bodyrobe.closePath();
  848. }
  849. }
  850. for (var crestdash = 0; crestdash < this.seriesSet.length; crestdash++) {
  851. if ('rWNZe' !== 'rWNZe') {
  852. food.AnimateCompatibility.cancelAnimationFrame(this.frame);
  853. delete this.frame;
  854. this.canvas.removeEventListener('mousemove', this.mousemove);
  855. this.canvas.removeEventListener('mouseout', this.mouseout);
  856. } else {
  857. bodyrobe.save();
  858. var robechest = this.seriesSet[crestdash].timeSeries;
  859. if (robechest.disabled) {
  860. continue;
  861. }
  862. var dragonpower = robechest.data,
  863. cresthealingwind = this.seriesSet[crestdash].options;
  864. robechest.dropOldData(itemmixid, tower.maxDataSetLength);
  865. bodyrobe.lineWidth = cresthealingwind.lineWidth;
  866. bodyrobe.strokeStyle = cresthealingwind.strokeStyle;
  867. bodyrobe.beginPath();
  868. for (var goldenletter = 0, polluted = 0, magicalskin = 0, flamebreath = 0, fishsoup = 0; fishsoup < dragonpower.length && 1 !== dragonpower.length; fishsoup++) {
  869. var refined = smallenergylivid(dragonpower[fishsoup][0]),
  870. customize = twister(dragonpower[fishsoup][1]);
  871. if (0 === fishsoup) {
  872. goldenletter = refined;
  873. polluted = customize;
  874. bodyrobe.moveTo(refined, customize);
  875. } else {
  876. if ('ZCrEg' === 'ZCrEg') {
  877. switch (tower.interpolation) {
  878. case 'linear':
  879. case 'line':
  880. bodyrobe.lineTo(refined, customize);
  881. break;
  882. case 'bezier':
  883. default:
  884. bodyrobe.bezierCurveTo(Math.round((magicalskin + refined) / 2), flamebreath, Math.round(magicalskin + refined) / 2, customize, refined, customize);
  885. break;
  886. case 'step':
  887. bodyrobe.lineTo(refined, flamebreath);
  888. bodyrobe.lineTo(refined, customize);
  889. }
  890. } else {
  891. var pieceofshield = tower.yMaxFormatter(this.valueRange.max, tower.labels.precision),
  892. crestfreezingtheearth = tower.yMinFormatter(this.valueRange.min, tower.labels.precision),
  893. waterbowl = tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(pieceofshield).width - 2,
  894. xpbooster = tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(crestfreezingtheearth).width - 2;
  895. bodyrobe.fillStyle = tower.labels.fillStyle;
  896. bodyrobe.fillText(pieceofshield, waterbowl, tower.labels.fontSize);
  897. bodyrobe.fillText(crestfreezingtheearth, xpbooster, crystalarmor.height - 2);
  898. }
  899. }
  900. magicalskin = refined;
  901. flamebreath = customize;
  902. }
  903. if (dragonpower.length > 1) {
  904. if ('rwdaE' === 'rwdaE') {
  905. if (cresthealingwind.fillStyle) {
  906. if ('AzHyE' === 'BwTuL') {
  907. personwarehouse.resetBounds();
  908. } else {
  909. if (tower.scrollBackwards) {
  910. bodyrobe.lineTo(magicalskin, crystalarmor.height + cresthealingwind.lineWidth);
  911. bodyrobe.lineTo(goldenletter, crystalarmor.height + cresthealingwind.lineWidth);
  912. bodyrobe.lineTo(goldenletter, polluted);
  913. } else {
  914. bodyrobe.lineTo(crystalarmor.width + cresthealingwind.lineWidth + 1, flamebreath);
  915. bodyrobe.lineTo(crystalarmor.width + cresthealingwind.lineWidth + 1, crystalarmor.height + cresthealingwind.lineWidth + 1);
  916. bodyrobe.lineTo(goldenletter, crystalarmor.height + cresthealingwind.lineWidth);
  917. }
  918. bodyrobe.fillStyle = cresthealingwind.fillStyle;
  919. bodyrobe.fill();
  920. }
  921. }
  922. if (cresthealingwind.strokeStyle && 'none' !== cresthealingwind.strokeStyle) {
  923. bodyrobe.stroke();
  924. }
  925. bodyrobe.closePath();
  926. } else {
  927. for (var mackerelcat = (this.valueRange.max - this.valueRange.min) / tower.grid.verticalSections, platefeetcue = crystalarmor.height / tower.grid.verticalSections, accessoryhair = 1; accessoryhair < tower.grid.verticalSections; accessoryhair++) {
  928. var antler = crystalarmor.height - Math.round(accessoryhair * platefeetcue);
  929. if (tower.grid.sharpLines) {
  930. antler -= 0.5;
  931. }
  932. var warehousestorable = tower.yIntermediateFormatter(this.valueRange.min + accessoryhair * mackerelcat, tower.labels.precision);
  933. intermediateLabelPos = tower.labels.intermediateLabelSameAxis ? tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(warehousestorable).width - 2 : tower.scrollBackwards ? crystalarmor.width - bodyrobe.measureText(warehousestorable).width - 2 : 0;
  934. bodyrobe.fillText(warehousestorable, intermediateLabelPos, antler - tower.grid.lineWidth);
  935. }
  936. }
  937. }
  938. bodyrobe.restore();
  939. }
  940. }
  941. if (tower.tooltip && this.mouseX >= 0) {
  942. bodyrobe.lineWidth = tower.tooltipLine.lineWidth;
  943. bodyrobe.strokeStyle = tower.tooltipLine.strokeStyle;
  944. bodyrobe.beginPath();
  945. bodyrobe.moveTo(this.mouseX, 0);
  946. bodyrobe.lineTo(this.mouseX, crystalarmor.height);
  947. bodyrobe.closePath();
  948. bodyrobe.stroke();
  949. this.updateTooltip();
  950. }
  951. if (!tower.labels.disabled && !isNaN(this.valueRange.min) && !isNaN(this.valueRange.max)) {
  952. if ('sCsyT' !== 'ZwMBo') {
  953. var unconfirmed = tower.yMaxFormatter(this.valueRange.max, tower.labels.precision),
  954. subtractminz = tower.yMinFormatter(this.valueRange.min, tower.labels.precision),
  955. move = tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(unconfirmed).width - 2,
  956. darkshard = tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(subtractminz).width - 2;
  957. bodyrobe.fillStyle = tower.labels.fillStyle;
  958. bodyrobe.fillText(unconfirmed, move, tower.labels.fontSize);
  959. bodyrobe.fillText(subtractminz, darkshard, crystalarmor.height - 2);
  960. } else {
  961. return (personwarehouse < 10 ? '0' : '') + personwarehouse;
  962. }
  963. }
  964. if (tower.labels.showIntermediateLabels && !isNaN(this.valueRange.min) && !isNaN(this.valueRange.max) && tower.grid.verticalSections > 0) {
  965. if ('LOCmA' !== 'LOCmA') {
  966. this.tooltipEl = document.createElement('div');
  967. this.tooltipEl.className = 'smoothie-chart-tooltip';
  968. this.tooltipEl.style.position = 'absolute';
  969. this.tooltipEl.style.display = 'none';
  970. document.body.appendChild(this.tooltipEl);
  971. } else {
  972. for (var blueenchantpotion = (this.valueRange.max - this.valueRange.min) / tower.grid.verticalSections, stoneofdimension = crystalarmor.height / tower.grid.verticalSections, token = 1; token < tower.grid.verticalSections; token++) {
  973. var linkcustomizingid = crystalarmor.height - Math.round(token * stoneofdimension);
  974. if (tower.grid.sharpLines) {
  975. linkcustomizingid -= 0.5;
  976. }
  977. var ssalissaliking = tower.yIntermediateFormatter(this.valueRange.min + token * blueenchantpotion, tower.labels.precision);
  978. intermediateLabelPos = tower.labels.intermediateLabelSameAxis ? tower.scrollBackwards ? 0 : crystalarmor.width - bodyrobe.measureText(ssalissaliking).width - 2 : tower.scrollBackwards ? crystalarmor.width - bodyrobe.measureText(ssalissaliking).width - 2 : 0;
  979. bodyrobe.fillText(ssalissaliking, intermediateLabelPos, linkcustomizingid - tower.grid.lineWidth);
  980. }
  981. }
  982. }
  983. if (tower.timestampFormatter && tower.grid.millisPerLine > 0) {
  984. for (var dyerecipe = tower.scrollBackwards ? bodyrobe.measureText(subtractminz).width : crystalarmor.width - bodyrobe.measureText(subtractminz).width + 4, cooltime = command - command % tower.grid.millisPerLine; cooltime >= itemmixid; cooltime -= tower.grid.millisPerLine) {
  985. var whitescale = smallenergylivid(cooltime);
  986. if (!tower.scrollBackwards && whitescale < dyerecipe || tower.scrollBackwards && whitescale > dyerecipe) {
  987. if ('wSAIf' === 'sVmpd') {
  988. if (tower.scrollBackwards) {
  989. return Math.round((command - personwarehouse) / tower.millisPerPixel);
  990. }
  991. return Math.round(crystalarmor.width - (command - personwarehouse) / tower.millisPerPixel);
  992. } else {
  993. var crestspeedupaura = new Date(cooltime),
  994. cresthookthrow = tower.timestampFormatter(crestspeedupaura),
  995. lucky = bodyrobe.measureText(cresthookthrow).width;
  996. dyerecipe = tower.scrollBackwards ? whitescale + lucky + 2 : whitescale - lucky - 2;
  997. bodyrobe.fillStyle = tower.labels.fillStyle;
  998. if (tower.scrollBackwards) {
  999. bodyrobe.fillText(cresthookthrow, whitescale, crystalarmor.height - 2);
  1000. } else {
  1001. if ('XgGTR' !== 'XgGTR') {
  1002. jawbone -= Math.abs(jawbone * personwarehouse.minValueScale - jawbone);
  1003. } else {
  1004. bodyrobe.fillText(cresthookthrow, whitescale - lucky, crystalarmor.height - 2);
  1005. }
  1006. }
  1007. }
  1008. }
  1009. }
  1010. }
  1011. if ('' !== tower.title.text) {
  1012. bodyrobe.font = tower.title.fontSize + 'px ' + tower.title.fontFamily;
  1013. var inactive = tower.scrollBackwards ? crystalarmor.width - bodyrobe.measureText(tower.title.text).width - 2 : 2;
  1014. if ('bottom' == tower.title.verticalAlign) {
  1015. bodyrobe.textBaseline = 'bottom';
  1016. var stoneplate = crystalarmor.height;
  1017. } else if ('middle' == tower.title.verticalAlign) {
  1018. bodyrobe.textBaseline = 'middle';
  1019. var stoneplate = crystalarmor.height / 2;
  1020. } else {
  1021. if ('zqzYl' === 'zqzYl') {
  1022. bodyrobe.textBaseline = 'top';
  1023. var stoneplate = 0;
  1024. } else {
  1025. bodyrobe.textBaseline = 'middle';
  1026. var rubberduck = crystalarmor.height / 2;
  1027. }
  1028. }
  1029. bodyrobe.fillStyle = tower.title.fillStyle;
  1030. bodyrobe.fillText(tower.title.text, inactive, stoneplate);
  1031. }
  1032. bodyrobe.restore();
  1033. }
  1034. };
  1035. food.timeFormatter = function(personwarehouse) {
  1036. if ('CQmQX' === 'vMmtD') {
  1037. return;
  1038. } else {
  1039. function command(personwarehouse) {
  1040. return (personwarehouse < 10 ? '0' : '') + personwarehouse;
  1041. }
  1042. return command(personwarehouse.getHours()) + ':' + command(personwarehouse.getMinutes()) + ':' + command(personwarehouse.getSeconds());
  1043. }
  1044. };
  1045. personwarehouse.TimeSeries = jawbone;
  1046. personwarehouse.SmoothieChart = food;
  1047. }('undefined' === typeof exports ? this : exports));