@leafer-ui/app 1.0.0-rc.21 → 1.0.0-rc.22

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/App.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/app",
3
- "version": "1.0.0-rc.21",
3
+ "version": "1.0.0-rc.22",
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.21",
26
- "@leafer-ui/display": "1.0.0-rc.21",
27
- "@leafer-ui/type": "1.0.0-rc.21",
28
- "@leafer-ui/data": "1.0.0-rc.21"
25
+ "@leafer/core": "1.0.0-rc.22",
26
+ "@leafer-ui/display": "1.0.0-rc.22",
27
+ "@leafer-ui/type": "1.0.0-rc.22",
28
+ "@leafer-ui/data": "1.0.0-rc.22"
29
29
  },
30
30
  "devDependencies": {
31
- "@leafer/interface": "1.0.0-rc.21",
32
- "@leafer-ui/interface": "1.0.0-rc.21"
31
+ "@leafer/interface": "1.0.0-rc.22",
32
+ "@leafer-ui/interface": "1.0.0-rc.22"
33
33
  }
34
34
  }
package/src/App.ts CHANGED
@@ -120,7 +120,7 @@ export class App extends Leafer implements IApp {
120
120
  }
121
121
 
122
122
  public __render(canvas: ILeaferCanvas, options: IRenderOptions): void {
123
- canvas.setWorld(options.matrix || this.__world)
123
+ if (options.matrix) canvas.setWorld(options.matrix) // screenshot
124
124
  this.children.forEach(leafer => canvas.copyWorld(leafer.canvas))
125
125
  }
126
126