@leafer-ui/app 1.2.2 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/app",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "@leafer-ui/app",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.2.2",
26
- "@leafer-ui/display": "1.2.2",
27
- "@leafer-ui/data": "1.2.2"
25
+ "@leafer/core": "1.3.1",
26
+ "@leafer-ui/display": "1.3.1",
27
+ "@leafer-ui/data": "1.3.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.2.2",
31
- "@leafer-ui/interface": "1.2.2"
30
+ "@leafer/interface": "1.3.1",
31
+ "@leafer-ui/interface": "1.3.1"
32
32
  }
33
33
  }
package/src/App.ts CHANGED
@@ -127,8 +127,8 @@ export class App extends Leafer implements IApp {
127
127
  super.__onResize(event)
128
128
  }
129
129
 
130
- protected __checkUpdateLayout(): void {
131
- this.children.forEach(leafer => leafer.__layout.update())
130
+ public updateLayout(): void {
131
+ this.children.forEach(leafer => leafer.updateLayout())
132
132
  }
133
133
 
134
134
  protected __getChildConfig(userConfig?: ILeaferConfig): ILeaferConfig {
package/types/index.d.ts CHANGED
@@ -28,7 +28,7 @@ declare class App extends Leafer implements IApp {
28
28
  protected __onChildRenderEnd(e: RenderEvent): void;
29
29
  __render(canvas: ILeaferCanvas, options: IRenderOptions): void;
30
30
  __onResize(event: IResizeEvent): void;
31
- protected __checkUpdateLayout(): void;
31
+ updateLayout(): void;
32
32
  protected __getChildConfig(userConfig?: ILeaferConfig): ILeaferConfig;
33
33
  protected __listenChildEvents(leafer: ILeaferBase): void;
34
34
  }