StringKeyframeTrack.html 1.9 KB

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