TypeSolver: ((curve: Curve) => mapray.animation.Type | null)

Type declaration

    • (curve: Curve): mapray.animation.Type | null
    • 型決定関数

      ここで説明する types と setter は EasyBindingBlock.addEntry addEntry() の引数、curve は EasyBindingBlock.bind bind() の引数である。

      types と curve がサポートする型から、setter 関数に渡されるパラメータの型 (curve から得る関数値の型も同じ) を決定して返す。

      この関数は types に含まれる型、かつ curve がサポートする型以外は返さない。そのような型が決定できなければ null を返す。

      この関数は types に複数の型を指定したときに、bind() の呼び出しのタイミングで呼び出される。types に 1 つの型しか存在しないときは呼び出されない。

      See

      • EasyBindingBlock.addEntry
      • EasyBindingBlock.bind
      • Curve.isTypeSupported
      • Binder.Setter

      Parameters

      Returns mapray.animation.Type | null