cotomy 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/cotomy.js +1 -1
- package/dist/browser/cotomy.js.map +1 -1
- package/dist/browser/cotomy.min.js +1 -1
- package/dist/browser/cotomy.min.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/view.js +1 -1
- package/dist/types/view.d.ts +2 -2
- package/package.json +1 -1
package/dist/esm/view.js
CHANGED
|
@@ -1045,7 +1045,7 @@ export class CotomyElement {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return this;
|
|
1047
1047
|
}
|
|
1048
|
-
|
|
1048
|
+
changeLayout(handle) {
|
|
1049
1049
|
this.listenLayoutEvents();
|
|
1050
1050
|
if (handle) {
|
|
1051
1051
|
this.element.addEventListener("cotomy:changelayout", async (e) => await handle(e));
|
package/dist/types/view.d.ts
CHANGED
|
@@ -218,8 +218,8 @@ export declare class CotomyElement implements IEventTarget {
|
|
|
218
218
|
resize(handle: (e: Event) => void | Promise<void>): this;
|
|
219
219
|
scroll(): this;
|
|
220
220
|
scroll(handle: (e: Event) => void | Promise<void>): this;
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
changeLayout(): this;
|
|
222
|
+
changeLayout(handle: (e: Event) => void | Promise<void>): this;
|
|
223
223
|
}
|
|
224
224
|
export declare class CotomyMetaElement extends CotomyElement {
|
|
225
225
|
static get(name: string): CotomyMetaElement;
|