fixing build issues

master
Mark MacKay 2021-02-15 17:12:50 -06:00
parent 397bc3210f
commit c60b28babd
4 changed files with 6 additions and 6 deletions

View File

@ -679,8 +679,8 @@
<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-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/lib/jquery-draginput.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/state.js"></script>

View File

@ -13,10 +13,10 @@
// 3) svg_editor.js
// 4) svgcanvas.js
MD.Eyedropper = function(S) {
var svgcontent = S.svgcontent,
MD.Eyedropper = function() {
var svgcontent = svgCanvas.svgcontent,
svgns = "http://www.w3.org/2000/svg",
svgdoc = S.svgroot.parentNode.ownerDocument,
svgdoc = svgCanvas.svgroot.parentNode.ownerDocument,
ChangeElementCommand = svgedit.history.ChangeElementCommand,
addToHistory = function(cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); },
currentStyle = {fillPaint: "red", fillOpacity: 1.0,
@ -131,4 +131,4 @@ MD.Eyedropper = function(S) {
}
}
};
}
};

View File

@ -29,7 +29,6 @@ svgCanvas.bind("zoomed", editor.zoom.changed);
svgCanvas.bind("contextset", editor.contextChanged);
svgCanvas.bind("extension_added", editor.extensionAdded);
svgCanvas.textActions.setInputElem($("#text")[0]);
const shapeLib = svgCanvas.addExtension.apply(this, ["shapes", MD.Shapelib]);
const eyedropper = svgCanvas.addExtension.apply(this, ["eyedropper", MD.Eyedropper]);
const state = new State();

View File

@ -72,6 +72,7 @@ svgroot.setAttribute("width", dimensions[0]);
svgroot.setAttribute("height", dimensions[1]);
svgroot.id = "svgroot";
svgroot.setAttribute("xlinkns", xlinkns);
this.svgroot = svgroot;
container.appendChild(svgroot);
// The actual element that represents the final output SVG element