Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bokeh / server / static / js / lib / models / formatters / tick_formatter.js
Size: Mime:
import { Model } from "../../model";
import { TextBox } from "../../core/graphics";
export class TickFormatter extends Model {
    constructor(attrs) {
        super(attrs);
    }
    format_graphics(ticks, opts) {
        return this.doFormat(ticks, opts).map((text) => new TextBox({ text }));
    }
    compute(tick, opts) {
        return this.doFormat([tick], opts ?? { loc: 0 })[0];
    }
    v_compute(tick, opts) {
        return this.doFormat(tick, opts ?? { loc: 0 });
    }
}
TickFormatter.__name__ = "TickFormatter";
//# sourceMappingURL=tick_formatter.js.map