![]() 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/StrokeNote.js ***/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("./style/note.css"); var _VCore = _interopRequireDefault(require("./VCore")); var _ = _VCore.default._; var $ = _VCore.default.$; function StrokeNote() { this._text = ''; this._color = 'black'; this.$line = $('.vc-note-line', this); this.$text = $('.vc-note-text', this); } StrokeNote.tag = 'StrokeNote'.toLowerCase(); StrokeNote.render = function () { return _({ tag: 'gcontainer', class: 'vc-note', child: [{ tag: 'path', class: 'vc-note-line', attr: { d: 'M0 7 h24' } }, { tag: 'text', class: 'vc-note-text', attr: { x: '30', y: '11' } }] }); }; StrokeNote.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.$line.addStyle('stroke', value.toString()); }, get: function () { return this._color; } } }; _VCore.default.install('StrokeNote'.toLowerCase(), StrokeNote); var _default = StrokeNote; exports.default = _default;