페인트웹 디자인 수정

main
이범준 7 months ago
parent 7807025b15
commit ea96db9ee6

@ -33,7 +33,7 @@
<body>
<c:set var="pageKorName" scope="request">사진 편집</c:set>
<img id="editableImage" />
<img id="editableImage" title="원본" />
<div id="paintWebTarget"></div>
<!-- Core JS -->

@ -1426,8 +1426,6 @@ pwlib.gui = function (app) {
var str1 = button.title.substr(0,i);
var str2 = button.title.substr(i+1);
button.appendChild(doc.createTextNode(str1));
button.appendChild(doc.createElement('br'));
button.appendChild(doc.createTextNode(str2));
} else {
button.appendChild(doc.createTextNode(button.title));
}

@ -23,26 +23,31 @@ let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
this case the class names will be .paintweb_cmd_historyUndo and
.paintweb_command. -->
<li class="paintweb_buttonStyle" data-pwCommand="historyUndo">실행취소</li>
<li data-pwTool="selection" hidden>영역 선택</li>
<li class="paintweb_toolSeparator">&#160;</li>
<span class="align-self-center">
<li class="paintweb_buttonStyle py-1 h-px-30" data-pwCommand="selectionCrop">자르기</li><br/>
<li class="paintweb_buttonStyle py-1 h-px-30" data-pwCommand="selectionFill">가림막</li><br/>
<li class="paintweb_buttonStyle py-1 h-px-30" data-pwCommand="selectionForNumberPlate">번호판</li>
<span>
<li class="paintweb_buttonStyle" data-pwCommand="selectionCrop">자르기</li><br/>
<li class="paintweb_buttonStyle" data-pwCommand="selectionForNumberPlate">번호판</li>
</span>
<span>
<li class="paintweb_buttonStyle" data-pwCommand="imageRotateLeft">왼쪽 회전</li><br/>
<li class="paintweb_buttonStyle" data-pwCommand="imageRotateRight">오른쪽 회전</li>
</span>
<li class="paintweb_toolSeparator">&#160;</li>
<span>
<li class="paintweb_buttonStyle" data-pwCommand="imageBright">밝게</li><br/>
<li class="paintweb_buttonStyle" data-pwCommand="imageDark">어둡게</li>
</span>
<li class="paintweb_toolSeparator">&#160;</li>
<span>
<li class="paintweb_buttonStyle" data-pwCommand="selectionFill">가림막</li><br/>
<li class="paintweb_buttonStyle" data-pwCommand="historyUndo">실행취소</li>
</span>
<li class="paintweb_toolSeparator">&#160;</li>
<li>

@ -2360,18 +2360,6 @@ function PaintWeb (win, doc) {
* @returns {Boolean} True if the operation was successful, or false if not.
*/
this.imageSave = async function (type) {
//--------------------------------------------------------------------
// FIXME: 변경된 부분 : 변경된 내용이 없으면 skip
// FIXME: paindweb instance 객체
//--------------------------------------------------------------------
if(!pw.image.modified){
if(pw.history.pos === 1) {
alert('변경된 내용이 없습니다.');
return false;
}
}
//--------------------------------------------------------------------
var canvas = _self.layer.canvas,
cfg = _self.config,

@ -228,10 +228,10 @@
}
.paintweb_toolSeparator {
/*border: 1px solid #d6d6d6;*/
background-color: #d6d6d6;
cursor: default;
float: left;
height: 31px;
height: 100%;
overflow: hidden;
width: 31px;
}

Loading…
Cancel
Save