angular-annotorious
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "angular-annotorious", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Igor Lino", |
@@ -0,0 +0,0 @@ angular.module('annotoriousdemo', [ |
@@ -102,40 +102,40 @@ angular.module('annotoriousdemo.controllers', []). | ||
$scope.annotateColorbox03 = { | ||
rel: 'img-group-01', | ||
slideshow: false, | ||
open: false, | ||
onComplete: function () { | ||
console.log('03-complete'); | ||
var photo = colorboxService.getCurrentPhoto(); | ||
if (photo.src) { | ||
console.log('annotateColorbox03 ' + photo.src); | ||
annotoriousService.makeAnnotatable(photo); | ||
var annotations = annotoriousService.getAnnotations(photo.src); | ||
console.log(annotations); | ||
if (annotations && annotations.length > 0) { | ||
annotoriousService.showAnnotations(photo.src); | ||
colorboxService.resize(); | ||
$scope.annotateColorbox03 = { | ||
rel: 'img-group-01', | ||
slideshow: false, | ||
open: false, | ||
onComplete: function () { | ||
console.log('03-complete'); | ||
var photo = colorboxService.getCurrentPhoto(); | ||
if (photo.src) { | ||
console.log('annotateColorbox03 ' + photo.src); | ||
annotoriousService.makeAnnotatable(photo); | ||
var annotations = annotoriousService.getAnnotations(photo.src); | ||
console.log(annotations); | ||
if (annotations && annotations.length > 0) { | ||
annotoriousService.showAnnotations(photo.src); | ||
colorboxService.resize(); | ||
} | ||
} | ||
}, | ||
onLoad: function () { | ||
console.log('03-onLoad'); | ||
annotatableImage(); | ||
}, | ||
onCleanup: function () { | ||
console.log('03-cleanup'); | ||
annotatableImage(); | ||
} | ||
}; | ||
function annotatableImage() { | ||
var photo = colorboxService.getCurrentPhoto(); | ||
if (photo && photo.src) { | ||
//required | ||
annotoriousService.reset(photo.src); | ||
} | ||
} | ||
}, | ||
onLoad: function () { | ||
console.log('03-onLoad'); | ||
annotatableImage(); | ||
}, | ||
onCleanup: function () { | ||
console.log('03-cleanup'); | ||
annotatableImage(); | ||
} | ||
}; | ||
function annotatableImage() { | ||
var photo = colorboxService.getCurrentPhoto(); | ||
if (photo && photo.src) { | ||
//required | ||
annotoriousService.reset(photo.src); | ||
} | ||
} | ||
$scope.zoomOptions = { | ||
@@ -142,0 +142,0 @@ scrollZoom: true, |
@@ -0,0 +0,0 @@ /*global anno:false */ |
@@ -0,0 +0,0 @@ /*global annotorious:false */ |
{ | ||
"name": "angular-annotorious", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"title": "Angular Annotorious", | ||
"description": "Angular directive for Annotorius to start drawing and commenting to images on your Web page.", | ||
"main": "js/angular-annotorious.js", | ||
"keywords": [ | ||
@@ -7,0 +8,0 @@ "image", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
2
1474789
41
802