@egjs/grid
Advanced tools
Comparing version 1.10.0-beta.2 to 1.10.0-beta.3
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1422144