@leafer/renderer 1.6.2 → 1.6.3
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 +3 -3
- package/src/Renderer.ts +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/renderer",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "@leafer/renderer",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.6.
|
|
25
|
+
"@leafer/core": "1.6.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "1.6.
|
|
28
|
+
"@leafer/interface": "1.6.3"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/Renderer.ts
CHANGED
|
@@ -273,12 +273,13 @@ export class Renderer implements IRenderer {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
protected __listenEvents(): void {
|
|
276
|
-
const { target } = this
|
|
277
276
|
this.__eventIds = [
|
|
278
|
-
target.on_(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
this.target.on_([
|
|
278
|
+
[RenderEvent.REQUEST, this.update, this],
|
|
279
|
+
[LayoutEvent.END, this.__onLayoutEnd, this],
|
|
280
|
+
[RenderEvent.AGAIN, this.renderAgain, this],
|
|
281
|
+
[ResizeEvent.RESIZE, this.__onResize, this]
|
|
282
|
+
])
|
|
282
283
|
]
|
|
283
284
|
}
|
|
284
285
|
|