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

@egjs/grid

Package Overview
Dependencies
Maintainers
9
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/grid - npm Package Compare versions

Comparing version 1.10.0-beta.2 to 1.10.0-beta.3

2

package.json
{
"name": "@egjs/grid",
"version": "1.10.0-beta.2",
"version": "1.10.0-beta.3",
"description": "A component that can arrange items according to the type of grids",

@@ -5,0 +5,0 @@ "main": "dist/grid.cjs.js",

@@ -8,3 +8,3 @@ /**

import { DestroyOptions, SizeRect } from "./types";
import { ResizeEvent, ResizeWatcher } from "./ResizeWatcher";
import { ResizerWatcherResizeEvent, ResizeWatcher } from "./ResizeWatcher";
import { DEFAULT_GRID_OPTIONS, RECT_NAMES } from "./consts";

@@ -24,3 +24,3 @@

export interface ContainerManagerEvents {
resize: ResizeEvent;
resize: ResizerWatcherResizeEvent;
}

@@ -112,3 +112,3 @@ export class ContainerManager extends Component<ContainerManagerEvents> {

}
private _onResize = (e: OnResizeWatcherResize) => {
private _onResize = (e: ResizerWatcherResizeEvent) => {
this.trigger("resize", e);

@@ -115,0 +115,0 @@ }

@@ -19,3 +19,3 @@ /**

import { GridItem } from "./GridItem";
import { ResizeEvent } from "./ResizeWatcher";
import { ResizerWatcherResizeEvent } from "./ResizeWatcher";

@@ -515,3 +515,3 @@ /**

}
private _onResize = (e: ResizeEvent) => {
private _onResize = (e: ResizerWatcherResizeEvent) => {
if (e.isResizeContainer) {

@@ -518,0 +518,0 @@ this._renderItems({

@@ -15,3 +15,3 @@ import Component from "@egjs/component";

export interface ResizeEvent {
export interface ResizerWatcherResizeEvent {
isResizeContainer: boolean;

@@ -29,3 +29,3 @@ childEntries: ResizeWatcherEntry[];

private _maxResizeDebounceTimer = 0;
private _emitter: Component<{ resize: ResizeEvent }>;
private _emitter: Component<{ resize: ResizerWatcherResizeEvent }>;
private _observer: ResizeObserver | null;

@@ -93,3 +93,3 @@ protected container: HTMLElement;

}
public listen(callback: (e: ResizeEvent) => void) {
public listen(callback: (e: ResizerWatcherResizeEvent) => void) {
this._emitter.on("resize", callback);

@@ -96,0 +96,0 @@ return this;

{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": true,
"removeComments": false,
"declaration": true,

@@ -6,0 +6,0 @@ "emitDeclarationOnly": true,

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