Lines Matching +defs:img +defs:name

300 			if(cur_tool.name === "delete"){ // delete

325 else if(cur_tool.name !== "select" && cur_tool.name !== "pathedit")
665 var relmove = function(name, idx, dx, dy){
669 if((name + "x") in p1) p1[name + "x"] += dx;
670 if((name + "y") in p1) p1[name + "y"] += dy;
957 function drawGuidingLine(pt0, name){
961 ctx.lineTo(pt[name + "x"] + offset.x, pt[name + "y"] + offset.y);
1256 this.saveAsImage = function(img){
1263 img.src = canvas.toDataURL();
1273 /// @param name The name of the sketch in the local storage to load.
1274 this.loadLocal = function(name){
1280 dobjs = deserialize(jsyaml.load(selData[name]));
1463 /// @brief Save a sketch data to a local storage entry with name
1464 /// @param name Name of the sketch which can be used in loadLocal() to restore
1465 this.saveLocal = function(name){
1469 var newEntry = !(name in origData);
1470 origData[name] = jsyaml.dump(serialize(dobjs));
1493 for(var name in origData)
1494 keys.push(name);
1577 /// @param fname The file name of the added sketch.
1606 /// @param remoteName The remote name (defined in the server)
1627 /// @param remoteName The remote name (defined in the server)
1809 /// @param name Name of the tool, used in serialized text
1817 function Tool(name, points, params){
1818 this.name = name;
1825 if(!(name in toolmap))
1826 toolmap[name] = this;
1864 obj.tool = cur_tool.name;
2329 obj.tool = cur_tool.name;
2483 function drawGuidingLineNoOffset(pt0, pt, name){
2487 ctx.lineTo(pt[name + "x"], pt[name + "y"]);
2511 obj.tool = cur_tool.name;