Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/avatar/src/ |
Upload File : |
import { Tag } from 'main.core'; import AvatarBase from './avatar-base'; export default class AvatarSquare extends AvatarBase { getMaskNode(): SVGElement { if (!this.node.svgMask) { this.node.svgMask = this.getSvgElement('path', { class: 'ui-avatar-mask', d: 'M12 0C5.37258 0 0 5.37258 0 12V90C0 96.6274 5.37258 102 12 102H90C96.6274 102 102 96.6274 102 90V12C102 5.37258 96.6274 0 90 0H12Z' }); } return this.node.svgMask; } getContainer(): HTMLElement { if (!this.node.avatar) { this.node.avatar = Tag.render` <div class="ui-avatar --square --base"> <svg viewBox="0 0 102 102"> <path class="ui-avatar-base" d="M12 0C5.37258 0 0 5.37258 0 12V90C0 96.6274 5.37258 102 12 102H90C96.6274 102 102 96.6274 102 90V12C102 5.37258 96.6274 0 90 0H12Z"/> </svg> </div> `; } return this.node.avatar; } }