@leafer-ui/app 1.0.0-rc.19 → 1.0.0-rc.20

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.0.0-rc.19",
3
+ "version": "1.0.0-rc.20",
4
4
  "description": "@leafer-ui/app",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.19",
26
- "@leafer-ui/display": "1.0.0-rc.19",
27
- "@leafer-ui/type": "1.0.0-rc.19",
28
- "@leafer-ui/data": "1.0.0-rc.19"
25
+ "@leafer/core": "1.0.0-rc.20",
26
+ "@leafer-ui/display": "1.0.0-rc.20",
27
+ "@leafer-ui/type": "1.0.0-rc.20",
28
+ "@leafer-ui/data": "1.0.0-rc.20"
29
29
  },
30
30
  "devDependencies": {
31
- "@leafer/interface": "1.0.0-rc.19",
32
- "@leafer-ui/interface": "1.0.0-rc.19"
31
+ "@leafer/interface": "1.0.0-rc.20",
32
+ "@leafer-ui/interface": "1.0.0-rc.20"
33
33
  }
34
34
  }
package/src/App.ts CHANGED
@@ -119,7 +119,8 @@ export class App extends Leafer implements IApp {
119
119
  if (this.viewReady) this.renderer.update()
120
120
  }
121
121
 
122
- public __render(canvas: ILeaferCanvas, _options: IRenderOptions): void {
122
+ public __render(canvas: ILeaferCanvas, options: IRenderOptions): void {
123
+ canvas.setWorld(options.matrix || this.__world)
123
124
  this.children.forEach(leafer => canvas.copyWorld(leafer.canvas))
124
125
  }
125
126
 
package/types/index.d.ts CHANGED
@@ -26,7 +26,7 @@ declare class App extends Leafer implements IApp {
26
26
  protected __onReady(): void;
27
27
  protected __onViewReady(): void;
28
28
  protected __onChildRenderEnd(e: RenderEvent): void;
29
- __render(canvas: ILeaferCanvas, _options: IRenderOptions): void;
29
+ __render(canvas: ILeaferCanvas, options: IRenderOptions): void;
30
30
  __onResize(event: IResizeEvent): void;
31
31
  protected __checkUpdateLayout(): void;
32
32
  protected __getChildConfig(userConfig?: ILeaferConfig): ILeaferConfig;