2
0

StringKeyframeTrack.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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">
  13. A Track of string keyframe values.
  14. </p>
  15. <h2>Constructor</h2>
  16. <h3>[name]( [param:String name], [param:Array times], [param:Array values] )</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. [page:Constant interpolation] - the type of interpolation to use. See
  22. [page:Animation Animation Constants] for possible values. Default is
  23. [page:Animation InterpolateDiscrete].
  24. </p>
  25. <h2>Properties</h2>
  26. <p class="desc">
  27. See [page:KeyframeTrack] for inherited properties.
  28. </p>
  29. <h3>[property:Constant DefaultInterpolation]</h3>
  30. <p>
  31. The default interpolation type to use, [page:Animation InterpolateDiscrete].
  32. </p>
  33. <h3>[property:Array ValueBufferType]</h3>
  34. <p>
  35. A normal Array (no Float32Array in this case, unlike *ValueBufferType* of [page:KeyframeTrack]).
  36. </p>
  37. <h3>[property:String ValueTypeName]</h3>
  38. <p>
  39. String 'string'.
  40. </p>
  41. <h2>Methods</h2>
  42. <p class="desc">
  43. See [page:KeyframeTrack] for inherited methods.
  44. </p>
  45. <h3>[method:null InterpolantFactoryMethodLinear]()</h3>
  46. <p>
  47. The value of this method here is 'undefined', as it does not make sense for discrete properties.
  48. </p>
  49. <h3>[method:null InterpolantFactoryMethodSmooth]()</h3>
  50. <p>
  51. The value of this method here is 'undefined', as it does not make sense for discrete properties.
  52. </p>
  53. <h2>Source</h2>
  54. <p>
  55. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  56. </p>
  57. </body>
  58. </html>