Function cleanCssPosition

  • Parse a CSS-like position into an array of position keywords among top, bottom, left, right and center

    Parameters

    • value: string | string[]
    • Optional options: {
          allowCenter: boolean;
          cssOrder: boolean;
      } = ...
      Optional
      • allowCenter: boolean

        allow "center center"

      • cssOrder: boolean

        force CSS order (y axis then x axis)

    Returns [string, string] | null

Generated using TypeDoc