text.js
2.61 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* @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-text-effect-button">
<div class="tui-image-editor-button bold">
<div>
${makeSvgIcon(['normal', 'active'], 'text-bold', true)}
</div>
<label> ${locale.localize('Bold')} </label>
</div>
<div class="tui-image-editor-button italic">
<div>
${makeSvgIcon(['normal', 'active'], 'text-italic', true)}
</div>
<label> ${locale.localize('Italic')} </label>
</div>
<div class="tui-image-editor-button underline">
<div>
${makeSvgIcon(['normal', 'active'], 'text-underline', true)}
</div>
<label> ${locale.localize('Underline')} </label>
</div>
</li>
<li class="tui-image-editor-partition">
<div></div>
</li>
<li class="tie-text-align-button">
<div class="tui-image-editor-button left">
<div>
${makeSvgIcon(['normal', 'active'], 'text-align-left', true)}
</div>
<label> ${locale.localize('Left')} </label>
</div>
<div class="tui-image-editor-button center">
<div>
${makeSvgIcon(['normal', 'active'], 'text-align-center', true)}
</div>
<label> ${locale.localize('Center')} </label>
</div>
<div class="tui-image-editor-button right">
<div>
${makeSvgIcon(['normal', 'active'], 'text-align-right', true)}
</div>
<label> ${locale.localize('Right')} </label>
</div>
</li>
<li class="tui-image-editor-partition">
<div></div>
</li>
<li>
<div class="tie-text-color" title="${locale.localize('Color')}"></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('Text size')}</label>
<div class="tie-text-range"></div>
<input class="tie-text-range-value tui-image-editor-range-value" value="0" />
</li>
</ul>
`;