pub struct NodeAction {
pub type: Type,
pub destination_id: Option<String>,
pub navigation: Navigation,
pub transition: Option<Box<Transition>>,
pub preserve_scroll_position: Option<bool>,
pub overlay_relative_position: Option<Box<Vector>>,
pub reset_video_position: Option<bool>,
pub reset_scroll_position: Option<bool>,
pub reset_interactive_components: Option<bool>,
}
Expand description
NodeAction : An action that navigates to a specific node in the Figma viewer.
Fields§
§type: Type
§destination_id: Option<String>
§transition: Option<Box<Transition>>
§preserve_scroll_position: Option<bool>
Whether the scroll offsets of any scrollable elements in the current screen or overlay are preserved when navigating to the destination. This is applicable only if the layout of both the current frame and its destination are the same.
overlay_relative_position: Option<Box<Vector>>
Applicable only when navigation
is \"OVERLAY\"
and the destination is a frame with overlayPosition
equal to \"MANUAL\"
. This value represents the offset by which the overlay is opened relative to this node.
reset_video_position: Option<bool>
When true, all videos within the destination frame will reset their memorized playback position to 00:00 before starting to play.
reset_scroll_position: Option<bool>
Whether the scroll offsets of any scrollable elements in the current screen or overlay reset when navigating to the destination. This is applicable only if the layout of both the current frame and its destination are the same.
reset_interactive_components: Option<bool>
Whether the state of any interactive components in the current screen or overlay reset when navigating to the destination. This is applicable if there are interactive components in the destination frame.
Implementations§
Source§impl NodeAction
impl NodeAction
Sourcepub fn new(
type: Type,
destination_id: Option<String>,
navigation: Navigation,
transition: Option<Transition>,
) -> NodeAction
pub fn new( type: Type, destination_id: Option<String>, navigation: Navigation, transition: Option<Transition>, ) -> NodeAction
An action that navigates to a specific node in the Figma viewer.
Trait Implementations§
Source§impl Clone for NodeAction
impl Clone for NodeAction
Source§fn clone(&self) -> NodeAction
fn clone(&self) -> NodeAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more