Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
PRIVATE Writes the network element's background inside the main span of the network element.
function writeBgNE() { if (this.bgForm == ROUNDRECT) { var rect = document.createElement("v:roundrect"); rect.setAttribute("id", this.rectid); rect.setAttribute("arcSize", this.roundCornerPercentage); var elem = document.getElementById(this.id).appendChild(rect); elem.style.position = "absolute"; el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeImageNE() {\n\t\tvar elem = document.getElementById(this.id).appendChild(document.createElement(\"span\"));\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = 0;\n\t\telem.style.width = this.width;\n\t\telem.style.backgroundImage = \"url(\" + this.image + \")\";\n\t\tvar pos = NAME_CENTE...
[ "0.64541775", "0.5861078", "0.5861078", "0.5850759", "0.5850247", "0.5829072", "0.5780808", "0.5771595", "0.5764408", "0.5728892", "0.5671362", "0.55840594", "0.5583444", "0.55615425", "0.5552186", "0.5552186", "0.5552186", "0.5552186", "0.55133355", "0.54476404", "0.544367",...
0.62930435
1
PRIVATE Writes the background image iside the network element's main span.
function writeImageNE() { var elem = document.getElementById(this.id).appendChild(document.createElement("span")); elem.style.position = "absolute"; elem.style.left = 0; elem.style.width = this.width; elem.style.backgroundImage = "url(" + this.image + ")"; var pos = NAME_CENTER; if (this.nameLocation == N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeMinimapBackground() {\n\t\tif (this.bgImage != null) {\n\t\t\tvar image = new Image();\n\t\t\timage.src = this.bgImage;\n\t\t\tvar img = document.createElement(\"img\");\n\t\t\timg.setAttribute(\"border\", \"0\");\n\t\t\timg.setAttribute(\"src\", image.src);\n\t\t\tvar imgsp = document.getElementById...
[ "0.66258436", "0.6481092", "0.6155054", "0.6153019", "0.61442477", "0.6062983", "0.60335875", "0.60158914", "0.6002719", "0.600019", "0.59462154", "0.59125406", "0.58895665", "0.58551145", "0.58284223", "0.58284223", "0.58118016", "0.5796751", "0.57940316", "0.57593477", "0.5...
0.74262536
0
PRIVATE Writes the name of the network element inside its main span and at the specified location.
function writeNameNE() { var namesp = document.createElement("span"); namesp.setAttribute("id", this.id + "name"); var elem = document.getElementById(this.id).appendChild(namesp); elem.style.position = "absolute"; if (this.nameLocation == NAME_UP) { elem.style.top = 0; elem.style.paddingTop = "1px"; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeMainSpanNE() {\n\t\tvar mainnesp = document.createElement(\"span\");\n\t\tmainnesp.setAttribute(\"id\", this.id);\n\t\tvar elem = document.getElementById(MAP).appendChild(mainnesp);\n\t\telem.style.position = \"absolute\";\n\t\telem.style.width = this.width;\n\t\telem.style.height = this.height;\n\t\...
[ "0.65091294", "0.6049901", "0.6002996", "0.5886931", "0.5831352", "0.5629794", "0.56220037", "0.54602945", "0.54307675", "0.5379361", "0.53735954", "0.5362282", "0.53265613", "0.53248465", "0.53239346", "0.5281417", "0.52149445", "0.5213043", "0.5193543", "0.5190443", "0.5115...
0.7157313
0
PRIVATE Write the network element's overglass.
function writeOverglass() { var rect = document.createElement("v:rect"); rect.setAttribute("id", this.id + "og"); var elem = document.getElementById(this.id).appendChild(rect); elem.style.position = "absolute"; elem.style.top = 0; elem.style.left = 0; elem.style.width = this.width; elem.style.height = t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function layerWrite(txt) {\r\n\ttxt += \"\\n\";\r\n\tif (olNs4) {\r\n\t\tvar lyr = o3_frame.document.layers['overDiv'].document\r\n\t\tlyr.write(txt)\r\n\t\tlyr.close()\r\n\t} else if (typeof over.innerHTML != 'undefined') {\r\n\t\tif (olIe5 && isMac) over.innerHTML = '';\r\n\t\tover.innerHTML = txt;\r\n\t} else {...
[ "0.58979344", "0.58944166", "0.55858403", "0.55681914", "0.55554897", "0.5425142", "0.53012794", "0.52767134", "0.51908594", "0.51762587", "0.51762587", "0.51762587", "0.51679206", "0.516441", "0.516441", "0.516441", "0.516441", "0.516441", "0.516441", "0.516441", "0.5038035"...
0.7284223
0
PROTECTED Allocates the network element's ports at the correct postions.
function allocateNePorts() { var topPortList = new List(); var leftPortList = new List(); var rightPortList = new List(); var bottomPortList = new List(); for (var i = 0; i < this.ports.getLength(); i++) { var port = this.ports.get(i); port.calculateCoords(); if (port.side == TOP) { topPortList.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n this.ports = new Array(4);\n }", "function createPorts() {\n\tlist = [\n\t//[isrc, jsrc, idest, jdest],\t\n\t\t[14, 79, 14, 00],\n\t\t[15, 79, 15, 00],\n\t\t[16, 79, 16, 00],\n\t\t[17, 79, 17, 00],\n\t\t[18, 79, 18, 00],\n\t];\n\treturn list;\n}", "function allocatePort(numberOfPort...
[ "0.6563248", "0.6297086", "0.617611", "0.6067871", "0.60653836", "0.5989888", "0.5894233", "0.5670307", "0.56655514", "0.5597571", "0.5555724", "0.5534266", "0.5478364", "0.5424283", "0.5371756", "0.5315539", "0.5302477", "0.52539635", "0.5251364", "0.51688504", "0.5159487", ...
0.7384383
0
PROTECTED Updates all the ports position. This method also updates the port's position at the other side of the connection, because this method is invoked when the network element changes its position and this could affect to the whole connection.
function updateNePorts() { var updatedNesList = new List(); this.allocatePorts(); for (var i = 0; i < this.ports.getLength(); i++) { var port = this.ports.get(i); var ne = port.connection.originPort == port ? port.connection.destinationPort.ne : port.connection.originPort.ne; if (!updatedNesList.contains...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePorts(items, request) {\n\tfor (var i = 0; i < items.length; i++) {\n\t var sPort = items[i];\n\t \n\t if (positioned[topoStore.getValue(sPort, 'id', '')] == 1)\n\t\tcontinue;\n\t \n\t sNode = sPort.parent[0];\n\t sPoint = [topoStore.getValue(sNode, 'x', ''),\n\t\t topoStore.g...
[ "0.68473095", "0.60397357", "0.6004261", "0.5738028", "0.5699657", "0.5675966", "0.55909085", "0.55803984", "0.5579079", "0.55723614", "0.54331505", "0.53841573", "0.53681934", "0.53147984", "0.52983993", "0.5284012", "0.52072024", "0.5195772", "0.5185076", "0.515111", "0.511...
0.6633979
1
PROTECTED Sets this network element as selected and changes the needful properties, such as the background color.
function selectNE() { var ne = document.getElementById(this.rectid); ne.fill.color = "#FF5500"; ne.fill.color2 = "#FFDDCC"; if (this.bgType == BG_NONE) { ne.fill.opacity = "30%"; } this.selected = true; if (this.miniNE != null) { this.miniNE.writeMiniNetworkElement(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function highlight() {\n d3.select(this).classed('selected', true)\n }", "function selectObj(element){\n \telement.material.opacity = selectOpacity;\n \tSELECTED = element;\n if (testing){\n SELECTED.listLink.style.background = '#69A0E1';\n \tSELECTED.listLink.sty...
[ "0.63840514", "0.6298467", "0.6236608", "0.6189955", "0.6189917", "0.61682296", "0.61491686", "0.6123756", "0.6123756", "0.60974205", "0.60970443", "0.60072637", "0.598217", "0.59732527", "0.5952079", "0.5949847", "0.59099156", "0.587239", "0.5866349", "0.58618695", "0.585862...
0.67387
0
PROTECTED Sets this network element as unselected and reverts the changes maked when selected.
function unselectNE() { var ne = document.getElementById(this.rectid); ne.fill.color = this.bgColor1; ne.fill.color2 = this.bgColor2; if (this.bgType == BG_NONE) { ne.fill.opacity = "0%"; } this.selected = false; if (this.miniNE != null) { this.miniNE.writeMiniNetworkElement(this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "doUnselectItem() {\n if (this.selected) {\n this.selected.set('selected', false);\n this.set('selected',null);\n }\n }", "function unselectElement() {\r\n console.log('element unselected!');\r\n if (selectedElement != null) {\r\n selectedElement.classList.remov...
[ "0.72693604", "0.6912963", "0.6728336", "0.6582294", "0.6545694", "0.65403813", "0.6497006", "0.6492676", "0.6404491", "0.63567173", "0.6323063", "0.63213366", "0.6287186", "0.6266518", "0.62530714", "0.6203532", "0.6203532", "0.6159974", "0.61527884", "0.61246604", "0.607416...
0.7275524
0
PROTECTED Checks if this network element is selected or not.
function isSelectedNE() { return this.selected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isSelected() {\n return this._node.__execute(() => this.element.isSelected());\n }", "hasSelection() {\n return this._selectionService ? this._selectionService.hasSelection : false;\n }", "get selectedElement() {\n return this._selectedElement && this._selectedElement.get();\n }", "fu...
[ "0.65795076", "0.6471745", "0.6470885", "0.6427306", "0.6335721", "0.62317646", "0.6221707", "0.6199537", "0.6199537", "0.6199537", "0.6199537", "0.61803806", "0.60850626", "0.6082081", "0.6071951", "0.60717726", "0.60717726", "0.60717726", "0.60717726", "0.60717726", "0.6071...
0.63096374
5
PUBLIC Adds an item to the popup menu associated to this network element.
function addPopupListItemNE(img, text, action) { this.popupListItems.add(new PopupMenuItem(img, text, action), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "addMenuItem( item ){\n this.itemList.push(item);\n }", "attachItem(node) {\n const button = document.createElement(\"button\");\n button.textContent = node.localName;\n button.classList.add(node.localName);\n\n const boundMakeSwap = this._makeSwap.bind(this);\n button.addEventListener(\"...
[ "0.6565729", "0.64993984", "0.64265245", "0.6331177", "0.63049585", "0.625088", "0.62268746", "0.6200533", "0.61555994", "0.6117696", "0.61169636", "0.6068475", "0.6031069", "0.59907115", "0.597731", "0.59765375", "0.5957418", "0.5947862", "0.59269464", "0.59213465", "0.59202...
0.6195442
8
PROTECTED Shows at the specified coordenates the popup menu associated to this network element.
function showPopupMenuNE(x, y) { if (this.popupListItems.getLength() > 0) { document.getElementById(MAP).map.setPopupMenu(this.popupListItems, x, y); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showConnectionPopupMenu(x, y) {\n\t\tif (this.popupListItems.getLength() > 0) {\n\t\t\tdocument.getElementById(MAP).map.setPopupMenu(this.popupListItems, x, y);\n\t\t}\n\t}", "function showMapPopupMenu(x, y) {\n\t\tif (this.popupListItems.getLength() > 0) {\n\t\t\tthis.setPopupMenu(this.popupListItems, ...
[ "0.6908787", "0.66680026", "0.6362489", "0.6238174", "0.6231126", "0.6133786", "0.6065934", "0.6045185", "0.60138136", "0.5960111", "0.59428513", "0.586456", "0.58595854", "0.58222103", "0.58196604", "0.5748241", "0.57442296", "0.574289", "0.5733953", "0.5716018", "0.5714062"...
0.6881756
1
PROTECTED Executes the selected action of the popup menu.
function executeActionOnRightClickedNE(action) { document.getElementById(MAP).map.hidePopupMenu(); eval(action + "()"); rightClickedElementId = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onItemActionClick(event){\r\n\t\t\t\t\r\n\t\t//var obj\r\n\t\tvar objButton = jQuery(this);\r\n\t\tvar objItem = objButton.parents(\"li\");\r\n\t\t\r\n\t\tg_objItems.selectSingleItem(objItem);\r\n\t\t\r\n\t\tvar action = objButton.data(\"action\");\r\n\t\t\r\n\t\tif(action == \"open_menu\")\r\n\t\t\tretur...
[ "0.66461706", "0.6613506", "0.6528367", "0.6525193", "0.6485731", "0.63982654", "0.62235206", "0.6201344", "0.60834354", "0.60619193", "0.60551184", "0.60201603", "0.60073143", "0.5958849", "0.5958805", "0.59152746", "0.5901688", "0.5862175", "0.58570296", "0.58542895", "0.58...
0.56906235
35
PUBLIC Removes this NetworkElement from the map.
function removeNE() { var cont = 0; while (this.ports.getLength() > 0) { this.ports.get(0).connection.remove(); } document.getElementById(MAP).map.removeNetworkElement(this); document.getElementById(MAP).removeChild(document.getElementById(this.id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeNetworkElementFromMap(ne) {\n\t\tthis.releaseSelection();\n\t\tthis.networkElements.remove(this.networkElements.indexOf(ne));\n\t\tif (this.hasExtendedInformation) {\n\t\t\tdocument.getElementById(MINIMAP).removeChild(document.getElementById(\"mini\" + ne.id));\n\t\t\tvar oldMapWidth = this.mapWidth...
[ "0.75067365", "0.7452787", "0.72499174", "0.61413985", "0.61150897", "0.61150897", "0.61073923", "0.61071813", "0.61044055", "0.61044055", "0.61033756", "0.60755146", "0.6067639", "0.6066754", "0.6062796", "0.60556257", "0.6027911", "0.60228", "0.6018433", "0.59797055", "0.59...
0.627753
3
Map object PUBLIC The map is the main object which controls every other objects. Both network elements, ports and connections are displayed inside the map, but allthough the minimap and the extended information are not displayed inside, they at least are controlled by this. There is only allowed a single map for a web ...
function Map() { this.dragEnabled = true; this.tagName = null; this.tagNameXPos = 0; this.tagNameYPos = 0; this.networkElements = new List(); this.selectedNetworkElements = null; this.selection = null; this.dottedSelection = null; this.mapWidth = 0; this.mapHeight = 0; this.fixedWidth = null; th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Map() {\n\t// modifiable\n\tthis.tileSize = 1;\n\tthis.roughness = 10;\n\t// constants\n\tthis.mapSize = 1024;\n\tthis.mapFraction = 2;\n\tthis.mapCanvasW = 500;\n\tthis.mapCanvasH = 500;\n\tthis.mapCanvasTileW = this.mapCanvasW / this.tileSize;\n \tthis.mapCanvasTileH = this.mapCanvasH / this.tileSize;\...
[ "0.69253856", "0.68947566", "0.6764355", "0.6646094", "0.66443866", "0.66289896", "0.6590931", "0.65814596", "0.65540516", "0.65374357", "0.6531951", "0.65281034", "0.6477167", "0.6461361", "0.64461035", "0.64430296", "0.64430296", "0.6421707", "0.64015484", "0.6393219", "0.6...
0.7607642
0
PUBLIC Sets whether the map has extended information or not.
function setMapExtendedInformation(hasExtInfo) { this.hasExtendedInformation = eval(hasExtInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isExtendedEntry() {\n return (this.flags & 0x80) !== 0;\n }", "setExtended(){\n this.extended = this.extended == true ? false : true;\n if(this.extended)\n this.height += this.heightExtension;\n else\n this.height -= this.heightExtension;\n reFormatSect...
[ "0.6401291", "0.59533477", "0.5657522", "0.565674", "0.56015706", "0.56012195", "0.56012195", "0.5546566", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5513613", "0.5492358", "0.54901284", "0.54819405"...
0.8177228
0
PUBLIC Sets the extended information width.
function setMapExtendedInformationWidth(width) { this.minimapWidth = eval(width); this.minimap.setSide(this.minimapWidth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setWidth() {\n\tvar infoWindowData = viewModel.infoWindowData;\n\tvar $fsInfo = $('.foursquare-info');\n\tvar currentWidth = ($fsInfo.width() + img.photoSize() + 5) + 'px';\n\tinfoWindowData.width(currentWidth);\n}", "set width (width) { this._width = width }", "function setWidth(width...
[ "0.690634", "0.67903", "0.6772403", "0.6761199", "0.6761199", "0.66274387", "0.6622174", "0.6597433", "0.65777016", "0.6506909", "0.6468193", "0.64553624", "0.6427095", "0.6399638", "0.63772464", "0.6324664", "0.62939996", "0.6262772", "0.6157472", "0.6147593", "0.6115956", ...
0.8258081
0
PUBLIC Adds a network element to the map.
function addNeToMap(ne) { this.networkElements.add(ne, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add(map, key, value) {\n fetch(map, key).add(value);\n}", "function add(map, key, value) {\n fetch(map, key).add(value);\n}", "function addLayer(layer) {\n map.add(layer);\n }", "add(element) {}", "function addMiniNetworkElement(ne) {\n\t\tif (ne.bgForm == ROUNDRECT) {\n\t\t\...
[ "0.59908026", "0.59908026", "0.59504825", "0.5835701", "0.5734184", "0.57079834", "0.5672353", "0.5643687", "0.5514256", "0.5513312", "0.54494166", "0.543699", "0.54139787", "0.5406037", "0.53971046", "0.5367444", "0.5349474", "0.5336833", "0.53287697", "0.531096", "0.5310695...
0.7346221
0
PUBLIC Sets the visibility of the border. The border is allways present, but it can be visible or not. When the visibility is set to "hidden", the border is not showed but the map is surrounded by a white space of 4 pixels.
function setMapBorder(hasBorder) { if (!eval(hasBorder)) { this.borderColor = "#ffffff"; } if (this.hasExtendedInformation) { this.minimap.setBorder(hasBorder); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "applyLayoutVisibility() {\n const { visible } = this;\n const { mbMap } = this.mapboxLayer;\n\n if (!mbMap) {\n return;\n }\n\n const style = mbMap.getStyle();\n\n if (!style) {\n return;\n }\n\n if (this.styleLayersFilter) {\n const visibilityValue = visible ? 'visible' : 'n...
[ "0.6708785", "0.66234714", "0.64641976", "0.64069664", "0.62590325", "0.6231658", "0.6201368", "0.61826044", "0.61646533", "0.61538947", "0.61423504", "0.6015779", "0.6011218", "0.59923655", "0.5983085", "0.597748", "0.59646505", "0.59613675", "0.59380597", "0.59005165", "0.5...
0.6354502
4
PUBLIC Sets the border's color.
function setMapBorderColor(color) { if (this.borderColor != "#ffffff") { this.borderColor = color; this.minimap.borderColor = color; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set borderColor(value)\n\t{\n\t\tthis._nodeBorderColor = value;\n\t}", "set setBorderColor (color) {\n this.borderColor = color;\n }", "function changeColor(bg, border) {\n setBgColor(bg);\n setBorderColor(border);\n }", "setBorderColor(valueNew){let t=e.ValueConverter.toObject(valueNew);nul...
[ "0.7898094", "0.78446287", "0.7174406", "0.7002196", "0.6997469", "0.6964543", "0.69474816", "0.69101363", "0.68367666", "0.6768659", "0.66468704", "0.6602121", "0.65292585", "0.65292585", "0.6475975", "0.6453685", "0.6413741", "0.64069796", "0.634763", "0.6315346", "0.630865...
0.6521365
14
PUBLIC Sets the map's background color.
function setMapBackgroundColor(color) { this.bgColor = color; if (this.hasExtendedInformation) { this.minimap.setBackgroundColor(color); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMinimapBackgroundColor(color) {\n\t\tthis.bgColor = color;\n\t}", "function enterMap()\n{\t\n\t_canvas.style.backgroundImage = \"url(images/background.png)\";\n}", "function colorBackgroundMap(){\n var div = document.getElementsByClassName(\"jvectormap-container\");\n for(var i=0 ; i < div.length...
[ "0.71966094", "0.6737721", "0.67346466", "0.6615558", "0.654845", "0.63958347", "0.6279837", "0.62526363", "0.61783475", "0.6165346", "0.6085525", "0.60826874", "0.60725445", "0.60219115", "0.5982634", "0.59811175", "0.5969791", "0.5967747", "0.5956011", "0.59526086", "0.5912...
0.7691556
0
PUBLIC Sets the background image of the map and allocates it at the specified coordenates from the upper left corner of the map.
function setMapBackgroundImage(img, x, y) { if (img.indexOf("/") != -1) { this.bgImage = img; } else { this.bgImage = URL_IMAGES + img; } this.bgImageXCoord = x != null ? eval(x) : 0; this.bgImageYCoord = y != null ? eval(y) : 0; if (this.hasExtendedInformation) { this.minimap.setBackgroundImage(th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enterMap()\n{\t\n\t_canvas.style.backgroundImage = \"url(images/background.png)\";\n}", "function loadBackgroundImage() {\n\t\tmapImage = new Image()\n\n\t\tmapImage.onload = setBackgroundImage;\n\t\tmapImage.src = \"gtasa-map-small.png\";\n\t}", "function setMinimapBackgroundImage(img, x, y) {\n\t\tt...
[ "0.77433807", "0.741023", "0.70951784", "0.69993275", "0.69527024", "0.66922486", "0.6497271", "0.62825894", "0.627883", "0.623831", "0.62317526", "0.6221847", "0.61809385", "0.6179067", "0.6165592", "0.6152838", "0.6101998", "0.6101692", "0.6090627", "0.60893255", "0.6088425...
0.77347785
1
PRIVATE Sets or updates the actual map's width and height. These parameters may change when an onResize event is fired.
function setMapBounds() { var mapStyle = document.getElementById(MAP).style; var extendedInformationWidth = this.hasExtendedInformation ? this.minimapWidth : 0; mapStyle.width = this.fixedWidth == null ? document.body.clientWidth - extendedInformationWidth : this.fixedWidth; mapStyle.height = this.fixedHeight =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resize() {\n\tmap.setSize();\n}", "function resizeMap({width, height}) {\n if (width && height) {\n setMapWidth(width)\n setMapHeight(height)\n window.map.resize()\n } else if (width) {\n setMapWidth(width)\n window.map.resize()\n } else {\n setMapHeight(height)\n ...
[ "0.7760658", "0.76631606", "0.73023796", "0.72364587", "0.7221782", "0.71586865", "0.70847195", "0.6999446", "0.699541", "0.69883597", "0.6962502", "0.6940098", "0.6937964", "0.69299775", "0.69091994", "0.6863899", "0.68505037", "0.6790556", "0.674859", "0.6729232", "0.671653...
0.7245345
3
PUBLIC Sets the map's border width and height. This are the maximum width and height which can be seen at a time, but the map's real limits can be bigger and seen using the scroll bars.
function setMapFixedBounds(width, height) { this.fixedWidth = width == null ? null : eval(width); this.fixedHeight = height == null ? null : eval(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapBounds() {\n\t\tvar mapStyle = document.getElementById(MAP).style;\n\t\tvar extendedInformationWidth = this.hasExtendedInformation ? this.minimapWidth : 0;\n\t\tmapStyle.width = this.fixedWidth == null ? document.body.clientWidth - extendedInformationWidth : this.fixedWidth;\n\t\tmapStyle.height = t...
[ "0.7328467", "0.69423985", "0.6853109", "0.67356855", "0.6729367", "0.6511809", "0.64209074", "0.6418429", "0.6341477", "0.614382", "0.6094003", "0.6087864", "0.6077637", "0.6066784", "0.6006482", "0.60011494", "0.599103", "0.59252983", "0.5884776", "0.58610564", "0.58457977"...
0.6733241
4
PUBLIC Sets the map's name and its coordenates.
function setMapTagName(tag, x, y) { this.tagName = tag; this.tagNameXPos = x == null ? 0 : eval(x); this.tagNameYPos = y == null ? 0 : eval(y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapView() {\n var gmCenter = new google.maps.LatLng(STATE_GEOS[CURR_STATE].LocLat, STATE_GEOS[CURR_STATE].LocLon);\n MAP.setCenter(gmCenter);\n MAP.setZoom(parseInt(STATE_GEOS[CURR_STATE].ZoomLevel));\n}", "function edit_location_map() {\n initialize_add_location_map();\n convert_point...
[ "0.6364921", "0.6290065", "0.6248901", "0.6122819", "0.6078305", "0.6048698", "0.6034343", "0.596007", "0.5891989", "0.5889654", "0.58841175", "0.5882432", "0.58634305", "0.58556557", "0.58363616", "0.58345485", "0.5821492", "0.5812382", "0.57867426", "0.57853836", "0.5777838...
0.58561325
13
PUBLIC Writes the map's HTML code. This writing process involves the creation of every other object present inside the map: network elements, ports, connections, minimap and extended information.
function writeMap() { var map = document.createElement("span"); map.setAttribute("id", MAP); var mapsp = document.body.appendChild(map); mapsp.style.position = "absolute"; mapsp.style.top = 0; mapsp.style.left = 0; mapsp.style.border = "medium double " + this.borderColor; mapsp.style.backgroundColor = t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createWorldPage_HTML () {\n // Set global variable with type of map to be opened\n local = [];\n local.push(\"world\", \"none\");\n\n // Set url\n window.history.pushState(\"object or string\", \"Title\", \"index.html\");\n\n //Add script for map creation\n document.getElementById(\"m...
[ "0.63327134", "0.627284", "0.62559825", "0.61529523", "0.61232233", "0.6117133", "0.6116917", "0.61023784", "0.60795987", "0.5940121", "0.5782728", "0.5781714", "0.5747003", "0.5729534", "0.56887805", "0.5677624", "0.5663132", "0.56446636", "0.56121945", "0.56120497", "0.5610...
0.66801924
0
PROTECTED Sets a map selection, that is, selects every network elements inside the actual selection bounds.
function setMapSelection() { this.selectedNetworkElements = new List(); var oX = this.selection.getOriginX(); var oY = this.selection.getOriginY(); var fX = oX + this.selection.getFinalX(); var fY = oY + this.selection.getFinalY(); for (var i = 0; i < this.networkElements.getLength(); i++) { var ne = thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapDottedSelection() {\n\t\tthis.dottedSelection = new DottedSelection();\n\t\tthis.dottedSelection.write();\n\t\tfor (var i = 0; i < this.selectedNetworkElements.getLength(); i++) {\n\t\t\tthis.dottedSelection.addDottedNe(this.selectedNetworkElements.get(i));\n\t\t}\n\t}", "function makeSelectionMap...
[ "0.7169548", "0.6478432", "0.6420614", "0.6235565", "0.60647917", "0.60647917", "0.59953487", "0.5990923", "0.5980643", "0.5845168", "0.582314", "0.58114505", "0.580439", "0.578398", "0.5779507", "0.56899935", "0.56756514", "0.56720287", "0.5658618", "0.5637573", "0.562331", ...
0.8538626
0
PROTECTED Sets a new map's dotted selection and writes it inside the map with all the dotted network elements it involves. Initially the dotted selection is not visible. It will only turn to visible while dragged.
function setMapDottedSelection() { this.dottedSelection = new DottedSelection(); this.dottedSelection.write(); for (var i = 0; i < this.selectedNetworkElements.getLength(); i++) { this.dottedSelection.addDottedNe(this.selectedNetworkElements.get(i)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapSelection() {\n\t\tthis.selectedNetworkElements = new List();\n\t\tvar oX = this.selection.getOriginX();\n\t\tvar oY = this.selection.getOriginY();\n\t\tvar fX = oX + this.selection.getFinalX();\n\t\tvar fY = oY + this.selection.getFinalY();\n\t\tfor (var i = 0; i < this.networkElements.getLength();...
[ "0.6772239", "0.6560151", "0.6213592", "0.5861125", "0.57428724", "0.5700812", "0.56765723", "0.566284", "0.5561867", "0.55411536", "0.5508857", "0.54822254", "0.545989", "0.54174185", "0.53382534", "0.5336427", "0.5331732", "0.5331304", "0.5289176", "0.5226842", "0.5216588",...
0.82697546
0
PROTECTED Adds a network element to the current selection. If the current selection is null, a new one is created.
function addNeToMapSelection(ne) { if (this.selectedNetworkElements == null) { this.selectedNetworkElements = new List(); } if (this.dottedSelection == null) { this.dottedSelection = new DottedSelection(); this.dottedSelection.write(); } this.selectedNetworkElements.add(ne); ne.select(); this.dot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addSelection(item) {\n //if the owner reference is still null, set it to this item's parent\n //so that further selection is only allowed within the same container\n if (!selections.owner) {\n selections.owner = item.parentNode;\n }\n\n //or if that's already happened then compare it...
[ "0.6020712", "0.59876347", "0.5697404", "0.56609416", "0.5619483", "0.52718323", "0.523059", "0.52254874", "0.5144356", "0.5095403", "0.50857973", "0.50616807", "0.50507396", "0.5035529", "0.50128", "0.50023746", "0.49877092", "0.49859527", "0.4983362", "0.4980328", "0.496410...
0.65684307
0
PROTECTED Releases the current map selection and unselects the currently selected network elements.
function releaseMapSelection() { if (this.selectedNetworkElements != null) { for (var i = 0; i < this.selectedNetworkElements.getLength(); i++) { this.selectedNetworkElements.get(i).unselect(); } } if (this.dottedSelection != null) { this.dottedSelection.release(); } this.selectedNetworkElements ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearSelection() {\r\n map.deselectCountry();\r\n pc1.deselectLine();\r\n donut.deselectPie();\r\n sp1.deselectDot();\r\n }", "function removeSelectionPolygon() {\t\t\t\n\t\t\t\tselection_polygon.setPath([]);\n\t\t\t\tselection_polygon.setMap(null);\n\t\t\t}", "function ...
[ "0.7382199", "0.68725264", "0.68025863", "0.66783494", "0.6675537", "0.6665225", "0.6607059", "0.65717125", "0.656517", "0.6532747", "0.65327096", "0.6477167", "0.64767635", "0.6458548", "0.6433921", "0.6348406", "0.63438606", "0.63438606", "0.63438606", "0.63397914", "0.6339...
0.91727376
0
PROTECTED Updates the position of all the selected network elements and their ports.
function updateSelectedNes() { if (this.dottedSelection.x != 0 && this.dottedSelection.y != 0) { var mapScL = document.getElementById("MAP").scrollLeft; var mapScT = document.getElementById("MAP").scrollTop; for (var i = 0; i < this.selectedNetworkElements.getLength(); i++) { var ne = this.selectedNetwor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePorts(items, request) {\n\tfor (var i = 0; i < items.length; i++) {\n\t var sPort = items[i];\n\t \n\t if (positioned[topoStore.getValue(sPort, 'id', '')] == 1)\n\t\tcontinue;\n\t \n\t sNode = sPort.parent[0];\n\t sPoint = [topoStore.getValue(sNode, 'x', ''),\n\t\t topoStore.g...
[ "0.67642784", "0.655862", "0.6224934", "0.62023884", "0.59000176", "0.5833714", "0.580791", "0.5765081", "0.5758387", "0.5710446", "0.5608125", "0.55486524", "0.55481493", "0.554514", "0.55398", "0.5514422", "0.5458462", "0.54386353", "0.5387198", "0.538644", "0.5383263", "...
0.72486025
0
PROTECTED Writes the minimap and all its minielements if the map has the extended information enabled. Other way it does anything.
function writeMiniMapOnMap(onResizingProcess) { if (this.hasExtendedInformation) { var orp = onResizingProcess != null ? onResizingProcess : false; this.minimap.release(); this.minimap.write(this.fixedWidth, this.fixedHeight); this.minimap.setBounds(orp); this.minimap.writeBackground(); for (var i =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateMiniMapCoords() {\n\t\tif (this.hasExtendedInformation) {\n\t\t\tthis.minimap.updateMiniWindow();\n\t\t}\n\t}", "function setMapExtendedInformation(hasExtInfo) {\n\t\tthis.hasExtendedInformation = eval(hasExtInfo);\n\t}", "showMap() {\n if (!this._appendedToDOM) {\n this._paren...
[ "0.61837316", "0.58545345", "0.5733061", "0.57285154", "0.5501455", "0.5483368", "0.5458482", "0.5386362", "0.5362306", "0.53504217", "0.53282267", "0.52266014", "0.5197266", "0.51560605", "0.5138145", "0.5133811", "0.513354", "0.5065099", "0.5038297", "0.5011934", "0.4988791...
0.67265165
0
PROTECTED Stores the current map's real bounds. These could change when one or more network elements are dragged.
function storeMapBounds() { this.mapWidth = document.getElementById(MAP).scrollWidth; this.mapHeight = document.getElementById(MAP).scrollHeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get bounds() { return this._bounds; }", "get bounds() {}", "function getMapBounds() {\r\n\t\t//return app.location.bounds;\r\n\t\treturn app.map.map.getBounds();\r\n\t}", "get localBounds() {}", "function updateBounds() {\n map.fitBounds(mapBounds);\n\n // update dark border area\n topBound.setBounds([[...
[ "0.7454676", "0.70906425", "0.7068359", "0.7040061", "0.7016781", "0.6991699", "0.6966149", "0.6947074", "0.68689996", "0.6864939", "0.68350464", "0.68246186", "0.6769506", "0.66942376", "0.66762793", "0.6670092", "0.66347486", "0.6624613", "0.66209763", "0.66070414", "0.6605...
0.7456704
0
PROTECTED Updates the miniwindow coordenates inside the minimap.
function updateMiniMapCoords() { if (this.hasExtendedInformation) { this.minimap.updateMiniWindow(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateMiniWindowCoords() {\n\t\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\n\t\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\n\t\tdocument.getElementById(MINIWINDOW + \"_up\").style.height = sct;\n\t\tdocument.getElementById(MINIWINDOW + \"_left\").style.top = sct;\n...
[ "0.8373392", "0.70837367", "0.6955516", "0.6835984", "0.6497751", "0.6438232", "0.6364027", "0.6327815", "0.62720686", "0.6270275", "0.6230488", "0.62278575", "0.6182602", "0.6086848", "0.60796416", "0.6073878", "0.60678047", "0.6063466", "0.60500777", "0.6036826", "0.6017532...
0.8452274
0
PROTECTED Scrolls the map to the specified coordenates once changed the aspect ratio. This method is invoked when the miniwindow is dragged and the map's scroll bars have to change their position to keep the current one determined by the miniwindow.
function scrollMapTo(x, y) { var scl = eval(x) / this.minimap.xRate; var sct = eval(y) / this.minimap.yRate; document.getElementById(MAP).scrollLeft = scl; document.getElementById(MAP).scrollTop = sct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateMiniWindowCoords() {\n\t\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\n\t\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\n\t\tdocument.getElementById(MINIWINDOW + \"_up\").style.height = sct;\n\t\tdocument.getElementById(MINIWINDOW + \"_left\").style.top = sct;\n...
[ "0.67411005", "0.65139836", "0.6504152", "0.63078004", "0.6297959", "0.62925047", "0.629011", "0.629011", "0.6246338", "0.62384474", "0.62326026", "0.6231718", "0.62171745", "0.61975193", "0.61914206", "0.6169654", "0.61572164", "0.6147567", "0.61472327", "0.6146266", "0.6129...
0.62058645
13
PROTECTED Inside the map there is only one popup menu. It is initially empty and has no items inside. When a popup menu of any element (either the map or a network element or a connection) is called to be displayed, the popup menu of the main map attaches the element's popup menu items to itself and shows them at the s...
function setMapPopupMenu(items, x, y) { this.popupMenu.attachListItems(items); this.popupMenu.write(); this.popupMenu.allocate(x, y); this.popupMenu.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showMapPopupMenu(x, y) {\n\t\tif (this.popupListItems.getLength() > 0) {\n\t\t\tthis.setPopupMenu(this.popupListItems, x, y);\n\t\t}\n\t}", "function hideMapPopupMenu() {\n\t\tthis.popupMenu.hide();\n\t}", "function showPopupMenu(e){\n if (e.targetType == \"map\") {\n\n var point =...
[ "0.77678305", "0.7287918", "0.712805", "0.70674056", "0.70600176", "0.70176184", "0.68206966", "0.66568923", "0.66436285", "0.65792155", "0.65648526", "0.651587", "0.650981", "0.65023065", "0.64755386", "0.6425877", "0.63992316", "0.633309", "0.6300219", "0.6274926", "0.62527...
0.73764133
1
PROTECTED Makes visible the current popup menu.
function showMapPopupMenu(x, y) { if (this.popupListItems.getLength() > 0) { this.setPopupMenu(this.popupListItems, x, y); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPopupMenu() {\n\t\tif (document.getElementById(this.id) != null) {\n\t\t\tdocument.getElementById(this.id).style.visibility = \"visible\";\n\t\t}\n\t}", "function openMenu() {\n\n //Set the menu to be visible\n setVisibility(document.getElementById(\"menuPopup\"), true);\n\n $(\"#graphConte...
[ "0.7568731", "0.7004021", "0.6909506", "0.6847706", "0.6718381", "0.66874254", "0.6623019", "0.6621279", "0.6620865", "0.6618444", "0.65934956", "0.657638", "0.6572715", "0.6572715", "0.65672535", "0.65523565", "0.65330696", "0.65330696", "0.65330696", "0.6518264", "0.651085"...
0.0
-1
PROTECTED Hides the current popup menu.
function hideMapPopupMenu() { this.popupMenu.hide(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hide() {\n this.backButtonOpen_ = false;\n chrome.accessibilityPrivate.setSwitchAccessMenuState(\n false, SAConstants.EMPTY_LOCATION, 0);\n this.menuPanel_.setFocusRing(SAConstants.BACK_ID, false);\n }", "function disableClickToClose() {\n\n // Close the menu when a menu item is click...
[ "0.74208486", "0.6904066", "0.6894206", "0.6838377", "0.67553186", "0.67553186", "0.6719036", "0.6690591", "0.66784465", "0.66784465", "0.66096383", "0.6602055", "0.660141", "0.6599513", "0.6594706", "0.65909886", "0.64959943", "0.647696", "0.647696", "0.64673835", "0.6436665...
0.6650686
10
PUBLIC Sets whether the map's network elements can be dragged over the map or not.
function setDragEnabled(dragEnabled) { this.dragEnabled = eval(dragEnabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mapper_enable_dragging() {\n if( map ) map.enableDragging();\n}", "function mapper_disable_dragging() {\n if( map ) map.disableDragging();\n}", "onMinimapDragMouseDown() {\n this.isMinimapPanning = true;\n }", "function setMapSelection() {\n\t\tthis.selectedNetworkElements = new List();\...
[ "0.66033566", "0.60913825", "0.604471", "0.5816129", "0.56548035", "0.56344086", "0.5607411", "0.55775934", "0.55578566", "0.5399599", "0.5369724", "0.53515226", "0.5272876", "0.52620065", "0.525351", "0.52454", "0.5242878", "0.5230465", "0.522323", "0.5207435", "0.5201403", ...
0.0
-1
PUBLIC Removes a network element from the map.
function removeNetworkElementFromMap(ne) { this.releaseSelection(); this.networkElements.remove(this.networkElements.indexOf(ne)); if (this.hasExtendedInformation) { document.getElementById(MINIMAP).removeChild(document.getElementById("mini" + ne.id)); var oldMapWidth = this.mapWidth; var oldMapHeight = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mapRemove() {\n\n\t\tthis.map.remove();\n\n\t}", "remove() {\n this.setMap(null);\n }", "function removeNE() {\n\t\tvar cont = 0;\n\t\twhile (this.ports.getLength() > 0) {\n\t\t\tthis.ports.get(0).connection.remove();\n\t\t}\n\t\tdocument.getElementById(MAP).map.removeNetworkElement(this);\n\t\tdocument.ge...
[ "0.6743893", "0.670239", "0.62659556", "0.6199556", "0.6163581", "0.6108137", "0.5980114", "0.5947716", "0.5923072", "0.5903632", "0.58982974", "0.5864144", "0.5847138", "0.5847138", "0.5842119", "0.5836358", "0.58343667", "0.58304346", "0.58268493", "0.5822744", "0.5822438",...
0.7607364
0
PUBLIC Adds an item to the popup menu associated to this map.
function addMapPopupListItem(img, text, action) { this.popupListItems.add(new PopupMenuItem(img, text, action), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addItem(futureMenuItem) {\n\t\tfutureMenuItem.setMenu(this);\n\t\tthis.items.add(futureMenuItem, true);\n\t}", "function setMapPopupMenu(items, x, y) {\n\t\tthis.popupMenu.attachListItems(items);\n\t\tthis.popupMenu.write();\n\t\tthis.popupMenu.allocate(x, y);\n\t\tthis.popupMenu.show();\n\t}", "funct...
[ "0.674702", "0.6595522", "0.65357876", "0.6489834", "0.6357209", "0.62686217", "0.626576", "0.6152224", "0.6091114", "0.6067738", "0.5997694", "0.5971425", "0.5950957", "0.5916018", "0.59069335", "0.5900464", "0.5888152", "0.58865935", "0.5849555", "0.58343315", "0.58238566",...
0.7113941
0
PROTECTED Executes the selected action of the popup menu.
function executeActionOnRightClickedMap(action) { this.hidePopupMenu(); eval(action + "()"); rightClickedElementId = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onItemActionClick(event){\r\n\t\t\t\t\r\n\t\t//var obj\r\n\t\tvar objButton = jQuery(this);\r\n\t\tvar objItem = objButton.parents(\"li\");\r\n\t\t\r\n\t\tg_objItems.selectSingleItem(objItem);\r\n\t\t\r\n\t\tvar action = objButton.data(\"action\");\r\n\t\t\r\n\t\tif(action == \"open_menu\")\r\n\t\t\tretur...
[ "0.66461706", "0.6613506", "0.6528367", "0.6525193", "0.6485731", "0.63982654", "0.62235206", "0.6201344", "0.60834354", "0.60619193", "0.60551184", "0.60201603", "0.60073143", "0.5958849", "0.5958805", "0.59152746", "0.5901688", "0.5862175", "0.58570296", "0.58542895", "0.58...
0.57797885
25
PUBLIC Finds a network element inside the map positioning it at the center of the map and highlighting it three times.
function findNetworkElementInsideMap(ne) { document.getElementById(MAP).scrollTop = ne.y - 100; document.getElementById(MAP).scrollLeft = ne.x - 250; var nodeNumber = this.networkElements.indexOf(ne); var bgc1 = ne.bgColor1; var bgc2 = ne.bgColor2; var bgColor1 = ne.isSelected() ? "#FF5500" : bgc1; var bg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function highlightFoundNetworkElement(neNumber, color1, color2) {\n\t\tdocument.getElementById(MAP).map.networkElements.get(neNumber).setBackgroundColor(color1, color2);\n\t}", "function highlightMapLocations(svg, selector, filter, retries) {\n if (filter === undefined) {filter = function(d,i) {return true;}}\n...
[ "0.68257403", "0.596962", "0.5873263", "0.58469224", "0.5770962", "0.5770962", "0.5747225", "0.56765896", "0.5624378", "0.5594527", "0.55842566", "0.55197746", "0.55091196", "0.5496509", "0.54344267", "0.54276556", "0.54178745", "0.5381093", "0.5337887", "0.53236365", "0.5322...
0.79577523
0
PRIVATE This method ends the highlighting of a found network element resetting its background colors.
function resetFoundNetworkElement(neNumber, bgc1, bgc2) { var ne = document.getElementById(MAP).map.networkElements.get(neNumber); ne.bgColor1 = bgc1; ne.bgColor2 = bgc2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clearHighlight() {\n\n //TODO - your code goes here -\n }", "function resetHighlight(e) {\n\tciycle.resetStyle(e.target);\n}", "function resetMatchedElement() {\n if(matchedElement&&!$(matchedElement).hasClass('crypto_marker')){\n $(matchedElement).css('background-color', originalBgColor);\...
[ "0.61587137", "0.61543465", "0.6109782", "0.61026806", "0.6069957", "0.60328954", "0.595613", "0.59492016", "0.5908217", "0.5907661", "0.5888893", "0.58747315", "0.58602816", "0.5845663", "0.5829744", "0.58156496", "0.5809109", "0.58041936", "0.57991546", "0.5786606", "0.5776...
0.55972123
48
PRIVATE Changes the background colors of a network element.
function highlightFoundNetworkElement(neNumber, color1, color2) { document.getElementById(MAP).map.networkElements.get(neNumber).setBackgroundColor(color1, color2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setElementBGColor(element, red, green, blue) {\n // An array containing the three primary colors\n // .join(',') adds commas between the indices\n let rgbVal = [red, green, blue].join(',');\n // the color box sends the rgb values to the background-color built-in function in the CSS file\n ...
[ "0.6754983", "0.66526866", "0.65482813", "0.652257", "0.6480485", "0.64741105", "0.64671165", "0.64662325", "0.6390214", "0.62935865", "0.62637526", "0.62589866", "0.6239783", "0.61971104", "0.618512", "0.61816114", "0.6163711", "0.6121487", "0.61174506", "0.61166185", "0.611...
0.0
-1
Minimap object PROTECTED Constructor The minimap is the scaled map displayed at the right side. It is a simple view of the whole map and provides an easier way for moving along the map when it has a big size. The minimap always maintains the aspect ratio with the map, even when the IE window is resized or the map's ele...
function MiniMap() { this.xRate = null; this.yRate = null; this.side = MINIMAP_SIDE; this.borderColor = "#003366"; this.bgColor = "#e3e3e3"; this.bgImage = null; this.bgImageXCoord = null; this.bgImageYCoord = null; this.write = writeMiniMap; this.release = releaseMiniMap; this.setBounds = setMini...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Minimap() \n{\n\tthis.active = false;\n\t\n\t/* We're actually only drawing every other square to save space */\n\tthis.minimap_width = WORLD_SIZE_X/2;\n\tthis.minimap_height = WORLD_SIZE_Y/2;\n\t\n\t/* When the Minimap is initialized at game start, we draw the whole map once and\n\t * save it as an image...
[ "0.75428796", "0.735191", "0.6933829", "0.6845344", "0.68448484", "0.6793148", "0.6221753", "0.61520815", "0.6148804", "0.61134696", "0.61076266", "0.6042154", "0.59444237", "0.59326667", "0.58884007", "0.5862705", "0.57921296", "0.5787303", "0.5752416", "0.57241124", "0.5709...
0.7651644
0
PROTECTED Sets the size of the minimap's side.
function setMinimapSide(side) { this.side = eval(side); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set size(value) {}", "setSize() {\n this.size = this.fixHeight;\n }", "setSize(size) {\n this.size = size;\n }", "setSize(size) {\n this.size = size;\n }", "function setMinimapSideSelection(side) {\n\t\tthis.minimapSide = eval(side);\n\t}", "set width (width) { this._width = wid...
[ "0.63703287", "0.6259973", "0.61782855", "0.6136517", "0.61269313", "0.5907765", "0.58729774", "0.5825639", "0.5819277", "0.580113", "0.579977", "0.5794935", "0.5765609", "0.5758327", "0.57506096", "0.57348496", "0.57348496", "0.5695157", "0.5695101", "0.5693031", "0.56720614...
0.6450569
0
PROTECTED Sets whether the visibility of the border is "visible" or "hidden". Allthough the border can be hidden, the minimap will have a white space of 4 pixels at each side surrounding it. The border width is always of 4 pixels.
function setMinimapBorder(hasBorder) { if (!eval(hasBorder)) { this.borderColor = "#ffffff"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeInvisible(){\n// document.getElementById('ugly').width = 50;\n\n document.getElementById('ugly').className = 'applyBorder';\n\n}", "static set visible(value) {}", "set visible(value) {\n this._planeHelper.visible = value;\n }", "setVisible(value) {\n this.visible = value;\n ...
[ "0.61159843", "0.60998255", "0.58941984", "0.584889", "0.57318956", "0.5718982", "0.5714666", "0.57059926", "0.5695985", "0.5681566", "0.5671085", "0.56116915", "0.5576882", "0.5570978", "0.55709743", "0.55212796", "0.54796124", "0.54756063", "0.54726136", "0.5459897", "0.543...
0.61674947
0
PROTECTED Sets the minimap's background color.
function setMinimapBackgroundColor(color) { this.bgColor = color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapBackgroundColor(color) {\n\t\tthis.bgColor = color;\n\t\tif (this.hasExtendedInformation) {\n\t\t\tthis.minimap.setBackgroundColor(color);\n\t\t}\n\t}", "set backgroundColor(value) {}", "function defaultSetBackground(gd, bgColor) {\n\t try {\n\t gd._fullLayout._paper.style('background'...
[ "0.71758527", "0.6169943", "0.61334336", "0.6122898", "0.60947186", "0.60945815", "0.6079126", "0.6075301", "0.60456043", "0.60101527", "0.59525514", "0.594526", "0.5938557", "0.59329456", "0.59024066", "0.59010744", "0.5893166", "0.5893166", "0.5829228", "0.58049834", "0.580...
0.79302585
0
Sets the new minimap's background image and allocates it at the scaled specified position.
function setMinimapBackgroundImage(img, x, y) { this.bgImage = img; this.bgImageXCoord = eval(x); this.bgImageYCoord = eval(y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapBackgroundImage(img, x, y) {\n\t\tif (img.indexOf(\"/\") != -1) {\n\t\t\tthis.bgImage = img;\n\t\t} else {\n\t\t\tthis.bgImage = URL_IMAGES + img;\n\t\t}\n\t\tthis.bgImageXCoord = x != null ? eval(x) : 0;\n\t\tthis.bgImageYCoord = y != null ? eval(y) : 0;\n\t\tif (this.hasExtendedInformation) {\n\t\...
[ "0.6578156", "0.65184045", "0.63656884", "0.6324928", "0.6310207", "0.619302", "0.60823333", "0.60289425", "0.60041004", "0.59631705", "0.5945441", "0.58618367", "0.58046526", "0.5771996", "0.5743915", "0.57241774", "0.56993", "0.56993", "0.56982875", "0.56940633", "0.5666019...
0.6949136
0
PROTECTED Writes the minimap's HTML code.
function writeMiniMap(mapFixedWidth, mapFixedHeight) { var mm = document.createElement("span"); mm.setAttribute("id", MINIMAP); var mmsp = document.body.appendChild(mm); mmsp.style.position = "absolute"; mmsp.style.top = mapFixedHeight == null ? document.body.clientHeight - this.side : mapFixedHeight - this.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SafeHtml() { }", "function SafeHtml() { }", "function SafeHtml() { }", "function insertHtml() {\n MAPP.refreshTimer = false;\n var outputHtml = MAPP.editors.htmlmixed.getTextArea().value,\n outputCss = MAPP.editors.css.getTextArea().value,\n outputScript = MAPP.editors.javascript...
[ "0.5881634", "0.5881634", "0.5881634", "0.5839126", "0.5821809", "0.5821809", "0.5821809", "0.5821809", "0.5821809", "0.57510155", "0.56953615", "0.5628605", "0.5499363", "0.54746515", "0.54603946", "0.53733367", "0.5344902", "0.5335299", "0.5308238", "0.53043157", "0.5280196...
0.5634178
11
PRIVATE Writes the minimap's background image.
function writeMinimapBackground() { if (this.bgImage != null) { var image = new Image(); image.src = this.bgImage; var img = document.createElement("img"); img.setAttribute("border", "0"); img.setAttribute("src", image.src); var imgsp = document.getElementById(MINIMAP).appendChild(img); imgsp.sty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enterSave()\n{\t\n\t_canvas.style.backgroundImage = \"url(images/background.png)\";\n}", "function drawImage() {\n document.body.style.backgroundImage = `url(${ store.State.image.large_url})`\n document.body.classList.add('bg-image')\n}", "setBackgroundImg() {\n if (this.scene.background) {\n...
[ "0.64329123", "0.64298445", "0.64064443", "0.6311243", "0.6298271", "0.62861055", "0.62352324", "0.6230583", "0.6224276", "0.6212329", "0.619559", "0.61440533", "0.6119374", "0.61171997", "0.6108211", "0.60649824", "0.60620904", "0.60326874", "0.60270536", "0.6024506", "0.599...
0.87044996
0
PROTECTED Removes the minimap from the web page.
function releaseMiniMap() { if (document.getElementById(MINIMAP) != null) { document.body.removeChild(document.getElementById(MINIMAP)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DeleteMap() {\n document.body.removeChild(map);\n}", "function cleanTheStage() {\n while (document.body.firstChild.id != 'map') {\n // map is the firt valid section in a JS enabled env\n document.body.removeChild(\n document.body.firstChild\n );\n }\n }", "function purg...
[ "0.6673489", "0.63721913", "0.6270316", "0.62685496", "0.61100024", "0.6050112", "0.60289896", "0.59914625", "0.5969379", "0.5941153", "0.59316444", "0.5911127", "0.58799434", "0.5856062", "0.5856062", "0.5814278", "0.5713426", "0.5708623", "0.57080853", "0.5690666", "0.56878...
0.723294
0
PROTECTED Sets the minimap bounds and updates the current scale rates. This method is useful when a resize event is fired or a network element is dragged and changes the current map's bounds.
function setMiniMapBounds(onResizingProcess) { var mapClientWidth = document.getElementById(MAP).clientWidth; var mapClientHeight = document.getElementById(MAP).clientHeight; if (onResizingProcess) { mapClientWidth -= document.getElementById(MAP).map.mapHeight > document.getElementById(MAP).clientHeight ? 17 :...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateBounds() {\n map.fitBounds(mapBounds);\n\n // update dark border area\n topBound.setBounds([[90, -180], [Math.max(mapBounds[0][0], mapBounds[1][0]), 180]]);\n rightBound.setBounds([[Math.min(mapBounds[0][0], mapBounds[1][0]), Math.max(mapBounds[0][1], mapBounds[1][1])],\n [...
[ "0.72743577", "0.70577824", "0.688879", "0.65874696", "0.6578892", "0.65723336", "0.6565231", "0.6535901", "0.64908034", "0.6486609", "0.6478551", "0.63625693", "0.62587017", "0.6243973", "0.6236202", "0.62354267", "0.62149465", "0.61983365", "0.6191892", "0.6181756", "0.6170...
0.7421214
0
PROTECTED Adds a mini netork element to the minimap.
function addMiniNetworkElement(ne) { if (ne.bgForm == ROUNDRECT) { var mne = document.createElement("v:roundrect"); mne.setAttribute("arcSize", ne.roundCornerPercentage); mne.setAttribute("id", "mini" + ne.id); document.getElementById(MINIMAP).appendChild(mne); } else if (ne.bgForm == ROMBO) { var mn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeMiniNetworkElement(ne) {\n\t\tvar mnesp = document.getElementById(\"mini\" + ne.id);\n\t\tmnesp.style.position = \"absolute\";\n\t\tmnesp.style.left = eval(ne.x) * this.xRate;\n\t\tmnesp.style.top = eval(ne.y) * this.yRate;\n\t\tmnesp.style.width = ne.width * this.xRate;\n\t\tmnesp.style.height = ne....
[ "0.5854345", "0.58150524", "0.54389775", "0.5374891", "0.5317139", "0.525401", "0.51191145", "0.51050746", "0.509185", "0.5090938", "0.5047517", "0.50317526", "0.50174075", "0.5002488", "0.4943326", "0.49406615", "0.4916513", "0.48935688", "0.48623645", "0.48533857", "0.48432...
0.6842295
0
PROTECTED Writes the mini network element with the same appearance of it's associated network element.
function writeMiniNetworkElement(ne) { var mnesp = document.getElementById("mini" + ne.id); mnesp.style.position = "absolute"; mnesp.style.left = eval(ne.x) * this.xRate; mnesp.style.top = eval(ne.y) * this.yRate; mnesp.style.width = ne.width * this.xRate; mnesp.style.height = ne.height * this.yRate; if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addMiniNetworkElement(ne) {\n\t\tif (ne.bgForm == ROUNDRECT) {\n\t\t\tvar mne = document.createElement(\"v:roundrect\");\n\t\t\tmne.setAttribute(\"arcSize\", ne.roundCornerPercentage);\n\t\t\tmne.setAttribute(\"id\", \"mini\" + ne.id);\n\t\t\tdocument.getElementById(MINIMAP).appendChild(mne);\n\t\t} else ...
[ "0.66271275", "0.58876", "0.5702038", "0.53257394", "0.52717036", "0.52558064", "0.5236327", "0.51817876", "0.51388186", "0.49564037", "0.49560165", "0.4946769", "0.4823558", "0.47870004", "0.47772646", "0.4773111", "0.47556025", "0.4690761", "0.4662212", "0.46396205", "0.461...
0.7227701
0
PROTECTED Writes the miniwindow. The miniwindow is the current view of the map scaled inside the minimap. It can be dragged to scroll over the main map. The outer zones of the miniwindow are displayed under a semitransparent film.
function writeMiniWindow() { var mapWidth = document.getElementById(MAP).clientWidth * this.xRate; var mapHeight = document.getElementById(MAP).clientHeight * this.yRate; var scl = document.getElementById(MAP).scrollLeft * this.xRate; var sct = document.getElementById(MAP).scrollTop * this.yRate; var mw = doc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateMiniWindowCoords() {\n\t\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\n\t\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\n\t\tdocument.getElementById(MINIWINDOW + \"_up\").style.height = sct;\n\t\tdocument.getElementById(MINIWINDOW + \"_left\").style.top = sct;\n...
[ "0.7624661", "0.6860017", "0.6782926", "0.66931456", "0.6342161", "0.63142914", "0.6274326", "0.6253919", "0.6212398", "0.62042505", "0.6179533", "0.61720186", "0.6097323", "0.6096805", "0.6080485", "0.60794014", "0.602039", "0.6002317", "0.59684485", "0.595698", "0.5948", ...
0.7924971
0
PROTECTED Updates the miniwindow coordenates.
function updateMiniWindowCoords() { var scl = document.getElementById(MAP).scrollLeft * this.xRate; var sct = document.getElementById(MAP).scrollTop * this.yRate; document.getElementById(MINIWINDOW + "_up").style.height = sct; document.getElementById(MINIWINDOW + "_left").style.top = sct; document.getElementB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateMiniMapCoords() {\n\t\tif (this.hasExtendedInformation) {\n\t\t\tthis.minimap.updateMiniWindow();\n\t\t}\n\t}", "_updateWindowCoord(windowCoord) {}", "_refreshMinimizedWindowsPosition() {\n const that = this;\n\n const minimizedWindows = that._getAllMinimizedWindows();\n\n i...
[ "0.81840193", "0.76275116", "0.6650175", "0.6503659", "0.64559466", "0.64500374", "0.6368358", "0.6361187", "0.6243681", "0.6231734", "0.622267", "0.619911", "0.6188394", "0.6161131", "0.61295253", "0.61279994", "0.6118568", "0.6095739", "0.60919714", "0.60886365", "0.6085324...
0.8519733
0
PROTECTED Constructor A dotted network element is the transparent dotted representation of each network element which is involved into a dotted selection. It is represented as a dotted rectangle whti the same measures as the real network element.
function DottedNetworkElement() { this.x = null; this.y = null; this.width = null; this.height = null; this.write = writeDottedNE; this.allocate = allocateDottedNE; this.setBounds = setBoundsDottedNE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeDottedNE() {\n\t\tvar dotsp = document.createElement(\"span\");\n\t\tvar elem = document.getElementById(DOTTED_SEL).appendChild(dotsp);\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = this.x;\n\t\telem.style.top = this.y;\n\t\telem.style.width = this.width;\n\t\telem.style.height = th...
[ "0.61689234", "0.6129679", "0.5931486", "0.58634067", "0.57722723", "0.5613839", "0.555122", "0.5520308", "0.5439502", "0.5428681", "0.54074335", "0.53501385", "0.5318013", "0.5317219", "0.5301882", "0.5194653", "0.5162804", "0.5115071", "0.51131374", "0.51128644", "0.5108782...
0.78811824
0
PROTECTED Writes the dotted network element inside the dottes selection.
function writeDottedNE() { var dotsp = document.createElement("span"); var elem = document.getElementById(DOTTED_SEL).appendChild(dotsp); elem.style.position = "absolute"; elem.style.left = this.x; elem.style.top = this.y; elem.style.width = this.width; elem.style.height = this.height; elem.style.zIndex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedNetworkElement() {\n\t\tthis.x = null;\n\t\tthis.y = null;\n\t\tthis.width = null;\n\t\tthis.height = null;\n\t\tthis.write = writeDottedNE;\n\t\tthis.allocate = allocateDottedNE;\n\t\tthis.setBounds = setBoundsDottedNE;\n\t}", "function setMapDottedSelection() {\n\t\tthis.dottedSelection = new Do...
[ "0.65808064", "0.64839256", "0.6157857", "0.58168197", "0.57401687", "0.5658142", "0.55301446", "0.5339339", "0.5220159", "0.51459765", "0.5005201", "0.49722224", "0.49604", "0.48999783", "0.4870667", "0.4860423", "0.48596278", "0.48528555", "0.4805176", "0.48009288", "0.4779...
0.6833568
0
PROTECTED Allocates the dotted network element inside the dotted selection.
function allocateDottedNE(x, y) { this.x = eval(x); this.y = eval(y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedNetworkElement() {\n\t\tthis.x = null;\n\t\tthis.y = null;\n\t\tthis.width = null;\n\t\tthis.height = null;\n\t\tthis.write = writeDottedNE;\n\t\tthis.allocate = allocateDottedNE;\n\t\tthis.setBounds = setBoundsDottedNE;\n\t}", "function addDottedNeToList(ne) {\n\t\tvar dot = new DottedNetworkElem...
[ "0.664659", "0.6191347", "0.57187295", "0.5683407", "0.560609", "0.5604413", "0.5583903", "0.5456161", "0.5358852", "0.53124934", "0.517074", "0.5169618", "0.5063481", "0.49835175", "0.49607974", "0.4953917", "0.49371246", "0.4918897", "0.49185428", "0.49028826", "0.49008098"...
0.5937703
2
PROTECTED Sets the width and height of the dotted network element.
function setBoundsDottedNE(width, height) { this.width = eval(width); this.height = eval(height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedNetworkElement() {\n\t\tthis.x = null;\n\t\tthis.y = null;\n\t\tthis.width = null;\n\t\tthis.height = null;\n\t\tthis.write = writeDottedNE;\n\t\tthis.allocate = allocateDottedNE;\n\t\tthis.setBounds = setBoundsDottedNE;\n\t}", "function setBoundsNE(width, height) {\n\t\tvar w = eval(width);\n\t\t...
[ "0.6626935", "0.5769075", "0.57163924", "0.5658847", "0.564794", "0.55445427", "0.5525937", "0.54968196", "0.5461004", "0.5450017", "0.5450017", "0.5449445", "0.5447604", "0.54142207", "0.53953344", "0.53858876", "0.53833365", "0.5377171", "0.53313285", "0.52892333", "0.52892...
0.69064736
0
PROTECTED Constructor The dotted selection is the result of each selection process. When the selection process ends a new DottedSelection object is created. For each network element involved inside the selection a DottedNetworkElement is created inside this object. The sense of this object's existence is that it is mor...
function DottedSelection() { this.id = DOTTED_SEL; this.x = 0; this.y = 0; this.minimumDottedX = null; this.minimumDottedY = null; this.write = writeDottedSelection; this.writeMainSpan = writeDottedMainSpan; this.list = new List(); this.addDottedNe = addDottedNeToList; this.hide = hideDottedSelectio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedNetworkElement() {\n\t\tthis.x = null;\n\t\tthis.y = null;\n\t\tthis.width = null;\n\t\tthis.height = null;\n\t\tthis.write = writeDottedNE;\n\t\tthis.allocate = allocateDottedNE;\n\t\tthis.setBounds = setBoundsDottedNE;\n\t}", "function setMapDottedSelection() {\n\t\tthis.dottedSelection = new Do...
[ "0.6355597", "0.62339455", "0.5760929", "0.572238", "0.5650861", "0.56082594", "0.55869937", "0.55652666", "0.55116624", "0.5465728", "0.54445755", "0.5401521", "0.52773345", "0.5244747", "0.5222289", "0.5216931", "0.5197083", "0.5195903", "0.51914895", "0.51887316", "0.51782...
0.7772919
0
PROTECTED Adds a dotted network element to the dotted selection.
function addDottedNeToList(ne) { var dot = new DottedNetworkElement(); if (ne.x < this.minimumDottedX || this.minimumDottedX == null) { this.minimumDottedX = ne.x } if (ne.y < this.minimumDottedY || this.minimumDottedY == null) { this.minimumDottedY = ne.y } dot.allocate(ne.x, ne.y); dot.setBounds(n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeDottedNE() {\n\t\tvar dotsp = document.createElement(\"span\");\n\t\tvar elem = document.getElementById(DOTTED_SEL).appendChild(dotsp);\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = this.x;\n\t\telem.style.top = this.y;\n\t\telem.style.width = this.width;\n\t\telem.style.height = th...
[ "0.613401", "0.60689044", "0.6055438", "0.5631147", "0.5608295", "0.55906904", "0.53141195", "0.5251544", "0.51782966", "0.517501", "0.50213563", "0.50130355", "0.49999234", "0.49688372", "0.4955626", "0.49043143", "0.48762253", "0.48651376", "0.4863486", "0.48442978", "0.480...
0.6669426
0
PROTECTED Launches the dotted selection HTML code writing process.
function writeDottedSelection() { this.writeMainSpan(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedSelection() {\n\t\tthis.id = DOTTED_SEL;\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t\tthis.minimumDottedX = null;\n\t\tthis.minimumDottedY = null;\n\t\tthis.write = writeDottedSelection;\n\t\tthis.writeMainSpan = writeDottedMainSpan;\n\t\tthis.list = new List();\n\t\tthis.addDottedNe = addDottedNeToList;\...
[ "0.58259606", "0.571115", "0.5450217", "0.5408543", "0.52557695", "0.51122284", "0.5016014", "0.49674782", "0.49650335", "0.49358895", "0.48994145", "0.48739707", "0.48522395", "0.48185617", "0.4795155", "0.4790148", "0.47456205", "0.47440913", "0.4710239", "0.4710239", "0.47...
0.7007578
0
PROTECTED Writes the main span of the dotted selection.
function writeDottedMainSpan() { var dotsp = document.createElement("span"); dotsp.setAttribute("id", this.id); var elem = document.body.appendChild(dotsp); elem.style.position = "absolute"; elem.style.top = 0; elem.style.left = 0; elem.style.width = document.body.clientWidth; elem.style.height = docume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeDottedSelection() {\n\t\tthis.writeMainSpan();\n\t}", "function writeDottedNE() {\n\t\tvar dotsp = document.createElement(\"span\");\n\t\tvar elem = document.getElementById(DOTTED_SEL).appendChild(dotsp);\n\t\telem.style.position = \"absolute\";\n\t\telem.style.left = this.x;\n\t\telem.style.top = ...
[ "0.80921453", "0.662654", "0.61641544", "0.59370583", "0.5739621", "0.55752146", "0.52787256", "0.51936793", "0.5189433", "0.51578563", "0.5123563", "0.5123563", "0.5123563", "0.5029864", "0.50119287", "0.49769652", "0.49436942", "0.4905546", "0.49018806", "0.49018806", "0.48...
0.69188553
1
PROTECTED Hides the current dotted selection.
function hideDottedSelection() { document.getElementById(this.id).style.visibility = "hidden"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideSelection() {\n\t\tdocument.getElementById(SELECTION).style.visibility = \"hidden\";\n\t\tdocument.getElementById(\"overglass\").style.visibility = \"hidden\";\n\t\tdocument.getElementById(SELECTION).style.left = 0;\n\t\tdocument.getElementById(SELECTION).style.top = 0;\n\t\tdocument.getElementById(SE...
[ "0.6158669", "0.6114256", "0.6107403", "0.610645", "0.601083", "0.5999188", "0.59289", "0.5927959", "0.59165657", "0.5860084", "0.58126366", "0.57532203", "0.5708695", "0.5695703", "0.5685678", "0.56450075", "0.5570017", "0.5519756", "0.5473689", "0.5473689", "0.546816", "0...
0.73416954
0
PROTECTED Shows the current dotted selection.
function showDottedSelection() { document.getElementById(this.id).style.visibility = "visible"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideDottedSelection() {\n\t\tdocument.getElementById(this.id).style.visibility = \"hidden\";\n\t}", "function writeDottedSelection() {\n\t\tthis.writeMainSpan();\n\t}", "function DottedSelection() {\n\t\tthis.id = DOTTED_SEL;\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t\tthis.minimumDottedX = null;\n\t\tthis...
[ "0.668279", "0.65934855", "0.6519545", "0.60578144", "0.569051", "0.54708415", "0.54665726", "0.53492707", "0.5343731", "0.53156257", "0.52882147", "0.52504814", "0.52455455", "0.52122736", "0.5209582", "0.5202133", "0.5184602", "0.5153749", "0.5146139", "0.51405793", "0.5137...
0.7265125
0
PROTECTED Checks whether the current dotted selection is visible or hidden.
function isDottedSelectionHidden() { return document.getElementById(this.id).style.visibility == "hidden"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showDottedSelection() {\n\t\tdocument.getElementById(this.id).style.visibility = \"visible\";\n\t}", "function isVisible() {\n return visible;\n }", "function isVisible() {\n return visible;\n }", "isVisible() {\n return this._visibility === 'visible';\n }", "function isVisible()...
[ "0.68183225", "0.6695485", "0.6695485", "0.6653703", "0.66406506", "0.6615289", "0.66092175", "0.6572979", "0.6524092", "0.64299685", "0.6423406", "0.6412094", "0.639987", "0.63782215", "0.63433945", "0.6332867", "0.63023484", "0.62874454", "0.6270963", "0.62589645", "0.62421...
0.8151784
0
PROTECTED Allocates the dotted selection at the specified coordenates.
function allocateDottedSelection(x, y) { var minX = this.minimumDottedX * (-1) + BORDER_WH - document.getElementById(MAP).scrollLeft; var minY = this.minimumDottedY * (-1) + BORDER_WH - document.getElementById(MAP).scrollTop; this.x = eval(x) < minX ? minX : eval(x); this.y = eval(y) < minY ? minY : eval(y); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DottedSelection() {\n\t\tthis.id = DOTTED_SEL;\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t\tthis.minimumDottedX = null;\n\t\tthis.minimumDottedY = null;\n\t\tthis.write = writeDottedSelection;\n\t\tthis.writeMainSpan = writeDottedMainSpan;\n\t\tthis.list = new List();\n\t\tthis.addDottedNe = addDottedNeToList;\...
[ "0.6314768", "0.5848774", "0.56780803", "0.5639484", "0.54816896", "0.54761857", "0.5264559", "0.52088267", "0.5206572", "0.5184851", "0.5173615", "0.5156739", "0.5112649", "0.5080864", "0.5067574", "0.50575846", "0.5004662", "0.49791566", "0.49791566", "0.49683738", "0.49470...
0.6502786
0
PROTECTED Releases the current dotted selection.
function releaseDottedSelection() { document.body.removeChild(document.getElementById(this.id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function releaseMapSelection() {\n\t\tif (this.selectedNetworkElements != null) {\n\t\t\tfor (var i = 0; i < this.selectedNetworkElements.getLength(); i++) {\n\t\t\t\tthis.selectedNetworkElements.get(i).unselect();\n\t\t\t}\n\t\t}\n\t\tif (this.dottedSelection != null) {\n\t\t\tthis.dottedSelection.release();\n\t\...
[ "0.6416639", "0.62351525", "0.6195344", "0.61793745", "0.6175774", "0.6175774", "0.6175774", "0.6112237", "0.6068088", "0.60563105", "0.60041696", "0.5999336", "0.5947779", "0.59261495", "0.59118813", "0.58964443", "0.5884617", "0.58760834", "0.58760834", "0.5866997", "0.5844...
0.7994162
0
PROTECTED Constructor This object allows the selection of one or more network elements of the map for dragging them. A selection is represented by a semitransparent rectangle only visible while the mouse down mouse drag mouse up process is active. In fact, each time the selection begins (with the mouse down event) a ne...
function Selection() { this.originX = null; this.originY = null; this.finalX = null; this.finalY = null; this.minimapSide = MINIMAP_SIDE; this.setOrigin = setOriginCoords; this.setFinal = setFinalCoords; this.getOriginX = getOriginX; this.getFinalX = getFinalX; this.getOriginY = getOriginY; this.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapSelection() {\n\t\tthis.selectedNetworkElements = new List();\n\t\tvar oX = this.selection.getOriginX();\n\t\tvar oY = this.selection.getOriginY();\n\t\tvar fX = oX + this.selection.getFinalX();\n\t\tvar fY = oY + this.selection.getFinalY();\n\t\tfor (var i = 0; i < this.networkElements.getLength();...
[ "0.70957655", "0.6598419", "0.65745723", "0.62656075", "0.621708", "0.61358434", "0.6132307", "0.60920924", "0.6088852", "0.6006865", "0.59905154", "0.5972251", "0.5953755", "0.5928594", "0.58639216", "0.5863327", "0.58456594", "0.5843732", "0.5777335", "0.56761307", "0.55946...
0.66120756
1
PROTECTED Stores the current minimap's length of the side: This is used to set the Selection object measures.
function setMinimapSideSelection(side) { this.minimapSide = eval(side); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set length(length) {\n\t\tthis._length = length;\n\t}", "get length() {\n return this.size;\n }", "get length() {\n return this.size;\n }", "get size() {\n\t\treturn this._l;\n\t}", "get size() {\n\t\treturn this._l;\n\t}", "get size() {\n\t\treturn this._l;\n\t}", "get length() {\n re...
[ "0.6476643", "0.63980097", "0.6352045", "0.6351975", "0.6351975", "0.6351975", "0.63302815", "0.6316769", "0.6316769", "0.626033", "0.6238986", "0.62043875", "0.6199724", "0.6199724", "0.61931336", "0.6151379", "0.61317533", "0.6083126", "0.6083126", "0.60773927", "0.60768217...
0.0
-1
PROTECTED Writes the selection. While the selecting process the extended information is covered with a transparent rectangle to prevent the mouse over event on any other extended information element.
function writeSelection() { var rect = document.createElement("v:rect"); rect.setAttribute("id", SELECTION); var elem = document.getElementById(MAP).appendChild(rect); elem.style.position = "absolute"; elem.style.zIndex = 15; elem.style.visibility = "hidden"; elem.style.cursor = "crosshair"; elem.fill.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateSelection(){\n\t\t\tif(lastMousePos.pageX == null) return;\n\t\t\t\n\t\t\tsetSelectionPos(selection.second, lastMousePos);\n\t\t\tclearSelection();\n\t\t\t\n\t\t\tif(selectionIsSane()) drawSelection();\n\t\t}", "function select () {\r\n\t\t\t\tthis.tool.select();\r\n\t\t\t}", "function writeDott...
[ "0.6536345", "0.6434588", "0.64307", "0.6412011", "0.6296122", "0.6296122", "0.6296122", "0.6296122", "0.62328804", "0.6225265", "0.6225265", "0.61660653", "0.61660653", "0.60702324", "0.60112137", "0.60112137", "0.60066843", "0.60010815", "0.5948995", "0.5943768", "0.5929602...
0.67990965
0
PROTECTED Allocates the current selection by setting the top, left, width and height of the rectangle.
function allocateSelection() { document.getElementById(SELECTION).style.left = this.getOriginX(); document.getElementById(SELECTION).style.top = this.getOriginY(); document.getElementById(SELECTION).style.width = this.getFinalX(); document.getElementById(SELECTION).style.height = this.getFinalY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createSelectionRect() {\r\n selectionRect = that.surface.createRect({\r\n x: that.width, y: that.height, \r\n width: 1, height: 1}).\r\n setFill(\"yellow\");\r\n }", "function setSelection() {\n var bbox = $('#bounding-box');\n \n optimalApp.selectionWidth =...
[ "0.7673674", "0.70047927", "0.68074685", "0.6773366", "0.6463773", "0.6414781", "0.6207718", "0.615223", "0.6005137", "0.5982239", "0.58890975", "0.5877409", "0.58635813", "0.5810873", "0.5782681", "0.57220304", "0.5717266", "0.5690284", "0.5671803", "0.5662433", "0.5649899",...
0.8275732
0
PROTECTED Sets the origin coordenates, or at least the coordenates where the selection process began.
function setOriginCoords(x, y) { this.originX = eval(x); this.originY = eval(y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setCoordinates() {\n this._bounds = [];\n this._coordinates = this._convertCoordinates(this._coordinates);\n\n this._projectedBounds = [];\n this._projectedCoordinates = this._projectCoordinates();\n\n this._center = this._coordinates;\n }", "recenter(origin = Vector.zero) {\n this.origin...
[ "0.69081974", "0.65177244", "0.6438539", "0.6370148", "0.63680845", "0.622003", "0.61869997", "0.6145805", "0.6098422", "0.60887486", "0.6071023", "0.6062536", "0.6059257", "0.6009389", "0.6004598", "0.59736186", "0.5949951", "0.59447914", "0.5906183", "0.587992", "0.5864368"...
0.6862931
1
PROTECTED Sets the final coordenates, or at least the coordenates where the selection process is currently.
function setFinalCoords(x, y) { this.finalX = eval(x); this.finalY = eval(y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setCoordinates() {\n this._bounds = [];\n this._coordinates = this._convertCoordinates(this._coordinates);\n\n this._projectedBounds = [];\n this._projectedCoordinates = this._projectCoordinates();\n\n this._center = this._coordinates;\n }", "function setFinalPoint() {\n let x = document.getE...
[ "0.6660374", "0.6173491", "0.6080593", "0.5963418", "0.59215695", "0.5894896", "0.58233035", "0.5791808", "0.5738008", "0.57032835", "0.5689396", "0.5676395", "0.5664449", "0.55716175", "0.5544846", "0.55220777", "0.55057955", "0.54847044", "0.5383299", "0.53776246", "0.53727...
0.71527433
0
PROTECTED Makes visible the selection. This happens when the mouse move event is fired.
function showSelection() { document.getElementById(SELECTION).style.visibility = "visible"; document.getElementById("overglass").style.visibility = "visible"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showDottedSelection() {\n\t\tdocument.getElementById(this.id).style.visibility = \"visible\";\n\t}", "function showSelection() {\n \tif (controlSelected && selectedControl === 2) {\n \t\t\tselectedControl = 2; \n\t \t\tnextState = true;\n\t \t}\n \tif (selectMode && mo...
[ "0.6686747", "0.6460591", "0.6428865", "0.6358216", "0.6344623", "0.63323635", "0.6301135", "0.62377954", "0.61971885", "0.61615753", "0.6093103", "0.6021025", "0.5997068", "0.5991994", "0.5982336", "0.5924744", "0.5915104", "0.591311", "0.58544713", "0.5832679", "0.5807787",...
0.7161664
0
PROTECTED Hides the selection and releases it.
function hideSelection() { document.getElementById(SELECTION).style.visibility = "hidden"; document.getElementById("overglass").style.visibility = "hidden"; document.getElementById(SELECTION).style.left = 0; document.getElementById(SELECTION).style.top = 0; document.getElementById(SELECTION).style.width = 1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeSelectionHighlight() {\r\n hideSelectionRect();\r\n hideRotIndicator();\r\n }", "function hideSelectionRect() {\r\n selectionRect.setShape({x: that.width, y: that.height, \r\n width: 1, height: 1});\r\n }", "disable() {\n this.clearSelection();\n ...
[ "0.7366401", "0.7276251", "0.6944355", "0.6903449", "0.67999417", "0.6771164", "0.66294724", "0.6628324", "0.6620606", "0.65347177", "0.6463607", "0.6447143", "0.6418186", "0.640755", "0.63934344", "0.63749725", "0.631719", "0.6310101", "0.6310101", "0.6291087", "0.62872934",...
0.73099554
1
PROTECTED Gets the upper left x coordenate of the rectangle, which is given by the minimum value between the initial and final x coordenates of the selection process.
function getOriginX() { return Math.min(this.originX, this.finalX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get mid_x() { //center of x position\n return this.x + this.w / 2;\n }", "get xMin() {\n return this.xRange.min;\n }", "function selectedCenter() {\n var sel = $(svgRoot).find('.selected').closest('g');\n if ( sel.length > 0 && ! sel.hasClass('dragging') ) {\n var rect = se...
[ "0.67947656", "0.6749507", "0.6625362", "0.65797716", "0.6482432", "0.6419014", "0.6396617", "0.63919544", "0.6353993", "0.6344429", "0.63435394", "0.63351524", "0.6325236", "0.6325236", "0.631852", "0.6313944", "0.6309777", "0.63011205", "0.62969", "0.6230956", "0.62200534",...
0.6911373
0
PROTECTED Gets the upper left y coordenate of the rectangle, which is given by the minimum value between the initial and final y coordenates of the selection process.
function getOriginY() { return Math.min(this.originY, this.finalY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get yMin() {\n return this.yRange.min;\n }", "function getLowerY()/*:Number*/ {\n return com.coremedia.cms.studio.imageeditor.util.ImageEditorUtil.getLowerY(this.getPercentageRectangle(), this.getAdjustedImageBounds());\n }", "get upperBound(){\n\t\treturn -this.height /2;\n\t}", "get cursorY()...
[ "0.6810065", "0.66676724", "0.64827996", "0.6344833", "0.63131523", "0.6305903", "0.6230179", "0.6172772", "0.61679053", "0.615148", "0.61354613", "0.6109816", "0.6071629", "0.6069839", "0.6065882", "0.60324734", "0.602387", "0.5987941", "0.59689593", "0.59590703", "0.5955431...
0.6849613
0
PROTECTED Gets the width of the selection rectangle.
function getFinalX() { return Math.abs(this.finalX - this.originX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get width() {\n\t\treturn this._canvas.width;\n\t}", "get width() {\n\t\treturn this._viewport[2];\n\t}", "getWidth() {\n return this.getSize().width;\n }", "get width() {\n return this._getOption('width');\n }", "get width() { return this._.canvas.width; }", "get width() {\n\t\tretur...
[ "0.67969465", "0.6697514", "0.65733564", "0.65708476", "0.65514374", "0.6456457", "0.6456457", "0.6370355", "0.6370355", "0.6369582", "0.636291", "0.6343001", "0.6315795", "0.6310485", "0.63076824", "0.6298978", "0.62849694", "0.62849694", "0.627781", "0.62647533", "0.625682"...
0.0
-1
PROTECTED Gets height of the selection rectangle.
function getFinalY() { return Math.abs(this.finalY - this.originY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get height() {\n\t\treturn this._canvas.height;\n\t}", "_getItemHeight() {\n return this._triggerFontSize * SELECT_ITEM_HEIGHT_EM;\n }", "get height() {\n return this._getOption('height');\n }", "get height() {\n\t\treturn this._viewport[3];\n\t}", "getHeight() {\n return this.ge...
[ "0.7116922", "0.7097623", "0.69137335", "0.6902123", "0.68060625", "0.67591196", "0.6717012", "0.6717012", "0.66783667", "0.66783667", "0.66364235", "0.6619054", "0.65954477", "0.6542448", "0.6532218", "0.64834136", "0.6462738", "0.6459102", "0.6459102", "0.64265966", "0.6425...
0.0
-1
PROTECTED Releases the selection.
function releaseSelection() { try { this.setOrigin(window.event.offsetX, window.event.offsetY); this.setFinal(window.event.offsetX + 1, window.event.offsetX + 1); } catch (e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function releaseDottedSelection() {\n\t\tdocument.body.removeChild(document.getElementById(this.id));\n\t}", "function _destroy() {\n selected = null;\n}", "function _destroy() {\n selected = null;\n}", "function _destroy() {\n selected = null;\n}", "function _destroy() {\n selected = n...
[ "0.75156486", "0.7324195", "0.7324195", "0.7324195", "0.72683144", "0.7249072", "0.7224311", "0.7201837", "0.71919686", "0.71859425", "0.71859425", "0.71754825", "0.711", "0.70793056", "0.7018373", "0.6896915", "0.68410796", "0.6823299", "0.67937756", "0.6778258", "0.66948855...
0.7311595
4
PROTECTED Constructor Each popup menu item is displayed in a single line inside the popup menu and is composed by three elements: an eventual image (can be null if this item has no image attached), the text which will be displayed and the action which will be invoked when clicked.
function PopupMenuItem(img, text, action) { this.img = img; this.text = text; this.action = action; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function PopupMenu() {\n\t\tthis.id = \"popupmenu\";\n\t\tthis.items = null;\n\t\tthis.attachListItems = attachListItemsToPopupMenu;\n\t\tthis.write = writePopupMenu;\n\t\tthis.show = showPopupMenu;\n\t\tthis.hide = hidePopupMenu;\n\t\tthis.allocate = allocatePopupMenu;\n\t}", "function PopupMenu(menuTitle, elem...
[ "0.710679", "0.6853542", "0.6793679", "0.66300565", "0.6600351", "0.65966606", "0.6514691", "0.6456734", "0.6432986", "0.63323814", "0.6306469", "0.6282425", "0.6217885", "0.6212526", "0.62069535", "0.61711496", "0.6139478", "0.61302793", "0.6107057", "0.60808504", "0.6047744...
0.79125804
0
PROTECTED Constructor The popup menu owned by the Map object. Since this popup menu is displayed only when a right click is detected over any element of the map that has a popup menu items list attached, by default this object has no items list to display. This list is inherited from the richt clicked object. The ident...
function PopupMenu() { this.id = "popupmenu"; this.items = null; this.attachListItems = attachListItemsToPopupMenu; this.write = writePopupMenu; this.show = showPopupMenu; this.hide = hidePopupMenu; this.allocate = allocatePopupMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writePopupMenu() {\n\t\tif (document.getElementById(this.id) == null) {\n\t\t\tvar pum = document.createElement(\"span\");\n\t\t\tpum.setAttribute(\"id\", this.id);\n\t\t\tvar pumsp = document.getElementById(MAP).appendChild(pum);\n\t\t\tpumsp.style.position = \"absolute\";\n\t\t\tpumsp.style.top = 0;\n\t...
[ "0.7255895", "0.70289886", "0.7011517", "0.6901549", "0.6833353", "0.68137205", "0.6735791", "0.6734943", "0.670865", "0.6698492", "0.66913307", "0.66390574", "0.6589121", "0.6499142", "0.64096594", "0.64093703", "0.64052755", "0.63297147", "0.62940764", "0.6271997", "0.62604...
0.79126966
0
PROTECTED Attaches the currently selected List of items to this popup menu object.
function attachListItemsToPopupMenu(list) { this.items = list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function markingMenuOnSelect(selectedItem) {\r\n\ttracker.recordSelectedItem(selectedItem.name);\r\n\tdocument.getElementById(\"selectedItem\").innerHTML = selectedItem.name;\r\n}", "_menubuttonTap(e) {\n this.shadowRoot.querySelector(\"#listbox\").style.display = \"inherit\";\n if (this.resetOnSelect) {\n...
[ "0.61124176", "0.58572584", "0.5842214", "0.5831615", "0.5823201", "0.58153147", "0.5800911", "0.57852924", "0.5706539", "0.56792545", "0.56610894", "0.56064713", "0.5604021", "0.55905235", "0.5555763", "0.5504566", "0.55041194", "0.5496943", "0.5484183", "0.5478627", "0.5471...
0.73385686
0
PROTECTED Writes a popup menu with the current List of items temporarily hidden.
function writePopupMenu() { if (document.getElementById(this.id) == null) { var pum = document.createElement("span"); pum.setAttribute("id", this.id); var pumsp = document.getElementById(MAP).appendChild(pum); pumsp.style.position = "absolute"; pumsp.style.top = 0; pumsp.style.left = -1; pumsp.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hidePopupMenu()\n{\n var menu = document.getElementById('popupmenu').style.display='none';\n}", "function PopupMenu() {\n\t\tthis.id = \"popupmenu\";\n\t\tthis.items = null;\n\t\tthis.attachListItems = attachListItemsToPopupMenu;\n\t\tthis.write = writePopupMenu;\n\t\tthis.show = showPopupMenu;\n\t\tth...
[ "0.65731823", "0.65021235", "0.64690346", "0.64682037", "0.64543563", "0.6432378", "0.6365175", "0.6294144", "0.6267513", "0.62622947", "0.62536156", "0.62520015", "0.61970353", "0.6190834", "0.61878324", "0.6175631", "0.6150291", "0.6150063", "0.6146623", "0.6142182", "0.612...
0.604159
23
PROTECTED Makes visible the popup menu.
function showPopupMenu() { if (document.getElementById(this.id) != null) { document.getElementById(this.id).style.visibility = "visible"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function openMenu() {\n\n //Set the menu to be visible\n setVisibility(document.getElementById(\"menuPopup\"), true);\n\n $(\"#graphContextMenu\").hide();\n}", "function openMenu() {\n g_IsMenuOpen = true;\n}", "openPopUp(){\r\n // Hide the back panel.\r\n const element = document.getEl...
[ "0.71521777", "0.6958177", "0.6832204", "0.68081063", "0.67868704", "0.67711425", "0.67227274", "0.6698938", "0.6694181", "0.6694181", "0.66931045", "0.6685185", "0.66645396", "0.66558707", "0.6629843", "0.66285926", "0.66251564", "0.66222966", "0.6617058", "0.6616847", "0.66...
0.7688121
0
PROTECTED Hides the popup menu.
function hidePopupMenu() { if (document.getElementById(this.id) != null) { document.getElementById(this.id).style.visibility = "hidden"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "hide() {\n this.backButtonOpen_ = false;\n chrome.accessibilityPrivate.setSwitchAccessMenuState(\n false, SAConstants.EMPTY_LOCATION, 0);\n this.menuPanel_.setFocusRing(SAConstants.BACK_ID, false);\n }", "function hideMapPopupMenu() {\n\t\tthis.popupMenu.hide();\n\t}", "function disableClickTo...
[ "0.7421357", "0.6915599", "0.6909057", "0.6884097", "0.6874439", "0.68665755", "0.68665755", "0.6779848", "0.6779848", "0.67468536", "0.6715002", "0.67052084", "0.6699967", "0.6695037", "0.6695037", "0.6661606", "0.6652498", "0.65485394", "0.65469706", "0.65344495", "0.651786...
0.70041907
1
PROTECTED Allocates the popup menu at the specified coordenates inside the map.
function allocatePopupMenu(x, y) { if (document.getElementById(this.id) != null) { document.getElementById(this.id).style.pixelLeft = eval(x); document.getElementById(this.id).style.pixelTop = eval(y); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMapPopupMenu(items, x, y) {\n\t\tthis.popupMenu.attachListItems(items);\n\t\tthis.popupMenu.write();\n\t\tthis.popupMenu.allocate(x, y);\n\t\tthis.popupMenu.show();\n\t}", "function showMapPopupMenu(x, y) {\n\t\tif (this.popupListItems.getLength() > 0) {\n\t\t\tthis.setPopupMenu(this.popupListItems, ...
[ "0.6968652", "0.6590318", "0.64674413", "0.6415437", "0.6385923", "0.62537277", "0.6155307", "0.6143132", "0.6096071", "0.6083321", "0.6068178", "0.60546", "0.60440373", "0.6028057", "0.6021622", "0.59926623", "0.59842604", "0.59721917", "0.596673", "0.59228534", "0.5884447",...
0.67990506
1
function to render the array of games in TipDetail
renderTips() { const sorted = this.state.tips.sort((a, b) => (a.id > b.id ? 1 : -1)); const reversed = sorted.reverse(); return reversed.map(tip => <TipDetail key={tip.id} game={tip} />); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderGames() {\n gamesString = \"\";\n state.games.forEach(function (games, index) {\n gamesString += `<div>\n Game: ${games.title} Platform: ${games.platform} \n <span onclick='editGame(${index})'>[Edit Game]</span> \n <span onclick='destroyGame(${index})'>[Delete Game]</span>\...
[ "0.6836003", "0.6767864", "0.64470816", "0.6444473", "0.6306635", "0.6305804", "0.6263905", "0.6251075", "0.62481344", "0.6130917", "0.6111708", "0.6105938", "0.6104847", "0.6082056", "0.6062707", "0.60619366", "0.6034339", "0.6012334", "0.59907365", "0.5973943", "0.5973764",...
0.5581563
77
render method for the class
render() { // eslint-disable-next-line no-lone-blocks { this.ShowAdRewarded(); } if (this.state.isLoading) { return ( <View style={styles.activityContainer}> {/*Code to show Activity Indicator*/} <ActivityIndicator size="large" color="#0000ff" /> {/*Size...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render() {\n\n\t\t\t}", "function render() {\n\t\t\t}", "render() {\n // Subclasses should override\n }", "static rendered () {}", "static rendered () {}", "render() { return super.render(); }", "render(){\n //Every render method always return HTML\n return <h1>Welcome to My...
[ "0.80429643", "0.78898925", "0.77098393", "0.74995035", "0.74995035", "0.74316496", "0.7420462", "0.7403469", "0.739215", "0.73883337", "0.7352572", "0.7352572", "0.7350241", "0.7350241", "0.72649443", "0.72649443", "0.7189778", "0.7189778", "0.7189778", "0.7159938", "0.71597...
0.0
-1
setters on the two angles when they are updated, we need to issue a command to the servos so they are also updated
set fTheta(fTheta) { q.push({sTextToSpeak: "Setting theta to " + fTheta.toString() + " degrees."}); if (this.bWithBoard) { this.oThetaServo.to(fTheta); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateAngle () {\n this.angleRadians = (this.data.angle / 180) * Math.PI\n }", "oscillate() {\n this.angle += 0.02;\n }", "setAngle (angle, raw) {\n // console.log(angle, raw);\n if (!this.isDeviceConnected()) return;\n if (isNaN(angle)) angle = this.__angle;\n this.__angle ...
[ "0.68215585", "0.6423673", "0.63880557", "0.6269052", "0.6251534", "0.6248762", "0.6244716", "0.6185191", "0.61626124", "0.6142047", "0.6093571", "0.60657495", "0.60600823", "0.6047583", "0.60012436", "0.59609103", "0.59598804", "0.5931876", "0.5927803", "0.5873943", "0.58670...
0.0
-1
push a ball forward into the launcher!
launch() { q.push({sTextToSpeak: "Launching!"}); if (this.bWithBoard) { // jump start the motors q.push({sTextToSpeak: "Jump starting and spooling up."}); jumpStartMotors(); // after 100 ms jump start, set the actual desired speed setTimeout(function() { setM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start() {\n\tif(noBallsPresent()){\n\t putBall();\n\t}\n\tmove();\n}", "function launchBall() {\n if (oneClick == 1) {\n //** trig caclulations for launch only\n var changeX = x - paddleX; \n changeX = changeX - paddleCenter;\n\n var deltaY = Math.sqrt(Math.pow(paddleCenter, 2) - Math.po...
[ "0.698988", "0.6817608", "0.63954675", "0.6348389", "0.608455", "0.60686135", "0.6018014", "0.600174", "0.5991459", "0.59759545", "0.5955981", "0.5925178", "0.5894973", "0.5887493", "0.5871002", "0.5849807", "0.583715", "0.5834235", "0.5832264", "0.5824909", "0.5816285", "0...
0.5924725
12
reset launch servo arm
launchLeverServoCompleteHandler() { var that = this; if (this.bWithBoard) { // immediately stop motors; ball has launched q.push({sTextToSpeak: "Stopping launch motors!"}); this.oLauchMotorLeft.stop(); this.oLauchMotorLeft.stop(); // after 2 seconds, return the launch servo back t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetSwarm() {\n\tswarm.x = 0;\n\tswarm.y = 0;\n\tswarm.z = 0;\n\tswarm.a = 0;\n}", "function reset() {\n post(\"reset!\");\n\toutlet(0, 255);\n}", "function resetDevice()\n{\n sendMidi(0xB0, 0, 0);\n\n for(var i=0; i<80; i++)\n {\n pendingLEDs[i] = 0;\n }\n flushLEDs();\n}", "func...
[ "0.6748985", "0.63694006", "0.629776", "0.62291205", "0.6186293", "0.6153578", "0.6124983", "0.60321873", "0.6016677", "0.5975164", "0.59666586", "0.5966363", "0.5942819", "0.5941007", "0.5938732", "0.5926989", "0.5843925", "0.5836257", "0.5834987", "0.5831179", "0.583069", ...
0.0
-1
Preloads snowflake spritesheet and font used
function preload() { spritesheet = loadImage('images/Flakes1.png'); font = loadFont('font/Freeride.otf'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preload() {\n customFont = loadFont(\"../assets/Suisse Bold.otf\");\n escargot = loadImage('img/Escargot.gif');\n soleil = loadImage('img/Soleil.png');\n lune = loadImage('img/Lune.png');\n Lapin = loadImage('img/Lapin.gif');\n}", "function preload() {\n //spritesheets\n playerSS = loadImage('ass...
[ "0.7471276", "0.738967", "0.7306107", "0.7286986", "0.7237549", "0.7150296", "0.7086435", "0.70852166", "0.70819116", "0.7080534", "0.70747393", "0.70737004", "0.7042651", "0.70310557", "0.7005753", "0.6985271", "0.69693303", "0.6946011", "0.69368845", "0.6898202", "0.6894887...
0.78842115
0
A random size for the snowflake object is returned
function getRandomSize(){ var r = pow(random(0.01, 1), 2); return constrain(r * 36, 5, 36); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_random_size()\n{\n let r = pow( random( 0.5, 1 ), 8 );\n return constrain( 32 * r, 2, 32 ) ;\n}", "randomSize() {\n\t\tthis.randomNumber = Math.floor(Math.random() * 90) + 10;\n\t}", "function getRandomValue(size) {\n return numRamdom = Math.floor(Math.random() * size);\n}", "function g...
[ "0.7293379", "0.7282053", "0.68452865", "0.677114", "0.6755011", "0.647207", "0.64316875", "0.64298105", "0.6333907", "0.6332629", "0.6322609", "0.6322609", "0.632237", "0.632237", "0.63024604", "0.62582475", "0.62350017", "0.6215317", "0.62009853", "0.61874443", "0.61486316"...
0.6986439
2
Renews the position of snowflake once it has been sent offscreen
renew() { var x = random(width); var y = random(-100, -10); this.pos = createVector(x, y); this.vel = createVector(0, 0); this.acc = createVector(); this.r = getRandomSize(); this.angle = random(TWO_PI); this.dir = (random(1) < 0.5) ? 1 : -1; this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveSnowflakes() {\n\n if (enableAnimations) {\n for (var i = 0; i < snowflakes.length; i++) {\n var snowflake = snowflakes[i];\n snowflake.update();\n } \n }\n\n // Reset the position of all the snowflakes to a new ...
[ "0.6558026", "0.6347582", "0.60630286", "0.60146046", "0.6010092", "0.5987478", "0.5976622", "0.5913077", "0.5909505", "0.5856899", "0.58559376", "0.58484143", "0.5845027", "0.58376455", "0.5819081", "0.58060545", "0.5802161", "0.5780002", "0.5766757", "0.5766757", "0.5766757...
0.0
-1
Displays snowflake, called in draw() after update
render() { push(); translate(this.pos.x + this.xOff, this.pos.y); rotate(this.angle); imageMode(CENTER); image(this.design, 0, 0, this.r, this.r); pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateSnowf(val) {\n contextSnowf.clearRect(0, 0, canvasSnowf.width, canvasSnowf.height);\n dta.resetVals();\n constrSnowf(dta, val, dist);\n drawSnowf(dta);\n document.getElementById(\"n\").innerHTML = val;\n}", "function installDrawASnowflake(blockly, generator, gensym) {\n // Create a fake \"dr...
[ "0.65332204", "0.64978254", "0.63393617", "0.6320154", "0.63039935", "0.62914526", "0.62490195", "0.6234496", "0.6186745", "0.6126264", "0.61123234", "0.6110007", "0.6099065", "0.6081374", "0.60466164", "0.6037434", "0.6018387", "0.6008166", "0.599419", "0.59886", "0.59880346...
0.0
-1
FIXME: This calls the forEach function with the values Map and not with the ModelCollection as the third argument
forEach(...args) { return this.valuesContainerMap.forEach.call( this.valuesContainerMap, ...args ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function forEach(fn) {\n for (let v of objects.values()) {\n fn(v);\n }\n }", "function forEachValue(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}", "function processCollection(){\n _(this.models).each(function(room){\n var modelId = room.get('id');\n if(!mode...
[ "0.615109", "0.60684186", "0.5841083", "0.57695794", "0.5655885", "0.55935264", "0.5573448", "0.5516001", "0.55138206", "0.55097735", "0.5509559", "0.5476383", "0.54608625", "0.5425275", "0.54044783", "0.53949225", "0.5383222", "0.5332978", "0.53314775", "0.5329802", "0.53216...
0.6375983
0