Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Michal Malý
Molstar
Commits
67e6167b
Commit
67e6167b
authored
5 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
removed orientation from measurements for now
- too limited and confusing
parent
79b33bfb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mol-plugin-ui/structure/measurements.tsx
+1
-8
1 addition, 8 deletions
src/mol-plugin-ui/structure/measurements.tsx
with
1 addition
and
8 deletions
src/mol-plugin-ui/structure/measurements.tsx
+
1
−
8
View file @
67e6167b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
*/
*/
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
...
@@ -62,7 +63,6 @@ export class MeasurementList extends PurePluginUIComponent {
...
@@ -62,7 +63,6 @@ export class MeasurementList extends PurePluginUIComponent {
{
this
.
renderGroup
(
measurements
.
distances
,
'
Distances
'
)
}
{
this
.
renderGroup
(
measurements
.
distances
,
'
Distances
'
)
}
{
this
.
renderGroup
(
measurements
.
angles
,
'
Angles
'
)
}
{
this
.
renderGroup
(
measurements
.
angles
,
'
Angles
'
)
}
{
this
.
renderGroup
(
measurements
.
dihedrals
,
'
Dihedrals
'
)
}
{
this
.
renderGroup
(
measurements
.
dihedrals
,
'
Dihedrals
'
)
}
{
this
.
renderGroup
(
measurements
.
orientations
,
'
Orientations
'
)
}
</
div
>;
</
div
>;
}
}
}
}
...
@@ -104,17 +104,10 @@ export class MeasurementControls extends PurePluginUIComponent<{}, { isBusy: boo
...
@@ -104,17 +104,10 @@ export class MeasurementControls extends PurePluginUIComponent<{}, { isBusy: boo
this
.
plugin
.
managers
.
structure
.
measurement
.
addLabel
(
loci
[
0
].
loci
);
this
.
plugin
.
managers
.
structure
.
measurement
.
addLabel
(
loci
[
0
].
loci
);
}
}
addOrientation
=
()
=>
{
// TODO: this should be possible to add for the whole selection
const
loci
=
this
.
plugin
.
managers
.
structure
.
selection
.
additionsHistory
;
this
.
plugin
.
managers
.
structure
.
measurement
.
addOrientation
(
loci
[
0
].
loci
);
}
get
actions
():
ActionMenu
.
Items
{
get
actions
():
ActionMenu
.
Items
{
const
history
=
this
.
selection
.
additionsHistory
;
const
history
=
this
.
selection
.
additionsHistory
;
const
ret
:
ActionMenu
.
Item
[]
=
[
const
ret
:
ActionMenu
.
Item
[]
=
[
{
kind
:
'
item
'
,
label
:
`Label
${
history
.
length
===
0
?
'
(1 selection required)
'
:
'
(1st selection)
'
}
`
,
value
:
this
.
addLabel
,
disabled
:
history
.
length
===
0
},
{
kind
:
'
item
'
,
label
:
`Label
${
history
.
length
===
0
?
'
(1 selection required)
'
:
'
(1st selection)
'
}
`
,
value
:
this
.
addLabel
,
disabled
:
history
.
length
===
0
},
{
kind
:
'
item
'
,
label
:
`Orientation
${
history
.
length
===
0
?
'
(1 selection required)
'
:
'
(1st selection)
'
}
`
,
value
:
this
.
addOrientation
,
disabled
:
history
.
length
===
0
},
{
kind
:
'
item
'
,
label
:
`Distance
${
history
.
length
<
2
?
'
(2 selections required)
'
:
'
(top 2 selections)
'
}
`
,
value
:
this
.
measureDistance
,
disabled
:
history
.
length
<
2
},
{
kind
:
'
item
'
,
label
:
`Distance
${
history
.
length
<
2
?
'
(2 selections required)
'
:
'
(top 2 selections)
'
}
`
,
value
:
this
.
measureDistance
,
disabled
:
history
.
length
<
2
},
{
kind
:
'
item
'
,
label
:
`Angle
${
history
.
length
<
3
?
'
(3 selections required)
'
:
'
(top 3 selections)
'
}
`
,
value
:
this
.
measureAngle
,
disabled
:
history
.
length
<
3
},
{
kind
:
'
item
'
,
label
:
`Angle
${
history
.
length
<
3
?
'
(3 selections required)
'
:
'
(top 3 selections)
'
}
`
,
value
:
this
.
measureAngle
,
disabled
:
history
.
length
<
3
},
{
kind
:
'
item
'
,
label
:
`Dihedral
${
history
.
length
<
4
?
'
(4 selections required)
'
:
'
(top 4 selections)
'
}
`
,
value
:
this
.
measureDihedral
,
disabled
:
history
.
length
<
4
},
{
kind
:
'
item
'
,
label
:
`Dihedral
${
history
.
length
<
4
?
'
(4 selections required)
'
:
'
(top 4 selections)
'
}
`
,
value
:
this
.
measureDihedral
,
disabled
:
history
.
length
<
4
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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