fix : 이미지편집기 수정(이미지 확대 단축키 오류 수정, 툴 정렬 순서 변경)

main
이범준 2 years ago
parent 8be2f42fde
commit a0406188d8

@ -29,6 +29,7 @@
<li data-pwTool="selection">Selection</li>
<!--<li data-pwTool="hand">Hand</li>-->
<li data-pwTool="rectangle">Rectangle</li>
<li class="paintweb_toolSeparator">&#160;</li>
@ -36,20 +37,28 @@
<li data-pwCommand="selectionCopy">Copy selection</li>
<li data-pwCommand="clipboardPaste">Clipboard paste</li>
<!--<li data-pwTool="insertimg">Insert image</li>-->
<li data-pwCommand="imageRotate">Rotate image</li>
<li class="paintweb_strokeFillStyles">
<p class="paintweb_opt_fillStyle">Fill
<span data-pwColorInput="fillStyle">&#160;</span>
</p>
<p class="paintweb_opt_strokeStyle">Stroke
<span data-pwColorInput="strokeStyle">&#160;</span>
</p>
</li>
<li class="paintweb_toolSeparator">&#160;</li>
<li data-pwCommand="imageRotate">Rotate image</li>
<li class="paintweb_buttonStyle" data-pwCommand="imageBright">brighten image</li>
<li class="paintweb_buttonStyle" data-pwCommand="imageDark">darken image</li>
<!-- All elements with data-pwTool will have a class name like
.paintweb_tool_toolID and a generic class name .paintweb_tool. In this
case the class names will be .paintweb_tool_insertimg and
.paintweb_tool. -->
<!--<li data-pwTool="text">Text</li>-->
<li data-pwTool="rectangle">Rectangle</li>
<li class="paintweb_toolSeparator">&#160;</li>
<li class="paintweb_toolSeparator">&#160;</li>
<!--<li data-pwTool="cpicker">Color picker</li>
<li data-pwTool="cbucket">Color bucket</li>-->
@ -64,18 +73,6 @@
<li data-pwCommand="imageClear">Clear image</li>
<li data-pwCommand="imageSave">Save image</li>
<li class="paintweb_strokeFillStyles">
<p class="paintweb_opt_fillStyle">Fill
<span data-pwColorInput="fillStyle">&#160;</span>
</p>
<p class="paintweb_opt_strokeStyle">Stroke
<span data-pwColorInput="strokeStyle">&#160;</span>
</p>
</li>
<li class="paintweb_buttonStyle" data-pwCommand="imageBright">brighten image</li>
<li class="paintweb_buttonStyle" data-pwCommand="imageDark">darken image</li>
</ul>

@ -1683,9 +1683,9 @@ function PaintWeb (win, doc) {
if (!level) {
return false;
} else if (level === '+') {
level = image.zoom + config.imageZoomStep;
level = Number(image.zoom) + config.imageZoomStep;
} else if (level === '-') {
level = image.zoom - config.imageZoomStep;
level = Number(image.zoom) - config.imageZoomStep;
} else if (typeof level !== 'number') {
return false;
}

Loading…
Cancel
Save