| 175 | } |
| 176 | |
| 177 | static html() { |
| 178 | return '' + |
| 179 | '<div class="ptro-resize-widget-wrapper ptro-common-widget-wrapper ptro-v-middle" hidden>' + |
| 180 | '<div class="ptro-resize-widget ptro-color-main ptro-v-middle-in">' + |
| 181 | '<div style="display: inline-block">' + |
| 182 | '<table>' + |
| 183 | '<tr>' + |
| 184 | `<td class="ptro-label ptro-resize-table-left">${tr('width')}</td>` + |
| 185 | '<td>' + |
| 186 | '<input class="ptro-input ptro-resize-width-input" type="number" min="0" max="3000" step="1"/>' + |
| 187 | '</td>' + |
| 188 | '</tr>' + |
| 189 | '<tr>' + |
| 190 | `<td class="ptro-label ptro-resize-table-left">${tr('height')}</td>` + |
| 191 | '<td>' + |
| 192 | '<input class="ptro-input ptro-resize-heigth-input" type="number" min="0" max="3000" step="1"/>' + |
| 193 | '</td>' + |
| 194 | '</tr>' + |
| 195 | '</table>' + |
| 196 | '</div>' + |
| 197 | '<div class="ptro-resize-link-wrapper">' + |
| 198 | `<button type="button" aria-label="button resize" class="ptro-icon-btn ptro-link ptro-color-control" title="${tr('keepRatio')}">` + |
| 199 | '<i class="ptro-icon ptro-icon-linked" style="font-size: 18px;"></i>' + |
| 200 | '</button>' + |
| 201 | '</div>' + |
| 202 | '<div></div>' + |
| 203 | '<div style="margin-top: 40px;">' + |
| 204 | '<button type="button" aria-label="resize dimentions" class="ptro-named-btn ptro-resize ptro-color-control">' + |
| 205 | `${tr('resizeResize')}</button>` + |
| 206 | '<button type="button" aria-label="resize scale" class="ptro-named-btn ptro-scale ptro-color-control">' + |
| 207 | `${tr('resizeScale')}</button>` + |
| 208 | '<button type="button" aria-label="cancel" class="ptro-named-btn ptro-close ptro-color-control">' + |
| 209 | `${tr('cancel')}</button>` + |
| 210 | '</div>' + |
| 211 | '</div>' + |
| 212 | '</div>'; |
| 213 | } |
| 214 | } |