Function: computeDFS()
function computeDFS(input): DFSResult;
Defined in: computeDFS.ts:34
Calculate Design Fidelity Score (0-100) with optional weights
Base score of 100, with weighted deductions for differences:
- Pixel difference penalty (up to -50 points)
- Color delta E penalty (up to -30 points)
- Size mismatch penalty (up to -15 points)
- High severity style diff penalty (-20 points)
Parameters
input
Comparison results and style diffs
Returns
DFS result with score (0-100)