shape.js
1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* @param {Object} submenuInfo - submenu info for make template
* @param {Locale} locale - Translate text
* @param {Function} makeSvgIcon - svg icon generator
* @returns {string}
*/
export default ({ locale, makeSvgIcon }) => `
<ul class="tui-image-editor-submenu-item">
<li class="tie-shape-button">
<div class="tui-image-editor-button rect">
<div>
${makeSvgIcon(['normal', 'active'], 'shape-rectangle', true)}
</div>
<label> ${locale.localize('Rectangle')} </label>
</div>
<div class="tui-image-editor-button circle">
<div>
${makeSvgIcon(['normal', 'active'], 'shape-circle', true)}
</div>
<label> ${locale.localize('Circle')} </label>
</div>
<div class="tui-image-editor-button triangle">
<div>
${makeSvgIcon(['normal', 'active'], 'shape-triangle', true)}
</div>
<label> ${locale.localize('Triangle')} </label>
</div>
</li>
<li class="tui-image-editor-partition">
<div></div>
</li>
<li class="tie-shape-color-button">
<div class="tie-color-fill" title="${locale.localize('Fill')}"></div>
<div class="tie-color-stroke" title="${locale.localize('Stroke')}"></div>
</li>
<li class="tui-image-editor-partition only-left-right">
<div></div>
</li>
<li class="tui-image-editor-newline tui-image-editor-range-wrap">
<label class="range">${locale.localize('Stroke')}</label>
<div class="tie-stroke-range"></div>
<input class="tie-stroke-range-value tui-image-editor-range-value" value="0" />
</li>
</ul>
`;