Kaynağa Gözat

add `dontCompose` arg to StructureBuilder.addWithOperator

Alexander Rose 4 yıl önce
ebeveyn
işleme
055c169c1f

+ 2 - 2
src/mol-model/structure/structure/structure.ts

@@ -891,8 +891,8 @@ namespace Structure {
             return unit;
         }
 
-        addWithOperator(unit: Unit, operator: SymmetryOperator): Unit {
-            return this.add(unit.applyOperator(this.units.length, operator));
+        addWithOperator(unit: Unit, operator: SymmetryOperator, dontCompose = false): Unit {
+            return this.add(unit.applyOperator(this.units.length, operator, dontCompose));
         }
 
         getStructure(): Structure {