Alexander Rose 6 years ago
parent
commit
aad69f2567

+ 1 - 1
src/mol-repr/structure/representation/distance-restraint.ts

@@ -32,7 +32,7 @@ export function DistanceRestraintRepresentation(ctx: RepresentationContext, getP
 }
 
 export const DistanceRestraintRepresentationProvider: StructureRepresentationProvider<typeof DistanceRestraintParams> = {
-    label: 'DistanceRestraint',
+    label: 'Distance Restraint',
     description: 'Displays cross-link distance restraints.',
     factory: DistanceRestraintRepresentation,
     getParams: getDistanceRestraintParams,

+ 1 - 1
src/mol-repr/structure/visual/util/polymer.ts

@@ -96,7 +96,7 @@ export function markPolymerElement(loci: Loci, structureGroup: StructureGroup, a
                 const unitIndexMin = OrderedSet.findPredecessorIndex(elements, offsets[rI])
                 const unitIndexMax = OrderedSet.findPredecessorIndex(elements, offsets[rI + 1] - 1)
                 const unitIndexInterval = Interval.ofRange(unitIndexMin, unitIndexMax)
-                if(!OrderedSet.isSubset(e.indices, unitIndexInterval)) return
+                if (!OrderedSet.isSubset(e.indices, unitIndexInterval)) return
                 const eI = getElementIndexForAtomRole(model, rI, 'trace')
                 const idx = OrderedSet.indexOf(e.unit.polymerElements, eI)
                 if (idx !== -1) {