File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 107107 LocalAnnotationLayer , # noqa: F401
108108 ManagedLayer , # noqa: F401
109109 Layers , # noqa: F401
110+ LinkedDisplayDimensions , # noqa: F401
110111 LinkedPosition , # noqa: F401
111112 LinkedZoomFactor , # noqa: F401
112113 LinkedDepthRange , # noqa: F401
Original file line number Diff line number Diff line change @@ -1482,6 +1482,14 @@ class Linked(LinkedType):
14821482
14831483 return Linked
14841484
1485+ if typing .TYPE_CHECKING or _BUILDING_DOCS :
1486+ _LinkedDisplayDimensionsBase = LinkedType [list [str ]]
1487+ else :
1488+ _LinkedDisplayDimensionsBase = make_linked_navigation_type (typed_list (str ), lambda x : x )
1489+
1490+ @export
1491+ class LinkedDisplayDimensions (_LinkedDisplayDimensionsBase ):
1492+ __slots__ = ()
14851493
14861494if typing .TYPE_CHECKING or _BUILDING_DOCS :
14871495 _LinkedPositionBase = LinkedType [np .typing .NDArray [np .float32 ]]
@@ -1710,6 +1718,9 @@ class LayerGroupViewer(JsonObjectWrapper):
17101718 layers = wrapped_property ("layers" , typed_list (str ))
17111719 layout = wrapped_property ("layout" , data_panel_layout_wrapper ("xy" ))
17121720 position = wrapped_property ("position" , LinkedPosition )
1721+ display_dimensions = displayDimensions = wrapped_property (
1722+ "displayDimensions" , LinkedDisplayDimensions
1723+ )
17131724 velocity = wrapped_property (
17141725 "velocity" , typed_map (key_type = str , value_type = DimensionPlaybackVelocity )
17151726 )
You can’t perform that action at this time.
0 commit comments