build/browser/index.js
/**
         * @param contextManager This will usually be provided by the `Engine`.
         * @param options
         * @param levelUp Leave as zero unless you are extending this class.
         */
@param contextManager This will usually be provided by the `Engine`.
@param options
@param levelUp Leave as zero unless you are extending this class.
@param contextManager This will usually be provided by the ` Engine ` . @param options @param levelUp Leave as zero unless you are extending this class .
function Curve(contextManager, options, levelUp) {
            if (options === void 0) { options = {}; }
            if (levelUp === void 0) { levelUp = 0; }
            var _this = _super.call(this, void 0, void 0, contextManager, {}, levelUp + 1) || this;
            _this.setLoggingName('Curve');
            var mode = isDefined(options.mode) ? options.mode : exports.CurveMode.LINES;
            switch (mode) {
                case exports.CurveMode.POINTS: {
                    configPoints$1(contextManager, options, _this);
                    break;
                }
                case exports.CurveMode.LINES: {
                    configLines$1(contextManager, options, _this);
                    break;
                }
                default: {
                    throw new Error("'" + mode + "' is not a valid option for mode.");
                }
            }
            setColorOption(_this, options, Color.gray);
            setDeprecatedOptions(_this, options);
            if (levelUp === 0) {
                _this.synchUp();
            }
            return _this;
        }
function Curve ( contextManager , options , levelUp ) { if ( options === void 0 ) { options = { } ; } if ( levelUp === void 0 ) { levelUp = 0 ; } var _this = _super . call ( this , void 0 , void 0 , contextManager , { } , levelUp + 1 ) || this ; _this . setLoggingName ( 'Curve' ) ; var mode = isDefined ( options . mode ) ? options . mode : exports . CurveMode . LINES ; switch ( mode ) { case exports . CurveMode . POINTS : { configPoints$1 ( contextManager , options , _this ) ; break ; } case exports . CurveMode . LINES : { configLines$1 ( contextManager , options , _this ) ; break ; } default : { throw new Error ( "'" + mode + "' is not a valid option for mode." ) ; } } setColorOption ( _this , options , Color . gray ) ; setDeprecatedOptions ( _this , options ) ; if ( levelUp === 0 ) { _this . synchUp ( ) ; } return _this ; }
@param contextManager This will usually be provided by the `Engine`.
@param contextManager This will usually be provided by the ` Engine ` .