opentok-annotation
Advanced tools
Comparing version 1.0.25 to 1.0.26
{ | ||
"name": "opentok-annotation", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "OpenTok annotation accelerator pack", | ||
@@ -5,0 +5,0 @@ "main": "dist/opentok-annotation.js", |
@@ -25,4 +25,2 @@ /* global OT OTSolution OTKAnalytics ScreenSharingAccPack define */ | ||
var _canvas; | ||
var _screensharing; | ||
var _viewingSharedScreen; | ||
var _elements = {}; | ||
@@ -232,24 +230,12 @@ | ||
if (_screensharing || _viewingSharedScreen) { | ||
$(_elements.canvas).css({ | ||
width: width, | ||
height: height | ||
}); | ||
$(_elements.canvasContainer).find('canvas').css({ | ||
width: width, | ||
height: height | ||
}); | ||
$(_elements.canvas).attr({ | ||
width: width, | ||
height: height | ||
}); | ||
} else { | ||
$(_elements.canvasContainer).css({ | ||
width: width, | ||
height: height | ||
}); | ||
$(_elements.canvasContainer).find('canvas').attr({ | ||
width: width, | ||
height: height | ||
}); | ||
$(_elements.canvasContainer).attr({ | ||
width: width, | ||
height: height | ||
}); | ||
} | ||
_refreshCanvas(); | ||
@@ -367,3 +353,2 @@ _triggerEvent('resizeCanvas'); | ||
* @param {boolean} [options.screensharing] - Using an external window | ||
* @param {boolean} [options.viewingSharedScreen] - Annotating on shared screen | ||
* @param {string} [options.toolbarId] - If the container has an id other than 'toolbar' | ||
@@ -377,6 +362,3 @@ * @param {array} [options.items] - Custom set of tools | ||
_viewingSharedScreen = _.property('viewingSharedScreen')(options); | ||
if (_.property('screensharing')(options)) { | ||
_screensharing = true; | ||
_createExternalWindow() | ||
@@ -383,0 +365,0 @@ .then(function (externalWindow) { |
@@ -343,3 +343,3 @@ /*! | ||
self.isStartPoint = true; | ||
_log(_logEventData.actionStartDrawing, _logEventData.variationSuccess); | ||
!resizeEvent && _log(_logEventData.actionStartDrawing, _logEventData.variationSuccess); | ||
break; | ||
@@ -400,3 +400,3 @@ case 'mousemove': | ||
self.isStartPoint = false; | ||
_log(_logEventData.actionEndDrawing, _logEventData.variationSuccess); | ||
!resizeEvent && _log(_logEventData.actionEndDrawing, _logEventData.variationSuccess); | ||
break; | ||
@@ -403,0 +403,0 @@ case 'mouseout': |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317960
3956