File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"scripts" : {
18
18
"build" : " tsc" ,
19
- "dev" : " tsc && qode ./dist/demo.js" ,
19
+ "dev" : " tsc && qode --inspect ./dist/demo.js" ,
20
20
"docs" : " typedoc"
21
21
},
22
22
"dependencies" : {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const setImageProps = (
21
21
const pixMap = new QPixmap ( imageUrl ) ;
22
22
widget . setPixmap ( pixMap ) ;
23
23
const size = widget . size ( ) ;
24
- widget . scalePixmap ( size . width , size . height ) ;
24
+ widget . scalePixmap ( size . width ( ) , size . height ( ) ) ;
25
25
} ,
26
26
set aspectRatioMode ( mode : AspectRatioMode ) {
27
27
widget . setAspectRatioMode ( mode ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ImageConfig extends ComponentConfig {
18
18
widget . setProps ( newProps , { } ) ;
19
19
widget . addEventListener ( QLabelEvents . Resize , ( ) => {
20
20
const size = widget . size ( ) ;
21
- widget . scalePixmap ( size . width , size . height ) ;
21
+ widget . scalePixmap ( size . width ( ) , size . height ( ) ) ;
22
22
} ) ;
23
23
return widget ;
24
24
}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export interface ViewProps extends RNProps {
65
65
/**
66
66
* This property holds the level of opacity for the window. [QWidget: setWindowOpacity](https://docs.nodegui.org/docs/api/NodeWidget#widgetsetwindowopacityopacity)
67
67
*/
68
- windowOpacity ?: Number ;
68
+ windowOpacity ?: number ;
69
69
/**
70
70
* Sets the window title property. [QWidget: setWindowTitle](https://docs.nodegui.org/docs/api/NodeWidget#widgetsetwindowtitletitle)
71
71
*/
@@ -146,7 +146,7 @@ export const setViewProps = (
146
146
set enabled ( enable : boolean ) {
147
147
widget . setEnabled ( enable ) ;
148
148
} ,
149
- set windowOpacity ( opacity : Number ) {
149
+ set windowOpacity ( opacity : number ) {
150
150
widget . setWindowOpacity ( opacity ) ;
151
151
} ,
152
152
set windowTitle ( title : string ) {
Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ const HostConfig: Reconciler.HostConfig<
102
102
} ,
103
103
removeChildFromContainer : ( container , child ) => {
104
104
container . delete ( child ) ;
105
+ if ( child . close ) {
106
+ child . close ( ) ;
107
+ }
105
108
} ,
106
109
prepareUpdate : function (
107
110
instance ,
@@ -149,6 +152,9 @@ const HostConfig: Reconciler.HostConfig<
149
152
} ,
150
153
removeChild : ( parent : RNWidget , child : NodeWidget ) => {
151
154
parent . removeChild ( child ) ;
155
+ if ( child . close ) {
156
+ child . close ( ) ;
157
+ }
152
158
} ,
153
159
commitTextUpdate : ( textInstance , oldText , newText ) => {
154
160
//noop since we manage all text using Text component
You can’t perform that action at this time.
0 commit comments