fixing build issues
parent
397bc3210f
commit
c60b28babd
|
@ -679,8 +679,8 @@
|
||||||
<script type="text/javascript" src="js/lib/jquery.jgraduate.js"></script>
|
<script type="text/javascript" src="js/lib/jquery.jgraduate.js"></script>
|
||||||
<script type="text/javascript" src="js/lib/jquery.contextMenu.js"></script>
|
<script type="text/javascript" src="js/lib/jquery.contextMenu.js"></script>
|
||||||
<script type="text/javascript" src="js/lib/jquery-ui-1.8.17.custom.min.js"></script>
|
<script type="text/javascript" src="js/lib/jquery-ui-1.8.17.custom.min.js"></script>
|
||||||
<script type="text/javascript" src="js/lib/jquery-draginput.js"></script>
|
|
||||||
<script type="text/javascript" src="js/jquery.attr.js"></script>
|
<script type="text/javascript" src="js/jquery.attr.js"></script>
|
||||||
|
<script type="text/javascript" src="js/lib/jquery-draginput.js"></script>
|
||||||
<script type="text/javascript" src="js/utils.js"></script>
|
<script type="text/javascript" src="js/utils.js"></script>
|
||||||
<script type="text/javascript" src="js/dao.js"></script>
|
<script type="text/javascript" src="js/dao.js"></script>
|
||||||
<script type="text/javascript" src="js/state.js"></script>
|
<script type="text/javascript" src="js/state.js"></script>
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
// 3) svg_editor.js
|
// 3) svg_editor.js
|
||||||
// 4) svgcanvas.js
|
// 4) svgcanvas.js
|
||||||
|
|
||||||
MD.Eyedropper = function(S) {
|
MD.Eyedropper = function() {
|
||||||
var svgcontent = S.svgcontent,
|
var svgcontent = svgCanvas.svgcontent,
|
||||||
svgns = "http://www.w3.org/2000/svg",
|
svgns = "http://www.w3.org/2000/svg",
|
||||||
svgdoc = S.svgroot.parentNode.ownerDocument,
|
svgdoc = svgCanvas.svgroot.parentNode.ownerDocument,
|
||||||
ChangeElementCommand = svgedit.history.ChangeElementCommand,
|
ChangeElementCommand = svgedit.history.ChangeElementCommand,
|
||||||
addToHistory = function(cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); },
|
addToHistory = function(cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); },
|
||||||
currentStyle = {fillPaint: "red", fillOpacity: 1.0,
|
currentStyle = {fillPaint: "red", fillOpacity: 1.0,
|
||||||
|
@ -131,4 +131,4 @@ MD.Eyedropper = function(S) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
};
|
|
@ -29,7 +29,6 @@ svgCanvas.bind("zoomed", editor.zoom.changed);
|
||||||
svgCanvas.bind("contextset", editor.contextChanged);
|
svgCanvas.bind("contextset", editor.contextChanged);
|
||||||
svgCanvas.bind("extension_added", editor.extensionAdded);
|
svgCanvas.bind("extension_added", editor.extensionAdded);
|
||||||
svgCanvas.textActions.setInputElem($("#text")[0]);
|
svgCanvas.textActions.setInputElem($("#text")[0]);
|
||||||
|
|
||||||
const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
|
const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
|
||||||
const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]);
|
const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]);
|
||||||
const state = new State();
|
const state = new State();
|
||||||
|
|
|
@ -72,6 +72,7 @@ svgroot.setAttribute("width", dimensions[0]);
|
||||||
svgroot.setAttribute("height", dimensions[1]);
|
svgroot.setAttribute("height", dimensions[1]);
|
||||||
svgroot.id = "svgroot";
|
svgroot.id = "svgroot";
|
||||||
svgroot.setAttribute("xlinkns", xlinkns);
|
svgroot.setAttribute("xlinkns", xlinkns);
|
||||||
|
this.svgroot = svgroot;
|
||||||
container.appendChild(svgroot);
|
container.appendChild(svgroot);
|
||||||
|
|
||||||
// The actual element that represents the final output SVG element
|
// The actual element that represents the final output SVG element
|
||||||
|
|
Loading…
Reference in New Issue