@amcharts/amcharts4
Version:
amCharts 4
67 lines • 2.02 kB
JavaScript
/**
* Bullet module
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Bullet } from "./Bullet";
import { Circle } from "../../core/elements/Circle";
import { registry } from "../../core/Registry";
/**
* ============================================================================
* MAIN CLASS
* ============================================================================
* @hidden
*/
/**
* Creates a bullet with a textual label.
*
* Uses [[Label]] instance to draw the label, so the label itself is
* configurable.
*
* @see {@link IBulletEvents} for a list of available events
* @see {@link IBulletAdapters} for a list of available Adapters
* @todo Usage example
* @important
*/
var CircleBullet = /** @class */ (function (_super) {
__extends(CircleBullet, _super);
/**
* Constructor
*/
function CircleBullet() {
var _this = _super.call(this) || this;
_this.className = "CircleBullet";
var circle = _this.createChild(Circle);
circle.shouldClone = false;
circle.radius = 5;
circle.isMeasured = false;
_this.circle = circle;
_this.applyTheme();
return _this;
}
/**
* Copies all proprities and related stuff from another instance of
* [[CircleBullet]].
*
* @param source Source element
*/
CircleBullet.prototype.copyFrom = function (source) {
_super.prototype.copyFrom.call(this, source);
this.circle.copyFrom(source.circle);
};
return CircleBullet;
}(Bullet));
export { CircleBullet };
/**
* Register class in system, so that it can be instantiated using its name from
* anywhere.
*
* @ignore
*/
registry.registeredClasses["CircleBullet"] = CircleBullet;
//# sourceMappingURL=CircleBullet.js.map