VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/libs/absol-full/dist/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/libs/absol-full/dist/js/mdls__absol-vchart__src__HCollumnChart.js
/*** module: node_modules/absol-vchart/src/HCollumnChart.js ***/
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _VCore = _interopRequireDefault(require("./VCore"));

var _SvgCanvas = _interopRequireDefault(require("absol-svg/js/svg/SvgCanvas"));

var _DomSignal = _interopRequireDefault(require("absol/src/HTML5/DomSignal"));


var _ = _VCore.default._;
var $ = _VCore.default.$;
/***
 * @extends SvgCanvas
 * @constructor
 */

function HColumnChart() {
  this.$title = $('.vc-title', this);
  console.log($('sattachhook.vc-dom-signal', this));
  this.domSignal = new _DomSignal.default($('sattachhook.vc-dom-signal', this)); // this.domSignal.on({
  //     updateContent: this.updateContent.bind(this)
  // });
  // this.emit('updateContent');
}

HColumnChart.tag = "HColumnChart".toLowerCase();

HColumnChart.render = function () {
  return _({
    tag: _SvgCanvas.default.tag,
    class: 'vc-h-column-chart',
    child: [{
      tag: 'text',
      class: 'vc-title',
      child: {
        text: ''
      },
      attr: {
        y: 20
      }
    }, {
      class: 'vc-h-column-root',
      child: [{
        class: 'vc-h-column-ox-key-ctn'
      }, {
        class: 'vc-h-column-oy-key-ctn'
      }, {
        tag: 'hlinearrow'
      }]
    }, 'sattachhook.vc-dom-signal']
  });
};

HColumnChart.prototype.updateSize = function () {
  _SvgCanvas.default.prototype.updateSize.call(this);

  this.updateContentPosition();
};

HColumnChart.prototype.updateContent = function () {
  if (!this.isDescendantOf(document.body)) {
    this.domSignal.emit('updateContent');
    return;
  }

  this.normalizeData();
  this.createContent();
  this.updateContentPosition();
};

HColumnChart.prototype.normalizeData = function () {};

HColumnChart.prototype._createTitle = function () {
  this.$title.firstChild.data = this.title;
};

HColumnChart.prototype.createContent = function () {
  this._createTitle();
};

HColumnChart.prototype._alignTitle = function () {
  this.$title.attr('x', this.box.width / 2);
};

HColumnChart.prototype.updateContentPosition = function () {
  this._alignTitle();
};

_VCore.default.install(HColumnChart);

var _default = HColumnChart;
exports.default = _default;

VaKeR 2022