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
582e5d0e
Commit
582e5d0e
authored
2 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: annotation color
parent
e6a4b670
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
deploy/csp/index.js
+1
-0
1 addition, 0 deletions
deploy/csp/index.js
src/viewerModule/nehuba/annotation/service.ts
+3
-1
3 additions, 1 deletion
src/viewerModule/nehuba/annotation/service.ts
with
4 additions
and
1 deletion
deploy/csp/index.js
+
1
−
0
View file @
582e5d0e
...
...
@@ -108,6 +108,7 @@ module.exports = {
"
'self'
"
,
...
userScriptSrc
,
'
unpkg.com/kg-dataset-previewer@1.2.0/
'
,
// preview component
'
cdnjs.cloudflare.com/ajax/libs/d3/
'
,
// required for preview component
'
cdnjs.cloudflare.com/ajax/libs/mathjax/
'
,
// math jax
'
https://unpkg.com/three-surfer@0.0.11/dist/bundle.js
'
,
// for threeSurfer (freesurfer support in browser)
'
https://unpkg.com/ng-layer-tune@0.0.5/dist/ng-layer-tune/
'
,
// needed for ng layer control
...
...
This diff is collapsed.
Click to expand it.
src/viewerModule/nehuba/annotation/service.ts
+
3
−
1
View file @
582e5d0e
...
...
@@ -23,7 +23,8 @@ export class NgAnnotationService implements OnDestroy {
static
GET_ANN_LAYER
(
ann
:
annotation
.
UnionAnnotation
):
AnnotationLayer
{
const
color
=
ann
.
color
||
annotation
.
AnnotationColor
.
WHITE
const
layerName
=
`
${
NgAnnotationService
.
ANNOTATION_LAYER_NAME
}
-
${
annotation
.
AnnotationColor
[
color
]}
`
const
layerEnum
=
annotation
.
AnnotationColor
[
color
]
||
annotation
.
AnnotationColor
.
WHITE
const
layerName
=
`
${
NgAnnotationService
.
ANNOTATION_LAYER_NAME
}
-
${
layerEnum
}
`
const
annLayer
=
AnnotationLayer
.
Get
(
layerName
,
NgAnnotationService
.
COLOR_MAP
.
get
(
color
)
||
"
#ffffff
"
)
NgAnnotationService
.
INIT_LAYERS
.
add
(
layerName
)
...
...
@@ -35,6 +36,7 @@ export class NgAnnotationService implements OnDestroy {
const
layer
=
AnnotationLayer
.
Get
(
layername
,
'
#ffffff
'
)
layer
.
dispose
()
})
NgAnnotationService
.
INIT_LAYERS
.
clear
()
while
(
this
.
subs
.
length
)
this
.
subs
.
pop
().
unsubscribe
()
}
...
...
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