SheetXL - v0.8.0-beta.25
    Preparing search index...

    Function withThemeDefaults

    • A new object's JSON over what its theme gives a new object of its kind (ITheme.getObjectDefaults): a line or connector takes the line default, a text box the text box default, anything else the shape default. What the JSON states wins; a line and a text body are merged a level down, so an arrowhead the JSON states keeps the default's width and color.

      Parameters

      Returns IShape.JSON

      Call this when inserting, not when copying or loading: the object keeps what it took, and a later change to the theme's defaults does not reach it. A text box whose theme states no default takes Excel's built-in one.