| | |
| | | </div> |
| | | </a> |
| | | |
| | | <div class="menu"> |
| | | <div style="opacity: 0" class="menu"> |
| | | <div class="menu_title">File</div> |
| | | <div class="menu_list" id="file_menu"> |
| | | <div id="tool_clear" class="menu_item">New Document</div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="menu"> |
| | | <div style="opacity: 0" class="menu"> |
| | | <div class="menu_title">Edit</div> |
| | | <div class="menu_list" id="edit_menu"> |
| | | <div class="menu_item" id="tool_undo">Undo <span class="shortcut">⌘Z</span></div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="menu"> |
| | | <div style="opacity: 0" class="menu"> |
| | | <div class="menu_title">Object</div> |
| | | <div class="menu_list" id="object_menu"> |
| | | <div class="menu_item action_selected disabled" id="tool_move_top">Bring to Front <span class="shortcut">⌘⇧↑</span></div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="menu"> |
| | | <div style="opacity: 0" class="menu"> |
| | | <div class="menu_title">View</div> |
| | | <div class="menu_list" id="view_menu"> |
| | | <div class="menu_item push_button_pressed" id="tool_rulers">View Rulers</div> |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | <div id="tools_top" class="tools_panel"> |
| | | |
| | | <div id="canvas_panel" class="context_panel"> |
| | | |
| | | <h4 class="clearfix">Canvas</h4> |
| | | <h4 class="clearfix">画布</h4> |
| | | |
| | | <label data-title="Change canvas width"> |
| | | <input size="3" id="canvas_width" type="text" pattern="[0-9]*" /> |
| | | <span class="icon_label">Width</span> |
| | | <span class="icon_label">宽度</span> |
| | | </label> |
| | | <label data-title="Change canvas height"> |
| | | <input id="canvas_height" size="3" type="text" pattern="[0-9]*" /> |
| | | <span class="icon_label">Height</span> |
| | | <span class="icon_label">高度</span> |
| | | </label> |
| | | |
| | | |
| | | <label data-title="Change canvas color" class="draginput"> |
| | | <span>Color</span> |
| | | <span>颜色</span> |
| | | <div id="color_canvas_tools"> |
| | | <div class="color_tool active" id="tool_canvas"> |
| | | <div class="color_block"> |
| | |
| | | </label> |
| | | |
| | | <div class="draginput"> |
| | | <span>Sizes</span> |
| | | <span>画布大小</span> |
| | | <select id="resolution"> |
| | | <option id="selectedPredefined" selected="selected">Custom</option> |
| | | <option id="selectedPredefined" selected="selected">默认</option> |
| | | <option>640x480</option> |
| | | <option>800x600</option> |
| | | <option>1024x768</option> |
| | | <option>1280x960</option> |
| | | <option>1600x1200</option> |
| | | <option id="fitToContent" value="content">Fit to Content</option> |
| | | <option id="fitToContent" value="content">适应内容</option> |
| | | </select> |
| | | <div class="caret"></div> |
| | | <label id="resolution_label">Custom</label> |
| | | <label id="resolution_label">默认</label> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <div id="rect_panel" class="context_panel"> |
| | | <h4 class="clearfix">Rectangle</h4> |
| | | <h4 class="clearfix">矩形</h4> |
| | | <label> |
| | | <input id="rect_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x" pattern="[0-9]*" /> |
| | | <span>X</span> |
| | |
| | | </label> |
| | | <label id="rect_width_tool attr_changer" data-title="Change rectangle width"> |
| | | <input id="rect_width" class="attr_changer" size="3" data-attr="width" type="text" pattern="[0-9]*" /> |
| | | <span class="icon_label">Width</span> |
| | | <span class="icon_label">宽度</span> |
| | | </label> |
| | | <label id="rect_height_tool" data-title="Change rectangle height"> |
| | | <input id="rect_height" class="attr_changer" size="3" data-attr="height" type="text" pattern="[0-9]*" /> |
| | | <span class="icon_label">。</span> |
| | | <span class="icon_label">高度</span> |
| | | </label> |
| | | </div> |
| | | |
| | | <div id="path_panel" class="context_panel clearfix"> |
| | | <h4 class="clearfix">Path</h4> |
| | | <h4 class="clearfix">路径</h4> |
| | | <label> |
| | | <input id="path_x" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3" data-attr="x" pattern="[0-9]*" /> |
| | | <span>X</span> |
| | |
| | | </div> |
| | | |
| | | <div id="image_panel" class="context_panel clearfix"> |
| | | <h4>Image</h4> |
| | | <h4>图片</h4> |
| | | <label> |
| | | <input id="image_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x" pattern="[0-9]*"/> |
| | | <span>X</span> |
| | |
| | | </label> |
| | | <label> |
| | | <input id="image_width" class="attr_changer" data-title="Change image width" size="3" data-attr="width" pattern="[0-9]*" /> |
| | | <span class="icon_label">Width</span> |
| | | <span class="icon_label">宽度</span> |
| | | </label> |
| | | <label> |
| | | <input id="image_height" class="attr_changer" data-title="Change image height" size="3" data-attr="height" pattern="[0-9]*" /> |
| | | <span class="icon_label">Height</span> |
| | | <span class="icon_label">高度</span> |
| | | </label> |
| | | </div> |
| | | |
| | | <div id="circle_panel" class="context_panel"> |
| | | <h4>Circle</h4> |
| | | <h4>圆</h4> |
| | | <label id="tool_circle_cx"> |
| | | <span>Center X</span> |
| | | <span>中心X轴</span> |
| | | <input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3" data-attr="cx"/> |
| | | </label> |
| | | <label id="tool_circle_cy"> |
| | | <span>Center Y</span> |
| | | <span>中心Y轴</span> |
| | | <input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3" data-attr="cy"/> |
| | | </label> |
| | | <label id="tool_circle_r"> |
| | | <span>Radius</span> |
| | | <span>半径</span> |
| | | <input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r"/> |
| | | </label> |
| | | </div> |
| | | |
| | | <div id="ellipse_panel" class="context_panel clearfix"> |
| | | <h4>Ellipse</h4> |
| | | <h4>椭圆</h4> |
| | | <label id="tool_ellipse_cx"> |
| | | <input id="ellipse_cx" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3" data-attr="cx" pattern="[0-9]*" /> |
| | | <span>X</span> |
| | |
| | | </label> |
| | | <label id="tool_ellipse_rx"> |
| | | <input id="ellipse_rx" class="attr_changer" data-title="Change ellipse's x radius" size="3" data-attr="rx" pattern="[0-9]*" /> |
| | | <span>Radius X</span> |
| | | <span>半径X</span> |
| | | </label> |
| | | <label id="tool_ellipse_ry"> |
| | | <input id="ellipse_ry" class="attr_changer" data-title="Change ellipse's y radius" size="3" data-attr="ry" pattern="[0-9]*" /> |
| | | <span>Radius Y</span> |
| | | <span>半径Y</span> |
| | | </label> |
| | | </div> |
| | | |
| | | <div id="line_panel" class="context_panel clearfix"> |
| | | <h4>Line</h4> |
| | | <h4>线条</h4> |
| | | <label id="tool_line_x1"> |
| | | <input id="line_x1" class="attr_changer" data-title="Change line's starting x coordinate" size="3" data-attr="x1" pattern="[0-9]*" /> |
| | | <span>Start X</span> |
| | | <span>左上X轴</span> |
| | | </label> |
| | | <label id="tool_line_y1"> |
| | | <input id="line_y1" class="attr_changer" data-title="Change line's starting y coordinate" size="3" data-attr="y1" pattern="[0-9]*" /> |
| | | <span>Start Y</span> |
| | | <span>左上Y轴</span> |
| | | </label> |
| | | <label id="tool_line_x2"> |
| | | <input id="line_x2" class="attr_changer" data-title="Change line's ending x coordinate" size="3" data-attr="x2" pattern="[0-9]*" /> |
| | | <span>End X</span> |
| | | <span>右下X轴</span> |
| | | </label> |
| | | <label id="tool_line_y2"> |
| | | <input id="line_y2" class="attr_changer" data-title="Change line's ending y coordinate" size="3" data-attr="y2" pattern="[0-9]*" /> |
| | | <span>End Y</span> |
| | | <span>右下Y轴</span> |
| | | </label> |
| | | </div> |
| | | |
| | | <div id="text_panel" class="context_panel"> |
| | | <h4>Text</h4> |
| | | <h4>文本</h4> |
| | | <label> |
| | | <input id="text_x" class="attr_changer" data-title="Change text x coordinate" size="3" data-attr="x" pattern="[0-9]*" /> |
| | | <span>X</span> |
| | |
| | | |
| | | <div class="toolset draginput select twocol" id="tool_font_family"> |
| | | <!-- Font family --> |
| | | <span>Font</span> |
| | | <span>字体</span> |
| | | <div id="preview_font" style="font-family: Helvetica, Arial, sans-serif;">Helvetica</div> |
| | | <div class="caret"></div> |
| | | <input id="font_family" data-title="Change Font Family" size="12" type="hidden" /> |
| | |
| | | |
| | | <label id="tool_font_size" data-title="Change Font Size"> |
| | | <input id="font_size" size="3" value="0" /> |
| | | <span id="font_sizeLabel" class="icon_label">Font Size</span> |
| | | <span id="font_sizeLabel" class="icon_label">字体大小</span> |
| | | </label> |
| | | <!-- Not visible, but still used --> |
| | | <input id="text" type="text" size="35"/> |
| | |
| | | </div> |
| | | |
| | | <div id="g_panel" class="context_panel clearfix"> |
| | | <h4>Group</h4> |
| | | <h4>组合</h4> |
| | | <label> |
| | | <input id="g_x" class="attr_changer" data-title="Change groups's x coordinate" size="3" data-attr="x" pattern="[0-9]*" /> |
| | | <span>X</span> |
| | |
| | | </div> |
| | | |
| | | <div id="path_node_panel" class="context_panel clearfix"> |
| | | <h4>Edit Path</h4> |
| | | <h4>编辑路径</h4> |
| | | |
| | | <label id="tool_node_x"> |
| | | <input id="path_node_x" class="attr_changer" data-title="Change node's x coordinate" size="3" data-attr="x" /> |
| | |
| | | </label> |
| | | |
| | | <div id="segment_type" class="draginput label"> |
| | | <span>Segment Type</span> |
| | | <span>分段类型</span> |
| | | <select id="seg_type" data-title="Change Segment type"> |
| | | <option id="straight_segments" selected="selected" value="4">Straight</option> |
| | | <option id="curve_segments" value="6">Curve</option> |
| | | <option id="straight_segments" selected="selected" value="4">直线</option> |
| | | <option id="curve_segments" value="6">曲线</option> |
| | | </select> |
| | | <div class="caret"></div> |
| | | <label id="seg_type_label">Straight</label> |
| | | <label id="seg_type_label">直线</label> |
| | | </div> |
| | | |
| | | <!-- |
| | |
| | | --> |
| | | |
| | | <div class="clearfix"></div> |
| | | <div class="tool_button" id="tool_node_clone" title="Adds a node">Add Node</div> |
| | | <div class="tool_button" id="tool_node_delete" title="Delete Node">Delete Node</div> |
| | | <div class="tool_button" id="tool_openclose_path" title="Open/close sub-path">Open Path</div> |
| | | <div class="tool_button" id="tool_node_clone" title="Adds a node">添加节点</div> |
| | | <div class="tool_button" id="tool_node_delete" title="Delete Node">删除节点</div> |
| | | <div class="tool_button" id="tool_openclose_path" title="Open/close sub-path">打开路径</div> |
| | | <!--<div class="tool_button" id="tool_add_subpath" title="Add sub-path"></div>--> |
| | | </div> |
| | | |
| | |
| | | |
| | | <label id="tool_angle" data-title="Change rotation angle" class="draginput"> |
| | | <input id="angle" class="attr_changer" size="2" value="0" data-attr="transform" data-min="-180" data-max="180" type="text"/> |
| | | <span class="icon_label">Rotation</span> |
| | | <span class="icon_label">旋转</span> |
| | | <div id="tool_angle_indicator"> |
| | | <div id="tool_angle_indicator_cursor"></div> |
| | | </div> |
| | |
| | | |
| | | <label class="toolset" id="tool_opacity" data-title="Change selected item opacity"> |
| | | <input id="group_opacity" class="attr_changer" data-attr="opacity" data-multiplier="0.01" size="3" value="100" step="5" min="0" max="100" /> |
| | | <span id="group_opacityLabel" class="icon_label">Opacity</span> |
| | | <span id="group_opacityLabel" class="icon_label">透明度</span> |
| | | </label> |
| | | |
| | | <div class="toolset" id="tool_blur" data-title="Change gaussian blur value"> |
| | | <label> |
| | | <input id="blur" size="2" value="0" step=".1" min="0" max="10" /> |
| | | <span class="icon_label">Blur</span> |
| | | <span class="icon_label">模糊度</span> |
| | | </label> |
| | | </div> |
| | | |
| | | <label id="cornerRadiusLabel" data-title="Change Rectangle Corner Radius"> |
| | | <input id="rect_rx" size="3" value="0" data-attr="rx" class="attr_changer" type="text" pattern="[0-9]*" /> |
| | | <span class="icon_label">Roundness</span> |
| | | <span class="icon_label">圆度</span> |
| | | </label> |
| | | |
| | | <div class="clearfix"></div> |
| | | <div id="align_tools"> |
| | | <h4>Align</h4> |
| | | <h4>对齐方式</h4> |
| | | <div class="toolset align_buttons" id="tool_position"> |
| | | <label> |
| | | <div class="col last clear" id="position_opts"> |
| | | <div class="draginput_cell" id="tool_posleft" title="Align Left"></div> |
| | | <div class="draginput_cell" id="tool_poscenter" title="Align Center"></div> |
| | | <div class="draginput_cell" id="tool_posright" title="Align Right"></div> |
| | | <div class="draginput_cell" id="tool_postop" title="Align Top"></div> |
| | | <div class="draginput_cell" id="tool_posmiddle" title="Align Middle"></div> |
| | | <div class="draginput_cell" id="tool_posbottom" title="Align Bottom"></div> |
| | | <div class="draginput_cell" id="tool_posleft" title="左对齐"></div> |
| | | <div class="draginput_cell" id="tool_poscenter" title="水平居中"></div> |
| | | <div class="draginput_cell" id="tool_posright" title="右对齐"></div> |
| | | <div class="draginput_cell" id="tool_postop" title="上对齐"></div> |
| | | <div class="draginput_cell" id="tool_posmiddle" title="垂直居中"></div> |
| | | <div class="draginput_cell" id="tool_posbottom" title="下对齐"></div> |
| | | </div> |
| | | </label> |
| | | </div> |
| | |
| | | |
| | | <!-- Buttons when multiple elements are selected --> |
| | | <div id="multiselected_panel" class="context_panel clearfix"> |
| | | <h4 class="hidable">Multiple Elements</h4> |
| | | <h4 class="hidable">对齐方式</h4> |
| | | |
| | | <div class="toolset align_buttons" style="position: relative"> |
| | | <label id="tool_align_relative" style="margin-top: 10px;"> |
| | | <select id="align_relative_to" title="Align relative to ..."> |
| | | <option id="selected_objects" value="selected">Align to objects</option> |
| | | <option id="page" value="page">Align to page</option> |
| | | <option id="selected_objects" value="selected">与对象对齐</option> |
| | | <option id="page" value="page">与页面对齐</option> |
| | | </select> |
| | | </label> |
| | | <h4>.</h4> |
| | | <div class="col last clear"> |
| | | <div class="draginput_cell" id="tool_alignleft" title="Align Left"></div> |
| | | <div class="draginput_cell" id="tool_aligncenter" title="Align Center"></div> |
| | | <div class="draginput_cell" id="tool_alignright" title="Align Right"></div> |
| | | <div class="draginput_cell" id="tool_aligntop" title="Align Top"></div> |
| | | <div class="draginput_cell" id="tool_alignmiddle" title="Align Middle"></div> |
| | | <div class="draginput_cell" id="tool_alignbottom" title="Align Bottom"></div> |
| | | <div class="draginput_cell" id="tool_alignleft" title="左对齐"></div> |
| | | <div class="draginput_cell" id="tool_aligncenter" title="水平居中"></div> |
| | | <div class="draginput_cell" id="tool_alignright" title="右对齐"></div> |
| | | <div class="draginput_cell" id="tool_aligntop" title="上对齐"></div> |
| | | <div class="draginput_cell" id="tool_alignmiddle" title="垂直居中"></div> |
| | | <div class="draginput_cell" id="tool_alignbottom" title="下对齐"></div> |
| | | </div> |
| | | </div> |
| | | <div class="clearfix"></div> |
| | |
| | | |
| | | <div id="stroke_panel" class="context_panel clearfix"> |
| | | <div class="clearfix"></div> |
| | | <h4>Stroke</h4> |
| | | <h4>边框</h4> |
| | | <div class="toolset" data-title="Change stroke"> |
| | | <label> |
| | | <input id="stroke_width" size="2" value="5" data-attr="stroke-width" min="0" max="99" step="1" /> |
| | | <span class="icon_label">Stroke Width</span> |
| | | <span class="icon_label">边宽</span> |
| | | </label> |
| | | </div> |
| | | <div class="stroke_tool draginput"> |
| | | <span>Stroke Dash</span> |
| | | <span>线条样式</span> |
| | | <select id="stroke_style" data-title="Change stroke dash style"> |
| | | <option selected="selected" value="none">—</option> |
| | | <option value="2,2">···</option> |
| | |
| | | |
| | | |
| | | <div id="tools_left" class="tools_panel"> |
| | | <div class="tool_button" id="tool_select" title="Select Tool [V]"></div> |
| | | <div class="tool_button" id="tool_fhpath" title="Pencil Tool [P]"></div> |
| | | <div class="tool_button" id="tool_line" title="Line Tool [L]"></div> |
| | | <div class="tool_button" id="tool_rect" title="Square/Rect Tool [R]"></div> |
| | | <div class="tool_button" id="tool_ellipse" title="Ellipse/Circle Tool [C]"></div> |
| | | <div class="tool_button" id="tool_path" title="Path Tool [P]"></div> |
| | | <div class="tool_button" id="tool_text" title="Text Tool [T]"></div> |
| | | <div class="tool_button" id="tool_zoom" title="Zoom Tool [Z]"></div> |
| | | <div class="tool_button" id="tool_select" title="选择工具[V]"></div> |
| | | <div class="tool_button" id="tool_fhpath" title="铅笔工具[P]"></div> |
| | | <div class="tool_button" id="tool_line" title="连线工具[L]"></div> |
| | | <div class="tool_button" id="tool_rect" title="方形/矩形 [R]"></div> |
| | | <div class="tool_button" id="tool_ellipse" title="椭圆/圆 [C]"></div> |
| | | <div class="tool_button" id="tool_path" title="路径工具 [P]"></div> |
| | | <div class="tool_button" id="tool_text" title="文本工具 [T]"></div> |
| | | <div class="tool_button" id="tool_zoom" title="缩放工具 [Z]"></div> |
| | | |
| | | <div id="color_tools"> |
| | | <div id="tool_switch" title="Switch stroke and fill colors [X]"></div> |
| | |
| | | <div id="svg_source_overlay"></div> |
| | | <div id="svg_source_container"> |
| | | <div id="save_output_btns"> |
| | | <p id="copy_save_note">Copy the contents of this box into a text editor, then save the file with a .svg extension.</p> |
| | | <button id="copy_save_done">Done</button> |
| | | <p id="copy_save_note">将此框的内容复制到文本编辑器中,然后使用.svg扩展名保存文件。</p> |
| | | <button id="copy_save_done">好</button> |
| | | </div> |
| | | <form> |
| | | <textarea id="svg_source_textarea" spellcheck="false"></textarea> |
| | | </form> |
| | | <div id="tool_source_back" class="toolbar_button"> |
| | | <button id="tool_source_cancel" class="cancel">Cancel</button> |
| | | <button id="tool_source_save" class="ok">Apply Changes</button> |
| | | <button id="tool_source_cancel" class="cancel">取消</button> |
| | | <button id="tool_source_save" class="ok">应用更改</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="base_unit_container"> |
| | | <select id="base_unit"> |
| | | <option value="px">Pixels</option> |
| | | <option value="cm">Centimeters</option> |
| | | <option value="mm">Millimeters</option> |
| | | <option value="in">Inches</option> |
| | | <option value="pt">Points</option> |
| | | <option value="pc">Picas</option> |
| | | <option value="px">像素</option> |
| | | <option value="cm">厘米</option> |
| | | <option value="mm">毫米</option> |
| | | <option value="in">英寸</option> |
| | | <option value="pt">像素点</option> |
| | | <option value="pc">派卡</option> |
| | | <option value="em">Ems</option> |
| | | <option value="ex">Exs</option> |
| | | </select> |
| | |
| | | </div> |
| | | |
| | | <ul id="cmenu_canvas" class="contextMenu"> |
| | | <li><a href="#cut">Cut <span class="shortcut">⌘X;</span></a></li> |
| | | <li><a href="#copy">Copy<span class="shortcut">⌘C</span></a></li> |
| | | <li><a href="#paste">Paste<span class="shortcut">⌘V</span></a></li> |
| | | <li class="separator"><a href="#delete">Delete<span class="shortcut">⌫</span></a></li> |
| | | <li class="separator"><a href="#group">Group<span class="shortcut">⌘G</span></a></li> |
| | | <li><a href="#ungroup">Ungroup<span class="shortcut">⌘⇧G</span></a></li> |
| | | <li class="separator"><a href="#move_front">Bring to Front<span class="shortcut">⌘⇧↑</span></a></li> |
| | | <li><a href="#move_up">Bring Forward<span class="shortcut">⌘↑</span></a></li> |
| | | <li><a href="#move_down">Send Backward<span class="shortcut">⌘↓</span></a></li> |
| | | <li><a href="#move_back">Send to Back<span class="shortcut">⌘⇧↓</span></a></li> |
| | | <li><a href="#cut">剪切 <span class="shortcut">⌘X;</span></a></li> |
| | | <li><a href="#copy">复制<span class="shortcut">⌘C</span></a></li> |
| | | <li><a href="#paste">粘贴<span class="shortcut">⌘V</span></a></li> |
| | | <li class="separator"><a href="#delete">删除<span class="shortcut">⌫</span></a></li> |
| | | <li class="separator"><a href="#group">分组<span class="shortcut">⌘G</span></a></li> |
| | | <li><a href="#ungroup">取消分组<span class="shortcut">⌘⇧G</span></a></li> |
| | | <li class="separator"><a href="#move_front">置于最上方<span class="shortcut">⌘⇧↑</span></a></li> |
| | | <li><a href="#move_up">置前一层<span class="shortcut">⌘↑</span></a></li> |
| | | <li><a href="#move_down">置后一层<span class="shortcut">⌘↓</span></a></li> |
| | | <li><a href="#move_back">置于最下方<span class="shortcut">⌘⇧↓</span></a></li> |
| | | </ul> |
| | | |
| | | </body> |