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.0 to 1.0.1

2

bower.json

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

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

@@ -12,0 +12,0 @@ "keywords": [

@@ -5,12 +5,23 @@ angular.module('app', ['jtt_bricklayer']);

.controller("appController", function ($scope, $timeout) {
$scope.createElement = function (position) {
return {
color: '#' + Math.random().toString(16).substr(-6),
height: sizes[Math.floor(Math.random() * sizes.length)],
width: sizes[Math.floor(Math.random() * sizes.length)],
}
};
$scope.data = [];
var heights = [30, 40, 50, 60, 70, 90, 100, 120, 150, 200];
$scope.appendNew = function () {
$scope.data.push($scope.createElement());
};
for (var i = 0; i < 60; i++) {
$scope.data.push({
color: '#' + Math.random().toString(16).substr(-6),
height: heights[Math.floor(Math.random() * heights.length)],
});
var sizes = [220, 250, 260, 270, 290, 300, 310, 330, 400, 430, 450, 480, 500];
for (var i = 0; i < 10; i++) {
$scope.appendNew();
}
});
/**
@name: angular-bricklayer
@version: 1.0.0 (23-04-2016)
@version: 1.0.1 (23-04-2016)
@author:

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

angular.module('jtt_bricklayer', [])
.directive('bricklayer', function () {
.directive('bricklayer', ['$timeout', function ($timeout) {
return {

@@ -17,16 +17,24 @@ restrict: 'C',

$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
scope.$on('bricklayer.append', function (event, element) {
setTimeout(function () {
bricklayer.append(element)
}, 0)
bricklayer.append(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
});
scope.$on('bricklayer.prepend', function (event, element) {
setTimeout(function () {
bricklayer.prepend(element)
}, 0)
bricklayer.prepend(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
});
}
}
})
}])
.directive('bricklayerAppend', function () {

@@ -33,0 +41,0 @@ return {

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

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

*/
angular.module("jtt_bricklayer",[]).directive("bricklayer",function(){return{restrict:"C",replace:"false",link:function(a,b,c){var d=new Bricklayer(b[0]);a.$on("bricklayer.append",function(a,b){setTimeout(function(){d.append(b)},0)}),a.$on("bricklayer.prepend",function(a,b){setTimeout(function(){d.prepend(b)},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",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])}}});
{
"name": "angular-bricklayer",
"version": "1.0.0",
"version": "1.0.1",
"authors": [

@@ -5,0 +5,0 @@ "Jonathan Hornung <jonathan.hornung@gmail.com>"

@@ -9,2 +9,3 @@ # angular-bricklayer

- [Simple demo](https://rawgit.com/JohnnyTheTank/angular-bricklayer/master/demo/index.html)
- [on Plnkr](http://plnkr.co/edit/mo3G36)

@@ -16,3 +17,4 @@ ## Installation

2. via npm: `npm install --save angular-bricklayer`
3. via [downloaded files](https://github.com/JohnnyTheTank/angular-bricklayer/zipball/master)
3. via CDN (jsDelivr)
4. via [downloaded files](https://github.com/JohnnyTheTank/angular-bricklayer/zipball/master)

@@ -32,4 +34,10 @@ 2. Include dependencies and angular-bricklayer in your HTML.

```
3. When using downloaded files
3. When using CDN
```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>
```
4. When using downloaded files
```html
<link rel="stylesheet" href="YOUR_PATH/bricklayer.min.css">

@@ -36,0 +44,0 @@ <script src="YOUR_PATH/bricklayer.min.js"></script>

angular.module('jtt_bricklayer', [])
.directive('bricklayer', function () {
.directive('bricklayer', ['$timeout', function ($timeout) {
return {

@@ -9,16 +9,24 @@ restrict: 'C',

$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
scope.$on('bricklayer.append', function (event, element) {
setTimeout(function () {
bricklayer.append(element)
}, 0)
bricklayer.append(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
});
scope.$on('bricklayer.prepend', function (event, element) {
setTimeout(function () {
bricklayer.prepend(element)
}, 0)
bricklayer.prepend(element);
bricklayer.reorderElements(bricklayer.columnCount);
$timeout(function () {
bricklayer.reorderElements(bricklayer.columnCount);
}, 0);
});
}
}
})
}])
.directive('bricklayerAppend', function () {

@@ -25,0 +33,0 @@ return {

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