compiled
parent
53b72c56b8
commit
100dbe28b3
|
@ -16313,7 +16313,7 @@ window.methodDraw = function() {
|
|||
};
|
||||
|
||||
// called when we've selected a different element
|
||||
var selectedChanged = function(window,elems) {
|
||||
var selectedChanged = function(window,elems) {
|
||||
var mode = svgCanvas.getMode();
|
||||
if(mode === "select") setSelectMode();
|
||||
if (mode === "pathedit") return updateContextPanel();
|
||||
|
@ -16339,6 +16339,11 @@ window.methodDraw = function() {
|
|||
$('#canvas_panel').show()
|
||||
$('#tools_top').removeClass('multiselected')
|
||||
}
|
||||
|
||||
// We need to update the context panel always when we've selected a different element. Otherwise some
|
||||
// menu items are disabled even if they shouldn't be (e.g. group multiple elements)
|
||||
updateContextPanel();
|
||||
|
||||
svgCanvas.runExtensions("selectedChanged", {
|
||||
elems: elems,
|
||||
selectedElement: selectedElement,
|
||||
|
@ -16850,7 +16855,7 @@ window.methodDraw = function() {
|
|||
}
|
||||
|
||||
if (!elem) {
|
||||
menu_items.disableContextMenuItems('#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back');
|
||||
menu_items.disableContextMenuItems('#delete,#cut,#copy,#ungroup,#move_front,#move_up,#move_down,#move_back');
|
||||
}
|
||||
|
||||
// update history buttons
|
||||
|
@ -18856,6 +18861,7 @@ window.methodDraw = function() {
|
|||
|
||||
// Run init once DOM is loaded
|
||||
$(methodDraw.init);
|
||||
|
||||
function Palette(){
|
||||
var palette = [
|
||||
"#444444", "#482816", "#422C10", "#3B2F0E", "#32320F",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="description" content="Method Draw is an open source SVG editor for the web, you can use it online without signing up.">
|
||||
|
||||
<link rel="stylesheet" href="all.css?t=1607990523607">
|
||||
<link rel="stylesheet" href="all.css?t=1607993644597">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -444,12 +444,36 @@
|
|||
</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="Align Left">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 2 1 L 2 5 L 14 5 L 14 11 L 2 11 L 2 16 L 20 16 L 20 22 L 2 22 L 2 26 L 1 26 L 1 1 L 2 1 Z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="draginput_cell" id="tool_aligncenter" title="Align Center">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 13 1 L 14 1 L 14 6 L 22 6 L 22 12 L 14 12 L 14 15 L 19 15 L 19 21 L 14 21 L 14 26 L 13 26 L 13 21 L 8 21 L 8 15 L 13 15 L 13 12 L 5 12 L 5 6 L 13 6 L 13 1 Z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="draginput_cell" id="tool_alignright" title="Align Right">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 25 1 L 25 5 L 13 5 L 13 11 L 25 11 L 25 16 L 7 16 L 7 22 L 25 22 L 25 26 L 26 26 L 26 1 L 25 1 Z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="draginput_cell" id="tool_aligntop" title="Align Top">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 1 2 L 5 2 L 5 14 L 11 14 L 11 2 L 16 2 L 16 20 L 22 20 L 22 2 L 26 2 L 26 1 L 1 1 L 1 2 Z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="draginput_cell" id="tool_alignmiddle" title="Align Middle">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 26 13 L 26 14 L 21 14 L 21 22 L 15 22 L 15 14 L 12 14 L 12 19 L 6 19 L 6 14 L 1 14 L 1 13 L 6 13 L 6 8 L 12 8 L 12 13 L 15 13 L 15 5 L 21 5 L 21 13 L 26 13 Z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="draginput_cell" id="tool_alignbottom" title="Align Bottom">
|
||||
<svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="27" height="27">
|
||||
<path d="M 1 25 L 5 25 L 5 13 L 11 13 L 11 25 L 16 25 L 16 7 L 22 7 L 22 25 L 26 25 L 26 26 L 1 26 L 1 25"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
@ -644,7 +668,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<script src="all.js?t=1607990523607"></script>
|
||||
<script src="all.js?t=1607993644597"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue