Carga
This commit is contained in:
2025-04-17 00:35:33 -06:00
parent 4977462629
commit 67fc72aed5
1333 changed files with 1077639 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,101 @@
/* *
*
* (c) 2010-2021 Torstein Honsi
*
* Extension to the VML Renderer
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
import U from '../../Core/Utilities.js';
var addEvent = U.addEvent;
/* *
*
* Class
*
* */
/* eslint-disable valid-jsdoc */
var VMLAxis3DAdditions = /** @class */ (function () {
/* *
*
* Constructors
*
* */
function VMLAxis3DAdditions(axis) {
this.axis = axis;
}
return VMLAxis3DAdditions;
}());
var VMLAxis3D = /** @class */ (function () {
function VMLAxis3D() {
}
/* *
*
* Static Properties
*
* */
VMLAxis3D.compose = function (AxisClass) {
AxisClass.keepProps.push('vml');
addEvent(AxisClass, 'destroy', VMLAxis3D.onDestroy);
addEvent(AxisClass, 'init', VMLAxis3D.onInit);
addEvent(AxisClass, 'render', VMLAxis3D.onRender);
};
/**
* @private
*/
VMLAxis3D.onDestroy = function () {
var axis = this, vml = axis.vml;
if (vml) {
var el_1;
[
'backFrame',
'bottomFrame',
'sideFrame'
].forEach(function (prop) {
el_1 = vml[prop];
if (el_1) {
vml[prop] = el_1.destroy();
}
}, this);
}
};
/**
* @private
*/
VMLAxis3D.onInit = function () {
var axis = this;
if (!axis.vml) {
axis.vml = new VMLAxis3DAdditions(axis);
}
};
/**
* @private
*/
VMLAxis3D.onRender = function () {
var axis = this;
var vml = axis.vml;
// VML doesn't support a negative z-index
if (vml.sideFrame) {
vml.sideFrame.css({ zIndex: 0 });
vml.sideFrame.front.attr({
fill: vml.sideFrame.color
});
}
if (vml.bottomFrame) {
vml.bottomFrame.css({ zIndex: 1 });
vml.bottomFrame.front.attr({
fill: vml.bottomFrame.color
});
}
if (vml.backFrame) {
vml.backFrame.css({ zIndex: 0 });
vml.backFrame.front.attr({
fill: vml.backFrame.color
});
}
};
return VMLAxis3D;
}());
export default VMLAxis3D;

View File

@@ -0,0 +1,47 @@
/* *
*
* (c) 2010-2021 Torstein Honsi
*
* Extension to the VML Renderer
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import Axis from '../../Core/Axis/Axis.js';
import D from '../../Core/DefaultOptions.js';
var setOptions = D.setOptions;
import VMLAxis3D from './VMLAxis3D.js';
var VMLRenderer3D = /** @class */ (function () {
function VMLRenderer3D() {
}
/* *
*
* Static Properties
*
* */
VMLRenderer3D.compose = function (vmlClass, svgClass) {
var svgProto = svgClass.prototype;
var vmlProto = vmlClass.prototype;
setOptions({ animate: false });
vmlProto.face3d = svgProto.face3d;
vmlProto.polyhedron = svgProto.polyhedron;
vmlProto.elements3d = svgProto.elements3d;
vmlProto.element3d = svgProto.element3d;
vmlProto.cuboid = svgProto.cuboid;
vmlProto.cuboidPath = svgProto.cuboidPath;
vmlProto.toLinePath = svgProto.toLinePath;
vmlProto.toLineSegments = svgProto.toLineSegments;
vmlProto.arc3d = function (shapeArgs) {
var result = svgProto.arc3d.call(this, shapeArgs);
result.css({ zIndex: result.zIndex });
return result;
};
vmlProto.arc3dPath = svgProto.arc3dPath;
VMLAxis3D.compose(Axis);
};
return VMLRenderer3D;
}());
export default VMLRenderer3D;