MCPcopy Create free account
hub / github.com/chokcoco/iCSS / analyzePaintComplexity

Method analyzePaintComplexity

MCP/scripts/fetch-issues.js:1041–1052  ·  view source on GitHub ↗
(properties)

Source from the content-addressed store, hash-verified

1039 }
1040
1041 analyzePaintComplexity(properties) {
1042 let complexity = 'low';
1043
1044 if (properties.some(p => p.includes('box-shadow') || p.includes('text-shadow'))) {
1045 complexity = 'medium';
1046 }
1047 if (properties.some(p => p.includes('filter') || p.includes('backdrop-filter'))) {
1048 complexity = 'high';
1049 }
1050
1051 return complexity;
1052 }
1053
1054 checkLayoutTriggers(properties) {
1055 const layoutProperties = ['width', 'height', 'padding', 'margin', 'position', 'top', 'left', 'right', 'bottom'];

Callers 1

analyzePerformanceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected