Options
All
  • Public
  • Public/Protected
  • All
Menu

Class R2SplineParser

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional x0Parser: Parser<number>
    • Optional y0Parser: Parser<number>
    • Optional xParser: Parser<number>
    • Optional yParser: Parser<number>
    • Optional curveParser: Parser<R2Curve>
    • Optional curves: R2Curve[]
    • Optional command: number
    • Optional step: number

    Returns R2SplineParser

Methods

asError

  • Type parameters

    • O2

    Returns Parser<O2>

bind

  • Returns R2Spline

feed

  • Parameters

    Returns Parser<R2Spline>

fork

  • Parameters

    • condition: unknown

    Returns Parser<R2Spline>

isCont

  • isCont(): boolean
  • Returns boolean

isDone

  • isDone(): boolean
  • Returns boolean

isError

  • isError(): boolean
  • Returns boolean

trap

  • trap(): Error
  • Returns Error

Static done

  • done<O>(value: O): Parser<O>
  • Type parameters

    • O

    Parameters

    • value: O

    Returns Parser<O>

Static error

  • Type parameters

    • O

    Parameters

    Returns Parser<O>

Static parse

  • Parameters

    • input: Input
    • Optional x0Parser: Parser<number>
    • Optional y0Parser: Parser<number>
    • Optional xParser: Parser<number>
    • Optional yParser: Parser<number>
    • Optional curveParser: Parser<R2Curve>
    • Optional curves: R2Curve[]
    • Optional command: number
    • Optional step: number

    Returns Parser<R2Spline>

Generated using TypeDoc