- Timestamp:
- 2019-03-01T18:39:10+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/map-scripts-editor.js
r32832 r32833 4 4 this.id = id; 5 5 this.shiftKeyPressed = false; 6 this.ctrlKeyPressed = false;7 6 this.beingDragged = false; 8 7 this.allowDeselect = true; … … 88 87 document.getElementById("thicknessRange" + "-" + this.id).addEventListener("mouseup", function () { that.shapeSpecsChangeMU() }); 89 88 document.getElementById("colourOpacity" + "-" + this.id).addEventListener("mouseup", function() { that.shapeSpecsChangeMU() } ); 90 // document.onmousemove = function (ev) {91 // //How can I know the state of mouse from here92 // if (that.mouseState == 'down') {93 // //console.log('mouse down state')94 // }95 // if (that.mouseState == 'up') {96 // //console.log('mouse up state')97 // }98 // }99 89 100 90 document.onmousedown = function (ev) { … … 117 107 var message = "Changes are not saved. Are you sure you want to leave?"; 118 108 119 console.log( currentOverlays);109 console.log("@@@ onbeforeunload. currentOverlays: " + currentOverlays); 120 110 console.log(that.savedOverlays); 121 111 console.log(enableMessage); … … 342 332 //Keyboard shortcuts 343 333 var mapAndControls = document.getElementById("map-and-controls-" + this.id); 344 console.log( mapAndControls);334 console.log("@@@@ initMapEditor. mapAndControls: " + mapAndControls); 345 335 346 336 //Sets shift as unpressed … … 689 679 } 690 680 691 681 // TODO: When finished testing, can remove this debug function that just prints to console 692 682 MapEditor.prototype.printHistory = function () { 693 683 console.log("prev", this.mapEditorHistory.prevOverlays); 694 684 console.log("present ", this.mapEditorHistory.presentOverlays); 695 685 console.log("undone ", this.mapEditorHistory.undoneOverlays); 696 console.log(this.selectedShapes); 697 698 //var collection = gs.cgiParams.c; 699 //console.log(collection); 700 //console.log(this.overlays); 701 //var json_overlays = ShapesUtil.overlayToJSON(this.overlays); 702 703 686 console.log("@@@@ selectedShapes: " + this.selectedShapes); 704 687 } 705 688
Note:
See TracChangeset
for help on using the changeset viewer.