Commit 1b557a4b26024ed6a67c96bedf04cc79b2bb134e

Authored by unknown
1 parent da4a6a23

Removed commented code

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -1033,135 +1033,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
1033 1033 $('.btnCursor').addClass('activebtncolor');
1034 1034  
1035 1035  
1036   - //$('#canvas').drawText({
1037   - // layer: true,
1038   - // draggable: true,
1039   - // // opacity: $rootScope.shapestyleOpacity,
1040   - // name: 'TextArea_' + TextNumber,
1041   - // groups: ['TextArea_' + TextNumber],
1042   - // dragGroups: ['TextArea_' + TextNumber],
1043   - // fillStyle: '#36c',
1044   - // strokeWidth: 0,
1045   - // x: offsetX1, y: offsetY1,
1046   - // fontSize: '14pt',
1047   - // align: "left",
1048   - // fontFamily: 'Verdana, sans-serif',
1049   - // text: ''
1050   -
1051   - //})
1052   - // // Draw rect as wide as the text
1053   - // .drawRect({
1054   - // layer: true,
1055   - // name: "TextRect_" + resetTextRect,
1056   - // dragGroups: ['shapes'],
1057   - // opacity: shapestyleOpacity,
1058   - // strokeStyle: shapestyleborderColor,
1059   - // strokeWidth: shapestyleborderWidth,
1060   - // fillStyle: shapestyleFillColor,
1061   - // x: offsetX1, y: offsetY1,
1062   - // width: x - offsetX1,
1063   - // height: y - offsetY1,
1064   - // add: function (layer) {
1065   -
1066   - // $rootScope.rectDimension.push({ width: layer.width, height: layer.height, x: layer.x, y: layer.y });
1067   - // // $rootScope.rectDimensionCI.push({ width: layer.width, height: layer.height, x: layer.x, y: layer.y });
1068   -
1069   - // },
1070   - // click: function (layer) {
1071   -
1072   - // $rootScope.canvasLayerNameCollection = [];
1073   - // $rootScope.canvasLayerNameCollection.push(layer.name);
1074   - // $('#canvas').setLayer(layer.name, {
1075   - // handle: {
1076   - // type: 'rectangle',
1077   - // fillStyle: '#fff',
1078   - // strokeStyle: '#c33',
1079   - // strokeWidth: 2,
1080   - // width: 5, height: 5,
1081   - // cornerRadius: 3
1082   - // }
1083   - // }).drawLayers();
1084   -
1085   - // },
1086   - // dblclick: function (layer) {
1087   -
1088   - // //$rootScope.rectDimensionCI.push({ width: layer.width, height: layer.height, x: layer.x, y: layer.y });
1089   - // $rootScope.rectDimension.push({ width: layer.width, height: layer.height, x: layer.x, y: layer.y });
1090   - // $("#annotationTextModal").modal("toggle");
1091   -
1092   - // $("#text_area").val('');
1093   - // $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" });
1094   - // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
1095   - // // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
1096   -
1097   - // $("#text-italic").removeClass("ActiveFormattingButtonClass");
1098   -
1099   - // $("#text-bold").removeClass("ActiveFormattingButtonClass");
1100   -
1101   - // $("#text-underline").removeClass("ActiveFormattingButtonClass");
1102   -
1103   - // $("#text-left").removeClass("ActiveFormattingButtonClass");
1104   -
1105   - // $("#text-right").removeClass("ActiveFormattingButtonClass");
1106   -
1107   - // $("#text-center").removeClass("ActiveFormattingButtonClass");
1108   -
1109   - // },
1110   - // mouseout: function (layer) {
1111   - // $rootScope.canvasLayerNameCollection = [];
1112   - // $('#canvas').setLayer(layer.name, {
1113   - // handle: {
1114   - // type: 'rectangle',
1115   - // fillStyle: 'pink',
1116   - // strokeStyle: 'yellow',
1117   - // strokeWidth: 0,
1118   - // width: 0, height: 0,
1119   - // cornerRadius: 0
1120   - // }
1121   -
1122   - // }).drawLayers();
1123   -
1124   - // },
1125   - // mouseover: function (layer) {
1126   -
1127   - // $('#canvas').setLayer(layer.name, {
1128   - // handle: {
1129   - // type: 'rectangle',
1130   - // fillStyle: '#fff',
1131   - // strokeStyle: '#c33',
1132   - // strokeWidth: 2,
1133   - // width: 5, height: 5,
1134   - // cornerRadius: 3
1135   - // }
1136   - // }).drawLayers();
1137   -
1138   - // }
1139   - // });
1140   -
1141   -
1142   - //$("#annotationTextModal").modal("toggle");
1143   - //$('.btnCursor').trigger('click');
1144   - //$("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
1145   - //// $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
1146   - //$("#text_area").val('');
1147   -
1148   - //$("#text_area").css({ " font-family": 'Verdana, sans-serif', "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" });
1149   -
1150   - //$("#text-italic").removeClass("ActiveFormattingButtonClass");
1151   -
1152   - //$("#text-bold").removeClass("ActiveFormattingButtonClass");
1153   -
1154   - //$("#text-underline").removeClass("ActiveFormattingButtonClass");
1155   -
1156   - //$("#text-left").removeClass("ActiveFormattingButtonClass");
1157   -
1158   - //$("#text-right").removeClass("ActiveFormattingButtonClass");
1159   -
1160   - //$("#text-center").removeClass("ActiveFormattingButtonClass");
1161   -
1162   - //$(".btn-annotation").removeClass("activebtncolor");
1163   -
1164   - //$('.btnCursor').addClass('activebtncolor');
  1036 +
1165 1037 }
1166 1038  
1167 1039  
... ...