MCPcopy Create free account
hub / github.com/breck7/scroll / FormatSpecifier

Function FormatSpecifier

external/.d3.js:9556–9567  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

9554formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
9555
9556function FormatSpecifier(specifier) {
9557 this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
9558 this.align = specifier.align === undefined ? ">" : specifier.align + "";
9559 this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
9560 this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
9561 this.zero = !!specifier.zero;
9562 this.width = specifier.width === undefined ? undefined : +specifier.width;
9563 this.comma = !!specifier.comma;
9564 this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
9565 this.trim = !!specifier.trim;
9566 this.type = specifier.type === undefined ? "" : specifier.type + "";
9567}
9568
9569FormatSpecifier.prototype.toString = function() {
9570 return this.fill

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected