Skip to content
Snippets Groups Projects
Commit c2e68ced authored by yakomaxa's avatar yakomaxa
Browse files

cleaning by lint

parent 10cf0db0
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ export function prefix(opParser: P.MonadicParser<any>, nextParser: P.MonadicPars
export function prefixRemoveKet(opParser: P.MonadicParser<any>, nextParser: P.MonadicParser<any>, mapFn: any) {
const parser: P.MonadicParser<any> = P.MonadicParser.lazy(() => {
return P.MonadicParser.seq(opParser, parser.skip(P.MonadicParser.string(")")))
return P.MonadicParser.seq(opParser, parser.skip(P.MonadicParser.string(')')))
.map(x => mapFn(...x))
.or(nextParser);
});
......
......@@ -14,7 +14,7 @@ import { MolScriptBuilder } from '../../../mol-script/language/builder';
const B = MolScriptBuilder;
import { OperatorList } from '../types';
import { Expression } from '../../language/expression';
import { macroproperties } from './macroproperties'
import { macroproperties } from './macroproperties';
const propNames = Object.keys(macroproperties).sort(h.strLenSortFn)
.filter(name => !macroproperties[name].isUnsupported).join('|');
......@@ -69,8 +69,9 @@ export const operators: OperatorList = [
// type: h.binaryLeft,
type: h.prefixRemoveKet,
rule: h.prefixOpNoWhiteSpace(/within\s*\(\s*([-+]?[0-9]*\.?[0-9]+)\s*,/i, 1).map((x: any) => {
console.log(x)
return parseFloat(x)}),
console.log(x);
return parseFloat(x);
}),
map: (radius: number, target: Expression) => {
return B.struct.filter.within({
0: B.struct.generator.all(),
......
......@@ -181,7 +181,7 @@ const lang = P.MonadicParser.createLanguage({
)
)
)
)
);
},
ObjectProperty: () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment