feat(tmtv-mode): Add Brush tools and move SUV peak calculation to web worker (#4053)
This commit is contained in:
1 parent
8c5ab942b9
commit
8192e348ec
27 files changed
+593
-212
No files matched your search
@@ -438,7 +438,11 @@ export default class ToolbarService extends PubSubService {
|
||||
}
|
||||
|
||||
if (Array.isArray(evaluate)) {
|
||||
const evaluators = evaluate.map(evaluatorName => {
|
||||
const evaluators = evaluate.map(evaluator => {
|
||||
const isObject = typeof evaluator === 'object';
|
||||
|
||||
const evaluatorName = isObject ? evaluator.name : evaluator;
|
||||
|
||||
const evaluateFunction = this._evaluateFunction[evaluatorName];
|
||||
|
||||
if (!evaluateFunction) {
|
||||
@@ -447,6 +451,10 @@ export default class ToolbarService extends PubSubService {
|
||||
);
|
||||
}
|
||||
|
||||
if (isObject) {
|
||||
return args => evaluateFunction({ ...args, ...evaluator });
|
||||
}
|
||||
|
||||
return evaluateFunction;
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user