Sha256: c490662a2e18ebb42cb95c72bad9cb0a2bb672d2f7620e7c8b4e57ff536acb43
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
/* * * (c) 2010-2019 Torstein Honsi * * Extension to the VML Renderer * * License: www.highcharts.com/license */ 'use strict'; import H from '../parts/Globals.js'; import '../parts/Utilities.js'; import '../parts/Axis.js'; import '../parts/SvgRenderer.js'; var addEvent = H.addEvent, Axis = H.Axis, SVGRenderer = H.SVGRenderer, VMLRenderer = H.VMLRenderer; if (VMLRenderer) { H.setOptions({ animate: false }); VMLRenderer.prototype.face3d = SVGRenderer.prototype.face3d; VMLRenderer.prototype.polyhedron = SVGRenderer.prototype.polyhedron; VMLRenderer.prototype.elements3d = SVGRenderer.prototype.elements3d; VMLRenderer.prototype.element3d = SVGRenderer.prototype.element3d; VMLRenderer.prototype.cuboid = SVGRenderer.prototype.cuboid; VMLRenderer.prototype.cuboidPath = SVGRenderer.prototype.cuboidPath; VMLRenderer.prototype.toLinePath = SVGRenderer.prototype.toLinePath; VMLRenderer.prototype.toLineSegments = SVGRenderer.prototype.toLineSegments; VMLRenderer.prototype.arc3d = function (shapeArgs) { var result = SVGRenderer.prototype.arc3d.call(this, shapeArgs); result.css({ zIndex: result.zIndex }); return result; }; H.VMLRenderer.prototype.arc3dPath = H.SVGRenderer.prototype.arc3dPath; addEvent(Axis, 'render', function () { // VML doesn't support a negative z-index if (this.sideFrame) { this.sideFrame.css({ zIndex: 0 }); this.sideFrame.front.attr({ fill: this.sideFrame.color }); } if (this.bottomFrame) { this.bottomFrame.css({ zIndex: 1 }); this.bottomFrame.front.attr({ fill: this.bottomFrame.color }); } if (this.backFrame) { this.backFrame.css({ zIndex: 0 }); this.backFrame.front.attr({ fill: this.backFrame.color }); } }); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aw-highstock_rails-7.0.3 | vendor/assets/javascripts/highstock/es-modules/parts-3d/VMLRenderer.js |