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/esm/view.js CHANGED
@@ -1045,7 +1045,7 @@ export class CotomyElement {
1045
1045
  }
1046
1046
  return this;
1047
1047
  }
1048
- changelayout(handle) {
1048
+ changeLayout(handle) {
1049
1049
  this.listenLayoutEvents();
1050
1050
  if (handle) {
1051
1051
  this.element.addEventListener("cotomy:changelayout", async (e) => await handle(e));
@@ -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
- changelayout(): this;
222
- changelayout(handle: (e: Event) => void | Promise<void>): this;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cotomy",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "dist/cjs/index.cjs",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",