MCPcopy Create free account
hub / github.com/braposo/react-text-loop / getDimensions

Method getDimensions

src/components/TextLoop.tsx:196–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 getDimensions(): ClientRect | DOMRect | { width: 0; height: 0 } {
197 if (this.wordBox == null) {
198 return {
199 width: 0,
200 height: 0,
201 };
202 }
203
204 return this.wordBox.getBoundingClientRect();
205 }
206
207 wrapperStyles = cxs({
208 ...(this.props.mask && { overflow: "hidden" }),

Callers 2

TextLoopClass · 0.95
renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected