@amcharts/amcharts4
Version:
amCharts 4
69 lines • 2.15 kB
JavaScript
/**
* Module that defines everything related to building Cone Columns.
* It is a container which has coneColumn element which is a Cone.
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Column } from "./Column";
import { Cone } from "../../core/elements/3d/Cone";
import { registry } from "../../core/Registry";
/**
* ============================================================================
* MAIN CLASS
* ============================================================================
* @hidden
*/
/**
* Class used to creates ConeColumns.
*
* @see {@link IConeColumnEvents} for a list of available events
* @see {@link IConeColumnAdapters} for a list of available Adapters
* @todo Usage example
* @important
*/
var ConeColumn = /** @class */ (function (_super) {
__extends(ConeColumn, _super);
/**
* Constructor
*/
function ConeColumn() {
var _this = _super.call(this) || this;
_this.className = "ConeColumn";
return _this;
}
/**
* @ignore
*/
ConeColumn.prototype.createAssets = function () {
this.coneColumn = this.createChild(Cone);
this.coneColumn.shouldClone = false;
// some dirty hack so that if user access column, it won't get error
this.column = this.coneColumn;
};
/**
* Copies all parameters from another [[ConeColumn]].
*
* @param source Source ConeColumn
*/
ConeColumn.prototype.copyFrom = function (source) {
_super.prototype.copyFrom.call(this, source);
if (this.coneColumn) {
this.coneColumn.copyFrom(source.coneColumn);
}
};
return ConeColumn;
}(Column));
export { ConeColumn };
/**
* Register class in system, so that it can be instantiated using its name from
* anywhere.
*
* @ignore
*/
registry.registeredClasses["ConeColumn"] = ConeColumn;
//# sourceMappingURL=ConeColumn.js.map