Advertisement
Guest User

2.1.9-diff

a guest
Feb 9th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. --- highcharts.src.js 2012-01-26 10:21:12.000000000 +0100
  2. +++ highcharts.src-2.1.9-charts.js 2012-01-26 10:28:20.000000000 +0100
  3. @@ -217,7 +217,11 @@
  4. // set the value
  5. if (defined(value)) {
  6.  
  7. - elem[setAttribute](prop, value);
  8. + if (prop == "height" && value == 0) {
  9. + elem[setAttribute]("height", "0.0");
  10. + } else {
  11. + elem[setAttribute](prop, value);
  12. + }
  13.  
  14. // get the value
  15. } else if (elem && elem.getAttribute) { // elem not defined when printing pie demo...
  16. @@ -1586,7 +1590,7 @@
  17. i,
  18. child,
  19. element = this.element,
  20. - nodeName = element.nodeName,
  21. + nodeName = element.nodeName.toLowerCase(),
  22. renderer = this.renderer,
  23. skipAttr,
  24. shadows = this.shadows,
  25. @@ -1679,6 +1683,7 @@
  26. .replace('shortdot', '1,1,')
  27. .replace('shortdash', '3,1,')
  28. .replace('longdash', '8,3,')
  29. + .replace('solid', '1,0,')
  30. .replace(/dot/g, '1,3,')
  31. .replace('dash', '4,3,')
  32. .replace(/,$/, '')
  33. @@ -1828,7 +1833,7 @@
  34. * @param {String} id
  35. */
  36. clip: function (clipRect) {
  37. - return this.attr('clip-path', 'url(' + this.renderer.url + '#' + clipRect.id + ')');
  38. + return this.attr('clip-path', 'url(' + '#' + clipRect.id + ')');
  39. },
  40.  
  41. /**
  42. @@ -3203,7 +3208,7 @@
  43. skipAttr = true;
  44.  
  45. // directly mapped to css
  46. - } else if (key === 'zIndex' || key === 'visibility') {
  47. + } else if (key === 'zIndex' || key === 'visibility' || key == 'antialias') {
  48.  
  49. // issue 61 workaround
  50. if (docMode8 && key === 'visibility' && nodeName === 'DIV') {
  51. @@ -7082,6 +7087,16 @@
  52.  
  53. // draw the line
  54. if (!simpleSymbol && itemOptions && itemOptions.lineWidth) {
  55. + if (series.chart.options.enumerate) {
  56. + legendSymbol = renderer.text(
  57. + "(" + (series.index + 1) + ")",
  58. + (symbolX = -(series.index < 9 ? 16 : 20) - symbolPadding),
  59. + (symbolY = 0)
  60. + ).attr({
  61. + zIndex: 3,
  62. + 'font-weight': 'bold'
  63. + }).add(legendGroup);
  64. + } else {
  65. var attrs = {
  66. 'stroke-width': itemOptions.lineWidth,
  67. zIndex: 2
  68. @@ -7100,6 +7115,7 @@
  69. .attr(attrs)
  70. .add(legendGroup);
  71. }
  72. + }
  73.  
  74. // draw a simple symbol
  75. if (simpleSymbol) { // bar|pie|area|column
  76. @@ -8161,7 +8177,9 @@
  77. .attr({
  78. stroke: optionsChart.plotBorderColor,
  79. 'stroke-width': optionsChart.plotBorderWidth,
  80. - zIndex: 4
  81. + zIndex: 4,
  82. + 'shape-rendering': 'crispEdges',
  83. + antialias: "false"
  84. })
  85. .add();
  86. } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement