StringKeyframeTrack.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:KeyframeTrack] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. A Track of string keyframe values.
  15. </p>
  16. <h2>Constructor</h2>
  17. <h3>[name]( [param:String name], [param:Array times], [param:Array values] )</h3>
  18. <p>
  19. [page:String name] - (required) identifier for the KeyframeTrack.<br />
  20. [page:Array times] - (required) array of keyframe times.<br />
  21. [page:Array values] - values for the keyframes at the times specified.<br />
  22. [page:Constant interpolation] - the type of interpolation to use. See
  23. [page:Animation Animation Constants] for possible values. Default is
  24. [page:Animation InterpolateDiscrete].
  25. </p>
  26. <h2>Properties</h2>
  27. <p class="desc">
  28. See [page:KeyframeTrack] for inherited properties.
  29. </p>
  30. <h3>[property:Constant DefaultInterpolation]</h3>
  31. <p>
  32. The default interpolation type to use, [page:Animation InterpolateDiscrete].
  33. </p>
  34. <h3>[property:Array ValueBufferType]</h3>
  35. <p>
  36. A normal Array (no Float32Array in this case, unlike *ValueBufferType* of [page:KeyframeTrack]).
  37. </p>
  38. <h3>[property:String ValueTypeName]</h3>
  39. <p>
  40. String 'string'.
  41. </p>
  42. <h2>Methods</h2>
  43. <p class="desc">
  44. See [page:KeyframeTrack] for inherited methods.
  45. </p>
  46. <h3>[method:null InterpolantFactoryMethodLinear]()</h3>
  47. <p>
  48. The value of this method here is 'undefined', as it does not make sense for discrete properties.
  49. </p>
  50. <h3>[method:null InterpolantFactoryMethodSmooth]()</h3>
  51. <p>
  52. The value of this method here is 'undefined', as it does not make sense for discrete properties.
  53. </p>
  54. <h2>Source</h2>
  55. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  56. </body>
  57. </html>