![]() 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 : |
/*** module: node_modules/absol-vchart/src/HLineArrow.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _VCore = _interopRequireDefault(require("./VCore")); var _template = require("./template"); var _helper = require("./helper"); var _AElementNS = _interopRequireDefault(require("absol/src/HTML5/AElementNS")); var _GContainer = _interopRequireDefault(require("absol-svg/js/svg/GContainer")); var _ = _VCore.default._; var $ = _VCore.default.$; /*** * @extends AElementNS * @constructor */ function HLineArrow() { this._length = 0; this.$line = $('path.vchart-line-arrow-line', this); this.$arrow = $('.vchart-line-arrow-rect', this); this.length = 0; } HLineArrow.tag = 'HLineArrow'.toLowerCase(); HLineArrow.render = function () { return _({ class: 'vchart-line-arrow', child: ['path.vchart-line-arrow-line', { tag: 'path', class: 'vchart-line-arrow-rect', attr: { d: 'm-6.8 -5v10l6.8 -5z' } }] }); }; HLineArrow.prototype.resize = function (length) { if (typeof length !== 'number') length = parseFloat(length + ''); length = length || 0; if (length < 0) length = 0; this._length = length; this.$arrow.attr('transform', (0, _template.translate)(length, 0)); (0, _helper.moveHLine)(this.$line, 0, 0, length); this._length = length; }; HLineArrow.property = {}; HLineArrow.property.length = { set: function (value) { this.resize(this._length); }, get: function () { return this._length; } }; _VCore.default.creator.hlinearrow = HLineArrow; var _default = HLineArrow; exports.default = _default;