@@ -96,6 +96,31 @@ class LayerSelectionState(JsonObjectWrapper):
96
96
class LayerSelectedValues (_LayerSelectedValuesBase ):
97
97
"""Specifies the data values associated with the current mouse position."""
98
98
99
+ @export
100
+ class PanelResolutionData (JsonObjectWrapper ):
101
+ __slots__ = ()
102
+ type = wrapped_property ("type" , str )
103
+ width = wrapped_property ("width" , int )
104
+ height = wrapped_property ("height" , int )
105
+ resolution = wrapped_property ("resolution" , str )
106
+
107
+ @export
108
+ class LayerResolutionData (JsonObjectWrapper ):
109
+ __slots__ = ()
110
+ name = wrapped_property ("name" , str )
111
+ type = wrapped_property ("type" , str )
112
+ resolution = wrapped_property ("resolution" , str )
113
+
114
+ @export
115
+ class ScreenshotResolutionMetadata (JsonObjectWrapper ):
116
+ __slots__ = ()
117
+ panel_resolution_data = panelResolutionData = wrapped_property (
118
+ "panelResolutionData" , typed_list (PanelResolutionData )
119
+ )
120
+ layer_resolution_data = layerResolutionData = wrapped_property (
121
+ "layerResolutionData" , typed_list (LayerResolutionData )
122
+ )
123
+
99
124
100
125
@export
101
126
class ScreenshotReply (JsonObjectWrapper ):
@@ -107,7 +132,7 @@ class ScreenshotReply(JsonObjectWrapper):
107
132
image_type = imageType = wrapped_property ("imageType" , str )
108
133
depth_data = depthData = wrapped_property ("depthData" , optional (base64 .b64decode ))
109
134
resolution_metadata = resolutionMetadata = wrapped_property (
110
- "resolutionMetadata" , dict
135
+ "resolutionMetadata" , ScreenshotResolutionMetadata
111
136
)
112
137
113
138
@property
0 commit comments