VMLRenderer3D.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* *
  2. *
  3. * (c) 2010-2021 Torstein Honsi
  4. *
  5. * Extension to the VML Renderer
  6. *
  7. * License: www.highcharts.com/license
  8. *
  9. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  10. *
  11. * */
  12. import Axis from '../../Core/Axis/Axis.js';
  13. import U from '../../Core/Utilities.js';
  14. var setOptions = U.setOptions;
  15. import VMLAxis3D from './VMLAxis3D.js';
  16. var VMLRenderer3D = /** @class */ (function () {
  17. function VMLRenderer3D() {
  18. }
  19. /* *
  20. *
  21. * Static Properties
  22. *
  23. * */
  24. VMLRenderer3D.compose = function (vmlClass, svgClass) {
  25. var svgProto = svgClass.prototype;
  26. var vmlProto = vmlClass.prototype;
  27. setOptions({ animate: false });
  28. vmlProto.face3d = svgProto.face3d;
  29. vmlProto.polyhedron = svgProto.polyhedron;
  30. vmlProto.elements3d = svgProto.elements3d;
  31. vmlProto.element3d = svgProto.element3d;
  32. vmlProto.cuboid = svgProto.cuboid;
  33. vmlProto.cuboidPath = svgProto.cuboidPath;
  34. vmlProto.toLinePath = svgProto.toLinePath;
  35. vmlProto.toLineSegments = svgProto.toLineSegments;
  36. vmlProto.arc3d = function (shapeArgs) {
  37. var result = svgProto.arc3d.call(this, shapeArgs);
  38. result.css({ zIndex: result.zIndex });
  39. return result;
  40. };
  41. vmlProto.arc3dPath = svgProto.arc3dPath;
  42. VMLAxis3D.compose(Axis);
  43. };
  44. return VMLRenderer3D;
  45. }());
  46. export default VMLRenderer3D;