Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 137x 137x | import { createDisplaySetSplitRules, displaySetRules } from './displaySetRules';
import type { SplitRuleSet } from './types';
/**
* Default display-set split rules (OHIF PR parity + video, ECG, volume3d),
* keyed by rule id.
*
* These are the compiled form of {@link displaySetRules} - the rules are
* authored as serializable data in `displaySetRules.js` and turned into the
* predicates the split engine runs by `createDisplaySetSplitRules`. Compiling the
* defaults through the same path every application uses keeps the data form
* honest: if the raw vocabulary could not express a default rule, this file would
* not build.
*
* Rules are evaluated in ascending `priority` (the defaults use `1..n`); the
* first match wins. The `handler` of a rule decides the class of the display
* set and `isDisplayable`; a rule gives no viewport hint.
*
* To customize splitting, do not edit this set - merge your own rules over it by
* key (a new id adds a rule, an existing id replaces one, `priority: null`
* excludes one), or compile your own rule set with `createDisplaySetSplitRules`.
*/
export const compiledDisplaySetRules: SplitRuleSet =
createDisplaySetSplitRules(displaySetRules);
/** @deprecated Use {@link compiledDisplaySetRules}. */
export const defaultDisplaySetSplitRules = compiledDisplaySetRules;
|