ps
This commit is contained in:
1 parent
30476a880d
commit
7c8bbe6473
3 files changed
+50
-20
No files matched your search
+12
-2
@@ -7,12 +7,12 @@ output:
|
||||
RenderContext:
|
||||
type: context
|
||||
fields:
|
||||
didChangeBacking: Bool
|
||||
backingPixelSize: [Int32]
|
||||
didLaunch: Bool
|
||||
didReshape: Bool
|
||||
didSetup: Bool
|
||||
isReadyToRender: Bool
|
||||
pixelSize: [Int32]
|
||||
reshapePixelSize: [Int32]
|
||||
|
||||
RenderComponent:
|
||||
type: component
|
||||
@@ -32,6 +32,16 @@ RenderComponent:
|
||||
c.recentField == F.didLaunch
|
||||
then:
|
||||
c.pixelSize = [1, 1]
|
||||
2. Upon resize:
|
||||
if:
|
||||
c.recentField == F.reshapePixelSize
|
||||
then:
|
||||
c.pixelSize = c.reshapePixelSize
|
||||
3. Upon DPI change:
|
||||
if:
|
||||
c.recentField == F.backingPixelSize
|
||||
then:
|
||||
c.pixelSize = c.backingPixelSize
|
||||
|
||||
RootComponent:
|
||||
type: component
|
||||
|
||||
Reference in new issue
Block a user