Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-bricklayer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-bricklayer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

bower.json

@@ -9,3 +9,3 @@ {

"main": "dist/angular-bricklayer.js",
"version": "1.0.1",
"version": "1.0.2",
"moduleType": [],

@@ -33,4 +33,4 @@ "keywords": [

"dependencies": {
"bricklayer": "^0.3.0"
"bricklayer": "^0.4.1"
}
}
angular.module('app', ['jtt_bricklayer']);
angular.module('app')
.controller("appController", function ($scope, $timeout) {
$scope.createElement = function (position) {
.controller("appController", function ($scope) {
$scope.createElement = function () {
return {

@@ -7,0 +7,0 @@ color: '#' + Math.random().toString(16).substr(-6),

/**
@name: angular-bricklayer
@version: 1.0.1 (23-04-2016)
@version: 1.0.2 (24-04-2016)
@author:

@@ -12,3 +12,2 @@ @url: https://github.com/JohnnyTheTank/angular-bricklayer

restrict: 'C',
replace: 'false',
link: function (scope, element, attrs) {

@@ -18,11 +17,8 @@ var bricklayer = new Bricklayer(element[0]);

$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});
scope.$on('bricklayer.append', function (event, element) {
bricklayer.append(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});

@@ -32,7 +28,8 @@

bricklayer.prepend(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});
scope.$on('bricklayer.redraw', function () {
bricklayer.redraw();
});
}

@@ -45,3 +42,2 @@ }

restrict: 'ACE',
replace: 'false',
link: function (scope, element, attrs) {

@@ -56,3 +52,2 @@ scope.$emit('bricklayer.append', element[0]);

restrict: 'ACE',
replace: 'false',
link: function (scope, element, attrs) {

@@ -59,0 +54,0 @@ scope.$emit('bricklayer.prepend', element[0]);

/**
@name: angular-bricklayer
@version: 1.0.1 (23-04-2016)
@version: 1.0.2 (24-04-2016)
@author:

@@ -8,2 +8,2 @@ @url: https://github.com/JohnnyTheTank/angular-bricklayer

*/
angular.module("jtt_bricklayer",[]).directive("bricklayer",["$timeout",function(a){return{restrict:"C",replace:"false",link:function(b,c,d){var e=new Bricklayer(c[0]);a(function(){e.reorderElements(e.columnCount)},0),b.$on("bricklayer.append",function(b,c){e.append(c),e.reorderElements(e.columnCount),a(function(){e.reorderElements(e.columnCount)},0)}),b.$on("bricklayer.prepend",function(b,c){e.prepend(c),e.reorderElements(e.columnCount),a(function(){e.reorderElements(e.columnCount)},0)})}}}]).directive("bricklayerAppend",function(){return{require:"?bricklayer",restrict:"ACE",replace:"false",link:function(a,b,c){a.$emit("bricklayer.append",b[0])}}}).directive("bricklayerPrepend",function(){return{require:"?bricklayer",restrict:"ACE",replace:"false",link:function(a,b,c){a.$emit("bricklayer.prepend",b[0])}}});
angular.module("jtt_bricklayer",[]).directive("bricklayer",["$timeout",function(a){return{restrict:"C",link:function(b,c,d){var e=new Bricklayer(c[0]);a(function(){e.redraw()}),b.$on("bricklayer.append",function(a,b){e.append(b),e.redraw()}),b.$on("bricklayer.prepend",function(a,b){e.prepend(b),e.redraw()}),b.$on("bricklayer.redraw",function(){e.redraw()})}}}]).directive("bricklayerAppend",function(){return{require:"?bricklayer",restrict:"ACE",link:function(a,b,c){a.$emit("bricklayer.append",b[0])}}}).directive("bricklayerPrepend",function(){return{require:"?bricklayer",restrict:"ACE",link:function(a,b,c){a.$emit("bricklayer.prepend",b[0])}}});
{
"name": "angular-bricklayer",
"version": "1.0.1",
"version": "1.0.2",
"authors": [

@@ -37,4 +37,4 @@ "Jonathan Hornung <jonathan.hornung@gmail.com>"

"dependencies": {
"bricklayer": "^0.3.0"
"bricklayer": "^0.4.1"
}
}

@@ -11,2 +11,4 @@ # angular-bricklayer

[![Image](https://rawgit.com/ademilter/bricklayer/master/assets/screenshot.gif)](http://ademilter.github.io/bricklayer)
## Installation

@@ -35,5 +37,5 @@

```html
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.2.4/bricklayer.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.2.4/bricklayer.min.js"></script>
<script src="//cdn.jsdelivr.net/angular.bricklayer/1.0.0/angular-bricklayer.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.4.1/bricklayer.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/bricklayer/0.4.1/bricklayer.min.js"></script>
<script src="//cdn.jsdelivr.net/angular.bricklayer/1.0.1/angular-bricklayer.min.js"></script>
```

@@ -47,3 +49,6 @@ 4. When using downloaded files

3. Add `jtt_bricklayer` to your application's module dependencies.
3. Add **`jtt_bricklayer`** to your application's module dependencies, like this:
```javascript
angular.module('app', ['jtt_bricklayer']);
```

@@ -50,0 +55,0 @@ ## Usage

@@ -5,3 +5,2 @@ angular.module('jtt_bricklayer', [])

restrict: 'C',
replace: 'false',
link: function (scope, element, attrs) {

@@ -11,11 +10,8 @@ var bricklayer = new Bricklayer(element[0]);

$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});
scope.$on('bricklayer.append', function (event, element) {
bricklayer.append(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});

@@ -25,7 +21,8 @@

bricklayer.prepend(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
bricklayer.redraw();
});
scope.$on('bricklayer.redraw', function () {
bricklayer.redraw();
});
}

@@ -38,3 +35,2 @@ }

restrict: 'ACE',
replace: 'false',
link: function (scope, element, attrs) {

@@ -49,3 +45,2 @@ scope.$emit('bricklayer.append', element[0]);

restrict: 'ACE',
replace: 'false',
link: function (scope, element, attrs) {

@@ -52,0 +47,0 @@ scope.$emit('bricklayer.prepend', element[0]);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc