Lines Matching refs:scope
16 scope: true,
17 link: function(scope, elm, attrs, ctrl) { argument
29 image.src = scope.record.differencePath;
33 image.src = scope.record.baselinePath;
37 image.src = scope.record.testPath;
54 scope.setImgScaleFactor(1 / divisor);
57 canvas.width = image.width * scope.imgScaleFactor;
58 canvas.height = image.height * scope.imgScaleFactor;
61 if (!scope.maskSizeUpdated) {
63 scope.updateMaskCanvasSize({width: canvas.width, height: canvas.height});
65 scope.maskCanvasSizeUpdated(true);
69 scope.renderImage();
74 scope.$watch('updatedMaskSize', function(updatedSize) {
85 scope.$watch('magnifyCenter', function(magCenter) {
90 scope.renderImage();
108 var imgRect = { x: (magCenter.x / scope.imgScaleFactor) - MAGNIFIER_HALF_WIDTH,
109 y: (magCenter.y / scope.imgScaleFactor) - MAGNIFIER_HALF_HEIGHT,
130 scope.renderImage = function() {
137 scope.computeMagnifierOutline = function(event) {
138 var scaledWidth = MAGNIFIER_WIDTH * scope.imgScaleFactor;
139 var scaledHeight = MAGNIFIER_HEIGHT * scope.imgScaleFactor;
150 scope.MagnifyDraw = function(event, startMagnify) {
152 scope.setMagnifierState(true);
153 } else if (!scope.magnifierOn) {
157 scope.renderImage();
160 var rect = scope.computeMagnifierOutline(event);
170 scope.setMagnifyCenter({x: event.offsetX, y: event.offsetY});
175 scope.MagnifyEnd = function(event) {
176 scope.renderImage();
178 scope.setMagnifierState(false);
179 scope.setMagnifyCenter(undefined);