feat(image-annotate): 1.2.1 默认不预建画笔层(按需自动落标注层)+ 侧栏硬度/透明去重
This commit is contained in:
1 parent
d8e4e0cb26
commit
1bf8220c05
10 files changed
+124
-114
No files matched your search
@@ -49,7 +49,7 @@ import { bindEvents } from './events.js'
|
||||
|
||||
<button class="iwb-editor-tool active" data-tool="brush" title="画笔"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg></button>
|
||||
|
||||
<button class="iwb-editor-tool" data-tool="eraser" title="橡皮:擦除当前活跃图层的内容(画笔标注或原图),与画笔共用大小/硬度/透明度"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"/><path d="M22 21H7"/><path d="m5 11 9 9"/></svg></button>
|
||||
<button class="iwb-editor-tool" data-tool="eraser" title="橡皮:擦除当前活跃图层的内容,与画笔共用大小/硬度/透明度"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21"/><path d="M22 21H7"/><path d="m5 11 9 9"/></svg></button>
|
||||
|
||||
<button class="iwb-editor-tool" data-tool="pen" title="钢笔:点击添加节点,双击或 Enter 完成自定义形状"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 19 7-7 3 3-7 7-3-3z"/><path d="m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><path d="m2 2 7.586 7.586"/><circle cx="11" cy="11" r="2"/></svg></button>
|
||||
|
||||
@@ -202,16 +202,7 @@ import { bindEvents } from './events.js'
|
||||
<button type="button" class="iwb-editor-brush-preset" data-brush-size="24" title="描边 24"><i></i></button>
|
||||
<button type="button" class="iwb-editor-brush-preset" data-brush-size="32" title="描边 32"><i></i></button>
|
||||
</div>
|
||||
<div class="iwb-editor-brush-group">
|
||||
<label class="iwb-editor-brush-label">硬度
|
||||
<input type="range" class="iwb-editor-brush-hardness" min="0" max="100" value="100">
|
||||
<span class="iwb-editor-brush-hardness-val">100</span>
|
||||
</label>
|
||||
<label class="iwb-editor-brush-label iwb-editor-opacity-label">透明
|
||||
<input type="range" class="iwb-editor-brush-opacity" min="5" max="100" step="5" value="100">
|
||||
<span class="iwb-editor-brush-opacity-val">100%</span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- 硬度/透明滑杆已移除:与就地选项栏(画笔/橡皮工具态)完全重复,参数只留选项栏一处 -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -232,7 +223,7 @@ import { bindEvents } from './events.js'
|
||||
<span class="iwb-editor-status-size">—</span>
|
||||
<span class="iwb-editor-status-pos">x — y —</span>
|
||||
<span class="iwb-editor-status-sel">无选区</span>
|
||||
<span class="iwb-editor-status-layer">当前层:画笔标注</span>
|
||||
<span class="iwb-editor-status-layer">当前层:原图</span>
|
||||
<span class="iwb-editor-status-tool">画笔</span>
|
||||
</div>
|
||||
<div class="iwb-editor-toast" role="status" aria-live="polite"></div>
|
||||
|
||||
Reference in new issue
Block a user