katetem / cakejs

Automatically exported from code.google.com/p/cakejs
0 stars 0 forks source link

SVG animation: rest of the non-supported features #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Maybe split these into separate bugs if bored out of your mind / dig filing
bugs more than fixing them.

animateTransform.translate not handled
animateTransform.scale "sx,sy" value not parsed correctly
animateTransform.rotate value centerpoint not parsed
animateTransform.skewX|Y angle value not converted to radians

Array begin-values are not handled correctly. Fancy begin-values are not
handled correctly. See http://www.w3.org/TR/SVG11/animate.html#BeginAttribute

dur="media | indefinite" not parsed. See
http://www.w3.org/TR/SVG11/animate.html#DurAttribute

end not parsed. See http://www.w3.org/TR/SVG11/animate.html#EndAttribute

min not parsed. See http://www.w3.org/TR/SVG11/animate.html#MinAttribute

max not parsed. See http://www.w3.org/TR/SVG11/animate.html#MaxAttribute

Fancy clock values are not parsed correctly (i.e. anything that's not "<N>s".)
if (value.match(/[0-9]$/)) {
  var hms = value.split(":")
  var s = hms[hms.length-1] || 0
  var m = hms[hms.length-2] || 0
  var h = hms[hms.length-3] || 0
  return parseFloat(h)*3600 + parseFloat(m)*60 + parseFloat(s)
} else {
  var fac = 60
  if (value.match(/s$/i)) fac = 1
  else if (value.match(/h$/i)) fac = 3600
  return parseFloat(value) * fac
}

Datatype animation likely not handled correctly, very likely buggy. See
http://www.w3.org/TR/SVG11/animate.html#AnimationAttributesAndProperties

Animating SVG using DOM scripts does not work, and I have no clear idea on it.

Original issue reported on code.google.com by Ilmari.H...@gmail.com on 19 Mar 2008 at 7:04

GoogleCodeExporter commented 9 years ago
Parsing end now, fancy clock values parsed now.

Original comment by Ilmari.H...@gmail.com on 20 Mar 2008 at 1:59

GoogleCodeExporter commented 9 years ago
animateTransform issues fixed

Original comment by Ilmari.H...@gmail.com on 21 Mar 2008 at 4:40