build/module/lib/visual/ArrowTail.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 ArrowTail(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: referenceAxis(options, ds.axis).direction(), meridian: referenceMeridian(options, ds.meridian).direction() }, levelUp + 1) || this;
        _this.setLoggingName('Arrow');
        var geoOptions = {};
        geoOptions.offset = offsetFromOptions(options);
        geoOptions.tilt = spinorE3Object(options.tilt);
        geoOptions.axis = vectorE3Object(referenceAxis(options, ds.axis).direction());
        geoOptions.meridian = vectorE3Object(referenceMeridian(options, ds.meridian).direction());
        _this.$heightShaft = heightShaftFromOptions(options, 0.80);
        geoOptions.heightShaft = _this.$heightShaft;
        geoOptions.radiusShaft = radiusShaftFromOptions(options, 0.01);
        geoOptions.thetaSegments = thetaSegmentsFromOptions(options, 16);
        var geometry = new ArrowTailGeometry(contextManager, geoOptions);
        _this.geometry = geometry;
        geometry.release();
        var material = materialFromOptions(contextManager, simplexModeFromOptions(options, SimplexMode.TRIANGLE), options);
        _this.material = material;
        material.release();
        setAxisAndMeridian(_this, options);
        setColorOption(_this, options, Color.gray);
        setDeprecatedOptions(_this, options);
        if (levelUp === 0) {
            _this.synchUp();
        }
        return _this;
    }
function ArrowTail ( 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 : referenceAxis ( options , ds . axis ) . direction ( ) , meridian : referenceMeridian ( options , ds . meridian ) . direction ( ) } , levelUp + 1 ) || this ; _this . setLoggingName ( 'Arrow' ) ; var geoOptions = { } ; geoOptions . offset = offsetFromOptions ( options ) ; geoOptions . tilt = spinorE3Object ( options . tilt ) ; geoOptions . axis = vectorE3Object ( referenceAxis ( options , ds . axis ) . direction ( ) ) ; geoOptions . meridian = vectorE3Object ( referenceMeridian ( options , ds . meridian ) . direction ( ) ) ; _this . $heightShaft = heightShaftFromOptions ( options , 0.80 ) ; geoOptions . heightShaft = _this . $heightShaft ; geoOptions . radiusShaft = radiusShaftFromOptions ( options , 0.01 ) ; geoOptions . thetaSegments = thetaSegmentsFromOptions ( options , 16 ) ; var geometry = new ArrowTailGeometry ( contextManager , geoOptions ) ; _this . geometry = geometry ; geometry . release ( ) ; var material = materialFromOptions ( contextManager , simplexModeFromOptions ( options , SimplexMode . TRIANGLE ) , options ) ; _this . material = material ; material . release ( ) ; setAxisAndMeridian ( _this , options ) ; 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 ` .