time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

SqScale.d.ts (1546B)


      1 import { CommonScaleArgs, Scale } from "../../value/index.js";
      2 export declare const wrapScale: (value: Scale) => SqScale;
      3 declare abstract class SqAbstractScale<T extends Scale["type"]> {
      4     _value: Extract<Scale, {
      5         type: T;
      6     }>;
      7     abstract tag: T;
      8     constructor(_value: Extract<Scale, {
      9         type: T;
     10     }>);
     11     toString(): string;
     12     get min(): number | undefined;
     13     get max(): number | undefined;
     14     get tickFormat(): string | undefined;
     15     get title(): string | undefined;
     16 }
     17 export declare class SqLinearScale extends SqAbstractScale<"linear"> {
     18     tag: "linear";
     19     static create(args?: CommonScaleArgs): SqLinearScale;
     20 }
     21 export declare class SqLogScale extends SqAbstractScale<"log"> {
     22     tag: "log";
     23     static create(args?: CommonScaleArgs): SqLogScale;
     24 }
     25 export declare class SqSymlogScale extends SqAbstractScale<"symlog"> {
     26     tag: "symlog";
     27     private _constant;
     28     constructor(args: CommonScaleArgs & {
     29         constant?: number;
     30     });
     31     static create(args: CommonScaleArgs & {
     32         constant?: number;
     33     }): SqSymlogScale;
     34     get constant(): number;
     35 }
     36 export declare class SqPowerScale extends SqAbstractScale<"power"> {
     37     tag: "power";
     38     private _exponent;
     39     constructor(args: CommonScaleArgs & {
     40         exponent?: number;
     41     });
     42     static create(args: CommonScaleArgs & {
     43         exponent?: number;
     44     }): SqPowerScale;
     45     get exponent(): number;
     46 }
     47 export type SqScale = SqLinearScale | SqLogScale | SqSymlogScale | SqPowerScale;
     48 export {};
     49 //# sourceMappingURL=SqScale.d.ts.map