dist/axis3d.js
/**
 * Colorize log arguments if enabled.
 *
 * @api public
 */
Colorize log arguments if enabled.
@api public
Colorize log arguments if enabled . @api public
function formatArgs(args) {
  var useColors = this.useColors;
  args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);
  if (!useColors) return;
  var c = 'color: ' + this.color;
  args.splice(1, 0, c, 'color: inherit'
  );var index = 0;
  var lastC = 0;
  args[0].replace(/%[a-zA-Z%]/g, function (match) {
    if ('%%' === match) return;
    index++;
    if ('%c' === match) {
      lastC = index;
    }
  });
  args.splice(lastC, 0, c);
}
function formatArgs ( args ) { var useColors = this . useColors ; args [ 0 ] = ( useColors ? '%c' : '' ) + this . namespace + ( useColors ? ' %c' : ' ' ) + args [ 0 ] + ( useColors ? '%c ' : ' ' ) + '+' + exports . humanize ( this . diff ) ; if ( ! useColors ) return ; var c = 'color: ' + this . color ; args . splice ( 1 , 0 , c , 'color: inherit' ) ; var index = 0 ; var lastC = 0 ; args [ 0 ] . replace ( / %[a-zA-Z%] / g , function ( match ) { if ( '%%' === match ) return ; index ++ ; if ( '%c' === match ) { lastC = index ; } } ) ; args . splice ( lastC , 0 , c ) ; }
Colorize log arguments if enabled.
Colorize log arguments if enabled .
// the final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to // figure out the correct index to insert the CSS into // we only are interested in the *last* %c // (the user may have provided their own)