How to use the @react-pdf/textkit/attributedString.fromFragments function in @react-pdf/textkit

To help you get started, we’ve selected a few @react-pdf/textkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github diegomura / react-pdf / src / utils / attributedString.js View on Github external
export const getAttributedString = instance => {
  return AttributedString.fromFragments(getFragments(instance));
};
github diegomura / react-pdf / src / svg / layoutText.js View on Github external
const getAttributedString = instance =>
  AttributedString.fromFragments(getFragments(instance));

@react-pdf/textkit

An advanced text layout framework

MIT
Latest version published 2 months ago

Package Health Score

94 / 100
Full package analysis

Similar packages