pixi.js
    Preparing search index...

    Interface AbstractSplitOptions

    Configuration options for text splitting.

    interface AbstractSplitOptions {
        autoSplit?: boolean;
        charAnchor?: number | PointData;
        lineAnchor?: number | PointData;
        style: TextStyle | Partial<TextStyleOptions>;
        text: string;
        wordAnchor?: number | PointData;
    }

    Hierarchy (View Summary)

    Index

    Properties

    autoSplit?: boolean

    Enables automatic splitting on text/style changes

    true
    
    charAnchor?: number | PointData

    Transform origin for character segments. Range: [0-1]

    charAnchor: { x: 0.5, y: 1 }  // Bottom-center alignment
    charAnchor: 0.5 // Center alignment
    0
    
    lineAnchor?: number | PointData

    Transform origin for line segments. Range: [0-1]

    lineAnchor: 0.5        // Center horizontally and vertically
    lineAnchor: { x: 0, y: 0.5 } // Left-center alignment
    0
    

    Text styling - accepts TextStyle instance or style object

    text: string

    Text content to be split

    wordAnchor?: number | PointData

    Transform origin for word segments. Range: [0-1]

    wordAnchor: { x: 1, y: 0 }  // Top-right alignment
    wordAnchor: 0.5 // Center alignment
    0