1111
1212import { RegularLayout } from "./regular-layout.ts" ;
1313import { RegularLayoutFrame } from "./regular-layout-frame.ts" ;
14- import type { Layout } from "./layout /types.ts" ;
14+ import type { Layout , PresizeDetail } from "./core /types.ts" ;
1515import { RegularLayoutTab } from "./regular-layout-tab.ts" ;
1616
1717customElements . define ( "regular-layout" , RegularLayout ) ;
@@ -59,6 +59,12 @@ declare global {
5959 options ?: { signal : AbortSignal } ,
6060 ) : void ;
6161
62+ addEventListener (
63+ name : "regular-layout-resize-before" ,
64+ cb : ( e : RegularLayoutPresizeEvent ) => void ,
65+ options ?: { signal : AbortSignal } ,
66+ ) : void ;
67+
6268 removeEventListener (
6369 name : "regular-layout-update" ,
6470 cb : ( e : RegularLayoutEvent ) => void ,
@@ -68,7 +74,13 @@ declare global {
6874 name : "regular-layout-before-update" ,
6975 cb : ( e : RegularLayoutEvent ) => void ,
7076 ) : void ;
77+
78+ removeEventListener (
79+ name : "regular-layout-resize-before" ,
80+ cb : ( e : RegularLayoutPresizeEvent ) => void ,
81+ ) : void ;
7182 }
7283}
7384
7485export type RegularLayoutEvent = CustomEvent < Layout > ;
86+ export type RegularLayoutPresizeEvent = CustomEvent < PresizeDetail > ;
0 commit comments