|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<!-- $Date: 2009-11-08 13:19:52 +0200 $ -->
|
|
|
|
|
|
|
|
|
|
<h1 class="paintweb_appTitle">PaintWeb</h1>
|
|
|
|
|
|
|
|
|
|
<!-- All elements with data-pwTabPanel become interactive tabbed panels which
|
|
|
|
|
will also have a class name like .paintweb_tabPanel_id and a generic class
|
|
|
|
|
name .paintweb_tabPanel. In this case the class names will be
|
|
|
|
|
.paintweb_tabPanel_main and .paintweb_tabPanel. -->
|
|
|
|
|
|
|
|
|
|
<div data-pwTabPanel="main" data-pwTabDefault="main">
|
|
|
|
|
|
|
|
|
|
<!-- All elements with data-pwTab will have a class name like
|
|
|
|
@ -21,63 +22,29 @@ let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
.paintweb_cmd_commandID and a generic class name .paintweb_command. In
|
|
|
|
|
this case the class names will be .paintweb_cmd_historyUndo and
|
|
|
|
|
.paintweb_command. -->
|
|
|
|
|
<!--FIXME: 페인트웹 기능 항목 추가/제거-->
|
|
|
|
|
<!--<li data-pwCommand="historyRedo">Redo</li>-->
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="historyUndo">Undo</li>
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="historyUndo">실행취소</li>
|
|
|
|
|
|
|
|
|
|
<li data-pwTool="selection" hidden>영역 선택</li>
|
|
|
|
|
<!--<li data-pwTool="hand">Hand</li>-->
|
|
|
|
|
<!-- <li data-pwTool="rectangle">Rectangle</li> -->
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_toolSeparator"> </li>
|
|
|
|
|
|
|
|
|
|
<!--<li data-pwCommand="selectionCut">Cut selection</li>-->
|
|
|
|
|
<span style="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 data-pwCommand="selectionCopy">선택영역 복사</li> -->
|
|
|
|
|
<!--<li data-pwCommand="clipboardPaste">Clipboard paste</li>-->
|
|
|
|
|
<!--<li data-pwTool="insertimg">Insert image</li>-->
|
|
|
|
|
<!--
|
|
|
|
|
<li class="paintweb_strokeFillStyles">
|
|
|
|
|
<p class="paintweb_opt_fillStyle">Fill
|
|
|
|
|
<span data-pwColorInput="fillStyle"> </span>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="paintweb_opt_strokeStyle">Stroke
|
|
|
|
|
<span data-pwColorInput="strokeStyle"> </span>
|
|
|
|
|
</p>
|
|
|
|
|
</li>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageRotate">Rotate image</li>
|
|
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageBright">brighten image</li><br/>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageDark">darken image</li>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageRotateLeft">왼쪽 회전</li><br/>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageRotateRight">오른쪽 회전</li>
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageBright">밝게</li><br/>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageDark">어둡게</li>
|
|
|
|
|
</span>
|
|
|
|
|
<!-- 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 class="paintweb_toolSeparator"> </li>
|
|
|
|
|
|
|
|
|
|
<!--<li data-pwTool="cpicker">Color picker</li>
|
|
|
|
|
<li data-pwTool="cbucket">Color bucket</li>-->
|
|
|
|
|
|
|
|
|
|
<!--<li data-pwTool="ellipse">Ellipse</li>
|
|
|
|
|
<li data-pwTool="polygon">Polygon</li>
|
|
|
|
|
<li data-pwTool="line">Line</li>
|
|
|
|
|
<li data-pwTool="bcurve">Bézier curve</li>-->
|
|
|
|
|
<!--<li data-pwTool="pencil">Pencil</li>-->
|
|
|
|
|
|
|
|
|
|
<!--<li data-pwTool="eraser">Eraser</li>-->
|
|
|
|
|
<!-- <li data-pwCommand="imageClear">Clear image</li> -->
|
|
|
|
|
<li>
|
|
|
|
|
<label class="w-px-60 pe-2 text-sm-end">차량번호</label><input type='text' id='vhrno' name='vhrno' class='form-control-sm my-1' /><br />
|
|
|
|
|
<label class="w-px-60 pe-2 text-sm-end">차량명</label><input type='text' id='vhclNm' name='vhclNm' class='form-control-sm my-1' disabled /><br />
|
|
|
|
@ -86,155 +53,13 @@ let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_toolSeparator"> </li>
|
|
|
|
|
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageSave">Save image</li>
|
|
|
|
|
<li class="paintweb_buttonStyle" data-pwCommand="imageSave">이미지 저장</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Note that all tool/command elements will have an anchor elements as the
|
|
|
|
|
only child. The locale string will be added as child of the anchor. Having
|
|
|
|
|
the anchors allows users to tab through the tools and commands - keyboard
|
|
|
|
|
accessibility. -->
|
|
|
|
|
|
|
|
|
|
<!-- .paintweb_main_line -->
|
|
|
|
|
<!-- FIXME : line 툴 사용시
|
|
|
|
|
<div data-pwTab="line" data-pwTabHide="true">
|
|
|
|
|
|
|
|
|
|
<!– Elements with data-pwConfig will have class names like
|
|
|
|
|
paintweb_cfg_configVariable. In this case the class name will be
|
|
|
|
|
.paintweb_cfg_line_lineWidth. –>
|
|
|
|
|
<p class="paintweb_opt_lineWidth"><label>Line width <input
|
|
|
|
|
data-pwConfig="line.lineWidth" type="number" min="1" value="1"
|
|
|
|
|
/></label></p>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_cfg_line_miterLimit (dot becomes underscore) –>
|
|
|
|
|
<p class="paintweb_opt_miterLimit"><label>Miter limit <input
|
|
|
|
|
data-pwConfig="line.miterLimit" type="number" min="1" value="10"
|
|
|
|
|
/></label></p>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_cfg_line_lineCap –>
|
|
|
|
|
<div data-pwConfig="line.lineCap">
|
|
|
|
|
<p>Line cap</p>
|
|
|
|
|
|
|
|
|
|
<!– Elements with data-pwConfigValue will have the class name based on
|
|
|
|
|
the configuration property name and value. In this case the class name
|
|
|
|
|
will be .paintweb_lineCap_butt –>
|
|
|
|
|
<div data-pwConfigValue="butt">Butt</div>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_lineCap_square –>
|
|
|
|
|
<div data-pwConfigValue="square">Square</div>
|
|
|
|
|
<!– .paintweb_lineCap_round –>
|
|
|
|
|
<div data-pwConfigValue="round">Round</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_cfg_line_lineJoin –>
|
|
|
|
|
<div data-pwConfig="line.lineJoin">
|
|
|
|
|
<p>Line join</p>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_lineJoin_miter –>
|
|
|
|
|
<div data-pwConfigValue="miter">Miter</div>
|
|
|
|
|
<!– .paintweb_lineJoin_round –>
|
|
|
|
|
<div data-pwConfigValue="round">Round</div>
|
|
|
|
|
<!– .paintweb_lineJoin_bevel –>
|
|
|
|
|
<div data-pwConfigValue="bevel">Bevel</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_cfg_shapeType –>
|
|
|
|
|
<div data-pwConfig="shapeType">
|
|
|
|
|
<p>Shape type</p>
|
|
|
|
|
|
|
|
|
|
<!– .paintweb_shapeType_both –>
|
|
|
|
|
<div data-pwConfigValue="both">Both</div>
|
|
|
|
|
<!– .paintweb_shapeType_fill –>
|
|
|
|
|
<div data-pwConfigValue="fill">Fill</div>
|
|
|
|
|
<!– .paintweb_shapeType_stroke –>
|
|
|
|
|
<div data-pwConfigValue="stroke">Stroke</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!– erm *cough* elements with data-pwConfigValue will be considered icons
|
|
|
|
|
(class name .paintweb_icon is added). They will also have an anchor
|
|
|
|
|
element appended. –>
|
|
|
|
|
</div>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- .paintweb_main_selection -->
|
|
|
|
|
<!--<div data-pwTab="selection" data-pwTabHide="true">
|
|
|
|
|
<p data-pwId="selTab_selectionCut">Cut selection</p>
|
|
|
|
|
<p data-pwId="selTab_selectionCopy">Copy selection</p>
|
|
|
|
|
<p data-pwId="selTab_clipboardPaste">Clipboard paste</p>
|
|
|
|
|
|
|
|
|
|
<p data-pwCommand="selectionDelete">Delete selection</p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_selectionTransparent">
|
|
|
|
|
<label><input data-pwConfig="selection.transparent" type="checkbox"
|
|
|
|
|
value="1" checked="checked" /> Transparent background</label>
|
|
|
|
|
</p>
|
|
|
|
|
<p class="paintweb_opt_selectionTransform">
|
|
|
|
|
<label><input data-pwConfig="selection.transform" type="checkbox"
|
|
|
|
|
value="1" /> Transformation mode</label>
|
|
|
|
|
</p>
|
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
|
|
<!-- .paintweb_main_text -->
|
|
|
|
|
<!-- FIXME : text 툴 사용시
|
|
|
|
|
<div data-pwTab="text" data-pwTabHide="true" class="paintweb_tab02">
|
|
|
|
|
<p class="paintweb_opt_fontFamily">
|
|
|
|
|
<label for="fontFamily">Font family:</label>
|
|
|
|
|
<select id="fontFamily" data-pwConfig="text.fontFamily"></select>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_fontSize">
|
|
|
|
|
<label for="fontSize">Font size:</label>
|
|
|
|
|
<select id="fontSize" data-pwConfig="text.fontSize" style="width:58px"></select>
|
|
|
|
|
</p>
|
|
|
|
|
<div data-pwConfigButton="text.bold" style="padding-top: 4px;">Bold</div>
|
|
|
|
|
<div data-pwConfigButton="text.italic">Italic</div>
|
|
|
|
|
|
|
|
|
|
<div data-pwConfig="text.textAlign">
|
|
|
|
|
<p>Text alignment</p>
|
|
|
|
|
|
|
|
|
|
<div data-pwConfigButton="text.left">Left</div>
|
|
|
|
|
<div data-pwConfigButton="text.center">Center</div>
|
|
|
|
|
<div data-pwConfigButton="text.right">Right</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- .paintweb_main_shadow -->
|
|
|
|
|
<!-- FIXME : shadow 툴 사용시
|
|
|
|
|
<div data-pwTab="shadow">
|
|
|
|
|
<p class="paintweb_opt_shadowEnable"><label><input
|
|
|
|
|
data-pwConfig="shadow.enable" type="checkbox" value="1" /> Draw
|
|
|
|
|
shadows</label></p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_shadowColor">Color <span
|
|
|
|
|
data-pwColorInput="shadow.shadowColor"> </span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_shadowOffsetX">
|
|
|
|
|
<label>Offset X
|
|
|
|
|
<input data-pwConfig="shadow.shadowOffsetX" type="number" value="5" />
|
|
|
|
|
</label>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_shadowOffsetY">
|
|
|
|
|
<label>Offset Y
|
|
|
|
|
<input data-pwConfig="shadow.shadowOffsetY" type="number" value="5" />
|
|
|
|
|
</label>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p class="paintweb_opt_shadowBlur">
|
|
|
|
|
<label>Blur
|
|
|
|
|
<input data-pwConfig="shadow.shadowBlur" type="number" value="5"
|
|
|
|
|
min="0" />
|
|
|
|
|
</label>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- <p data-pwCommand="about">About</p>-->
|
|
|
|
|
|
|
|
|
|
</div> <!-- .paintweb_tabPanel_main -->
|
|
|
|
|
|
|
|
|
@ -298,13 +123,17 @@ let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<ol class="paintweb_colormixer_hexalpha">
|
|
|
|
|
<li><label>HEX
|
|
|
|
|
<li>
|
|
|
|
|
<label>HEX
|
|
|
|
|
<input id="ckey_hex" value="#RRGGBB" type="text" maxlength="7"
|
|
|
|
|
pattern="#[a-f0-9]{6}" /></label>
|
|
|
|
|
pattern="#[a-f0-9]{6}" />
|
|
|
|
|
</label>
|
|
|
|
|
</li>
|
|
|
|
|
<li><label>Alpha
|
|
|
|
|
<li>
|
|
|
|
|
<label>Alpha
|
|
|
|
|
<input id="ckey_alpha" value="100" type="number" min="0" max="100"
|
|
|
|
|
step="1" /></label>
|
|
|
|
|
step="1" />
|
|
|
|
|
</label>
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
@ -418,5 +247,4 @@ let xhtml = `<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- vim:set spell spl=en fo=tcroqwanl1 tw=80 ts=2 sw=2 sts=2 sta et ai cin fenc=utf-8 ff=unix: -->
|
|
|
|
|
</div>`;
|
|
|
|
|