typograph-editor-documentation
    Preparing search index...

    Function setStrokeAlignment

    • Where the stroke sits relative to the path: the selected element's, or the selected text's when the rich text editor has focus.

      Text takes two of the three. InDesign has no inside-aligned text stroke, so document-schema validates text against center/outside only; the toolbar greys that button out in text mode and this guard keeps a stray call from writing a value the schema would reject.

      Selection first, frame second — the rule this popup follows everywhere. A rich element now carries text_stroke_alignment alongside text_stroke_dash and native_text_stroke_size, so a caret with nothing selected writes the frame's default instead of stamping the value onto every run in the story.

      Parameters

      • value: stroke_alignment_type

      Returns void