![]() 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/RectNote.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _VCore = _interopRequireDefault(require("./VCore")); var _ = _VCore.default._; var $ = _VCore.default.$; function RectNote() { this._text = ''; this._color = 'black'; this.$rect = $('.vc-note-rect', this); this.$text = $('.vc-note-text', this); } RectNote.tag = 'RectNote'.toLowerCase(); RectNote.render = function () { var fontSize = $(document.body).getFontSize(); return _({ tag: 'gcontainer', class: 'cv-note', child: [{ tag: 'rect', class: 'vc-note-rect', attr: { x: 0, y: 0, width: Math.ceil(24 * fontSize / 14) + '', height: fontSize + '' } }, { tag: 'text', class: 'vc-note-text', attr: { x: Math.ceil(30 * fontSize / 14) + '', y: Math.ceil(11 * fontSize / 14) + '' } }] }); }; RectNote.property = { text: { set: function (value) { value = value || ''; this._text = value; this.$text.clearChild().addChild(_({ text: value })); }, get: function () { return this._text; } }, color: { set: function (value) { this._color = value; this.$rect.addStyle('fill', value.toString()); }, get: function () { return this._color; } } }; _VCore.default.install('RectNote'.toLowerCase(), RectNote); var _default = RectNote; exports.default = _default;