mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
fix(client): RPC API adjusted for DockArea, ImageItem and Waveform
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -49,6 +49,9 @@ class DockAreaConfig(ConnectionConfig):
|
||||
class BECDockArea(BECWidget, QWidget):
|
||||
PLUGIN = True
|
||||
USER_ACCESS = [
|
||||
"_rpc_id",
|
||||
"_config_dict",
|
||||
"_get_all_rpc",
|
||||
"new",
|
||||
"show",
|
||||
"hide",
|
||||
|
@ -166,11 +166,11 @@ class ImageItem(BECConnector, pg.ImageItem):
|
||||
self.apply_autorange()
|
||||
|
||||
@property
|
||||
def autorange_mode(self) -> Literal["max", "mean"]:
|
||||
def autorange_mode(self) -> str:
|
||||
return self.config.autorange_mode
|
||||
|
||||
@autorange_mode.setter
|
||||
def autorange_mode(self, mode: Literal["max", "mean"]):
|
||||
def autorange_mode(self, mode: str):
|
||||
self.config.autorange_mode = mode
|
||||
if self.autorange:
|
||||
self.apply_autorange()
|
||||
|
@ -45,6 +45,7 @@ class Waveform(PlotBase):
|
||||
ICON_NAME = "show_chart"
|
||||
USER_ACCESS = [
|
||||
# General PlotBase Settings
|
||||
"_config_dict",
|
||||
"enable_toolbar",
|
||||
"enable_toolbar.setter",
|
||||
"enable_side_panel",
|
||||
|
Reference in New Issue
Block a user