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

ngx-resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-resize-observer - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

index.d.ts

8

lib/ngx-resize-observer.directive.d.ts

@@ -1,3 +0,3 @@

import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
import { NgxResizeObserverService, ResizeObserverEntry } from './ngx-resize-observer.service';
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { NgxResizeObserverService } from './ngx-resize-observer.service';
import * as i0 from "@angular/core";

@@ -12,3 +12,3 @@ export declare class NgxResizeObserverDirective implements AfterViewInit, OnChanges, OnDestroy {

ngAfterViewInit(): void;
ngOnChanges(changes: any): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;

@@ -18,3 +18,3 @@ private observe;

static ɵfac: i0.ɵɵFactoryDeclaration<NgxResizeObserverDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxResizeObserverDirective, "[onResize]", never, { "resizeBoxModel": "resizeBoxModel"; }, { "onResize": "onResize"; }, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxResizeObserverDirective, "[onResize]", never, { "resizeBoxModel": "resizeBoxModel"; }, { "onResize": "onResize"; }, never, never, false, never>;
}

@@ -7,27 +7,6 @@ import { NgZone, OnDestroy } from '@angular/core';

}
export interface ResizeObserverEntry {
borderBoxSize?: ResizeObserverBoxSize;
contentBoxSize?: ResizeObserverBoxSize;
contentRect?: {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
x: number;
y: number;
};
target: Element;
}
export declare type ResizeObserverCallback = (resizes: ResizeObserverEntry[], observer: ResizeObserverInterface) => void;
export declare type ResizeObserverCallback = (resizes: ResizeObserverEntry[], observer: ResizeObserver) => void;
export interface ResizeObserverConfig {
box?: 'content-box' | 'border-box';
}
export interface ResizeObserverInterface {
new (callback: ResizeObserverCallback): any;
observe: (target: Element, config?: ResizeObserverConfig) => void;
unobserve: (target: Element) => void;
disconnect: () => void;
}
export declare type ResizeObserverServiceCallback = (resize: ResizeObserverEntry) => void;

@@ -34,0 +13,0 @@ export declare class NgxResizeObserverService implements OnDestroy {

{
"name": "ngx-resize-observer",
"version": "2.3.0",
"dependencies": {
"tslib": "^2.3.1"
},
"version": "2.4.0",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^14.0.0",
"@angular/core": "^14.0.0"
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0"
},

@@ -16,3 +14,3 @@ "module": "fesm2015/ngx-resize-observer.mjs",

"fesm2015": "fesm2015/ngx-resize-observer.mjs",
"typings": "ngx-resize-observer.d.ts",
"typings": "index.d.ts",
"exports": {

@@ -23,3 +21,3 @@ "./package.json": {

".": {
"types": "./ngx-resize-observer.d.ts",
"types": "./index.d.ts",
"esm2020": "./esm2020/ngx-resize-observer.mjs",

@@ -32,3 +30,6 @@ "es2020": "./fesm2020/ngx-resize-observer.mjs",

},
"sideEffects": false
"sideEffects": false,
"dependencies": {
"tslib": "^2.3.0"
}
}

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

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

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