Files
godot-docs-l10n/classes/uk/class_graphedit.rst
Rémi Verschelde c3f2364c10 Sync classref with 4.6 branch
Lots of translations invalidated (fuzzied) as we just synced Weblate.
2025-12-19 16:39:51 +01:00

1697 lines
100 KiB
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_GraphEdit:
GraphEdit
=========
**Експериментальний:** This class may be changed or removed in future versions.
**Успадковує:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
Редактор графоподібних структур із використанням :ref:`GraphNode<class_GraphNode>`.
.. rst-class:: classref-introduction-group
Опис
--------
**GraphEdit** надає інструменти для створення, обробки та відображення різноманітних графіків. Його основне призначення в движку — підтримка систем візуального програмування, таких як візуальні шейдери, але він також доступний для використання в проектах користувачів.
\ **GraphEdit** сам по собі є лише порожнім контейнером, що представляє нескінченну сітку, де можна розмістити :ref:`GraphNode<class_GraphNode>`. Кожен :ref:`GraphNode<class_GraphNode>` представляє вузол у графі, окрему одиницю даних у підключеній схемі. **GraphEdit**, у свою чергу, допомагає контролювати різні взаємодії з вузлами та між вузлами. Коли користувач намагається підключити, відключити або видалити :ref:`GraphNode<class_GraphNode>`, у **GraphEdit** видається сигнал, але за замовчуванням не виконується жодна дія. Програміст, який використовує цей елемент керування, відповідає за реалізацію необхідної логіки, щоб визначити, як слід обробляти кожен запит.
\ **Продуктивність:** настійно рекомендується ввімкнути режим використання низького процесора (див. :ref:`OS.low_processor_usage_mode<class_OS_property_low_processor_usage_mode>`) під час використання GraphEdits.
\ **Примітка:** Майте на увазі, що :ref:`Node.get_children()<class_Node_method_get_children>` також повертатиме вузол рівня підключення під назвою ``_connection_layer`` через технічні обмеження. Така поведінка може змінитися в наступних випусках.
.. rst-class:: classref-reftable-group
Властивості
----------------------
.. table::
:widths: auto
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | clip_contents | ``true`` (overrides :ref:`Control<class_Control_property_clip_contents>`) |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`connection_lines_antialiased<class_GraphEdit_property_connection_lines_antialiased>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`connection_lines_curvature<class_GraphEdit_property_connection_lines_curvature>` | ``0.5`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`connection_lines_thickness<class_GraphEdit_property_connection_lines_thickness>` | ``4.0`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`connections<class_GraphEdit_property_connections>` | ``[]`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``2`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`GridPattern<enum_GraphEdit_GridPattern>` | :ref:`grid_pattern<class_GraphEdit_property_grid_pattern>` | ``0`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`minimap_enabled<class_GraphEdit_property_minimap_enabled>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`minimap_opacity<class_GraphEdit_property_minimap_opacity>` | ``0.65`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`minimap_size<class_GraphEdit_property_minimap_size>` | ``Vector2(240, 160)`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`PanningScheme<enum_GraphEdit_PanningScheme>` | :ref:`panning_scheme<class_GraphEdit_property_panning_scheme>` | ``0`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`right_disconnects<class_GraphEdit_property_right_disconnects>` | ``false`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_offset<class_GraphEdit_property_scroll_offset>` | ``Vector2(0, 0)`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_arrange_button<class_GraphEdit_property_show_arrange_button>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_grid<class_GraphEdit_property_show_grid>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_grid_buttons<class_GraphEdit_property_show_grid_buttons>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_menu<class_GraphEdit_property_show_menu>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_minimap_button<class_GraphEdit_property_show_minimap_button>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_zoom_buttons<class_GraphEdit_property_show_zoom_buttons>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`show_zoom_label<class_GraphEdit_property_show_zoom_label>` | ``false`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`snapping_distance<class_GraphEdit_property_snapping_distance>` | ``20`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`snapping_enabled<class_GraphEdit_property_snapping_enabled>` | ``true`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`Dictionary<class_Dictionary>` | :ref:`type_names<class_GraphEdit_property_type_names>` | ``{}`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`zoom<class_GraphEdit_property_zoom>` | ``1.0`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`zoom_max<class_GraphEdit_property_zoom_max>` | ``2.0736003`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`zoom_min<class_GraphEdit_property_zoom_min>` | ``0.23256795`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`zoom_step<class_GraphEdit_property_zoom_step>` | ``1.2`` |
+------------------------------------------------------------------+--------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
.. rst-class:: classref-reftable-group
Методи
------------
.. table::
:widths: auto
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`_get_connection_line<class_GraphEdit_private_method__get_connection_line>`\ (\ from_position\: :ref:`Vector2<class_Vector2>`, to_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`_is_in_input_hotzone<class_GraphEdit_private_method__is_in_input_hotzone>`\ (\ in_node\: :ref:`Object<class_Object>`, in_port\: :ref:`int<class_int>`, mouse_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`_is_in_output_hotzone<class_GraphEdit_private_method__is_in_output_hotzone>`\ (\ in_node\: :ref:`Object<class_Object>`, in_port\: :ref:`int<class_int>`, mouse_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`_is_node_hover_valid<class_GraphEdit_private_method__is_node_hover_valid>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) |virtual| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`add_valid_connection_type<class_GraphEdit_method_add_valid_connection_type>`\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`add_valid_left_disconnect_type<class_GraphEdit_method_add_valid_left_disconnect_type>`\ (\ type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`add_valid_right_disconnect_type<class_GraphEdit_method_add_valid_right_disconnect_type>`\ (\ type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`arrange_nodes<class_GraphEdit_method_arrange_nodes>`\ (\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`attach_graph_element_to_frame<class_GraphEdit_method_attach_graph_element_to_frame>`\ (\ element\: :ref:`StringName<class_StringName>`, frame\: :ref:`StringName<class_StringName>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`clear_connections<class_GraphEdit_method_clear_connections>`\ (\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`connect_node<class_GraphEdit_method_connect_node>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`, keep_alive\: :ref:`bool<class_bool>` = false\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`detach_graph_element_from_frame<class_GraphEdit_method_detach_graph_element_from_frame>`\ (\ element\: :ref:`StringName<class_StringName>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`disconnect_node<class_GraphEdit_method_disconnect_node>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`force_connection_drag_end<class_GraphEdit_method_force_connection_drag_end>`\ (\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] | :ref:`get_attached_nodes_of_frame<class_GraphEdit_method_get_attached_nodes_of_frame>`\ (\ frame\: :ref:`StringName<class_StringName>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Dictionary<class_Dictionary>` | :ref:`get_closest_connection_at_point<class_GraphEdit_method_get_closest_connection_at_point>`\ (\ point\: :ref:`Vector2<class_Vector2>`, max_distance\: :ref:`float<class_float>` = 4.0\ ) |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_connection_count<class_GraphEdit_method_get_connection_count>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`get_connection_line<class_GraphEdit_method_get_connection_line>`\ (\ from_node\: :ref:`Vector2<class_Vector2>`, to_node\: :ref:`Vector2<class_Vector2>`\ ) |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`get_connection_list_from_node<class_GraphEdit_method_get_connection_list_from_node>`\ (\ node\: :ref:`StringName<class_StringName>`\ ) |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`get_connections_intersecting_with_rect<class_GraphEdit_method_get_connections_intersecting_with_rect>`\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`GraphFrame<class_GraphFrame>` | :ref:`get_element_frame<class_GraphEdit_method_get_element_frame>`\ (\ element\: :ref:`StringName<class_StringName>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`HBoxContainer<class_HBoxContainer>` | :ref:`get_menu_hbox<class_GraphEdit_method_get_menu_hbox>`\ (\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_node_connected<class_GraphEdit_method_is_node_connected>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_valid_connection_type<class_GraphEdit_method_is_valid_connection_type>`\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) |const| |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`remove_valid_connection_type<class_GraphEdit_method_remove_valid_connection_type>`\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`remove_valid_left_disconnect_type<class_GraphEdit_method_remove_valid_left_disconnect_type>`\ (\ type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`remove_valid_right_disconnect_type<class_GraphEdit_method_remove_valid_right_disconnect_type>`\ (\ type\: :ref:`int<class_int>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_connection_activity<class_GraphEdit_method_set_connection_activity>`\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_selected<class_GraphEdit_method_set_selected>`\ (\ node\: :ref:`Node<class_Node>`\ ) |
+------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
.. rst-class:: classref-reftable-group
Властивості теми
--------------------------------
.. table::
:widths: auto
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`activity<class_GraphEdit_theme_color_activity>` | ``Color(1, 1, 1, 1)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`connection_hover_tint_color<class_GraphEdit_theme_color_connection_hover_tint_color>` | ``Color(0, 0, 0, 0.3)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`connection_rim_color<class_GraphEdit_theme_color_connection_rim_color>` | ``Color(0.1, 0.1, 0.1, 0.6)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`connection_valid_target_tint_color<class_GraphEdit_theme_color_connection_valid_target_tint_color>` | ``Color(1, 1, 1, 0.4)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`grid_major<class_GraphEdit_theme_color_grid_major>` | ``Color(1, 1, 1, 0.2)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`grid_minor<class_GraphEdit_theme_color_grid_minor>` | ``Color(1, 1, 1, 0.05)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`selection_fill<class_GraphEdit_theme_color_selection_fill>` | ``Color(1, 1, 1, 0.3)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Color<class_Color>` | :ref:`selection_stroke<class_GraphEdit_theme_color_selection_stroke>` | ``Color(1, 1, 1, 0.8)`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`int<class_int>` | :ref:`connection_hover_thickness<class_GraphEdit_theme_constant_connection_hover_thickness>` | ``0`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`int<class_int>` | :ref:`port_hotzone_inner_extent<class_GraphEdit_theme_constant_port_hotzone_inner_extent>` | ``22`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`int<class_int>` | :ref:`port_hotzone_outer_extent<class_GraphEdit_theme_constant_port_hotzone_outer_extent>` | ``26`` |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`grid_toggle<class_GraphEdit_theme_icon_grid_toggle>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`layout<class_GraphEdit_theme_icon_layout>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`minimap_toggle<class_GraphEdit_theme_icon_minimap_toggle>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`snapping_toggle<class_GraphEdit_theme_icon_snapping_toggle>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`zoom_in<class_GraphEdit_theme_icon_zoom_in>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`zoom_out<class_GraphEdit_theme_icon_zoom_out>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`zoom_reset<class_GraphEdit_theme_icon_zoom_reset>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`menu_panel<class_GraphEdit_theme_style_menu_panel>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_GraphEdit_theme_style_panel>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel_focus<class_GraphEdit_theme_style_panel_focus>` | |
+-----------------------------------+-----------------------------------------------------------------------------------------------------------+-------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Сигнали
--------------
.. _class_GraphEdit_signal_begin_node_move:
.. rst-class:: classref-signal
**begin_node_move**\ (\ ) :ref:`🔗<class_GraphEdit_signal_begin_node_move>`
На початку руху :ref:`GraphElement<class_GraphElement>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_connection_drag_ended:
.. rst-class:: classref-signal
**connection_drag_ended**\ (\ ) :ref:`🔗<class_GraphEdit_signal_connection_drag_ended>`
Видається в кінці перетягування з’єднання.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_connection_drag_started:
.. rst-class:: classref-signal
**connection_drag_started**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, is_output\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphEdit_signal_connection_drag_started>`
Видається на початку перетягування з’єднання.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_connection_from_empty:
.. rst-class:: classref-signal
**connection_from_empty**\ (\ to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`, release_position\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_GraphEdit_signal_connection_from_empty>`
Видається, коли користувач перетягує з’єднання з вхідного порту в порожній простір графіка.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_connection_request:
.. rst-class:: classref-signal
**connection_request**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_signal_connection_request>`
Надсилається до GraphEdit, коли намагається створити з’єднання між ``from_port`` ``from_node`` :ref:`GraphNode<class_GraphNode>` і ``to_port`` ``to_node`` :ref:`GraphNode<class_GraphNode>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_connection_to_empty:
.. rst-class:: classref-signal
**connection_to_empty**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, release_position\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_GraphEdit_signal_connection_to_empty>`
Видається, коли користувач перетягує з’єднання з вихідного порту в порожній простір графіка.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_copy_nodes_request:
.. rst-class:: classref-signal
**copy_nodes_request**\ (\ ) :ref:`🔗<class_GraphEdit_signal_copy_nodes_request>`
Видається, коли цей **GraphEdit** фіксує дію ``ui_copy`` (:kbd:`Ctrl + C` за замовчуванням). Загалом цей сигнал вказує на те, що вибрані елементи :ref:`GraphElement<class_GraphElement>` слід скопіювати.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_cut_nodes_request:
.. rst-class:: classref-signal
**cut_nodes_request**\ (\ ) :ref:`🔗<class_GraphEdit_signal_cut_nodes_request>`
Видається, коли цей **GraphEdit** фіксує дію ``ui_cut`` (:kbd:`Ctrl + X` за замовчуванням). Загалом, цей сигнал вказує на те, що вибрані елементи :ref:`GraphElement<class_GraphElement>` слід вирізати.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_delete_nodes_request:
.. rst-class:: classref-signal
**delete_nodes_request**\ (\ nodes\: :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\]\ ) :ref:`🔗<class_GraphEdit_signal_delete_nodes_request>`
Видається, коли цей **GraphEdit** фіксує дію ``ui_graph_delete`` (:kbd:`Видалити` за замовчуванням).
\ ``nodes`` — це масив імен вузлів, які слід видалити. Зазвичай вони включають усі вибрані вузли.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_disconnection_request:
.. rst-class:: classref-signal
**disconnection_request**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_signal_disconnection_request>`
Надсилається до GraphEdit, коли з’єднання між ``from_port`` ``from_node`` :ref:`GraphNode<class_GraphNode>` і ``to_port`` ``to_node`` :ref:`GraphNode<class_GraphNode>` намагається видалити.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_duplicate_nodes_request:
.. rst-class:: classref-signal
**duplicate_nodes_request**\ (\ ) :ref:`🔗<class_GraphEdit_signal_duplicate_nodes_request>`
Видається, коли цей **GraphEdit** фіксує дію ``ui_graph_duplicate`` (:kbd:`Ctrl + D` за замовчуванням). Загалом цей сигнал вказує на те, що вибрані елементи :ref:`GraphElement<class_GraphElement>` слід дублювати.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_end_node_move:
.. rst-class:: classref-signal
**end_node_move**\ (\ ) :ref:`🔗<class_GraphEdit_signal_end_node_move>`
Випробувано в кінці руху :ref:`GraphElement<class_GraphElement>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_frame_rect_changed:
.. rst-class:: classref-signal
**frame_rect_changed**\ (\ frame\: :ref:`GraphFrame<class_GraphFrame>`, new_rect\: :ref:`Rect2<class_Rect2>`\ ) :ref:`🔗<class_GraphEdit_signal_frame_rect_changed>`
Увімкнено, коли :ref:`GraphFrame<class_GraphFrame>` ``frame`` має значення ``new_rect``.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_graph_elements_linked_to_frame_request:
.. rst-class:: classref-signal
**graph_elements_linked_to_frame_request**\ (\ elements\: :ref:`Array<class_Array>`, frame\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_GraphEdit_signal_graph_elements_linked_to_frame_request>`
Випускається, коли один або кілька елементів :ref:`GraphElement<class_GraphElement>` опускаються на :ref:`GraphFrame<class_GraphFrame>` під назвою ``frame``, якщо вони раніше не були приєднані до жодного іншого.
\ ``elements`` це масив :ref:`GraphElement<class_GraphElement>`, який потрібно приєднати.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_node_deselected:
.. rst-class:: classref-signal
**node_deselected**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_GraphEdit_signal_node_deselected>`
Увімкнено, коли надана :ref:`GraphElement<class_GraphElement>` вершина знезаражується.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_node_selected:
.. rst-class:: classref-signal
**node_selected**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_GraphEdit_signal_node_selected>`
Увімкнено, коли вибрано даний вузол :ref:`GraphElement<class_GraphElement>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_paste_nodes_request:
.. rst-class:: classref-signal
**paste_nodes_request**\ (\ ) :ref:`🔗<class_GraphEdit_signal_paste_nodes_request>`
Видається, коли цей **GraphEdit** фіксує дію ``ui_paste`` (:kbd:`Ctrl + V` за замовчуванням). Загалом цей сигнал вказує на те, що попередньо скопійовані елементи :ref:`GraphElement<class_GraphElement>` слід вставити.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_popup_request:
.. rst-class:: classref-signal
**popup_request**\ (\ at_position\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_GraphEdit_signal_popup_request>`
Видається, коли запитується спливаюче вікно. Відбувається після клацання правою кнопкою миші в GraphEdit. ``at_position`` — це положення вказівника миші під час надсилання сигналу.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_signal_scroll_offset_changed:
.. rst-class:: classref-signal
**scroll_offset_changed**\ (\ offset\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_GraphEdit_signal_scroll_offset_changed>`
Видається, коли користувач змінює зсув прокручування. Він не буде виданий при зміні коду.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Переліки
----------------
.. _enum_GraphEdit_PanningScheme:
.. rst-class:: classref-enumeration
enum **PanningScheme**: :ref:`🔗<enum_GraphEdit_PanningScheme>`
.. _class_GraphEdit_constant_SCROLL_ZOOMS:
.. rst-class:: classref-enumeration-constant
:ref:`PanningScheme<enum_GraphEdit_PanningScheme>` **SCROLL_ZOOMS** = ``0``
:kbd:`Колесо миші` збільшить масштаб, :kbd:`Ctrl + Колесо миші` перемістить перегляд.
.. _class_GraphEdit_constant_SCROLL_PANS:
.. rst-class:: classref-enumeration-constant
:ref:`PanningScheme<enum_GraphEdit_PanningScheme>` **SCROLL_PANS** = ``1``
:kbd:`Коліщатко миші` пересуне перегляд, :kbd:`Ctrl + Коліщатко миші` збільшить масштаб.
.. rst-class:: classref-item-separator
----
.. _enum_GraphEdit_GridPattern:
.. rst-class:: classref-enumeration
enum **GridPattern**: :ref:`🔗<enum_GraphEdit_GridPattern>`
.. _class_GraphEdit_constant_GRID_PATTERN_LINES:
.. rst-class:: classref-enumeration-constant
:ref:`GridPattern<enum_GraphEdit_GridPattern>` **GRID_PATTERN_LINES** = ``0``
Намалюйте сітку суцільними лініями.
.. _class_GraphEdit_constant_GRID_PATTERN_DOTS:
.. rst-class:: classref-enumeration-constant
:ref:`GridPattern<enum_GraphEdit_GridPattern>` **GRID_PATTERN_DOTS** = ``1``
Намалюйте сітку за допомогою точок.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи властивостей
------------------------------------
.. _class_GraphEdit_property_connection_lines_antialiased:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **connection_lines_antialiased** = ``true`` :ref:`🔗<class_GraphEdit_property_connection_lines_antialiased>`
.. rst-class:: classref-property-setget
- |void| **set_connection_lines_antialiased**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_connection_lines_antialiased**\ (\ )
Якщо ``true``, лінії між вузлами використовуватимуть згладжування.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_connection_lines_curvature:
.. rst-class:: classref-property
:ref:`float<class_float>` **connection_lines_curvature** = ``0.5`` :ref:`🔗<class_GraphEdit_property_connection_lines_curvature>`
.. rst-class:: classref-property-setget
- |void| **set_connection_lines_curvature**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_connection_lines_curvature**\ (\ )
Кривизна ліній між вузлами. 0 призводить до прямих ліній.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_connection_lines_thickness:
.. rst-class:: classref-property
:ref:`float<class_float>` **connection_lines_thickness** = ``4.0`` :ref:`🔗<class_GraphEdit_property_connection_lines_thickness>`
.. rst-class:: classref-property-setget
- |void| **set_connection_lines_thickness**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_connection_lines_thickness**\ (\ )
Товщина ліній між вузлами.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_connections:
.. rst-class:: classref-property
:ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **connections** = ``[]`` :ref:`🔗<class_GraphEdit_property_connections>`
.. rst-class:: classref-property-setget
- |void| **set_connections**\ (\ value\: :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\]\ )
- :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **get_connection_list**\ (\ )
Зв’язки між :ref:`GraphNode<class_GraphNode>`.
З’єднання представлено як :ref:`Dictionary<class_Dictionary>` у формі:
::
{
from_node: StringName,
from_port: int,
to_node: StringName,
to_port: int,
keep_alive: bool
}
З’єднання з ``keep_alive``, встановленим на ``false``, можуть автоматично видалятися, якщо під час перемальовування є недійсними.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_grid_pattern:
.. rst-class:: classref-property
:ref:`GridPattern<enum_GraphEdit_GridPattern>` **grid_pattern** = ``0`` :ref:`🔗<class_GraphEdit_property_grid_pattern>`
.. rst-class:: classref-property-setget
- |void| **set_grid_pattern**\ (\ value\: :ref:`GridPattern<enum_GraphEdit_GridPattern>`\ )
- :ref:`GridPattern<enum_GraphEdit_GridPattern>` **get_grid_pattern**\ (\ )
Шаблон, який використовується для малювання сітки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_minimap_enabled:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **minimap_enabled** = ``true`` :ref:`🔗<class_GraphEdit_property_minimap_enabled>`
.. rst-class:: classref-property-setget
- |void| **set_minimap_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_minimap_enabled**\ (\ )
Якщо ``true``, міні-карта видима.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_minimap_opacity:
.. rst-class:: classref-property
:ref:`float<class_float>` **minimap_opacity** = ``0.65`` :ref:`🔗<class_GraphEdit_property_minimap_opacity>`
.. rst-class:: classref-property-setget
- |void| **set_minimap_opacity**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_minimap_opacity**\ (\ )
Непрозорість прямокутника мінікарти.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_minimap_size:
.. rst-class:: classref-property
:ref:`Vector2<class_Vector2>` **minimap_size** = ``Vector2(240, 160)`` :ref:`🔗<class_GraphEdit_property_minimap_size>`
.. rst-class:: classref-property-setget
- |void| **set_minimap_size**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
- :ref:`Vector2<class_Vector2>` **get_minimap_size**\ (\ )
Розмір прямокутника мінікарти. Сама карта базується на розмірі сітки та масштабується відповідно до цього прямокутника.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_panning_scheme:
.. rst-class:: classref-property
:ref:`PanningScheme<enum_GraphEdit_PanningScheme>` **panning_scheme** = ``0`` :ref:`🔗<class_GraphEdit_property_panning_scheme>`
.. rst-class:: classref-property-setget
- |void| **set_panning_scheme**\ (\ value\: :ref:`PanningScheme<enum_GraphEdit_PanningScheme>`\ )
- :ref:`PanningScheme<enum_GraphEdit_PanningScheme>` **get_panning_scheme**\ (\ )
Визначає схему керування панорамуванням за допомогою колеса миші.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_right_disconnects:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **right_disconnects** = ``false`` :ref:`🔗<class_GraphEdit_property_right_disconnects>`
.. rst-class:: classref-property-setget
- |void| **set_right_disconnects**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_right_disconnects_enabled**\ (\ )
Якщо ``true``, увімкнено роз’єднання існуючих з’єднань у GraphEdit шляхом перетягування правого кінця.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_scroll_offset:
.. rst-class:: classref-property
:ref:`Vector2<class_Vector2>` **scroll_offset** = ``Vector2(0, 0)`` :ref:`🔗<class_GraphEdit_property_scroll_offset>`
.. rst-class:: classref-property-setget
- |void| **set_scroll_offset**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
- :ref:`Vector2<class_Vector2>` **get_scroll_offset**\ (\ )
Зсув прокручування.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_arrange_button:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_arrange_button** = ``true`` :ref:`🔗<class_GraphEdit_property_show_arrange_button>`
.. rst-class:: classref-property-setget
- |void| **set_show_arrange_button**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_arrange_button**\ (\ )
Якщо ``true``, відображається кнопка для автоматичного впорядкування вузлів графа.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_grid:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_grid** = ``true`` :ref:`🔗<class_GraphEdit_property_show_grid>`
.. rst-class:: classref-property-setget
- |void| **set_show_grid**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_grid**\ (\ )
Якщо ``true``, сітку видно.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_grid_buttons:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_grid_buttons** = ``true`` :ref:`🔗<class_GraphEdit_property_show_grid_buttons>`
.. rst-class:: classref-property-setget
- |void| **set_show_grid_buttons**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_grid_buttons**\ (\ )
Якщо ``true``, відображаються кнопки, які дозволяють налаштувати сітку та параметри прив’язки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_menu:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_menu** = ``true`` :ref:`🔗<class_GraphEdit_property_show_menu>`
.. rst-class:: classref-property-setget
- |void| **set_show_menu**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_menu**\ (\ )
Якщо ``true``, панель інструментів меню буде видимою.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_minimap_button:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_minimap_button** = ``true`` :ref:`🔗<class_GraphEdit_property_show_minimap_button>`
.. rst-class:: classref-property-setget
- |void| **set_show_minimap_button**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_minimap_button**\ (\ )
Якщо ``true``, кнопка для перемикання міні-карти відображається.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_zoom_buttons:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_zoom_buttons** = ``true`` :ref:`🔗<class_GraphEdit_property_show_zoom_buttons>`
.. rst-class:: classref-property-setget
- |void| **set_show_zoom_buttons**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_zoom_buttons**\ (\ )
Якщо ``true``, відображаються кнопки, які дозволяють змінювати та скидати рівень масштабування.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_show_zoom_label:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **show_zoom_label** = ``false`` :ref:`🔗<class_GraphEdit_property_show_zoom_label>`
.. rst-class:: classref-property-setget
- |void| **set_show_zoom_label**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_showing_zoom_label**\ (\ )
Якщо ``true``, буде видно мітку з поточним рівнем масштабування. Рівень масштабування відображається у відсотках.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_snapping_distance:
.. rst-class:: classref-property
:ref:`int<class_int>` **snapping_distance** = ``20`` :ref:`🔗<class_GraphEdit_property_snapping_distance>`
.. rst-class:: classref-property-setget
- |void| **set_snapping_distance**\ (\ value\: :ref:`int<class_int>`\ )
- :ref:`int<class_int>` **get_snapping_distance**\ (\ )
Відстань прив’язки в пікселях також визначає відстань між лініями сітки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_snapping_enabled:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **snapping_enabled** = ``true`` :ref:`🔗<class_GraphEdit_property_snapping_enabled>`
.. rst-class:: classref-property-setget
- |void| **set_snapping_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_snapping_enabled**\ (\ )
Якщо ``true``, вмикає прив’язку.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_type_names:
.. rst-class:: classref-property
:ref:`Dictionary<class_Dictionary>` **type_names** = ``{}`` :ref:`🔗<class_GraphEdit_property_type_names>`
.. rst-class:: classref-property-setget
- |void| **set_type_names**\ (\ value\: :ref:`Dictionary<class_Dictionary>`\ )
- :ref:`Dictionary<class_Dictionary>` **get_type_names**\ (\ )
:ref:`Dictionary<class_Dictionary>` of human-readable port type names.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_zoom:
.. rst-class:: classref-property
:ref:`float<class_float>` **zoom** = ``1.0`` :ref:`🔗<class_GraphEdit_property_zoom>`
.. rst-class:: classref-property-setget
- |void| **set_zoom**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_zoom**\ (\ )
Поточне значення масштабу.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_zoom_max:
.. rst-class:: classref-property
:ref:`float<class_float>` **zoom_max** = ``2.0736003`` :ref:`🔗<class_GraphEdit_property_zoom_max>`
.. rst-class:: classref-property-setget
- |void| **set_zoom_max**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_zoom_max**\ (\ )
Верхня межа масштабування.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_zoom_min:
.. rst-class:: classref-property
:ref:`float<class_float>` **zoom_min** = ``0.23256795`` :ref:`🔗<class_GraphEdit_property_zoom_min>`
.. rst-class:: classref-property-setget
- |void| **set_zoom_min**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_zoom_min**\ (\ )
Нижня межа масштабування.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_property_zoom_step:
.. rst-class:: classref-property
:ref:`float<class_float>` **zoom_step** = ``1.2`` :ref:`🔗<class_GraphEdit_property_zoom_step>`
.. rst-class:: classref-property-setget
- |void| **set_zoom_step**\ (\ value\: :ref:`float<class_float>`\ )
- :ref:`float<class_float>` **get_zoom_step**\ (\ )
Крок кожного рівня масштабування.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи методів
--------------------------
.. _class_GraphEdit_private_method__get_connection_line:
.. rst-class:: classref-method
:ref:`PackedVector2Array<class_PackedVector2Array>` **_get_connection_line**\ (\ from_position\: :ref:`Vector2<class_Vector2>`, to_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| |const| :ref:`🔗<class_GraphEdit_private_method__get_connection_line>`
Віртуальний метод, який можна змінити, щоб налаштувати спосіб малювання з’єднань.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_private_method__is_in_input_hotzone:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **_is_in_input_hotzone**\ (\ in_node\: :ref:`Object<class_Object>`, in_port\: :ref:`int<class_int>`, mouse_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| :ref:`🔗<class_GraphEdit_private_method__is_in_input_hotzone>`
Повертає, чи знаходиться :ref:`mouse_position<class_GraphEdit_property_mouse_position>` у гарячій зоні введення.
За замовчуванням гаряча зона — це :ref:`Rect2<class_Rect2>`, розташована таким чином, що її центр знаходиться в ``in_node``.\ :ref:`GraphNode.get_input_port_position()<class_GraphNode_method_get_input_port_position>`\ (``in_port``) (Для випадку виведення замість цього викличте :ref:`GraphNode.get_output_port_position()<class_GraphNode_method_get_output_port_position>`). Ширина гарячої зони вдвічі перевищує властивість теми ``port_grab_distance_horizontal``, а її висота вдвічі перевищує ``port_grab_distance_vertical``.
Нижче наведено зразок коду, який допоможе почати:
::
func _is_in_input_hotzone(in_node, in_port, mouse_position):
var port_size = Vector2(get_theme_constant("port_grab_distance_horizontal"), get_theme_constant("port_grab_distance_vertical"))
var port_pos = in_node.get_position() + in_node.get_input_port_position(in_port) - port_size / 2
var rect = Rect2(port_pos, port_size)
return rect.has_point(mouse_position)
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_private_method__is_in_output_hotzone:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **_is_in_output_hotzone**\ (\ in_node\: :ref:`Object<class_Object>`, in_port\: :ref:`int<class_int>`, mouse_position\: :ref:`Vector2<class_Vector2>`\ ) |virtual| :ref:`🔗<class_GraphEdit_private_method__is_in_output_hotzone>`
Повертає, чи знаходиться ``mouse_position`` у гарячій зоні виведення. Для отримання додаткової інформації про гарячі зони див. :ref:`_is_in_input_hotzone()<class_GraphEdit_private_method__is_in_input_hotzone>`.
Нижче наведено зразок коду, який допоможе почати:
::
func _is_in_output_hotzone(in_node, in_port, mouse_position):
var port_size = Vector2(get_theme_constant("port_grab_distance_horizontal"), get_theme_constant("port_grab_distance_vertical"))
var port_pos = in_node.get_position() + in_node.get_output_port_position(in_port) - port_size / 2
var rect = Rect2(port_pos, port_size)
return rect.has_point(mouse_position)
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_private_method__is_node_hover_valid:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **_is_node_hover_valid**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) |virtual| :ref:`🔗<class_GraphEdit_private_method__is_node_hover_valid>`
Цей віртуальний метод можна використовувати для введення додаткового виявлення помилок, коли користувач перетягує з’єднання через дійсний порт.
Поверніть ``true``, якщо з’єднання справді дійсне, або ``false``, якщо з’єднання неможливе. Якщо підключення неможливе, прив’язка до порту і, отже, запит на підключення до цього порту не відбудеться.
У цьому прикладі з’єднання з тим самим вузлом пригнічено:
.. tabs::
.. code-tab:: gdscript
func _is_node_hover_valid(from, from_port, to, to_port):
return from != to
.. code-tab:: csharp
public override bool _IsNodeHoverValid(StringName fromNode, int fromPort, StringName toNode, int toPort)
{
return fromNode != toNode;
}
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_add_valid_connection_type:
.. rst-class:: classref-method
|void| **add_valid_connection_type**\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_add_valid_connection_type>`
Дозволяє підключення між двома різними типами портів. Тип порту визначається окремо для лівого та правого портів кожного слота за допомогою методу :ref:`GraphNode.set_slot()<class_GraphNode_method_set_slot>`.
Дивіться також :ref:`is_valid_connection_type()<class_GraphEdit_method_is_valid_connection_type>` і :ref:`remove_valid_connection_type()<class_GraphEdit_method_remove_valid_connection_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_add_valid_left_disconnect_type:
.. rst-class:: classref-method
|void| **add_valid_left_disconnect_type**\ (\ type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_add_valid_left_disconnect_type>`
Дозволяє відключати вузли під час перетягування з лівого порту слота :ref:`GraphNode<class_GraphNode>`, якщо він має вказаний тип. Дивіться також :ref:`remove_valid_left_disconnect_type()<class_GraphEdit_method_remove_valid_left_disconnect_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_add_valid_right_disconnect_type:
.. rst-class:: classref-method
|void| **add_valid_right_disconnect_type**\ (\ type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_add_valid_right_disconnect_type>`
Дозволяє відключати вузли під час перетягування з правого порту слота :ref:`GraphNode<class_GraphNode>`, якщо він має вказаний тип. Дивіться також :ref:`remove_valid_right_disconnect_type()<class_GraphEdit_method_remove_valid_right_disconnect_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_arrange_nodes:
.. rst-class:: classref-method
|void| **arrange_nodes**\ (\ ) :ref:`🔗<class_GraphEdit_method_arrange_nodes>`
Змінює розташування вибраних вузлів у макеті з мінімальними перетинами між з’єднаннями та рівномірним горизонтальним і вертикальним проміжками між вузлами.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_attach_graph_element_to_frame:
.. rst-class:: classref-method
|void| **attach_graph_element_to_frame**\ (\ element\: :ref:`StringName<class_StringName>`, frame\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_GraphEdit_method_attach_graph_element_to_frame>`
Приєднує ``element`` :ref:`GraphElement<class_GraphElement>` до ``frame`` :ref:`GraphFrame<class_GraphFrame>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_clear_connections:
.. rst-class:: classref-method
|void| **clear_connections**\ (\ ) :ref:`🔗<class_GraphEdit_method_clear_connections>`
Видаляє всі зв'язки між вузлами.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_connect_node:
.. rst-class:: classref-method
:ref:`Error<enum_@GlobalScope_Error>` **connect_node**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`, keep_alive\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_GraphEdit_method_connect_node>`
Створіть з’єднання між ``from_port`` ``from_node`` :ref:`GraphNode<class_GraphNode>` і ``to_port`` ``to_node`` :ref:`GraphNode<class_GraphNode>`. Якщо підключення вже існує, підключення не створюється.
З’єднання з ``keep_alive``, встановленим на ``false``, можуть автоматично видалятися, якщо під час перемальовування є недійсними.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_detach_graph_element_from_frame:
.. rst-class:: classref-method
|void| **detach_graph_element_from_frame**\ (\ element\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_GraphEdit_method_detach_graph_element_from_frame>`
Від’єднує ``element`` :ref:`GraphElement<class_GraphElement>` від :ref:`GraphFrame<class_GraphFrame>`, до якого він зараз прикріплений.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_disconnect_node:
.. rst-class:: classref-method
|void| **disconnect_node**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_disconnect_node>`
Видаляє з’єднання між ``from_port`` ``from_node`` :ref:`GraphNode<class_GraphNode>` і ``to_port`` ``to_node`` :ref:`GraphNode<class_GraphNode>`. Якщо з’єднання не існує, жодне з’єднання не видаляється.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_force_connection_drag_end:
.. rst-class:: classref-method
|void| **force_connection_drag_end**\ (\ ) :ref:`🔗<class_GraphEdit_method_force_connection_drag_end>`
Завершує створення поточного підключення. Іншими словами, якщо ви перетягуєте з’єднання, ви можете використати цей метод, щоб перервати процес і видалити рядок, який слідує за курсором.
Це найкраще використовувати разом із :ref:`connection_drag_started<class_GraphEdit_signal_connection_drag_started>` і :ref:`connection_drag_ended<class_GraphEdit_signal_connection_drag_ended>`, щоб додати спеціальну поведінку, як-от додавання вузлів за допомогою ярликів.
\ **Примітка.** Цей метод пригнічує будь-які інші сигнали запиту на з’єднання, крім :ref:`connection_drag_ended<class_GraphEdit_signal_connection_drag_ended>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_attached_nodes_of_frame:
.. rst-class:: classref-method
:ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] **get_attached_nodes_of_frame**\ (\ frame\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_GraphEdit_method_get_attached_nodes_of_frame>`
Повертає масив імен вузлів, які приєднані до :ref:`GraphFrame<class_GraphFrame>` із заданим іменем.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_closest_connection_at_point:
.. rst-class:: classref-method
:ref:`Dictionary<class_Dictionary>` **get_closest_connection_at_point**\ (\ point\: :ref:`Vector2<class_Vector2>`, max_distance\: :ref:`float<class_float>` = 4.0\ ) |const| :ref:`🔗<class_GraphEdit_method_get_closest_connection_at_point>`
Повертає найближче з’єднання з заданою точкою простору екрана. Якщо з’єднання не знайдено в межах ``max_distance`` пікселів, повертається порожній :ref:`Dictionary<class_Dictionary>`.
З’єднання представлено як :ref:`Dictionary<class_Dictionary>` у формі:
::
{
from_node: StringName,
from_port: int,
to_node: StringName,
to_port: int,
keep_alive: bool
}
Наприклад, отримати з’єднання в заданому положенні миші можна таким чином:
.. tabs::
.. code-tab:: gdscript
var connection = get_closest_connection_at_point(mouse_event.get_position())
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_connection_count:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_connection_count**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_get_connection_count>`
Повертає кількість підключень від ``from_port`` до ``from_node``.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_connection_line:
.. rst-class:: classref-method
:ref:`PackedVector2Array<class_PackedVector2Array>` **get_connection_line**\ (\ from_node\: :ref:`Vector2<class_Vector2>`, to_node\: :ref:`Vector2<class_Vector2>`\ ) |const| :ref:`🔗<class_GraphEdit_method_get_connection_line>`
Повертає точки, які створюють з’єднання між ``from_node`` і ``to_node``.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_connection_list_from_node:
.. rst-class:: classref-method
:ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **get_connection_list_from_node**\ (\ node\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_GraphEdit_method_get_connection_list_from_node>`
Повертає :ref:`Array<class_Array>`, що містить список усіх з'єднань для ``node``.
З'єднання представлено як :ref:`Dictionary<class_Dictionary>` у вигляді:
::
{
from_node: StringName,
from_port: int,
to_node: StringName,
to_port: int,
keep_alive: bool
}
\ **Приклад:** Отримати всі з’єднання на певному порту:
::
func get_connection_list_from_port(node, port):
var connections = get_connection_list_from_node(node)
var result = []
for connection in connections:
var dict = {}
if connection["from_node"] == node and connection["from_port"] == port:
dict["node"] = connection["to_node"]
dict["port"] = connection["to_port"]
dict["type"] = "left"
result.push_back(dict)
elif connection["to_node"] == node and connection["to_port"] == port:
dict["node"] = connection["from_node"]
dict["port"] = connection["from_port"]
dict["type"] = "right"
result.push_back(dict)
return result
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_connections_intersecting_with_rect:
.. rst-class:: classref-method
:ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **get_connections_intersecting_with_rect**\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| :ref:`🔗<class_GraphEdit_method_get_connections_intersecting_with_rect>`
Повертає :ref:`Array<class_Array>`, що містить список з’єднань, які перетинаються з заданим :ref:`Rect2<class_Rect2>`.
З’єднання представлено як :ref:`Dictionary<class_Dictionary>` у формі:
::
{
from_node: StringName,
from_port: int,
to_node: StringName,
to_port: int,
keep_alive: bool
}
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_element_frame:
.. rst-class:: classref-method
:ref:`GraphFrame<class_GraphFrame>` **get_element_frame**\ (\ element\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_GraphEdit_method_get_element_frame>`
Повертаємо :ref:`GraphFrame<class_GraphFrame>`, що містить :ref:`GraphElement<class_GraphElement>` з вказаною назвою.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_get_menu_hbox:
.. rst-class:: classref-method
:ref:`HBoxContainer<class_HBoxContainer>` **get_menu_hbox**\ (\ ) :ref:`🔗<class_GraphEdit_method_get_menu_hbox>`
Отримує :ref:`HBoxContainer<class_HBoxContainer>`, який містить елементи керування масштабуванням і прив’язкою сітки у верхньому лівому куті графіка. Ви можете використовувати цей метод, щоб змінити розташування панелі інструментів або додати до неї власні елементи керування.
\ **Попередження:** Це обов’язковий внутрішній вузол, його видалення та звільнення може призвести до збою. Якщо ви бажаєте приховати його чи будь-який із його дочірніх елементів, скористайтеся властивістю :ref:`CanvasItem.visible<class_CanvasItem_property_visible>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_is_node_connected:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **is_node_connected**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_is_node_connected>`
Повертає ``true``, якщо ``from_port`` ``from_node`` :ref:`GraphNode<class_GraphNode>` підключено до ``to_port`` ``to_node`` :ref:`GraphNode<class_GraphNode>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_is_valid_connection_type:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **is_valid_connection_type**\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphEdit_method_is_valid_connection_type>`
Повертає, чи можливо встановити з’єднання між двома різними типами портів. Тип порту визначається окремо для лівого та правого портів кожного слота за допомогою методу :ref:`GraphNode.set_slot()<class_GraphNode_method_set_slot>`.
Дивіться також :ref:`add_valid_connection_type()<class_GraphEdit_method_add_valid_connection_type>` і :ref:`remove_valid_connection_type()<class_GraphEdit_method_remove_valid_connection_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_remove_valid_connection_type:
.. rst-class:: classref-method
|void| **remove_valid_connection_type**\ (\ from_type\: :ref:`int<class_int>`, to_type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_remove_valid_connection_type>`
Забороняє з’єднання між двома різними типами портів, раніше дозволене :ref:`add_valid_connection_type()<class_GraphEdit_method_add_valid_connection_type>`. Тип порту визначається окремо для лівого та правого портів кожного слота за допомогою методу :ref:`GraphNode.set_slot()<class_GraphNode_method_set_slot>`.
Дивіться також :ref:`is_valid_connection_type()<class_GraphEdit_method_is_valid_connection_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_remove_valid_left_disconnect_type:
.. rst-class:: classref-method
|void| **remove_valid_left_disconnect_type**\ (\ type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_remove_valid_left_disconnect_type>`
Disallows to disconnect nodes when dragging from the left port of the :ref:`GraphNode<class_GraphNode>`'s slot if it has the specified type. Use this to disable a disconnection previously allowed with :ref:`add_valid_left_disconnect_type()<class_GraphEdit_method_add_valid_left_disconnect_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_remove_valid_right_disconnect_type:
.. rst-class:: classref-method
|void| **remove_valid_right_disconnect_type**\ (\ type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphEdit_method_remove_valid_right_disconnect_type>`
Disallows to disconnect nodes when dragging from the right port of the :ref:`GraphNode<class_GraphNode>`'s slot if it has the specified type. Use this to disable a disconnection previously allowed with :ref:`add_valid_right_disconnect_type()<class_GraphEdit_method_add_valid_right_disconnect_type>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_set_connection_activity:
.. rst-class:: classref-method
|void| **set_connection_activity**\ (\ from_node\: :ref:`StringName<class_StringName>`, from_port\: :ref:`int<class_int>`, to_node\: :ref:`StringName<class_StringName>`, to_port\: :ref:`int<class_int>`, amount\: :ref:`float<class_float>`\ ) :ref:`🔗<class_GraphEdit_method_set_connection_activity>`
Встановлює колір з’єднання між ``from_node`` ``from_port`` і ``to_node`` ``to_port`` кольором, наданим у властивості теми :ref:`activity<class_GraphEdit_theme_color_activity>`. Колір лінійно інтерполюється між кольором з’єднання та кольором активності, використовуючи ``amount`` як вагу.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_method_set_selected:
.. rst-class:: classref-method
|void| **set_selected**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_GraphEdit_method_set_selected>`
Встановлює вказаний ``node`` як обраний.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описи тематичної нерухомості
--------------------------------------------------------
.. _class_GraphEdit_theme_color_activity:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **activity** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_GraphEdit_theme_color_activity>`
Колір, до якого інтерполюється лінія з’єднання на основі значення активності з’єднання (див. :ref:`set_connection_activity()<class_GraphEdit_method_set_connection_activity>`).
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_connection_hover_tint_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **connection_hover_tint_color** = ``Color(0, 0, 0, 0.3)`` :ref:`🔗<class_GraphEdit_theme_color_connection_hover_tint_color>`
Колір, який зливається з лінією з’єднання, коли миша наводиться на неї.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_connection_rim_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **connection_rim_color** = ``Color(0.1, 0.1, 0.1, 0.6)`` :ref:`🔗<class_GraphEdit_theme_color_connection_rim_color>`
Колір обідка навколо кожної лінії з’єднання, який використовується для того, щоб лінії, що перетинаються, були більш помітними.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_connection_valid_target_tint_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **connection_valid_target_tint_color** = ``Color(1, 1, 1, 0.4)`` :ref:`🔗<class_GraphEdit_theme_color_connection_valid_target_tint_color>`
Колір, який змішується з лінією з’єднання, коли поточне перетягнуте з’єднання наводиться на дійсний цільовий порт.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_grid_major:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **grid_major** = ``Color(1, 1, 1, 0.2)`` :ref:`🔗<class_GraphEdit_theme_color_grid_major>`
Колір основних ліній/точок сітки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_grid_minor:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **grid_minor** = ``Color(1, 1, 1, 0.05)`` :ref:`🔗<class_GraphEdit_theme_color_grid_minor>`
Колір другорядних ліній/точок сітки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_selection_fill:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **selection_fill** = ``Color(1, 1, 1, 0.3)`` :ref:`🔗<class_GraphEdit_theme_color_selection_fill>`
Колір заливки прямокутника виділення.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_color_selection_stroke:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **selection_stroke** = ``Color(1, 1, 1, 0.8)`` :ref:`🔗<class_GraphEdit_theme_color_selection_stroke>`
Колір контуру виділеного прямокутника.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_constant_connection_hover_thickness:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **connection_hover_thickness** = ``0`` :ref:`🔗<class_GraphEdit_theme_constant_connection_hover_thickness>`
Widens the line of a connection when the mouse is hovering over it by a percentage factor. A value of ``0`` disables the highlight. A value of ``100`` doubles the line width.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_constant_port_hotzone_inner_extent:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **port_hotzone_inner_extent** = ``22`` :ref:`🔗<class_GraphEdit_theme_constant_port_hotzone_inner_extent>`
Горизонтальний діапазон, у межах якого можна захопити порт (внутрішня сторона).
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_constant_port_hotzone_outer_extent:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **port_hotzone_outer_extent** = ``26`` :ref:`🔗<class_GraphEdit_theme_constant_port_hotzone_outer_extent>`
Горизонтальний діапазон, у межах якого можна захопити порт (зовнішня сторона).
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_grid_toggle:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **grid_toggle** :ref:`🔗<class_GraphEdit_theme_icon_grid_toggle>`
Піктограма кнопки перемикання сітки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_layout:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **layout** :ref:`🔗<class_GraphEdit_theme_icon_layout>`
Піктограма кнопки макета для автоматичного впорядкування графіка.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_minimap_toggle:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **minimap_toggle** :ref:`🔗<class_GraphEdit_theme_icon_minimap_toggle>`
Піктограма кнопки перемикання міні-карти.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_snapping_toggle:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **snapping_toggle** :ref:`🔗<class_GraphEdit_theme_icon_snapping_toggle>`
Значок кнопки перемикання прив’язки.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_zoom_in:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **zoom_in** :ref:`🔗<class_GraphEdit_theme_icon_zoom_in>`
Піктограма для кнопки збільшення.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_zoom_out:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **zoom_out** :ref:`🔗<class_GraphEdit_theme_icon_zoom_out>`
Піктограма для кнопки зменшення.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_icon_zoom_reset:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **zoom_reset** :ref:`🔗<class_GraphEdit_theme_icon_zoom_reset>`
Значок кнопки скидання масштабу.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_style_menu_panel:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **menu_panel** :ref:`🔗<class_GraphEdit_theme_style_menu_panel>`
.. container:: contribute
There is currently no description for this theme property. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_style_panel:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_GraphEdit_theme_style_panel>`
Фон, намальований під сіткою.
.. rst-class:: classref-item-separator
----
.. _class_GraphEdit_theme_style_panel_focus:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **panel_focus** :ref:`🔗<class_GraphEdit_theme_style_panel_focus>`
:ref:`StyleBox<class_StyleBox>` використовується, коли фокусовано **GraphEdit** (при використанні з допоміжними програмами).
.. |virtual| replace:: :abbr:`virtual (Зазвичай, цей метод перевизначається користувачем, щоб він мав вплив.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Цей метод не має побічних ефектів. Не змінює ніяку змінну екземпляра об'єкта.)`
.. |vararg| replace:: :abbr:`vararg (Цей метод приймає будь-яке число аргументів після описаних тут.)`
.. |constructor| replace:: :abbr:`constructor (Цей метод використовується для побудови типів.)`
.. |static| replace:: :abbr:`static (Цей метод не потребує екземпляра для виклику, його можна викликати безпосередньо за допомогою назви класу.)`
.. |operator| replace:: :abbr:`operator (Цей метод описує дійсний оператор для взаємодії з цим типом як з лівим операндом.)`
.. |bitfield| replace:: :abbr:`BitField (Це значення є цілим числом, складеним у вигляді бітової маски з наступних прапорів.)`
.. |void| replace:: :abbr:`void (Значення не повертається.)`