Browse Source

structure-query.modifier.intersectBy was implemented: this enables AND operation

yakomaxa 2 years ago
parent
commit
82ccb1ab23
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/mol-script/runtime/query/table.ts

+ 2 - 1
src/mol-script/runtime/query/table.ts

@@ -278,6 +278,7 @@ const symbols = [
             fixedPoint: xs['fixed-point']?.(ctx) ?? false
             fixedPoint: xs['fixed-point']?.(ctx) ?? false
         })(ctx);
         })(ctx);
     }),
     }),
+    D(MolScript.structureQuery.modifier.intersectBy, function structureQuery_modifier_intersectBy(ctx, xs) { return Queries.modifiers.intersectBy(xs[0] as any, xs['by'] as any)(ctx); }),
 
 
     // ============= COMBINATORS ================
     // ============= COMBINATORS ================
 
 
@@ -406,4 +407,4 @@ function getArray<T = any>(ctx: QueryContext, xs: any): T[] {
     for (const s of symbols) {
     for (const s of symbols) {
         DefaultQueryRuntimeTable.addSymbol(s);
         DefaultQueryRuntimeTable.addSymbol(s);
     }
     }
-})();
+})();