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

ngc-float-button

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngc-float-button - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

angular-cli.json

18

components/ngc-float-button.component.ts

@@ -82,3 +82,3 @@ /* created by @GustavoCostaW https://github.com/gustavocostaw/ngc-float-button */

// transition
private animateButtons() {
private animateButtons(eventType) {
this.buttons.toArray().forEach( (btn, i) => {

@@ -88,5 +88,7 @@ i+=1;

if (this.state.getValue().display) {
style['display'] = 'flex';
if (eventType !== 'directionChanged' && this.state.getValue().display) {
style['transform'] = 'scale(1)';
style['transition-duration'] = '0s';
if (btn.timeout) {

@@ -100,10 +102,9 @@ clearTimeout(btn.timeout);

style['transform'] = this.state.getValue().display ? this.getTranslate(i) : '';
});
}, 50);
if (!this.state.getValue().display) {
if (eventType !== 'directionChanged' && !this.state.getValue().display) {
btn.timeout = setTimeout( () => {
style['display'] = 'none';
style['transform'] = 'scale(0)';
}, 90 + (100 * i) );
}
});

@@ -156,3 +157,3 @@ }

const sub = this.state.subscribe( v => {
this.animateButtons();
this.animateButtons(v.event);

@@ -165,3 +166,2 @@ this.events.next({

});
this.subs.push(sub);

@@ -168,0 +168,0 @@ }

@@ -9,4 +9,3 @@ /* created by @GustavoCostaW https://github.com/gustavocostaw/ngc-float-button */

ViewChild,
ChangeDetectionStrategy,
ViewEncapsulation
ChangeDetectionStrategy
} from '@angular/core';

@@ -23,3 +22,3 @@

<a class="fab-item">
<md-icon class="material-content-icon"> {{icon}} </md-icon>
<md-icon class="material-content-icon"> {{icon}} </md-icon>
</a>

@@ -26,0 +25,0 @@ </div>

{
"name": "ngc-float-button",
"version": "0.0.8",
"version": "0.1.0",
"description": "Google Material Float Button - Implementation for Angular v4+",

@@ -27,5 +27,10 @@ "scripts": {

"dependencies": {
"@angular/animations": "^4.3.3",
"@angular/cdk": "^2.0.0-beta.8",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.3.3",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.3.3",
"@angular/http": "^4.3.3",
"@angular/material": "^2.0.0-beta.5",

@@ -35,8 +40,16 @@ "@angular/platform-browser": "^4.0.0",

"@angular/platform-server": "^4.0.0",
"rxjs": "^5.4.2"
"@angular/router": "^4.3.3",
"ngc-float-button": "^0.0.8",
"rxjs": "^5.4.2",
"zone.js": "0.8.13"
},
"devDependencies": {
"@angular/cli": "1.2.1",
"@angular/compiler-cli": "4.2.6",
"@types/node": "^8.0.7",
"typescript": "^2.4.1"
"typescript": "^2.4.1",
"codelyzer": "2.0.0",
"ts-node": "2.1.2",
"tslint": "4.5.1"
}
}

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