UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

38 lines (37 loc) 2 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.LineAnimation = void 0; var AnimationType_1 = require("../../../../types/AnimationType"); var SeriesAnimation_1 = require("./SeriesAnimation"); var BaseAnimationStyle_1 = require("./BaseAnimationStyle"); var LineAnimation = /** @class */ (function (_super) { __extends(LineAnimation, _super); function LineAnimation(options) { var _this = this; var _a, _b; _this = _super.call(this, options) || this; /** @inheritDoc */ _this.type = AnimationType_1.EAnimationType.Style; _this.duration = (_a = options === null || options === void 0 ? void 0 : options.duration) !== null && _a !== void 0 ? _a : 1000; _this.styles = (options === null || options === void 0 ? void 0 : options.styles) ? new BaseAnimationStyle_1.BaseAnimationStyle(options.styles) : _this.styles; _this.dataSeries = (_b = options === null || options === void 0 ? void 0 : options.dataSeries) !== null && _b !== void 0 ? _b : _this.dataSeries; return _this; } return LineAnimation; }(SeriesAnimation_1.SeriesAnimation)); exports.LineAnimation = LineAnimation;