dist/axis3d.js
/**
 * Extends a regl command object by injecting command options
 * into the context object as a special readonly property.
 *
 * injectCommandOptions(opts: Object) -> Object
 */
Extends a regl command object by injecting command options
into the context object as a special readonly property.

> Object
Extends a regl command object by injecting command options into the context object as a special readonly property . > Object
function injectCommandOptions(opts) {
  return Object.assign(extend.command(opts), {
    context: Object.assign({}, opts.context, Object.create(null, _defineProperty({
      reglOptions: {
        get: function get() {
          return this[kReglOptions];
        }
      }
    }, kReglOptions, {
      configurable: false,
      enumerable: false,
      writable: false,
      value: getReglOptions
    })))
  });
  function getReglOptions(ctx) {
    var reglOptions = extend.command(ctx[kReglOptions], opts);
    if (reglOptions.context && kReglOptions in reglOptions.context) {
      delete reglOptions.context[kReglOptions];
    }
    return reglOptions;
  }
}
function injectCommandOptions ( opts ) { return Object . assign ( extend . command ( opts ) , { context : Object . assign ( { } , opts . context , Object . create ( null , _defineProperty ( { reglOptions : { get : function get ( ) { return this [ kReglOptions ] ; } } } , kReglOptions , { configurable : false , enumerable : false , writable : false , value : getReglOptions } ) ) ) } ) ; function getReglOptions ( ctx ) { var reglOptions = extend . command ( ctx [ kReglOptions ] , opts ) ; if ( reglOptions . context && kReglOptions in reglOptions . context ) { delete reglOptions . context [ kReglOptions ] ; } return reglOptions ; } }
Extends a regl command object by injecting command options
 into the context object as a special readonly property.
Extends a regl command object by injecting command options into the context object as a special readonly property .