// ets_tracing: off
import { matchTag_ } from "@effect-ts/core/Utils";
import * as FontDirection from "../../FigFont/PrintDirection/index.mjs"; // -----------------------------------------------------------------------------
// Constructors
// -----------------------------------------------------------------------------

export const LeftToRight = {
  _tag: "LeftToRight"
};
export const RightToLeft = {
  _tag: "RightToLeft"
};
export const FontDefault = {
  _tag: "FontDefault"
}; // -----------------------------------------------------------------------------
// Operations
// -----------------------------------------------------------------------------

/**
 * Converts the option `PrintDirection` into the `FigFont` parameter
 * `PrintDirection`.
 */

export function toInternalLayout_(self, font) {
  return matchTag_(self, {
    LeftToRight: () => FontDirection.LeftToRight,
    RightToLeft: () => FontDirection.RightToLeft,
    FontDefault: () => font.settings.printDirection
  });
}
/**
 * Converts the option `PrintDirection` into the `FigFont` parameter
 * `PrintDirection`.
 *
 * @ets_data_first toInternalLayout_
 */

export function toInternalLayout(font) {
  return self => toInternalLayout_(self, font);
}
//# sourceMappingURL=index.mjs.map