-
Notifications
You must be signed in to change notification settings - Fork 45
docs(editor): consolidate instructions for selecting and navigating #747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lancesnider
wants to merge
4
commits into
main
Choose a base branch
from
selection-navigation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| --- | ||
| title: "Selection and Navigation" | ||
| description: "Select objects, move through nested groups, and navigate the stage." | ||
| --- | ||
|
|
||
| import { YouTube } from '/snippets/youtube.mdx' | ||
|
|
||
| Use selection and navigation controls to choose objects, move through nested groups, and move around the stage. | ||
|
|
||
| <Tip> | ||
| For a complete list of shortcuts, see [Keyboard Shortcuts](/editor/keyboard-shortcuts). | ||
| </Tip> | ||
|
|
||
| ## Selecting Objects | ||
|
|
||
| <YouTube id="xQK498Y1J8M" /> | ||
|
|
||
| Click an object to select it. To select multiple objects, drag over them to create a marquee selection. | ||
|
|
||
| Hold `Shift` while clicking or dragging to add objects to the current selection or remove selected objects. | ||
|
|
||
| ### Select Objects Inside Groups | ||
|
|
||
| To select an object inside a group, double-click the object. This moves you one level down in the hierarchy, so you can select objects inside that group. | ||
|
|
||
|  | ||
|
|
||
| ### Deep Select | ||
|
|
||
| To select an object inside nested groups, hold `⌘` on macOS or `Ctrl` on Windows, then click the object. | ||
|
|
||
| Deep select lets you select an object directly, even when it is inside multiple groups. | ||
|
|
||
| <Note> | ||
| [Targets](/editor/fundamentals/groups#target) are directly selectable on the stage. You don't need to use **Deep Select** to select them. | ||
| </Note> | ||
|
|
||
|  | ||
|
|
||
| ### Select Behind | ||
|
|
||
| When you hover over an object on the stage, Rive outlines the object that will be selected if you click. | ||
|
|
||
| If multiple objects overlap, press `Alt` to cycle through objects under the cursor. When the object you want is outlined, click to select it. | ||
|
|
||
|  | ||
|
|
||
| ### Moving Up and Down the Hierarchy | ||
|
|
||
| Use `Enter` and `Esc` to move through nested objects in the hierarchy. | ||
|
|
||
| * Press `Enter` to move down into the selected group and select its first child. | ||
| * Press `Esc` to move up and select the parent of the current selection. | ||
|
|
||
|  | ||
|
|
||
| ## Navigating the Stage | ||
|
|
||
| ### Pan | ||
|
|
||
| To pan the stage, right-click and drag. | ||
|
|
||
| You can also hold `Spacebar` to temporarily switch to the Pan tool, then click and drag to move around the stage. | ||
|
|
||
| If you're using a trackpad, scroll left or right to pan horizontally. | ||
|
|
||
|  | ||
|
|
||
| ### Zoom | ||
|
|
||
| To zoom in or out, place your cursor over the stage, then hold `⌘` on macOS or `Ctrl` on Windows and scroll. | ||
|  | ||
|
|
||
| You can also use keyboard shortcuts: | ||
|
|
||
| * Press `+` to zoom in. | ||
| * Press `-` to zoom out. | ||
| * Press `⌘` + `0` on macOS or `Ctrl` + `0` on Windows to return to 100%. | ||
|
|
||
| ### Fit Selection | ||
|
|
||
| Press `F` to fit the current selection in the viewable stage area. | ||
|
|
||
|  | ||
|
|
||
| If an object is selected, Rive fits that object in view. If an artboard is selected, Rive fits the artboard in view. | ||
|
|
||
| <Tip> | ||
| If you lose track of an artboard or object on the stage, select it in the hierarchy and press `F` to fit it in view. | ||
| </Tip> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.