@ixfx/components 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/index.d.ts +207 -111
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +357 -223
- package/bundle/index.js.map +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/crumbs.d.ts +1 -1
- package/dist/crumbs.d.ts.map +1 -1
- package/dist/crumbs.js +1 -1
- package/dist/crumbs.js.map +1 -1
- package/dist/data-display.js.map +1 -1
- package/dist/incr-search.d.ts +1 -1
- package/dist/{index-BMjri2-S.d.ts → index-9fGVAg1d.d.ts} +2 -2
- package/dist/{index-BMjri2-S.d.ts.map → index-9fGVAg1d.d.ts.map} +1 -1
- package/dist/index-CowKi2mo.d.ts.map +1 -1
- package/dist/{index-CWpNcQKE.d.ts → index-_RTQSKHi.d.ts} +2 -2
- package/dist/{index-CWpNcQKE.d.ts.map → index-_RTQSKHi.d.ts.map} +1 -1
- package/dist/index.d.ts +10 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/menu.d.ts +1 -1
- package/dist/miller.d.ts +1 -1
- package/dist/panel.d.ts.map +1 -1
- package/dist/panel.js.map +1 -1
- package/dist/plots.d.ts +1 -1
- package/dist/plots.js +1 -1
- package/dist/split-layout.js.map +1 -1
- package/dist/swipe.d.ts.map +1 -1
- package/dist/swipe.js.map +1 -1
- package/dist/timeline-2OFtN4Ta.js.map +1 -1
- package/dist/{tree-CJWpMUvD.js → tree-D84RUgFC.js} +2 -2
- package/dist/tree-D84RUgFC.js.map +1 -0
- package/dist/{tree-component-BcO26Xvt.d.ts → tree-component-BaCSPWg1.d.ts} +1 -6
- package/dist/tree-component-BaCSPWg1.d.ts.map +1 -0
- package/dist/tree.d.ts +1 -1
- package/dist/tree.d.ts.map +1 -1
- package/dist/tree.js +1 -1
- package/dist/{xy-axis-McdUpcYr.d.ts → xy-axis-CEI7ojks.d.ts} +173 -70
- package/dist/xy-axis-CEI7ojks.d.ts.map +1 -0
- package/dist/{xy-axis-CK64haaK.js → xy-axis-DbPezP6A.js} +188 -54
- package/dist/xy-axis-DbPezP6A.js.map +1 -0
- package/dist/xy-pad.d.ts.map +1 -1
- package/dist/xy-pad.js.map +1 -1
- package/package.json +2 -2
- package/dist/tree-CJWpMUvD.js.map +0 -1
- package/dist/tree-component-BcO26Xvt.d.ts.map +0 -1
- package/dist/xy-axis-CK64haaK.js.map +0 -1
- package/dist/xy-axis-McdUpcYr.d.ts.map +0 -1
package/bundle/index.d.ts
CHANGED
|
@@ -1154,36 +1154,6 @@ declare global {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
} //# sourceMappingURL=ac-text.d.ts.map
|
|
1156
1156
|
//#endregion
|
|
1157
|
-
//#region src/ac-token/types.d.ts
|
|
1158
|
-
type AcTokenItem = {
|
|
1159
|
-
readonly label: string;
|
|
1160
|
-
readonly subLabel?: string;
|
|
1161
|
-
readonly icon?: string;
|
|
1162
|
-
readonly key?: string;
|
|
1163
|
-
readonly data?: unknown;
|
|
1164
|
-
readonly positions?: ReadonlySet<number>;
|
|
1165
|
-
};
|
|
1166
|
-
type AcTokenizerFn = (text: string) => string[];
|
|
1167
|
-
type AcTokensChangeDetail = {
|
|
1168
|
-
readonly tokens: readonly AcTokenItem[];
|
|
1169
|
-
};
|
|
1170
|
-
type AcTokensChangeEvent = CustomEvent<AcTokensChangeDetail>;
|
|
1171
|
-
type AcTokenAddDetail = {
|
|
1172
|
-
readonly item: AcTokenItem;
|
|
1173
|
-
readonly index: number;
|
|
1174
|
-
};
|
|
1175
|
-
type AcTokenAddEvent = CustomEvent<AcTokenAddDetail>;
|
|
1176
|
-
type AcTokenRemoveDetail = {
|
|
1177
|
-
readonly item: AcTokenItem;
|
|
1178
|
-
readonly index: number;
|
|
1179
|
-
};
|
|
1180
|
-
type AcTokenRemoveEvent = CustomEvent<AcTokenRemoveDetail>;
|
|
1181
|
-
interface AcTokenElementEventMap {
|
|
1182
|
-
'ac-token-change': AcTokensChangeEvent;
|
|
1183
|
-
'ac-token-add': AcTokenAddEvent;
|
|
1184
|
-
'ac-token-remove': AcTokenRemoveEvent;
|
|
1185
|
-
}
|
|
1186
|
-
//#endregion
|
|
1187
1157
|
//#region src/common/data-provider.d.ts
|
|
1188
1158
|
/**
|
|
1189
1159
|
* Shared data-provider contract used by components that render a list of items.
|
|
@@ -1242,6 +1212,36 @@ type IDataProvider<TQuery, TItem> = (query: TQuery, signal: AbortSignal) => Data
|
|
|
1242
1212
|
*/
|
|
1243
1213
|
declare function collectDataResult<T>(result: DataProviderResult<T>, signal: AbortSignal): Promise<readonly T[]>;
|
|
1244
1214
|
//#endregion
|
|
1215
|
+
//#region src/ac-token/types.d.ts
|
|
1216
|
+
type AcTokenItem = {
|
|
1217
|
+
readonly label: string;
|
|
1218
|
+
readonly subLabel?: string;
|
|
1219
|
+
readonly icon?: string;
|
|
1220
|
+
readonly key?: string;
|
|
1221
|
+
readonly data?: unknown;
|
|
1222
|
+
readonly positions?: ReadonlySet<number>;
|
|
1223
|
+
};
|
|
1224
|
+
type AcTokenizerFn = (text: string) => string[];
|
|
1225
|
+
type AcTokensChangeDetail = {
|
|
1226
|
+
readonly tokens: readonly AcTokenItem[];
|
|
1227
|
+
};
|
|
1228
|
+
type AcTokensChangeEvent = CustomEvent<AcTokensChangeDetail>;
|
|
1229
|
+
type AcTokenAddDetail = {
|
|
1230
|
+
readonly item: AcTokenItem;
|
|
1231
|
+
readonly index: number;
|
|
1232
|
+
};
|
|
1233
|
+
type AcTokenAddEvent = CustomEvent<AcTokenAddDetail>;
|
|
1234
|
+
type AcTokenRemoveDetail = {
|
|
1235
|
+
readonly item: AcTokenItem;
|
|
1236
|
+
readonly index: number;
|
|
1237
|
+
};
|
|
1238
|
+
type AcTokenRemoveEvent = CustomEvent<AcTokenRemoveDetail>;
|
|
1239
|
+
interface AcTokenElementEventMap {
|
|
1240
|
+
'ac-token-change': AcTokensChangeEvent;
|
|
1241
|
+
'ac-token-add': AcTokenAddEvent;
|
|
1242
|
+
'ac-token-remove': AcTokenRemoveEvent;
|
|
1243
|
+
}
|
|
1244
|
+
//#endregion
|
|
1245
1245
|
//#region src/ac-token/ac-token.d.ts
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Token/tag input with per-token autocomplete suggestions.
|
|
@@ -2985,11 +2985,6 @@ declare class DataController<TQuery, TItem> implements ReactiveController {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
//#endregion
|
|
2987
2987
|
//#region src/common/types.d.ts
|
|
2988
|
-
/**
|
|
2989
|
-
* Canonical shared types for all tree-like components (ixfx-tree-list, ixfx-miller-list,
|
|
2990
|
-
* ixfx-crumb-navigation). Import from here rather than from individual component packages.
|
|
2991
|
-
*/
|
|
2992
|
-
/** A single node's display data. */
|
|
2993
2988
|
type TreeItem = {
|
|
2994
2989
|
/** Unique identifier within the tree. */key: string; /** Visible label text. */
|
|
2995
2990
|
label: string; /** When true the node cannot have children and will not show an expand affordance. */
|
|
@@ -3796,9 +3791,9 @@ interface IGroupedSubComponentEventMap<T> {
|
|
|
3796
3791
|
*/
|
|
3797
3792
|
interface IGroupedSubComponent<T> extends HTMLElement {
|
|
3798
3793
|
/** Replace the full item list. Called whenever the lister's items or grouping changes. */
|
|
3799
|
-
setItems(items: readonly T[])
|
|
3794
|
+
setItems: (items: readonly T[]) => void;
|
|
3800
3795
|
/** Clear the current selection without firing a `select` event (avoids re-entrant loops). */
|
|
3801
|
-
clearSelection()
|
|
3796
|
+
clearSelection: () => void;
|
|
3802
3797
|
/** The current selection set. */
|
|
3803
3798
|
readonly selectedItems: ReadonlySet<T>;
|
|
3804
3799
|
/** Controls how many items can be selected simultaneously. */
|
|
@@ -3807,9 +3802,8 @@ interface IGroupedSubComponent<T> extends HTMLElement {
|
|
|
3807
3802
|
* Forward a command (e.g. sort-order change) to this sub-component.
|
|
3808
3803
|
* Uses `CommandId` from `@clinth/ui-commands` for interoperability.
|
|
3809
3804
|
*/
|
|
3810
|
-
dispatch(commandId: CommandId, args?: Record<string, unknown>)
|
|
3811
|
-
addEventListener<K extends keyof IGroupedSubComponentEventMap<T>>(type: K, listener: (event: IGroupedSubComponentEventMap<T>[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
3812
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3805
|
+
dispatch: (commandId: CommandId, args?: Record<string, unknown>) => void;
|
|
3806
|
+
addEventListener: (<K extends keyof IGroupedSubComponentEventMap<T>>(type: K, listener: (event: IGroupedSubComponentEventMap<T>[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
3813
3807
|
}
|
|
3814
3808
|
/**
|
|
3815
3809
|
* Factory that creates a sub-component for a given group.
|
|
@@ -3898,8 +3892,7 @@ declare global {
|
|
|
3898
3892
|
}
|
|
3899
3893
|
}
|
|
3900
3894
|
interface GroupedItemListerElement<T> {
|
|
3901
|
-
addEventListener<K extends keyof GroupedItemListerElementEventMap<T>>(type: K, listener: (this: GroupedItemListerElement<T>, event: GroupedItemListerElementEventMap<T>[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
3902
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3895
|
+
addEventListener: (<K extends keyof GroupedItemListerElementEventMap<T>>(type: K, listener: (this: GroupedItemListerElement<T>, event: GroupedItemListerElementEventMap<T>[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
3903
3896
|
}
|
|
3904
3897
|
//#endregion
|
|
3905
3898
|
//#region src/interaction/tickled-controller.d.ts
|
|
@@ -4224,7 +4217,7 @@ type TreeListAdapterOptions<T> = {
|
|
|
4224
4217
|
* );
|
|
4225
4218
|
* ```
|
|
4226
4219
|
*/
|
|
4227
|
-
declare function createTreeListAdapter<T>(toTreeItem: (item: T) => Omit<TreeItem,
|
|
4220
|
+
declare function createTreeListAdapter<T>(toTreeItem: (item: T) => Omit<TreeItem, `data`>, options?: TreeListAdapterOptions<T>): HTMLElement & IGroupedSubComponent<T>;
|
|
4228
4221
|
//#endregion
|
|
4229
4222
|
//#region src/vertical-list/vertical-list.d.ts
|
|
4230
4223
|
declare class VerticalListElement extends LitElement {
|
|
@@ -5328,6 +5321,9 @@ type PlotDataSeriesOptions = {
|
|
|
5328
5321
|
*/
|
|
5329
5322
|
persistentScaling: boolean;
|
|
5330
5323
|
};
|
|
5324
|
+
/**
|
|
5325
|
+
* A data series
|
|
5326
|
+
*/
|
|
5331
5327
|
declare class PlotDataSeries {
|
|
5332
5328
|
#private;
|
|
5333
5329
|
values: number[];
|
|
@@ -5335,10 +5331,136 @@ declare class PlotDataSeries {
|
|
|
5335
5331
|
min: number;
|
|
5336
5332
|
max: number;
|
|
5337
5333
|
};
|
|
5334
|
+
/**
|
|
5335
|
+
* Constructor.
|
|
5336
|
+
*
|
|
5337
|
+
* Default options:
|
|
5338
|
+
* - `capacityLimit`: 100
|
|
5339
|
+
* - `persistentScaling`: true
|
|
5340
|
+
* @param options
|
|
5341
|
+
*/
|
|
5338
5342
|
constructor(options?: Partial<PlotDataSeriesOptions>);
|
|
5339
|
-
|
|
5343
|
+
/**
|
|
5344
|
+
* Adds a single value
|
|
5345
|
+
* @param valueOrValues Value to add
|
|
5346
|
+
*/
|
|
5347
|
+
add(valueOrValues: number | number[]): void;
|
|
5348
|
+
/**
|
|
5349
|
+
* Sets the entire data series at once, replacing any existing data. If the number of values exceeds the `capacityLimit`, only the most recent values up to the limit are kept.
|
|
5350
|
+
* @param values
|
|
5351
|
+
*/
|
|
5340
5352
|
set(values: number[]): void;
|
|
5341
|
-
|
|
5353
|
+
/**
|
|
5354
|
+
* Clear all data and reset range. If `persistentScaling` is _false_, also resets scaling to initial state.
|
|
5355
|
+
* @returns _true_ if there was data to clear
|
|
5356
|
+
*/
|
|
5357
|
+
clear(): boolean;
|
|
5358
|
+
}
|
|
5359
|
+
//#endregion
|
|
5360
|
+
//#region src/plots/single-axis.d.ts
|
|
5361
|
+
type SingleAxisDrawStyle = `line-sharp` | `line-round` | `circles` | `squares` | `vbar` | `hbar` | `hist-bottom` | `hist-top` | `hist-middle`;
|
|
5362
|
+
type SingleAxisAgeStyle = `none` | `opacity` | `desaturation` | `size`;
|
|
5363
|
+
/**
|
|
5364
|
+
* PlotSingleAxis
|
|
5365
|
+
*
|
|
5366
|
+
* Adding data:
|
|
5367
|
+
* - add(value: number): adds a single value to the end of the data series.
|
|
5368
|
+
* - set(values: number[]): replaces the entire data series at once.
|
|
5369
|
+
*/
|
|
5370
|
+
declare class PlotSingleAxis extends LitElement {
|
|
5371
|
+
#private;
|
|
5372
|
+
drawStyle: SingleAxisDrawStyle;
|
|
5373
|
+
ageStyle: SingleAxisAgeStyle;
|
|
5374
|
+
title: string;
|
|
5375
|
+
precise: boolean;
|
|
5376
|
+
tooltips: boolean;
|
|
5377
|
+
capacity: number;
|
|
5378
|
+
persistentScale: boolean;
|
|
5379
|
+
paused: boolean;
|
|
5380
|
+
clickPauses: boolean;
|
|
5381
|
+
shaded: boolean;
|
|
5382
|
+
areaColor: string;
|
|
5383
|
+
colorMode: ColourMode;
|
|
5384
|
+
colorEasing: string;
|
|
5385
|
+
colorScale: string;
|
|
5386
|
+
/** Custom value-mapping function (0..1 → 0..1). Ignored when color-easing is set. */
|
|
5387
|
+
colorValueMap: ((v: number) => number) | null;
|
|
5388
|
+
private _width;
|
|
5389
|
+
private _height;
|
|
5390
|
+
/** Override to customize tooltip label. */
|
|
5391
|
+
valueFormat: (v: number | undefined) => string;
|
|
5392
|
+
/**
|
|
5393
|
+
* Get all values in the data series as a readonly array.
|
|
5394
|
+
*/
|
|
5395
|
+
get values(): readonly number[];
|
|
5396
|
+
/**
|
|
5397
|
+
* Get length of data series
|
|
5398
|
+
*/
|
|
5399
|
+
get dataCount(): number;
|
|
5400
|
+
/**
|
|
5401
|
+
* Get value at specific index of data series
|
|
5402
|
+
* @param index
|
|
5403
|
+
*/
|
|
5404
|
+
getValueAt(index: number): number | undefined;
|
|
5405
|
+
/**
|
|
5406
|
+
* Get value index based on client X position
|
|
5407
|
+
* @param clientX
|
|
5408
|
+
*/
|
|
5409
|
+
getIndexFromClientX(clientX: number): number;
|
|
5410
|
+
/**
|
|
5411
|
+
* Adds a value to the data series.
|
|
5412
|
+
*
|
|
5413
|
+
* Pass `withholdRedraw = true` to prevent automatic redraw after adding the value. In this case, call `redraw()` manually after adding all values to update the plot.
|
|
5414
|
+
*
|
|
5415
|
+
* Use {@link set} to replace the entire data series at once.
|
|
5416
|
+
* @param valueOrValues Single value, or several values
|
|
5417
|
+
* @param withholdRedraw If _false_ (default) plot is automatically redrawn
|
|
5418
|
+
*/
|
|
5419
|
+
add(valueOrValues: number | number[], withholdRedraw?: boolean): void;
|
|
5420
|
+
/**
|
|
5421
|
+
* Redraws the plot.
|
|
5422
|
+
* Normally not needed, unless add() is called with withholdRedraw = true, or styleSeries() is used to update series styles.
|
|
5423
|
+
*/
|
|
5424
|
+
redraw(): void;
|
|
5425
|
+
/**
|
|
5426
|
+
* Sets the entire data for a series at once, replacing contents.
|
|
5427
|
+
*
|
|
5428
|
+
* Use add() to add values one by one.
|
|
5429
|
+
*
|
|
5430
|
+
* Pass `withholdRedraw = true` to prevent automatic redraw after setting the values. In this case, call `redraw()` manually after setting the values to update the plot.
|
|
5431
|
+
* @param values Values
|
|
5432
|
+
* @param withholdRedraw If _false_ (default) plot is automatically redrawn
|
|
5433
|
+
*/
|
|
5434
|
+
set(values: number[], withholdRedraw?: boolean): void;
|
|
5435
|
+
/**
|
|
5436
|
+
* Clears all data and redraws
|
|
5437
|
+
*/
|
|
5438
|
+
clear(): boolean;
|
|
5439
|
+
protected firstUpdated(_changed: PropertyValues): void;
|
|
5440
|
+
protected updated(changed: PropertyValues): void;
|
|
5441
|
+
render(): TemplateResult<1>;
|
|
5442
|
+
static styles: CSSResult;
|
|
5443
|
+
}
|
|
5444
|
+
type PlotSingleAxisPointerMoveDetail = {
|
|
5445
|
+
readonly clientX: number;
|
|
5446
|
+
readonly clientY: number;
|
|
5447
|
+
readonly index: number;
|
|
5448
|
+
};
|
|
5449
|
+
type PlotSingleAxisPointerMoveEvent = CustomEvent<PlotSingleAxisPointerMoveDetail>;
|
|
5450
|
+
interface PlotSingleAxisElementEventMap {
|
|
5451
|
+
'plot-pointer-move': PlotSingleAxisPointerMoveEvent;
|
|
5452
|
+
'plot-pointer-leave': Event;
|
|
5453
|
+
}
|
|
5454
|
+
declare global {
|
|
5455
|
+
interface HTMLElementTagNameMap {
|
|
5456
|
+
'ixfx-plot-single-axis': PlotSingleAxis;
|
|
5457
|
+
}
|
|
5458
|
+
}
|
|
5459
|
+
interface PlotSingleAxis {
|
|
5460
|
+
addEventListener: {
|
|
5461
|
+
<K extends keyof PlotSingleAxisElementEventMap>(type: K, listener: (this: PlotSingleAxis, event: PlotSingleAxisElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
5462
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5463
|
+
};
|
|
5342
5464
|
}
|
|
5343
5465
|
//#endregion
|
|
5344
5466
|
//#region src/plots/multi-axis.d.ts
|
|
@@ -5358,11 +5480,45 @@ declare class PlotMultiAxis extends LitElement {
|
|
|
5358
5480
|
gridMinWidth: number;
|
|
5359
5481
|
/** Override to customize tooltip value display. */
|
|
5360
5482
|
valueFormat: (v: number | undefined) => string;
|
|
5361
|
-
|
|
5362
|
-
|
|
5483
|
+
/**
|
|
5484
|
+
* Adds a single data point
|
|
5485
|
+
* @param name Series name
|
|
5486
|
+
* @param value Value
|
|
5487
|
+
* @param witholdRedraw If _false_ (default) plot is automatically redrawn
|
|
5488
|
+
*/
|
|
5489
|
+
addData(name: string, value: number, witholdRedraw?: boolean): PlotSingleAxis;
|
|
5490
|
+
setData(name: string, values: number[], witholdRedraw?: boolean): PlotSingleAxis;
|
|
5491
|
+
setObjects(data: Record<string, number[]>, witholdRedraw?: boolean): void;
|
|
5492
|
+
/**
|
|
5493
|
+
* Calls redraw() on all subplots.
|
|
5494
|
+
*/
|
|
5495
|
+
redraw(): void;
|
|
5496
|
+
/**
|
|
5497
|
+
* Adds a record of data points to the plot. Each key in the record corresponds to a series name, and its value is added as a data point to that series. If a series does not exist for a given key, it will be created.
|
|
5498
|
+
* @param data Data to add
|
|
5499
|
+
* @param witholdRedraw If _false_ (default) plot is automatically redrawn after adding the data. If _true_, plot is not redrawn automatically, and you need to call `redraw()` manually to update the plot after adding the data.
|
|
5500
|
+
*/
|
|
5501
|
+
addObject(data: Record<string, number | number[]>, witholdRedraw?: boolean): void;
|
|
5502
|
+
/**
|
|
5503
|
+
* Styles a series by setting CSS variables on the subplot.
|
|
5504
|
+
* @param name Name of series
|
|
5505
|
+
* @param styles Styles to apply
|
|
5506
|
+
*/
|
|
5363
5507
|
styleSeries(name: string, styles: Record<string, string>): void;
|
|
5364
|
-
|
|
5365
|
-
|
|
5508
|
+
/**
|
|
5509
|
+
* Clears data from all sub-plots
|
|
5510
|
+
* @returns _True_ if there was data to clear
|
|
5511
|
+
*/
|
|
5512
|
+
clear(): boolean;
|
|
5513
|
+
/**
|
|
5514
|
+
* Clears data from a given series
|
|
5515
|
+
* @param name Series name
|
|
5516
|
+
* @returns _True_ if series was found and had data
|
|
5517
|
+
*/
|
|
5518
|
+
clearSeries(name: string): boolean;
|
|
5519
|
+
/**
|
|
5520
|
+
* Returns a copy of the series names
|
|
5521
|
+
*/
|
|
5366
5522
|
get series(): string[];
|
|
5367
5523
|
protected render(): TemplateResult<1>;
|
|
5368
5524
|
static styles: CSSResult;
|
|
@@ -5380,7 +5536,7 @@ interface PlotMultiAxis {
|
|
|
5380
5536
|
}
|
|
5381
5537
|
//#endregion
|
|
5382
5538
|
//#region src/plots/plot-histogram.d.ts
|
|
5383
|
-
type PlotHistogramOrientation =
|
|
5539
|
+
type PlotHistogramOrientation = `horizontal` | `vertical`;
|
|
5384
5540
|
type PlotHistogramBucketClickDetail = {
|
|
5385
5541
|
readonly bucketIndex: number;
|
|
5386
5542
|
readonly valueMin: number;
|
|
@@ -5416,67 +5572,7 @@ declare global {
|
|
|
5416
5572
|
}
|
|
5417
5573
|
}
|
|
5418
5574
|
interface PlotHistogram {
|
|
5419
|
-
addEventListener<K extends keyof PlotHistogramElementEventMap>(type: K, listener: (this: PlotHistogram, event: PlotHistogramElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
5420
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5421
|
-
}
|
|
5422
|
-
//#endregion
|
|
5423
|
-
//#region src/plots/single-axis.d.ts
|
|
5424
|
-
type SingleAxisDrawStyle = `line-sharp` | `line-round` | `circles` | `squares` | `vbar` | `hbar` | `hist-bottom` | `hist-top` | `hist-middle`;
|
|
5425
|
-
type SingleAxisAgeStyle = `none` | `opacity` | `desaturation` | `size`;
|
|
5426
|
-
declare class PlotSingleAxis extends LitElement {
|
|
5427
|
-
#private;
|
|
5428
|
-
drawStyle: SingleAxisDrawStyle;
|
|
5429
|
-
ageStyle: SingleAxisAgeStyle;
|
|
5430
|
-
title: string;
|
|
5431
|
-
precise: boolean;
|
|
5432
|
-
tooltips: boolean;
|
|
5433
|
-
capacity: number;
|
|
5434
|
-
persistentScale: boolean;
|
|
5435
|
-
paused: boolean;
|
|
5436
|
-
clickPauses: boolean;
|
|
5437
|
-
shaded: boolean;
|
|
5438
|
-
areaColor: string;
|
|
5439
|
-
colorMode: ColourMode;
|
|
5440
|
-
colorEasing: string;
|
|
5441
|
-
colorScale: string;
|
|
5442
|
-
/** Custom value-mapping function (0..1 → 0..1). Ignored when color-easing is set. */
|
|
5443
|
-
colorValueMap: ((v: number) => number) | null;
|
|
5444
|
-
private _width;
|
|
5445
|
-
private _height;
|
|
5446
|
-
/** Override to customize tooltip label. */
|
|
5447
|
-
valueFormat: (v: number | undefined) => string;
|
|
5448
|
-
get values(): readonly number[];
|
|
5449
|
-
get dataCount(): number;
|
|
5450
|
-
getValueAt(index: number): number | undefined;
|
|
5451
|
-
getIndexFromClientX(clientX: number): number;
|
|
5452
|
-
add(v: number): void;
|
|
5453
|
-
set(values: number[]): void;
|
|
5454
|
-
clear(): void;
|
|
5455
|
-
protected firstUpdated(_changed: PropertyValues): void;
|
|
5456
|
-
protected updated(changed: PropertyValues): void;
|
|
5457
|
-
render(): TemplateResult<1>;
|
|
5458
|
-
static styles: CSSResult;
|
|
5459
|
-
}
|
|
5460
|
-
type PlotSingleAxisPointerMoveDetail = {
|
|
5461
|
-
readonly clientX: number;
|
|
5462
|
-
readonly clientY: number;
|
|
5463
|
-
readonly index: number;
|
|
5464
|
-
};
|
|
5465
|
-
type PlotSingleAxisPointerMoveEvent = CustomEvent<PlotSingleAxisPointerMoveDetail>;
|
|
5466
|
-
interface PlotSingleAxisElementEventMap {
|
|
5467
|
-
'plot-pointer-move': PlotSingleAxisPointerMoveEvent;
|
|
5468
|
-
'plot-pointer-leave': Event;
|
|
5469
|
-
}
|
|
5470
|
-
declare global {
|
|
5471
|
-
interface HTMLElementTagNameMap {
|
|
5472
|
-
'ixfx-plot-single-axis': PlotSingleAxis;
|
|
5473
|
-
}
|
|
5474
|
-
}
|
|
5475
|
-
interface PlotSingleAxis {
|
|
5476
|
-
addEventListener: {
|
|
5477
|
-
<K extends keyof PlotSingleAxisElementEventMap>(type: K, listener: (this: PlotSingleAxis, event: PlotSingleAxisElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
|
|
5478
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5479
|
-
};
|
|
5575
|
+
addEventListener: (<K extends keyof PlotHistogramElementEventMap>(type: K, listener: (this: PlotHistogram, event: PlotHistogramElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
5480
5576
|
}
|
|
5481
5577
|
//#endregion
|
|
5482
5578
|
//#region src/plots/xy-axis.d.ts
|