Object

TextShadowOffset

The object for setting an offset value to use with a text shadow.

Properties

x
number
(Required)

The x offset, as a value between -50.0 and 50.0. Implementation is device dependent.

y
number
(Required)

The y offset, as a value between -50.0 and 50.0. Implementation is device dependent.

Discussion

Use the Offset object to define an offset. A positive x value moves the content to the left, and a negative x value moves the content to the right. A positive y value moves the content up, and a negative y value moves the content down.

Example

{ "componentTextStyles": { "exampleStyle": { "textShadow": { "radius": 5, "opacity": 0.7, "color": "#333", "offset": { "x": -2, "y": 2 } }, "fontSize": 30 } }}

See Also

Text Effects

object TextShadow

The object for creating a text shadow.

object TextStrokeStyle

The object for defining the stroke to use for an outline on text.

object TextDecoration

The object for defining color and width for text underline or strikethrough.