mwg API
    Preparing search index...

    Class VerticalLabel

    Text laid out top to bottom, column by column, right to left - vertical writing, which canvas has no writing-mode for at all. Each character is its own Text, positioned by layoutVertical; this is real per-glyph work, not a flag, which is why the README schedules it separately from left-to-right/right-to-left (see mwg/i18n).

    What this does not do: tate-chu-yoko (shrinking a short latin/digit run to sit upright within one column instead of rotating whole characters), and it does not reposition punctuation to a cell's corner the way professionally typeset Japanese does. Both are real refinements a native reader would want on top of this, not included here.

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

    const sign = new VerticalLabel({ text: '出口', columnHeight: 200, size: 24 });
    sign.x = 400;
    sign.y = 40;

    Hierarchy

    • Container
      • VerticalLabel
    Index
    • Removes all internal references and listeners as well as removes children from the display list. Do not use a Container after calling destroy.

      Parameters

      • Optionaloptions: DestroyOptions

        Options parameter. A boolean will act as if all options have been set to that value

      Returns void

      container.destroy();
      container.destroy(true);
      container.destroy({ children: true });
      container.destroy({ children: true, texture: true, textureSource: true });