Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
5dcdae4f
Commit
5dcdae4f
authored
4 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
chore: added action to request to clear ng view
parent
344c8945
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/services/state/ngViewerState.store.helper.ts
+2
-0
2 additions, 0 deletions
src/services/state/ngViewerState.store.helper.ts
src/services/state/ngViewerState/actions.ts
+27
-1
27 additions, 1 deletion
src/services/state/ngViewerState/actions.ts
with
29 additions
and
1 deletion
src/services/state/ngViewerState.store.helper.ts
+
2
−
0
View file @
5dcdae4f
...
...
@@ -8,6 +8,7 @@ import {
ngViewerActionRemoveNgLayer
,
ngViewerActionSetPerspOctantRemoval
,
ngViewerActionToggleMax
,
ngViewerActionClearView
,
}
from
'
./ngViewerState/actions
'
export
{
...
...
@@ -15,4 +16,5 @@ export {
ngViewerActionRemoveNgLayer
,
ngViewerActionSetPerspOctantRemoval
,
ngViewerActionToggleMax
,
ngViewerActionClearView
,
}
This diff is collapsed.
Click to expand it.
src/services/state/ngViewerState/actions.ts
+
27
−
1
View file @
5dcdae4f
...
...
@@ -19,4 +19,30 @@ export const ngViewerActionSetPerspOctantRemoval = createAction(
export
const
ngViewerActionToggleMax
=
createAction
(
`[ngViewerAction] toggleMax`
,
props
<
{
payload
:
{
index
:
number
}
}
>
()
)
\ No newline at end of file
)
/**
* Clear viewer view from additional layers such as PMap or connectivity
* To request view to be cleared, call
* this.store$.dispatch(
* ngViewerActionClearView({
* payload: {
* ['my-unique-id']: true
* }
* })
* )
*
* When finished, call
*
* this.store$.dispatch(
* ngViewerActionClearView({
* payload: {
* ['my-unique-id']: false
* }
* })
* )
*/
export
const
ngViewerActionClearView
=
createAction
(
`[ngViewerAction] clearView`
,
props
<
{
payload
:
{
[
key
:
string
]:
boolean
}}
>
()
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment