mwg API
    Preparing search index...

    Function bitmapLabelStyle

    • the pure style-mapping BitmapLabel builds its underlying BitmapText style from, exported for testing without constructing a BitmapText (which needs a real DOM document, unlike Text)

      Parameters

      • opts: ThemedTextOptions
      • t: Theme

      Returns TextStyleOptions

      import { bitmapLabelStyle } from '@datamoc/mw_games/two-d/ui';
      import { defaultTheme } from '@datamoc/mw_games/two-d/ui';

      const style = bitmapLabelStyle({ text: 'Score', bold: true }, defaultTheme);
      console.log(style.fontWeight); // 'bold'