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 Turtle(contextManager, options, levelUp) {
            if (options === void 0) { options = {}; }
            if (levelUp === void 0) { levelUp = 0; }
            var _this = _super.call(this, void 0, void 0, contextManager, { axis: ds.axis, meridian: ds.meridian }, levelUp + 1) || this;
            _this.setLoggingName('Turtle');
            var geoOptions = { kind: 'TurtleGeometry' };
            geoOptions.tilt = tiltFromOptions(options, canonicalAxis);
            geoOptions.offset = offsetFromOptions(options);
            var geometry = new TurtleGeometry(contextManager, geoOptions);
            _this.geometry = geometry;
            geometry.release();
            var material = materialFromOptions(contextManager, simplexModeFromOptions(options, SimplexMode.LINE), options);
            _this.material = material;
            material.release();
            _this.height = 0.1;
            _this.width = 0.0618;
            setAxisAndMeridian(_this, options);
            setColorOption(_this, options, Color.gray);
            if (levelUp === 0) {
                _this.synchUp();
            }
            return _this;
        }
function Turtle ( contextManager , options , levelUp ) { if ( options === void 0 ) { options = { } ; } if ( levelUp === void 0 ) { levelUp = 0 ; } var _this = _super . call ( this , void 0 , void 0 , contextManager , { axis : ds . axis , meridian : ds . meridian } , levelUp + 1 ) || this ; _this . setLoggingName ( 'Turtle' ) ; var geoOptions = { kind : 'TurtleGeometry' } ; geoOptions . tilt = tiltFromOptions ( options , canonicalAxis ) ; geoOptions . offset = offsetFromOptions ( options ) ; var geometry = new TurtleGeometry ( contextManager , geoOptions ) ; _this . geometry = geometry ; geometry . release ( ) ; var material = materialFromOptions ( contextManager , simplexModeFromOptions ( options , SimplexMode . LINE ) , options ) ; _this . material = material ; material . release ( ) ; _this . height = 0.1 ; _this . width = 0.0618 ; setAxisAndMeridian ( _this , options ) ; setColorOption ( _this , options , Color . gray ) ; 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 ` .