Preparing search index...

    Drop shadow settings for text rendering.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    // Create a Text component and configure its drop shadow
    const obj = scene.createSceneObject('ShadowText');
    const text = obj.addComponent('Text') as Editor.Components.Text;
    text.text = 'Drop Shadow';

    const shadow = text.dropshadowSettings;
    shadow.enabled = true;
    shadow.offset = new vec2(2, -2);
    console.log(`Dropshadow: enabled=${shadow.enabled}, offset=(${shadow.offset.x}, ${shadow.offset.y})`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    enabled: boolean

    Whether the drop shadow effect is active.

    fill: TextFill

    Color and transparency of the drop shadow.

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    offset: vec2

    Horizontal and vertical offset of the shadow from the text.

    type: string

    The entity's type.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean