Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pdb-ligand-env
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdbe
web-components
pdb-ligand-env
Commits
c0715d24
Commit
c0715d24
authored
11 months ago
by
Marcelo Querino Lima Alfonso
Browse files
Options
Downloads
Patches
Plain Diff
added custom accessor for contactType
parent
9e1c2043
No related branches found
No related tags found
2 merge requests
!5
Refactored code for diplaying aggregated ligand interactions
,
!4
Added features for aggregated ligand interaction view and interactivity with heat map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/component/component.js
+17
-1
17 additions, 1 deletion
src/component/component.js
with
17 additions
and
1 deletion
src/component/component.js
+
17
−
1
View file @
c0715d24
...
...
@@ -21,7 +21,7 @@ class pdbLigandEnv extends LitElement {
entityId
:
{
type
:
String
,
attribute
:
'
entity-id
'
},
resName
:
{
type
:
String
,
attribute
:
'
pdb-res-name
'
},
resId
:
{
type
:
Number
,
attribute
:
'
pdb-res-id
'
},
contactType
:
{
type
:
Array
,
attribute
:
'
contact-type
'
},
contactType
:
{
type
:
Array
,
attribute
:
'
contact-type
'
,
noAccessors
:
true
},
chainId
:
{
type
:
String
,
attribute
:
'
pdb-chain-id
'
},
substructureHighlight
:
{
type
:
Array
,
attribute
:
'
substructure
'
},
substructureColor
:
{
type
:
String
,
attribute
:
'
color
'
},
...
...
@@ -31,11 +31,27 @@ class pdbLigandEnv extends LitElement {
};
}
// Create custom accessors for contactType
set
contactType
(
value
)
{
let
prevCType
=
this
.
_contactType
+
""
;
this
.
_contactType
=
value
;
if
(
prevCType
.
length
>
0
)
{
this
.
renderLigandEnv
();
}
}
get
contactType
()
{
return
this
.
_contactType
;
}
constructor
()
{
super
();
}
async
connectedCallback
()
{
this
.
renderLigandEnv
();
}
renderLigandEnv
()
{
this
.
innerHTML
=
""
;
this
.
highlightSubstructure
=
[];
let
uiParams
=
new
Config
.
UIParameters
();
uiParams
.
zoom
=
this
.
zoomOn
;
...
...
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