netlist_carpentry.vis.dynamic.config
¶
Classes:
-
CytoscapeConfig–A configuration class for cytoscape objects, handling environment values like
Attributes:
-
DEFAULT_CONFIG–A default config for ipycytoscape with common settings.
DEFAULT_CONFIG
module-attribute
¶
DEFAULT_CONFIG = CytoscapeConfig(min_zoom=1 / 5.0, max_zoom=5.0, autolock=False)
A default config for ipycytoscape with common settings.
CytoscapeConfig
¶
Bases: BaseModel
A configuration class for cytoscape objects, handling environment values like
'min_zoom'/'max_zoom' or 'panning_enabled' that handle how the rendered widget behaves.
A CytoscapeConfig can be applied to a CytoscapeWidget via CytoscapeGraph.apply_config(),
where unset values (i.e. values that are None) are ignored, and the previous settings are kept.
Attributes:
-
min_zoom(Optional[float]) –Minimum zoom level (scale factor) of the viewport.
-
max_zoom(Optional[float]) –Maximum zoom level (scale factor) of the viewport.
-
zooming_enabled(Optional[bool]) –Whether zooming of the viewport is enabled.
-
user_zooming_enabled(Optional[bool]) –Whether user-initiated zooming (scroll/pinch) is enabled.
-
panning_enabled(Optional[bool]) –Whether panning of the viewport is enabled.
-
user_panning_enabled(Optional[bool]) –Whether user-initiated panning (drag) is enabled.
-
box_selection_enabled(Optional[bool]) –Whether box (rectangle) selection of elements is enabled.
-
selection_type(Optional[Literal['single', 'additive']]) –Selection mode: 'single' replaces the selection, 'additive' adds to it.
-
touch_tap_threshold(Optional[int]) –Number of taps on a touch device required to trigger a selection.
-
desktop_tap_threshold(Optional[int]) –Number of clicks on a desktop required to trigger a selection.
-
autolock(Optional[bool]) –Whether the graph layout is automatically locked after rendering.
-
auto_ungrabify(Optional[bool]) –Whether nodes are automatically made non-grabbable (non-movable by user).
-
auto_unselectify(Optional[bool]) –Whether nodes are automatically made non-selectable by the user.
-
headless(Optional[bool]) –Whether to run in headless mode (no visual rendering).
-
style_enabled(Optional[bool]) –Whether CSS-like styling of elements is enabled.
-
hide_edges_on_viewport(Optional[bool]) –Whether to hide edges when zoomed out beyond a threshold.
-
texture_on_viewport(Optional[bool]) –Whether to use texture-based rendering for the viewport.
-
motion_blur(Optional[bool]) –Whether to apply a motion blur effect during panning/zooming.
-
motion_blur_opacity(Optional[float]) –Opacity of the motion blur trail (0.0 to 1.0).
-
wheel_sensitivity(Optional[float]) –Sensitivity multiplier for mouse-wheel zooming.
-
zoom(Optional[float]) –Initial zoom level (scale factor) of the viewport.
min_zoom
class-attribute
instance-attribute
¶
Minimum zoom level (scale factor) of the viewport.
max_zoom
class-attribute
instance-attribute
¶
Maximum zoom level (scale factor) of the viewport.
zooming_enabled
class-attribute
instance-attribute
¶
Whether zooming of the viewport is enabled.
user_zooming_enabled
class-attribute
instance-attribute
¶
Whether user-initiated zooming (scroll/pinch) is enabled.
panning_enabled
class-attribute
instance-attribute
¶
Whether panning of the viewport is enabled.
user_panning_enabled
class-attribute
instance-attribute
¶
Whether user-initiated panning (drag) is enabled.
box_selection_enabled
class-attribute
instance-attribute
¶
Whether box (rectangle) selection of elements is enabled.
selection_type
class-attribute
instance-attribute
¶
Selection mode: 'single' replaces the selection, 'additive' adds to it.
touch_tap_threshold
class-attribute
instance-attribute
¶
Number of taps on a touch device required to trigger a selection.
desktop_tap_threshold
class-attribute
instance-attribute
¶
Number of clicks on a desktop required to trigger a selection.
autolock
class-attribute
instance-attribute
¶
Whether the graph layout is automatically locked after rendering.
auto_ungrabify
class-attribute
instance-attribute
¶
Whether nodes are automatically made non-grabbable (non-movable by user).
auto_unselectify
class-attribute
instance-attribute
¶
Whether nodes are automatically made non-selectable by the user.
headless
class-attribute
instance-attribute
¶
Whether to run in headless mode (no visual rendering).
style_enabled
class-attribute
instance-attribute
¶
Whether CSS-like styling of elements is enabled.
hide_edges_on_viewport
class-attribute
instance-attribute
¶
Whether to hide edges when zoomed out beyond a threshold.
texture_on_viewport
class-attribute
instance-attribute
¶
Whether to use texture-based rendering for the viewport.
motion_blur
class-attribute
instance-attribute
¶
Whether to apply a motion blur effect during panning/zooming.
motion_blur_opacity
class-attribute
instance-attribute
¶
Opacity of the motion blur trail (0.0 to 1.0).
wheel_sensitivity
class-attribute
instance-attribute
¶
Sensitivity multiplier for mouse-wheel zooming.