@leafer-ui/app 1.0.7 → 1.0.8

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 +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/app",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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.7",
26
- "@leafer-ui/display": "1.0.7",
27
- "@leafer-ui/type": "1.0.7",
28
- "@leafer-ui/data": "1.0.7"
25
+ "@leafer/core": "1.0.8",
26
+ "@leafer-ui/display": "1.0.8",
27
+ "@leafer-ui/type": "1.0.8",
28
+ "@leafer-ui/data": "1.0.8"
29
29
  },
30
30
  "devDependencies": {
31
- "@leafer/interface": "1.0.7",
32
- "@leafer-ui/interface": "1.0.7"
31
+ "@leafer/interface": "1.0.8",
32
+ "@leafer-ui/interface": "1.0.8"
33
33
  }
34
34
  }
package/src/App.ts CHANGED
@@ -116,10 +116,8 @@ export class App extends Leafer implements IApp {
116
116
 
117
117
  override __render(canvas: ILeaferCanvas, options: IRenderOptions): void {
118
118
  if (canvas.context) {
119
- if (options.matrix) {
120
- const { a, b, c, d, e, f } = options.matrix
121
- canvas.setTransform(a, b, c, d, e, f) // screenshot
122
- }
119
+ const m = options.matrix
120
+ if (m) canvas.setTransform(m.a, m.b, m.c, m.d, m.e, m.f) // screenshot
123
121
  this.children.forEach(leafer => canvas.copyWorld(leafer.canvas))
124
122
  }
125
123
  }