MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / equals

Method equals

packages/alphatab/src/model/Score.ts:111–125  ·  view source on GitHub ↗
(a: HeaderFooterStyle, b: HeaderFooterStyle)

Source from the content-addressed store, hash-verified

109 }
110
111 public static equals(a: HeaderFooterStyle, b: HeaderFooterStyle) {
112 const aIsVisible = a.isVisible !== undefined ? a.isVisible! : true;
113 const bIsVisible = b.isVisible !== undefined ? b.isVisible! : true;
114
115 if (aIsVisible !== bIsVisible) {
116 return false;
117 }
118 if (a.template !== b.template) {
119 return false;
120 }
121 if (a.textAlign !== b.textAlign) {
122 return false;
123 }
124 return true;
125 }
126
127 public buildText(score: Score) {
128 let anyPlaceholderFilled = false;

Callers 6

parseEnumMethod · 0.45
parseEnumMethod · 0.45
parseEnumExactMethod · 0.45
tokenizeFunction · 0.45
isSameContentFunction · 0.45
_buildScoreInfoMetaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected