mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-26 17:54:44 -07:00
kibo: finished converting ts types to jsdoc
This commit is contained in:
@@ -924,14 +924,13 @@
|
|||||||
&[data-size="xs"] {
|
&[data-size="xs"] {
|
||||||
font-size: var(--font-size-xs);
|
font-size: var(--font-size-xs);
|
||||||
line-height: var(--line-height-xs);
|
line-height: var(--line-height-xs);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
> div.field {
|
> div.field {
|
||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
/* font-size: var(--font-size-xs);
|
|
||||||
line-height: var(--line-height-xs); */
|
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|
||||||
> legend,
|
> legend,
|
||||||
@@ -942,7 +941,7 @@
|
|||||||
> hr {
|
> hr {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
|
|
||||||
fieldset[data-size="xs"] > div > & {
|
fieldset[data-size="xs"] & {
|
||||||
min-width: 1rem;
|
min-width: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -956,7 +955,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
|
|
||||||
fieldset[data-size="xs"] > div > & {
|
fieldset[data-size="xs"] & {
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @import { Option, PartialChartOption, ChartOption, AnyPartialOption, ProcessedOptionAddons, OptionsTree, SimulationOption, Unit } from "./types/self"
|
* @import { Option, PartialChartOption, ChartOption, AnyPartialOption, ProcessedOptionAddons, OptionsTree, SimulationOption, Unit } from "./options"
|
||||||
* @import {Valued, SingleValueData, CandlestickData, ChartData, OHLCTuple} from "../packages/lightweight-charts/wrapper"
|
* @import {Valued, SingleValueData, CandlestickData, ChartData, OHLCTuple} from "../packages/lightweight-charts/wrapper"
|
||||||
* @import * as _ from "../packages/ufuzzy/v1.0.14/types"
|
* @import * as _ from "../packages/ufuzzy/v1.0.14/types"
|
||||||
* @import { createChart as CreateClassicChart, LineStyleOptions, DeepPartial, ChartOptions, IChartApi, IHorzScaleBehavior, WhitespaceData, ISeriesApi, Time, LineData, LogicalRange, SeriesType, BaselineStyleOptions, SeriesOptionsCommon } from "../packages/lightweight-charts/v5.0.5-treeshaked/types"
|
* @import { createChart as CreateClassicChart, LineStyleOptions, DeepPartial, ChartOptions, IChartApi, IHorzScaleBehavior, WhitespaceData, ISeriesApi, Time, LineData, LogicalRange, SeriesType, BaselineStyleOptions, SeriesOptionsCommon } from "../packages/lightweight-charts/v5.0.5-treeshaked/types"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
153
websites/kibo.money/scripts/types/self.d.ts
vendored
153
websites/kibo.money/scripts/types/self.d.ts
vendored
@@ -1,153 +0,0 @@
|
|||||||
import { Accessor } from "../../packages/solid-signals/v0.2.4-treeshaked/types/signals";
|
|
||||||
import {
|
|
||||||
DeepPartial,
|
|
||||||
BaselineStyleOptions,
|
|
||||||
CandlestickStyleOptions,
|
|
||||||
LineStyleOptions,
|
|
||||||
SeriesOptionsCommon,
|
|
||||||
Time,
|
|
||||||
SingleValueData as _SingleValueData,
|
|
||||||
CandlestickData as _CandlestickData,
|
|
||||||
BaselineData,
|
|
||||||
} from "../../packages/lightweight-charts/v5.0.5-treeshaked/types";
|
|
||||||
import { AnyPossibleCohortId } from "../options";
|
|
||||||
|
|
||||||
type Unit =
|
|
||||||
| ""
|
|
||||||
| "Bitcoin"
|
|
||||||
| "Coinblocks"
|
|
||||||
| "Count"
|
|
||||||
| "Date"
|
|
||||||
| "Dollars / (PetaHash / Second)"
|
|
||||||
| "ExaHash / Second"
|
|
||||||
| "Height"
|
|
||||||
| "Gigabytes"
|
|
||||||
| "Megabytes"
|
|
||||||
| "Percentage"
|
|
||||||
| "Ratio"
|
|
||||||
| "Satoshis"
|
|
||||||
| "Seconds"
|
|
||||||
| "Transactions"
|
|
||||||
| "US Dollars"
|
|
||||||
| "Virtual Bytes"
|
|
||||||
| "Weight";
|
|
||||||
|
|
||||||
interface PartialOption {
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface BaseSeriesBlueprint {
|
|
||||||
title: string;
|
|
||||||
key: VecId;
|
|
||||||
defaultActive?: boolean;
|
|
||||||
}
|
|
||||||
interface BaselineSeriesBlueprint extends BaseSeriesBlueprint {
|
|
||||||
type: "Baseline";
|
|
||||||
color?: Color;
|
|
||||||
options?: DeepPartial<BaselineStyleOptions & SeriesOptionsCommon>;
|
|
||||||
data?: Accessor<BaselineData<Time>[]>;
|
|
||||||
}
|
|
||||||
interface CandlestickSeriesBlueprint extends BaseSeriesBlueprint {
|
|
||||||
type: "Candlestick";
|
|
||||||
color?: Color;
|
|
||||||
options?: DeepPartial<CandlestickStyleOptions & SeriesOptionsCommon>;
|
|
||||||
data?: Accessor<CandlestickData[]>;
|
|
||||||
}
|
|
||||||
interface LineSeriesBlueprint extends BaseSeriesBlueprint {
|
|
||||||
type?: "Line";
|
|
||||||
color: Color;
|
|
||||||
options?: DeepPartial<LineStyleOptions & SeriesOptionsCommon>;
|
|
||||||
data?: Accessor<LineData<Time>[]>;
|
|
||||||
}
|
|
||||||
type AnySeriesBlueprint =
|
|
||||||
| BaselineSeriesBlueprint
|
|
||||||
| CandlestickSeriesBlueprint
|
|
||||||
| LineSeriesBlueprint;
|
|
||||||
|
|
||||||
interface PartialChartOption extends PartialOption {
|
|
||||||
title?: string;
|
|
||||||
unit?: Unit;
|
|
||||||
top?: AnySeriesBlueprint[];
|
|
||||||
bottom?: AnySeriesBlueprint[];
|
|
||||||
}
|
|
||||||
|
|
||||||
interface PartialSimulationOption extends PartialOption {
|
|
||||||
kind: "simulation";
|
|
||||||
title: string;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface PartialUrlOption extends PartialOption {
|
|
||||||
qrcode?: true;
|
|
||||||
url: () => string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface PartialOptionsGroup {
|
|
||||||
name: string;
|
|
||||||
tree: PartialOptionsTree;
|
|
||||||
}
|
|
||||||
|
|
||||||
type AnyPartialOption =
|
|
||||||
| PartialChartOption
|
|
||||||
| PartialSimulationOption
|
|
||||||
| PartialUrlOption;
|
|
||||||
|
|
||||||
type PartialOptionsTree = (AnyPartialOption | PartialOptionsGroup)[];
|
|
||||||
|
|
||||||
interface ProcessedOptionAddons {
|
|
||||||
id: string;
|
|
||||||
path: string[];
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type SimulationOption = PartialSimulationOption & ProcessedOptionAddons;
|
|
||||||
|
|
||||||
interface UrlOption extends PartialUrlOption, ProcessedOptionAddons {
|
|
||||||
kind: "url";
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ChartOption
|
|
||||||
extends Omit<PartialChartOption, "title">,
|
|
||||||
ProcessedOptionAddons {
|
|
||||||
kind: "chart";
|
|
||||||
unit: Unit;
|
|
||||||
}
|
|
||||||
|
|
||||||
type Option = UrlOption | ChartOption | SimulationOption;
|
|
||||||
|
|
||||||
type OptionsTree = (Option | OptionsGroup)[];
|
|
||||||
|
|
||||||
interface OptionsGroup extends PartialOptionsGroup {
|
|
||||||
id: string;
|
|
||||||
tree: OptionsTree;
|
|
||||||
}
|
|
||||||
|
|
||||||
type DefaultCohortOption = CohortOption<AnyPossibleCohortId>;
|
|
||||||
|
|
||||||
interface CohortOption<Id extends AnyPossibleCohortId> {
|
|
||||||
name: string;
|
|
||||||
title: string;
|
|
||||||
datasetId: Id;
|
|
||||||
color: Color;
|
|
||||||
filenameAddon?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
type DefaultCohortOptions = CohortOptions<AnyPossibleCohortId>;
|
|
||||||
|
|
||||||
interface CohortOptions<Id extends AnyPossibleCohortId> {
|
|
||||||
name: string;
|
|
||||||
title: string;
|
|
||||||
list: CohortOption<Id>[];
|
|
||||||
}
|
|
||||||
|
|
||||||
interface RatioOption {
|
|
||||||
color: Color;
|
|
||||||
// valueDatasetPath: AnyDatasetPath;
|
|
||||||
// ratioDatasetPath: AnyDatasetPath;
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface RatioOptions {
|
|
||||||
title: string;
|
|
||||||
list: RatioOption[];
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user