Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
const contentWidth = Math.min(screenWidth(), tabletWidth);
const gutters = (screenWidth() - contentWidth) / 2 + spacing(2);
const container = new TextContainer(
isTablet ? contentWidth : screenWidth() - spacing(4),
10000,
0,
0,
dropCap ? [dropCap.exclusion] : []
);
const slice = str.charAt(1) === " " ? 2 : 1;
const manager = new LayoutManager(
dropCap ? str.slice(slice) : str,
[container],
inlineExclusion ? [inlineExclusion.exclusion] : []
);
const positioned = manager.layout();
return [
dropCap && dropCap.element,
inline && (