@ixfx/components 0.4.2 → 0.4.4
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 +435 -1193
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +7765 -20670
- package/bundle/index.js.map +1 -1
- package/dist/ac-text.d.ts +12 -7
- package/dist/ac-text.d.ts.map +1 -1
- package/dist/ac-text.js +2 -3
- package/dist/ac-text.js.map +1 -1
- package/dist/{button-C3fLMKUv.js → button-DxYee1ZH.js} +2 -2
- package/dist/{button-C3fLMKUv.js.map → button-DxYee1ZH.js.map} +1 -1
- package/dist/button.d.ts +1 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +1 -2
- package/dist/checkbox.d.ts +0 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/{colour-picker-0sgAha1T.js → colour-picker-BacNRabo.js} +14 -16
- package/dist/colour-picker-BacNRabo.js.map +1 -0
- package/dist/colour-picker.d.ts +1 -1
- package/dist/colour-picker.js +1 -1
- package/dist/crumbs.d.ts +5 -2
- package/dist/crumbs.d.ts.map +1 -1
- package/dist/crumbs.js +45 -20
- package/dist/crumbs.js.map +1 -1
- package/dist/data-display.d.ts +1 -2
- package/dist/data-display.d.ts.map +1 -1
- package/dist/data-display.js +25 -23
- package/dist/data-display.js.map +1 -1
- package/dist/{data-provider-DgI909FP.js → data-provider-35TyWclX.js} +2 -2
- package/dist/data-provider-35TyWclX.js.map +1 -0
- package/dist/{decorate-DdjvVHS-.js → decorate-VRK8rslU.js} +2 -2
- package/dist/{decorate-DdjvVHS-.js.map → decorate-VRK8rslU.js.map} +1 -1
- package/dist/editable-label.d.ts +1 -2
- package/dist/editable-label.d.ts.map +1 -1
- package/dist/editable-label.js +1 -1
- package/dist/editable-label.js.map +1 -1
- package/dist/{hex-editor-WZrjRtvL.js → hex-editor-Bk6rxhfg.js} +9 -11
- package/dist/hex-editor-Bk6rxhfg.js.map +1 -0
- package/dist/{hex-editor-CMIxtNgT.d.ts → hex-editor-Caq8vNQk.d.ts} +2 -3
- package/dist/hex-editor-Caq8vNQk.d.ts.map +1 -0
- package/dist/hex.d.ts +1 -1
- package/dist/hex.js +1 -1
- package/dist/highlight-B-eQrhhb.js.map +1 -1
- package/dist/{icon-Ndo40kNO.js → icon-B22XVlCt.js} +6 -4
- package/dist/{icon-Ndo40kNO.js.map → icon-B22XVlCt.js.map} +1 -1
- package/dist/{icon-epZd-JIO.d.ts → icon-DpA9x2Ve.d.ts} +3 -4
- package/dist/icon-DpA9x2Ve.d.ts.map +1 -0
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +1 -1
- package/dist/{incr-search-CeERfijK.js → incr-search-2pz21xtR.js} +9 -6
- package/dist/incr-search-2pz21xtR.js.map +1 -0
- package/dist/incr-search.d.ts +1 -1
- package/dist/incr-search.js +1 -1
- package/dist/{index-CowKi2mo.d.ts → index-BeuCXtiO.d.ts} +3 -4
- package/dist/index-BeuCXtiO.d.ts.map +1 -0
- package/dist/{index-D87kRcEs.d.ts → index-BtGFYfaK.d.ts} +2 -1
- package/dist/index-BtGFYfaK.d.ts.map +1 -0
- package/dist/{index-JuEVfmr-.d.ts → index-CoqtMSd9.d.ts} +6 -4
- package/dist/index-CoqtMSd9.d.ts.map +1 -0
- package/dist/{index-9fGVAg1d.d.ts → index-Cxwxtj6g.d.ts} +3 -3
- package/dist/index-Cxwxtj6g.d.ts.map +1 -0
- package/dist/index-D_ftz_IT.d.ts +184 -0
- package/dist/index-D_ftz_IT.d.ts.map +1 -0
- package/dist/{index-_RTQSKHi.d.ts → index-DfEkTGvT.d.ts} +11 -11
- package/dist/index-DfEkTGvT.d.ts.map +1 -0
- package/dist/index.d.ts +45 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +304 -3075
- package/dist/index.js.map +1 -1
- package/dist/keyboard-B5xD7Fz-.js +36 -0
- package/dist/keyboard-B5xD7Fz-.js.map +1 -0
- package/dist/{labelled-input-base-Cz6qE6Dk.d.ts → labelled-input-base-DiTme1JO.d.ts} +2 -3
- package/dist/labelled-input-base-DiTme1JO.d.ts.map +1 -0
- package/dist/{labelled-input-base-9K_w3oLj.js → labelled-input-base-hoKGwyKT.js} +2 -2
- package/dist/{labelled-input-base-9K_w3oLj.js.map → labelled-input-base-hoKGwyKT.js.map} +1 -1
- package/dist/labelled-radial-input.d.ts +6 -5
- package/dist/labelled-radial-input.d.ts.map +1 -1
- package/dist/labelled-radial-input.js +7 -3
- package/dist/labelled-radial-input.js.map +1 -1
- package/dist/labelled-range-input.d.ts +1 -1
- package/dist/labelled-range-input.js +27 -3
- package/dist/labelled-range-input.js.map +1 -1
- package/dist/led.d.ts +1 -2
- package/dist/led.d.ts.map +1 -1
- package/dist/led.js +1 -1
- package/dist/led.js.map +1 -1
- package/dist/{menu-vjoiHZ13.js → menu-g6yd7ddN.js} +8 -9
- package/dist/menu-g6yd7ddN.js.map +1 -0
- package/dist/{menu-item-COx-Azgj.d.ts → menu-item-DSyf9f_L.d.ts} +4 -4
- package/dist/menu-item-DSyf9f_L.d.ts.map +1 -0
- package/dist/{menu-item-BrIuORYD.js → menu-item-NUKwJ4s5.js} +3 -4
- package/dist/{menu-item-BrIuORYD.js.map → menu-item-NUKwJ4s5.js.map} +1 -1
- package/dist/menu.d.ts +2 -2
- package/dist/menu.js +2 -2
- package/dist/miller.d.ts +8 -5
- package/dist/miller.d.ts.map +1 -1
- package/dist/miller.js +22 -24
- package/dist/miller.js.map +1 -1
- package/dist/narrowed-text.d.ts +7 -3
- package/dist/narrowed-text.d.ts.map +1 -1
- package/dist/narrowed-text.js +73 -47
- package/dist/narrowed-text.js.map +1 -1
- package/dist/panel.d.ts +1 -1
- package/dist/panel.d.ts.map +1 -1
- package/dist/panel.js +2 -2
- package/dist/panel.js.map +1 -1
- package/dist/plots.d.ts +2 -2
- package/dist/plots.js +1 -1
- package/dist/polar-pad.d.ts +15 -3
- package/dist/polar-pad.d.ts.map +1 -1
- package/dist/polar-pad.js +64 -11
- package/dist/polar-pad.js.map +1 -1
- package/dist/{radial-input-CpQPs1Mp.d.ts → radial-input-DXMN55Nz.d.ts} +6 -4
- package/dist/radial-input-DXMN55Nz.d.ts.map +1 -0
- package/dist/{radial-input-DZ7eQCcM.js → radial-input-DxCrt_NE.js} +41 -19
- package/dist/radial-input-DxCrt_NE.js.map +1 -0
- package/dist/radial-input.d.ts +1 -1
- package/dist/radial-input.js +1 -1
- package/dist/range-input.d.ts +15 -4
- package/dist/range-input.d.ts.map +1 -1
- package/dist/range-input.js +23 -2
- package/dist/range-input.js.map +1 -1
- package/dist/range.d.ts +15 -4
- package/dist/range.d.ts.map +1 -1
- package/dist/range.js +23 -2
- package/dist/range.js.map +1 -1
- package/dist/selecthorizontal.d.ts +1 -2
- package/dist/selecthorizontal.d.ts.map +1 -1
- package/dist/selecthorizontal.js +1 -1
- package/dist/selecthorizontal.js.map +1 -1
- package/dist/slider-input-DFpG23bS.js +1592 -0
- package/dist/slider-input-DFpG23bS.js.map +1 -0
- package/dist/slider-input-XppH3vcy.d.ts +160 -0
- package/dist/slider-input-XppH3vcy.d.ts.map +1 -0
- package/dist/slider-input.d.ts +2 -0
- package/dist/slider-input.js +2 -0
- package/dist/snap-container.d.ts +1 -2
- package/dist/snap-container.d.ts.map +1 -1
- package/dist/snap-container.js +6 -5
- package/dist/snap-container.js.map +1 -1
- package/dist/split-layout.d.ts +1 -2
- package/dist/split-layout.d.ts.map +1 -1
- package/dist/split-layout.js +6 -4
- package/dist/split-layout.js.map +1 -1
- package/dist/swipe.d.ts +12 -2
- package/dist/swipe.d.ts.map +1 -1
- package/dist/swipe.js +22 -3
- package/dist/swipe.js.map +1 -1
- package/dist/{tab-list-DLzb-m-I.d.ts → tab-list-BohmbvqF.d.ts} +14 -5
- package/dist/tab-list-BohmbvqF.d.ts.map +1 -0
- package/dist/tab-list-DzknpdSo.js +592 -0
- package/dist/tab-list-DzknpdSo.js.map +1 -0
- package/dist/tabs.d.ts +2 -2
- package/dist/tabs.js +1 -208
- package/dist/{tickled-controller-BjYCzGrU.d.ts → tickled-controller-BF2Ea0DE.d.ts} +2 -31
- package/dist/tickled-controller-BF2Ea0DE.d.ts.map +1 -0
- package/dist/tickled-styles-fNDdqf6l.js.map +1 -1
- package/dist/{timeline-2OFtN4Ta.js → timeline-B2fgDL4U.js} +37 -1438
- package/dist/timeline-B2fgDL4U.js.map +1 -0
- package/dist/timeline.d.ts +1 -1
- package/dist/timeline.js +1 -1
- package/dist/{tooltip-RGVIwHrZ.d.ts → tooltip-BlvBUQxx.d.ts} +3 -3
- package/dist/tooltip-BlvBUQxx.d.ts.map +1 -0
- package/dist/{tree-D84RUgFC.js → tree-BnvzhsAw.js} +8 -9
- package/dist/tree-BnvzhsAw.js.map +1 -0
- package/dist/{tree-component-BaCSPWg1.d.ts → tree-component-DCmmKZ4j.d.ts} +8 -124
- package/dist/tree-component-DCmmKZ4j.d.ts.map +1 -0
- package/dist/tree.d.ts +10 -4
- package/dist/tree.d.ts.map +1 -1
- package/dist/tree.js +1 -1
- package/dist/types-DO3gt5vg.d.ts +130 -0
- package/dist/types-DO3gt5vg.d.ts.map +1 -0
- package/dist/wheel-nudge-BlSCe_hD.js +86 -0
- package/dist/wheel-nudge-BlSCe_hD.js.map +1 -0
- package/dist/wheel-nudge-DGrNzWuE.d.ts +29 -0
- package/dist/wheel-nudge-DGrNzWuE.d.ts.map +1 -0
- package/dist/{xy-axis-CEI7ojks.d.ts → xy-axis-5KhVTNoX.d.ts} +75 -29
- package/dist/xy-axis-5KhVTNoX.d.ts.map +1 -0
- package/dist/xy-axis-CxHC8z5E.js +1849 -0
- package/dist/xy-axis-CxHC8z5E.js.map +1 -0
- package/dist/xy-pad.d.ts +13 -2
- package/dist/xy-pad.d.ts.map +1 -1
- package/dist/xy-pad.js +47 -6
- package/dist/xy-pad.js.map +1 -1
- package/docs-user/radial-input.md +2 -2
- package/package.json +22 -21
- package/dist/colour-C3MQIjFJ-vRCdr8W-.js +0 -3732
- package/dist/colour-C3MQIjFJ-vRCdr8W-.js.map +0 -1
- package/dist/colour-picker-0sgAha1T.js.map +0 -1
- package/dist/data-provider-DgI909FP.js.map +0 -1
- package/dist/dist-CA13FvMn.js +0 -980
- package/dist/dist-CA13FvMn.js.map +0 -1
- package/dist/hex-editor-CMIxtNgT.d.ts.map +0 -1
- package/dist/hex-editor-WZrjRtvL.js.map +0 -1
- package/dist/icon-epZd-JIO.d.ts.map +0 -1
- package/dist/incr-search-CeERfijK.js.map +0 -1
- package/dist/index-9fGVAg1d.d.ts.map +0 -1
- package/dist/index-CowKi2mo.d.ts.map +0 -1
- package/dist/index-D87kRcEs.d.ts.map +0 -1
- package/dist/index-DgXpCg_G.d.ts +0 -1244
- package/dist/index-DgXpCg_G.d.ts.map +0 -1
- package/dist/index-JuEVfmr-.d.ts.map +0 -1
- package/dist/index-_RTQSKHi.d.ts.map +0 -1
- package/dist/keyboard-CimiEskD.js +0 -20
- package/dist/keyboard-CimiEskD.js.map +0 -1
- package/dist/labelled-input-base-Cz6qE6Dk.d.ts.map +0 -1
- package/dist/menu-item-COx-Azgj.d.ts.map +0 -1
- package/dist/menu-vjoiHZ13.js.map +0 -1
- package/dist/radial-input-CpQPs1Mp.d.ts.map +0 -1
- package/dist/radial-input-DZ7eQCcM.js.map +0 -1
- package/dist/tab-list-DLzb-m-I.d.ts.map +0 -1
- package/dist/tabs.js.map +0 -1
- package/dist/tickled-controller-BjYCzGrU.d.ts.map +0 -1
- package/dist/timeline-2OFtN4Ta.js.map +0 -1
- package/dist/tooltip-RGVIwHrZ.d.ts.map +0 -1
- package/dist/tree-D84RUgFC.js.map +0 -1
- package/dist/tree-component-BaCSPWg1.d.ts.map +0 -1
- package/dist/types-DSfbtHs3.d.ts +0 -8
- package/dist/types-DSfbtHs3.d.ts.map +0 -1
- package/dist/xy-axis-CEI7ojks.d.ts.map +0 -1
- package/dist/xy-axis-DbPezP6A.js +0 -7849
- package/dist/xy-axis-DbPezP6A.js.map +0 -1
- /package/bundle/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
- /package/dist/{chunk-D7D4PA-g.js → rolldown-runtime-D7D4PA-g.js} +0 -0
package/bundle/index.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { FzfOptions } from "fzf";
|
|
2
|
+
import { Colour } from "@ixfx/visual";
|
|
2
3
|
import { CommandId, CommandRegistry, KeyboardManager } from "@clinth/ui-commands";
|
|
3
|
-
|
|
4
|
+
import { TraversableTree } from "@ixfx/collections";
|
|
5
|
+
import "@clinth/vcanvas";
|
|
4
6
|
//#region node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/development/css-tag.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2019 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/
|
|
10
7
|
/**
|
|
11
8
|
* A CSSResult or native CSSStyleSheet.
|
|
12
9
|
*
|
|
@@ -1029,8 +1026,6 @@ declare class LitElement extends ReactiveElement {
|
|
|
1029
1026
|
protected render(): unknown;
|
|
1030
1027
|
}
|
|
1031
1028
|
//#endregion
|
|
1032
|
-
//#region node_modules/.pnpm/lit@3.3.3/node_modules/lit/development/index.d.ts
|
|
1033
|
-
//#endregion
|
|
1034
1029
|
//#region src/icons/icon.d.ts
|
|
1035
1030
|
/**
|
|
1036
1031
|
* Renders an icon from the icon registry by name.
|
|
@@ -1060,7 +1055,7 @@ declare global {
|
|
|
1060
1055
|
interface HTMLElementTagNameMap {
|
|
1061
1056
|
'ixfx-icon': IxfxIconElement;
|
|
1062
1057
|
}
|
|
1063
|
-
}
|
|
1058
|
+
}
|
|
1064
1059
|
//#endregion
|
|
1065
1060
|
//#region src/ac-text/ac-text.d.ts
|
|
1066
1061
|
type AcTextItem = {
|
|
@@ -1068,8 +1063,10 @@ type AcTextItem = {
|
|
|
1068
1063
|
readonly subLabel?: string;
|
|
1069
1064
|
readonly icon?: string;
|
|
1070
1065
|
readonly key?: string;
|
|
1071
|
-
readonly data?: unknown;
|
|
1072
|
-
|
|
1066
|
+
readonly data?: unknown;
|
|
1067
|
+
/** When true, Tab-accept will not append `tabSuffix`. */
|
|
1068
|
+
readonly isLeaf?: boolean;
|
|
1069
|
+
/** Character positions within label that matched the query, used for CSS highlight rendering. */
|
|
1073
1070
|
readonly positions?: ReadonlySet<number>;
|
|
1074
1071
|
};
|
|
1075
1072
|
type AcTextSelectDetail = {
|
|
@@ -1082,13 +1079,16 @@ type AcTextSelectEvent = CustomEvent<AcTextSelectDetail>;
|
|
|
1082
1079
|
* or by selecting an item from the autocomplete popup (keyboard or click).
|
|
1083
1080
|
*/
|
|
1084
1081
|
type AcTextChangeDetail = {
|
|
1085
|
-
/** The committed text value (typed text, or the selected item's label). */
|
|
1082
|
+
/** The committed text value (typed text, or the selected item's label). */
|
|
1083
|
+
readonly value: string;
|
|
1086
1084
|
/**
|
|
1087
1085
|
* The item key. For autocomplete items: `item.key ?? item.label`.
|
|
1088
1086
|
* For plain typed text: the text itself.
|
|
1089
1087
|
*/
|
|
1090
|
-
readonly key: string;
|
|
1091
|
-
|
|
1088
|
+
readonly key: string;
|
|
1089
|
+
/** The item's `data` payload. Only present for autocomplete selections. */
|
|
1090
|
+
readonly data?: unknown;
|
|
1091
|
+
/** Whether the commit came from plain typed text or an autocomplete selection. */
|
|
1092
1092
|
readonly source: `text` | `autocomplete`;
|
|
1093
1093
|
};
|
|
1094
1094
|
type AcTextChangeEvent = CustomEvent<AcTextChangeDetail>;
|
|
@@ -1152,7 +1152,7 @@ declare global {
|
|
|
1152
1152
|
interface HTMLElementTagNameMap {
|
|
1153
1153
|
'ixfx-ac-text': AcTextElement;
|
|
1154
1154
|
}
|
|
1155
|
-
}
|
|
1155
|
+
}
|
|
1156
1156
|
//#endregion
|
|
1157
1157
|
//#region src/common/data-provider.d.ts
|
|
1158
1158
|
/**
|
|
@@ -1168,7 +1168,8 @@ declare global {
|
|
|
1168
1168
|
* DataBatch internally — you only need this type when writing a streaming provider.
|
|
1169
1169
|
*/
|
|
1170
1170
|
type DataBatch<T> = {
|
|
1171
|
-
/** Items delivered in this batch. */
|
|
1171
|
+
/** Items delivered in this batch. */
|
|
1172
|
+
readonly items: readonly T[];
|
|
1172
1173
|
/**
|
|
1173
1174
|
* When true, replace all previously accumulated items with this batch instead
|
|
1174
1175
|
* of appending. Useful for re-ranked or filtered results mid-stream.
|
|
@@ -1321,7 +1322,7 @@ declare global {
|
|
|
1321
1322
|
interface HTMLElementTagNameMap {
|
|
1322
1323
|
"ixfx-button": ButtonElement;
|
|
1323
1324
|
}
|
|
1324
|
-
}
|
|
1325
|
+
}
|
|
1325
1326
|
//#endregion
|
|
1326
1327
|
//#region src/button/radio-group.d.ts
|
|
1327
1328
|
type RadioGroupMode = `compact` | `max`;
|
|
@@ -1363,7 +1364,7 @@ declare global {
|
|
|
1363
1364
|
interface HTMLElementTagNameMap {
|
|
1364
1365
|
'ixfx-radio-group': RadioGroup;
|
|
1365
1366
|
}
|
|
1366
|
-
}
|
|
1367
|
+
}
|
|
1367
1368
|
//#endregion
|
|
1368
1369
|
//#region src/button/types.d.ts
|
|
1369
1370
|
type SplitButtonSelectDetail = {
|
|
@@ -1417,7 +1418,7 @@ declare global {
|
|
|
1417
1418
|
interface HTMLElementTagNameMap {
|
|
1418
1419
|
'ixfx-menu-container': MenuContainer;
|
|
1419
1420
|
}
|
|
1420
|
-
}
|
|
1421
|
+
}
|
|
1421
1422
|
//#endregion
|
|
1422
1423
|
//#region src/menu/menu-trigger.d.ts
|
|
1423
1424
|
type MenuMode = `trigger` | `dropdown` | `context`;
|
|
@@ -1504,7 +1505,7 @@ declare global {
|
|
|
1504
1505
|
interface HTMLElementTagNameMap {
|
|
1505
1506
|
'ixfx-menu-item': MenuItem;
|
|
1506
1507
|
}
|
|
1507
|
-
}
|
|
1508
|
+
}
|
|
1508
1509
|
//#endregion
|
|
1509
1510
|
//#region src/button/split-button.d.ts
|
|
1510
1511
|
type SplitButtonMode = `default` | `switcher`;
|
|
@@ -1557,7 +1558,7 @@ declare global {
|
|
|
1557
1558
|
interface HTMLElementTagNameMap {
|
|
1558
1559
|
'ixfx-split-button': SplitButton;
|
|
1559
1560
|
}
|
|
1560
|
-
}
|
|
1561
|
+
}
|
|
1561
1562
|
//#endregion
|
|
1562
1563
|
//#region src/checkbox/checkbox.d.ts
|
|
1563
1564
|
declare class Checkbox extends LitElement {
|
|
@@ -1615,1096 +1616,7 @@ declare global {
|
|
|
1615
1616
|
interface HTMLElementTagNameMap {
|
|
1616
1617
|
'ixfx-colour-picker': ColourPicker;
|
|
1617
1618
|
}
|
|
1618
|
-
} //# sourceMappingURL=types.d.ts.map
|
|
1619
|
-
//#endregion
|
|
1620
|
-
//#region node_modules/.pnpm/@ixfx+geometry@0.56.13/node_modules/@ixfx/geometry/dist/angles.d.ts
|
|
1621
|
-
/**
|
|
1622
|
-
* A angle with unit.
|
|
1623
|
-
* - [Degrees](https://en.wikipedia.org/wiki/Degree_(angle)): 0..360
|
|
1624
|
-
* - [Radians](https://en.wikipedia.org/wiki/Radian): 0...2Pi
|
|
1625
|
-
* - [Gradians](https://en.wikipedia.org/wiki/Gradian): 0..400
|
|
1626
|
-
* - [Turns](https://en.wikipedia.org/wiki/Turn_(angle)): 0..1
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* ```
|
|
1630
|
-
* 100 grad
|
|
1631
|
-
* 1/4 turn
|
|
1632
|
-
* 90 deg
|
|
1633
|
-
* PI/2 rad
|
|
1634
|
-
* |
|
|
1635
|
-
* Pi rad | 0 or 2PI rad
|
|
1636
|
-
* 180deg -------+------- 0 or 360 deg
|
|
1637
|
-
* 1/2 turn | 0 or 1 turn
|
|
1638
|
-
* 200 grad | 0 or 400 grad
|
|
1639
|
-
* |
|
|
1640
|
-
* 270 deg
|
|
1641
|
-
* 3PI/2 rad
|
|
1642
|
-
* 3/4 turn
|
|
1643
|
-
* 300 grad
|
|
1644
|
-
* ```
|
|
1645
|
-
*/
|
|
1646
|
-
type Angle = {
|
|
1647
|
-
value: number;
|
|
1648
|
-
unit: `deg` | `rad` | `turn` | `grad`;
|
|
1649
|
-
};
|
|
1650
|
-
//#endregion
|
|
1651
|
-
//#region node_modules/.pnpm/@ixfx+collections@0.56.13/node_modules/@ixfx/collections/dist/index-rrpZOWbs.d.ts
|
|
1652
|
-
/**
|
|
1653
|
-
* Traversable Tree.
|
|
1654
|
-
*
|
|
1655
|
-
* Creatable from:
|
|
1656
|
-
* {@link Trees.FromObject.asDynamicTraversable}: Create based on dynamic reading of an object
|
|
1657
|
-
* {@link Trees.TraversableTree}: Create based on an {@link Trees.TreeNode}, a {@link Trees.TraversableTree} or an object (same as calling asDynamicTraversable).
|
|
1658
|
-
* Use {@link Trees.isTraversable} to check if an object is this type.
|
|
1659
|
-
*/
|
|
1660
|
-
type TraversableTree<TValue> = {
|
|
1661
|
-
/**
|
|
1662
|
-
* Direct children of node
|
|
1663
|
-
*/
|
|
1664
|
-
children: () => IterableIterator<TraversableTree<TValue>>;
|
|
1665
|
-
/**
|
|
1666
|
-
* Direct parent of node
|
|
1667
|
-
*/
|
|
1668
|
-
getParent: () => TraversableTree<TValue> | undefined;
|
|
1669
|
-
/**
|
|
1670
|
-
* Value of node
|
|
1671
|
-
*/
|
|
1672
|
-
getValue: () => TValue;
|
|
1673
|
-
/**
|
|
1674
|
-
* Object reference that acts as the identity of the node
|
|
1675
|
-
*/
|
|
1676
|
-
getIdentity: () => any;
|
|
1677
|
-
};
|
|
1678
|
-
//#endregion
|
|
1679
|
-
//#region node_modules/.pnpm/@ixfx+random@0.56.13/node_modules/@ixfx/random/dist/index.d.ts
|
|
1680
|
-
//#region src/types.d.ts
|
|
1681
|
-
/**
|
|
1682
|
-
* A random source.
|
|
1683
|
-
*
|
|
1684
|
-
* Predefined sources: Math.random, {@link gaussianSource}, {@link weightedSource}
|
|
1685
|
-
*/
|
|
1686
|
-
type RandomSource = () => number;
|
|
1687
|
-
//#endregion
|
|
1688
|
-
//#region node_modules/.pnpm/@ixfx+visual@0.56.13/node_modules/@ixfx/visual/dist/index-a3KMyMEu.d.ts
|
|
1689
|
-
//#region src/colour/types.d.ts
|
|
1690
|
-
type HslBase = {
|
|
1691
|
-
/**
|
|
1692
|
-
* Hue
|
|
1693
|
-
*/
|
|
1694
|
-
h: number;
|
|
1695
|
-
/**
|
|
1696
|
-
* Saturation
|
|
1697
|
-
*/
|
|
1698
|
-
s: number;
|
|
1699
|
-
/**
|
|
1700
|
-
* Lightness
|
|
1701
|
-
*/
|
|
1702
|
-
l: number;
|
|
1703
|
-
/**
|
|
1704
|
-
* Opacity
|
|
1705
|
-
*/
|
|
1706
|
-
opacity?: number;
|
|
1707
|
-
space?: `hsl`;
|
|
1708
|
-
};
|
|
1709
|
-
/**
|
|
1710
|
-
* [YCbCr format](https://en.wikipedia.org/wiki/YCbCr)
|
|
1711
|
-
*/
|
|
1712
|
-
type YCbCrBase = {
|
|
1713
|
-
/**
|
|
1714
|
-
* Luma
|
|
1715
|
-
*/
|
|
1716
|
-
y: number;
|
|
1717
|
-
/**
|
|
1718
|
-
* Blue difference
|
|
1719
|
-
*/
|
|
1720
|
-
cb: number;
|
|
1721
|
-
/**
|
|
1722
|
-
* Red difference
|
|
1723
|
-
*/
|
|
1724
|
-
cr: number;
|
|
1725
|
-
/**
|
|
1726
|
-
* Opacity
|
|
1727
|
-
*/
|
|
1728
|
-
opacity?: number;
|
|
1729
|
-
space?: `ycbcr`;
|
|
1730
|
-
};
|
|
1731
|
-
/**
|
|
1732
|
-
* Scalar values use 0..1 for each field
|
|
1733
|
-
*/
|
|
1734
|
-
type YCbCrScalar = YCbCrBase & {
|
|
1735
|
-
unit: `scalar`;
|
|
1736
|
-
};
|
|
1737
|
-
/**
|
|
1738
|
-
* Absolute colour use 0..255 for each field
|
|
1739
|
-
*/
|
|
1740
|
-
type YCbCr8bit = YCbCrBase & {
|
|
1741
|
-
unit: `8bit`;
|
|
1742
|
-
};
|
|
1743
|
-
/**
|
|
1744
|
-
* [YCbCr format](https://en.wikipedia.org/wiki/YCbCr).
|
|
1745
|
-
*
|
|
1746
|
-
* By default assumes scalar coordinates (0..1) for each field.
|
|
1747
|
-
* Use '8bit' unit for 0..255 ranged values.
|
|
1748
|
-
*/
|
|
1749
|
-
type YCbCr = YCbCrScalar | YCbCr8bit;
|
|
1750
|
-
type ColourSpaces = `srgb` | `hsl` | `oklch` | `ycbcr`;
|
|
1751
|
-
/**
|
|
1752
|
-
* Scalar values use 0..1 for each field
|
|
1753
|
-
*/
|
|
1754
|
-
type HslScalar = HslBase & {
|
|
1755
|
-
unit: `scalar`;
|
|
1756
|
-
};
|
|
1757
|
-
/**
|
|
1758
|
-
* Absolute values use hue:0..360, all other fields 0..100
|
|
1759
|
-
*/
|
|
1760
|
-
type HslAbsolute = HslBase & {
|
|
1761
|
-
unit: `absolute`;
|
|
1762
|
-
};
|
|
1763
|
-
/**
|
|
1764
|
-
* HSL value.
|
|
1765
|
-
* By default assumes scalar coordinates (0..1) for each field.
|
|
1766
|
-
* Use 'absolute' unit for hue:0...360, all other fields on 0..100 scale.
|
|
1767
|
-
*/
|
|
1768
|
-
type Hsl = HslScalar | HslAbsolute;
|
|
1769
|
-
/**
|
|
1770
|
-
* Rgb.
|
|
1771
|
-
* Units determine how to interperet rgb values.
|
|
1772
|
-
* 'scalar': 0..1 range for RGB & opacity
|
|
1773
|
-
* '8bit': 0..255 range for RGB & opacity
|
|
1774
|
-
*/
|
|
1775
|
-
type RgbBase = {
|
|
1776
|
-
r: number;
|
|
1777
|
-
g: number;
|
|
1778
|
-
b: number;
|
|
1779
|
-
opacity?: number;
|
|
1780
|
-
space?: `srgb`;
|
|
1781
|
-
};
|
|
1782
|
-
type RgbScalar = RgbBase & {
|
|
1783
|
-
unit: `scalar`;
|
|
1784
|
-
};
|
|
1785
|
-
/**
|
|
1786
|
-
* RGB in 0...255 range, including opacity.
|
|
1787
|
-
*/
|
|
1788
|
-
type Rgb8Bit = RgbBase & {
|
|
1789
|
-
unit: `8bit`;
|
|
1790
|
-
};
|
|
1791
|
-
/**
|
|
1792
|
-
* Rgb.
|
|
1793
|
-
* Units determine how to interperet rgb values.
|
|
1794
|
-
* 'scalar': 0..1 range for RGB & opacity
|
|
1795
|
-
* '8bit': 0..255 range for RGB & opacity
|
|
1796
|
-
*/
|
|
1797
|
-
type Rgb = RgbScalar | Rgb8Bit;
|
|
1798
|
-
type LchBase = {
|
|
1799
|
-
/**
|
|
1800
|
-
* Lightness/perceived brightnes
|
|
1801
|
-
*/
|
|
1802
|
-
l: number;
|
|
1803
|
-
/**
|
|
1804
|
-
* Chroma ('amount of colour')
|
|
1805
|
-
*/
|
|
1806
|
-
c: number;
|
|
1807
|
-
/**
|
|
1808
|
-
* Hue
|
|
1809
|
-
*/
|
|
1810
|
-
h: number;
|
|
1811
|
-
/**
|
|
1812
|
-
* Opacity on 0..1 scale
|
|
1813
|
-
*/
|
|
1814
|
-
opacity?: number;
|
|
1815
|
-
space: `lch` | `oklch`;
|
|
1816
|
-
};
|
|
1817
|
-
type ColourInterpolator<T extends Colour> = (amount: number) => T;
|
|
1818
|
-
type OkLchBase = LchBase & {
|
|
1819
|
-
space: `oklch`;
|
|
1820
|
-
};
|
|
1821
|
-
/**
|
|
1822
|
-
* Oklch colour expressed in 0..1 scalar values for LCH & opacity
|
|
1823
|
-
*/
|
|
1824
|
-
type OkLchScalar = OkLchBase & {
|
|
1825
|
-
unit: `scalar`;
|
|
1826
|
-
};
|
|
1827
|
-
/**
|
|
1828
|
-
* Oklch colour expressed with:
|
|
1829
|
-
* l: 0..1
|
|
1830
|
-
* c: 0..4
|
|
1831
|
-
* h: 0..360 degrees
|
|
1832
|
-
* opacity: 0..1
|
|
1833
|
-
*/
|
|
1834
|
-
type OkLchAbsolute = OkLchBase & {
|
|
1835
|
-
unit: `absolute`;
|
|
1836
|
-
};
|
|
1837
|
-
type OkLch = OkLchAbsolute | OkLchScalar;
|
|
1838
|
-
type Colour = {
|
|
1839
|
-
opacity?: number;
|
|
1840
|
-
} & (Hsl | OkLch | Rgb | YCbCr);
|
|
1841
|
-
/**
|
|
1842
|
-
* A representation of colour. Eg: `blue`, `rgb(255,0,0)`, `hsl(20,100%,50%)`
|
|
1843
|
-
*/
|
|
1844
|
-
type Colourish = Colour | string;
|
|
1845
|
-
/**
|
|
1846
|
-
* Options for interpolation
|
|
1847
|
-
*/
|
|
1848
|
-
type ColourInterpolationOpts = {
|
|
1849
|
-
direction: `longer` | `shorter`;
|
|
1850
|
-
/**
|
|
1851
|
-
* Space to do calculations in
|
|
1852
|
-
*/
|
|
1853
|
-
space: ColourSpaces;
|
|
1854
|
-
/**
|
|
1855
|
-
* Destination of calculated colour
|
|
1856
|
-
*/
|
|
1857
|
-
destination: ConvertDestinations;
|
|
1858
|
-
};
|
|
1859
|
-
type ColourStepOpts = ColourInterpolationOpts & {
|
|
1860
|
-
/**
|
|
1861
|
-
* If set, determines total number of steps, including colour stops.
|
|
1862
|
-
* Use this _or_ `stepsBetween`.
|
|
1863
|
-
*/
|
|
1864
|
-
stepsTotal?: number;
|
|
1865
|
-
/**
|
|
1866
|
-
* If set, determines number of steps between colour stops.
|
|
1867
|
-
* Use this _or_ `stepsTotal`.
|
|
1868
|
-
*/
|
|
1869
|
-
stepsBetween?: number;
|
|
1870
|
-
};
|
|
1871
|
-
type ParsingOptions<T> = Partial<{
|
|
1872
|
-
scalar: boolean;
|
|
1873
|
-
ensureSafe: boolean;
|
|
1874
|
-
/**
|
|
1875
|
-
* Value to use if input is invalid
|
|
1876
|
-
*/
|
|
1877
|
-
fallbackString: string;
|
|
1878
|
-
/**
|
|
1879
|
-
* Fallback colour to use if value cannot be parsed
|
|
1880
|
-
*/
|
|
1881
|
-
fallbackColour: T;
|
|
1882
|
-
}>;
|
|
1883
|
-
type ConvertDestinations = `hsl-scalar` | `hsl-absolute` | `oklch-scalar` | `oklch-absolute` | `srgb-8bit` | `srgb-scalar` | `ycbcr-scalar` | `ycbcr-8bit`; //#endregion
|
|
1884
|
-
//#region ../../node_modules/.pnpm/colorizr@4.0.1/node_modules/colorizr/dist/index.d.mts
|
|
1885
|
-
type ColorType = 'hex' | 'hsl' | 'oklab' | 'oklch' | 'rgb';
|
|
1886
|
-
type HEX = `#${string}`;
|
|
1887
|
-
interface Analysis {
|
|
1888
|
-
brightnessDifference: number;
|
|
1889
|
-
colorDifference: number;
|
|
1890
|
-
compliant: number;
|
|
1891
|
-
contrast: number;
|
|
1892
|
-
largeAA: boolean;
|
|
1893
|
-
largeAAA: boolean;
|
|
1894
|
-
normalAA: boolean;
|
|
1895
|
-
normalAAA: boolean;
|
|
1896
|
-
}
|
|
1897
|
-
interface HSL {
|
|
1898
|
-
/** The alpha/opacity value (0-1). */
|
|
1899
|
-
alpha?: number;
|
|
1900
|
-
h: number;
|
|
1901
|
-
l: number;
|
|
1902
|
-
s: number;
|
|
1903
|
-
}
|
|
1904
|
-
interface LAB {
|
|
1905
|
-
a: number;
|
|
1906
|
-
/** The alpha/opacity value (0-1). */
|
|
1907
|
-
alpha?: number;
|
|
1908
|
-
b: number;
|
|
1909
|
-
l: number;
|
|
1910
|
-
}
|
|
1911
|
-
interface LCH {
|
|
1912
|
-
/** The alpha/opacity value (0-1). */
|
|
1913
|
-
alpha?: number;
|
|
1914
|
-
c: number;
|
|
1915
|
-
h: number;
|
|
1916
|
-
l: number;
|
|
1917
|
-
}
|
|
1918
|
-
interface RGB {
|
|
1919
|
-
/** The alpha/opacity value (0-1). */
|
|
1920
|
-
alpha?: number;
|
|
1921
|
-
b: number;
|
|
1922
|
-
g: number;
|
|
1923
|
-
r: number;
|
|
1924
|
-
}
|
|
1925
|
-
interface ColorizrOptions {
|
|
1926
|
-
/**
|
|
1927
|
-
* Output color format.
|
|
1928
|
-
*
|
|
1929
|
-
* If not specified, the output will use the same format as the input color.
|
|
1930
|
-
*/
|
|
1931
|
-
format?: ColorType;
|
|
1932
1619
|
}
|
|
1933
|
-
declare class Colorizr {
|
|
1934
|
-
/** The alpha/opacity value (0-1). */
|
|
1935
|
-
alpha: number;
|
|
1936
|
-
hex: HEX;
|
|
1937
|
-
hsl: HSL;
|
|
1938
|
-
oklab: LAB;
|
|
1939
|
-
oklch: LCH;
|
|
1940
|
-
rgb: RGB;
|
|
1941
|
-
type: ColorType;
|
|
1942
|
-
constructor(color: string | HSL | LAB | LCH | RGB, options?: ColorizrOptions);
|
|
1943
|
-
/**
|
|
1944
|
-
* Get CSS string
|
|
1945
|
-
*/
|
|
1946
|
-
get css(): string;
|
|
1947
|
-
/**
|
|
1948
|
-
* Get the red value
|
|
1949
|
-
*/
|
|
1950
|
-
get red(): number;
|
|
1951
|
-
/**
|
|
1952
|
-
* Get the green value
|
|
1953
|
-
*/
|
|
1954
|
-
get green(): number;
|
|
1955
|
-
/**
|
|
1956
|
-
* Get the blue value
|
|
1957
|
-
*/
|
|
1958
|
-
get blue(): number;
|
|
1959
|
-
/**
|
|
1960
|
-
* Get the hue value
|
|
1961
|
-
*/
|
|
1962
|
-
get hue(): number;
|
|
1963
|
-
/**
|
|
1964
|
-
* Get the saturation value
|
|
1965
|
-
*/
|
|
1966
|
-
get saturation(): number;
|
|
1967
|
-
/**
|
|
1968
|
-
* Get the lightness value
|
|
1969
|
-
*/
|
|
1970
|
-
get lightness(): number;
|
|
1971
|
-
/**
|
|
1972
|
-
* Get the luminance value
|
|
1973
|
-
*/
|
|
1974
|
-
get luminance(): number;
|
|
1975
|
-
/**
|
|
1976
|
-
* Get the chroma value
|
|
1977
|
-
*/
|
|
1978
|
-
get chroma(): number;
|
|
1979
|
-
get opacity(): number;
|
|
1980
|
-
/**
|
|
1981
|
-
* Get the most readable color (light or dark) for this color as a background.
|
|
1982
|
-
*/
|
|
1983
|
-
get readableColor(): string;
|
|
1984
|
-
private get currentColor();
|
|
1985
|
-
/**
|
|
1986
|
-
* Get the brightness difference between this color and another.
|
|
1987
|
-
*
|
|
1988
|
-
* @param input - The color to compare against.
|
|
1989
|
-
* @returns The brightness difference value.
|
|
1990
|
-
*/
|
|
1991
|
-
brightnessDifference(input: string): number;
|
|
1992
|
-
/**
|
|
1993
|
-
* Get the color difference between this color and another.
|
|
1994
|
-
*
|
|
1995
|
-
* @param input - The color to compare against.
|
|
1996
|
-
* @returns The color difference value.
|
|
1997
|
-
*/
|
|
1998
|
-
colorDifference(input: string): number;
|
|
1999
|
-
/**
|
|
2000
|
-
* Test 2 colors for WCAG compliance.
|
|
2001
|
-
*
|
|
2002
|
-
* @param input - The color to compare against.
|
|
2003
|
-
* @returns Analysis object with compliance information.
|
|
2004
|
-
*/
|
|
2005
|
-
compare(input: string): Analysis;
|
|
2006
|
-
/**
|
|
2007
|
-
* Get the contrast ratio between this color and another.
|
|
2008
|
-
*
|
|
2009
|
-
* @param input - The color to compare against.
|
|
2010
|
-
* @returns The contrast ratio.
|
|
2011
|
-
*/
|
|
2012
|
-
contrast(input: string): number;
|
|
2013
|
-
/**
|
|
2014
|
-
* Format the color to a specific type.
|
|
2015
|
-
*
|
|
2016
|
-
* @param type - The color format to convert to.
|
|
2017
|
-
* @param precision - The decimal precision for the output.
|
|
2018
|
-
* @returns The formatted color string.
|
|
2019
|
-
*/
|
|
2020
|
-
format(type: ColorType, precision?: number): string;
|
|
2021
|
-
/**
|
|
2022
|
-
* Increase lightness.
|
|
2023
|
-
*
|
|
2024
|
-
* @param amount - A number between 0 and 100.
|
|
2025
|
-
* @returns The lightened color string.
|
|
2026
|
-
*/
|
|
2027
|
-
lighten(amount: number): string;
|
|
2028
|
-
/**
|
|
2029
|
-
* Decrease lightness.
|
|
2030
|
-
*
|
|
2031
|
-
* @param amount - A number between 0 and 100.
|
|
2032
|
-
* @returns The darkened color string.
|
|
2033
|
-
*/
|
|
2034
|
-
darken(amount: number): string;
|
|
2035
|
-
/**
|
|
2036
|
-
* Increase saturation.
|
|
2037
|
-
*
|
|
2038
|
-
* @param amount - A number between 0 and 100.
|
|
2039
|
-
* @returns The saturated color string.
|
|
2040
|
-
*/
|
|
2041
|
-
saturate(amount: number): string;
|
|
2042
|
-
/**
|
|
2043
|
-
* Decrease saturation.
|
|
2044
|
-
*
|
|
2045
|
-
* @param amount - A number between 0 and 100.
|
|
2046
|
-
* @returns The desaturated color string.
|
|
2047
|
-
*/
|
|
2048
|
-
desaturate(amount: number): string;
|
|
2049
|
-
/**
|
|
2050
|
-
* Convert to grayscale.
|
|
2051
|
-
*
|
|
2052
|
-
* @returns The grayscale color string.
|
|
2053
|
-
*/
|
|
2054
|
-
grayscale(): string;
|
|
2055
|
-
/**
|
|
2056
|
-
* Invert color.
|
|
2057
|
-
*
|
|
2058
|
-
* @returns The inverted color string.
|
|
2059
|
-
*/
|
|
2060
|
-
invert(): string;
|
|
2061
|
-
/**
|
|
2062
|
-
* Mix with another color.
|
|
2063
|
-
*
|
|
2064
|
-
* @param color - The color to mix with.
|
|
2065
|
-
* @param ratio - A number between 0 and 1 (0 = this color, 1 = input color).
|
|
2066
|
-
* @returns The mixed color string.
|
|
2067
|
-
*/
|
|
2068
|
-
mix(color: string, ratio?: number): string;
|
|
2069
|
-
/**
|
|
2070
|
-
* Add opacity to the color.
|
|
2071
|
-
*
|
|
2072
|
-
* @param alpha - A number between 0 and 1.
|
|
2073
|
-
* @returns The opacified color string.
|
|
2074
|
-
*/
|
|
2075
|
-
opacify(alpha?: number): string;
|
|
2076
|
-
/**
|
|
2077
|
-
* Rotate color hue.
|
|
2078
|
-
*
|
|
2079
|
-
* @param degrees - A number between -360 and 360.
|
|
2080
|
-
* @returns The rotated color string.
|
|
2081
|
-
*/
|
|
2082
|
-
rotate(degrees: number): string;
|
|
2083
|
-
/**
|
|
2084
|
-
* Make the color more transparent.
|
|
2085
|
-
*
|
|
2086
|
-
* @param alpha - A number between -1 and 1.
|
|
2087
|
-
* @returns The transparentized color string.
|
|
2088
|
-
*/
|
|
2089
|
-
transparentize(alpha?: number): string;
|
|
2090
|
-
}
|
|
2091
|
-
/**
|
|
2092
|
-
* Check 2 colors for WCAG compliance.
|
|
2093
|
-
*
|
|
2094
|
-
* @param left - The first color string.
|
|
2095
|
-
* @param right - The second color string.
|
|
2096
|
-
* @returns Analysis object with WCAG compliance information.
|
|
2097
|
-
*/
|
|
2098
|
-
//#endregion
|
|
2099
|
-
//#region src/colour/conversion.d.ts
|
|
2100
|
-
declare function convert<T extends ConvertDestinations>(colour: Colourish, destination: T): T extends `oklch-absolute` ? OkLchAbsolute : T extends `oklch-scalar` ? OkLchScalar : T extends `srgb-8bit` ? Rgb8Bit : T extends `srgb-scalar` ? RgbScalar : T extends `hsl-scalar` ? HslScalar : T extends `hsl-absolute` ? HslAbsolute : never;
|
|
2101
|
-
/**
|
|
2102
|
-
* Like {@link convert}, but result is a CSS colour string
|
|
2103
|
-
* @param colour
|
|
2104
|
-
* @param destination
|
|
2105
|
-
*/
|
|
2106
|
-
declare function convertToString(colour: Colourish, destination: ConvertDestinations): string;
|
|
2107
|
-
/**
|
|
2108
|
-
* Converts some kind of colour into a scalar representation. Supports oklch, hsl and srgb.
|
|
2109
|
-
* @param colour Colour to convert
|
|
2110
|
-
* @param destination Destination colour format
|
|
2111
|
-
*/
|
|
2112
|
-
declare function convertScalar<T extends ColourSpaces>(colour: Colourish, destination: T): T extends `oklch` ? OkLchScalar : T extends `hsl` ? HslScalar : T extends `srgb` ? RgbScalar : never;
|
|
2113
|
-
declare function toCssColour(colour: Colourish | object): string;
|
|
2114
|
-
declare function toHexColour(colour: Colourish | object): string;
|
|
2115
|
-
declare function toLibraryColour(colour: Colourish): Colorizr;
|
|
2116
|
-
declare function guard$4(colour: Colour): void;
|
|
2117
|
-
declare function toColour(colourish: any): Colour;
|
|
2118
|
-
/**
|
|
2119
|
-
* Returns a CSS-ready string
|
|
2120
|
-
* representation.
|
|
2121
|
-
* ```js
|
|
2122
|
-
* element.style.backgroundColor = resolveToString(`red`);
|
|
2123
|
-
* ```
|
|
2124
|
-
*
|
|
2125
|
-
* Tries each parameter in turn, returning the value
|
|
2126
|
-
* for the first that resolves. This can be useful for
|
|
2127
|
-
* having fallback values.
|
|
2128
|
-
*
|
|
2129
|
-
* ```js
|
|
2130
|
-
* // Try a CSS variable, a object property or finally fallback to red.
|
|
2131
|
-
* element.style.backgroundColor = toStringFirst('--some-var', opts.background, `red`);
|
|
2132
|
-
* ```
|
|
2133
|
-
* @param colours Array of colours to resolve
|
|
2134
|
-
*/
|
|
2135
|
-
declare function toStringFirst(...colours: Array<Colourish | undefined>): string;
|
|
2136
|
-
declare function rgbToHsl(rgb: Rgb, scalarResult: true): HslScalar;
|
|
2137
|
-
declare function rgbToHsl(rgb: Rgb, scalarResult: false): HslAbsolute; //#endregion
|
|
2138
|
-
//#region src/colour/css-colours.d.ts
|
|
2139
|
-
/**
|
|
2140
|
-
* Converts from some kind of colour that is legal in CSS
|
|
2141
|
-
* into a structured Colour type.
|
|
2142
|
-
*
|
|
2143
|
-
* Handles: hex format, CSS variables, colour names
|
|
2144
|
-
* ```js
|
|
2145
|
-
* fromCssColour(`#ffffff`);
|
|
2146
|
-
* fromCssColour(`blue`);
|
|
2147
|
-
* fromCssColour(`--some-variable`);
|
|
2148
|
-
* fromCssColour(`hsl(50, 50%, 50%)`);
|
|
2149
|
-
* fromCssColour(`rgb(50, 100, 100)`);
|
|
2150
|
-
* ```
|
|
2151
|
-
* @param colour
|
|
2152
|
-
* @returns
|
|
2153
|
-
*/
|
|
2154
|
-
declare const fromCssColour: (colour: string) => Colour;
|
|
2155
|
-
/**
|
|
2156
|
-
* Resolves a named colour to a colour string.
|
|
2157
|
-
*
|
|
2158
|
-
* ```js
|
|
2159
|
-
* resolveCss(`red`);
|
|
2160
|
-
* ```
|
|
2161
|
-
* @param colour CSS named colour
|
|
2162
|
-
* @returns
|
|
2163
|
-
*/
|
|
2164
|
-
declare function resolveCss(colour: CssColourNames): string;
|
|
2165
|
-
type CssColourNames = keyof typeof cssDefinedHexColours;
|
|
2166
|
-
declare const cssDefinedHexColours: Record<string, string>; //#endregion
|
|
2167
|
-
//#region src/colour/generate.d.ts
|
|
2168
|
-
/**
|
|
2169
|
-
* Returns a full HSL colour string (eg `hsl(20,50%,75%)`) based on a index.
|
|
2170
|
-
* It's useful for generating perceptually different shades as the index increments.
|
|
2171
|
-
*
|
|
2172
|
-
* ```
|
|
2173
|
-
* el.style.backgroundColor = goldenAgeColour(10);
|
|
2174
|
-
* ```
|
|
2175
|
-
*
|
|
2176
|
-
* Saturation and lightness can be specified, as numeric ranges of 0-1.
|
|
2177
|
-
*
|
|
2178
|
-
* @param saturation Saturation (0-1), defaults to 0.5
|
|
2179
|
-
* @param lightness Lightness (0-1), defaults to 0.75
|
|
2180
|
-
* @param alpha Opacity (0-1), defaults to 1.0
|
|
2181
|
-
* @returns HSL colour string eg `hsl(20,50%,75%)`
|
|
2182
|
-
*/
|
|
2183
|
-
declare const goldenAngleColour: (index: number, saturation?: number, lightness?: number, alpha?: number) => string;
|
|
2184
|
-
/**
|
|
2185
|
-
* Returns a random hue component (0..359)
|
|
2186
|
-
*
|
|
2187
|
-
* ```
|
|
2188
|
-
* // Generate hue
|
|
2189
|
-
* const h = randomHue(); // 0-359
|
|
2190
|
-
*
|
|
2191
|
-
* // Generate hue and assign as part of a HSL string
|
|
2192
|
-
* el.style.backgroundColor = `hsl(${randomHue(), 50%, 75%})`;
|
|
2193
|
-
* ```
|
|
2194
|
-
* @param rand
|
|
2195
|
-
* @returns
|
|
2196
|
-
*/
|
|
2197
|
-
declare const randomHue: (rand?: RandomSource) => number; //#endregion
|
|
2198
|
-
//#region src/colour/guards.d.ts
|
|
2199
|
-
declare function isHsl(v: any): v is Hsl;
|
|
2200
|
-
declare function isRgb(v: any): v is Rgb;
|
|
2201
|
-
/**
|
|
2202
|
-
* If the input object has r,g&b properties, it will return a fully-
|
|
2203
|
-
* formed Rgb type with `unit` and `space` properties.
|
|
2204
|
-
*
|
|
2205
|
-
* If it lacks these basic three properties or they are out of range,
|
|
2206
|
-
* _undefined_ is returned.
|
|
2207
|
-
*
|
|
2208
|
-
* If RGB values are less than 1 assumes unit:scalar. Otherwise unit:8bit.
|
|
2209
|
-
* If RGB values exceed 255, _undefined_ returned.
|
|
2210
|
-
* @param v
|
|
2211
|
-
* @returns
|
|
2212
|
-
*/
|
|
2213
|
-
declare function tryParseObjectToRgb(v: any): Rgb | undefined;
|
|
2214
|
-
declare function tryParseObjectToHsl(v: any): Hsl | undefined;
|
|
2215
|
-
declare function isOkLch(v: any): v is OkLch;
|
|
2216
|
-
declare function isColourish(v: any): v is Colourish;
|
|
2217
|
-
declare namespace hsl_d_exports {
|
|
2218
|
-
export { absolute$1 as absolute, changeLightness$1 as changeLightness, fromCss$3 as fromCss, fromHexString$3 as fromHexString, generateScalar$1 as generateScalar, guard$3 as guard, interpolator$3 as interpolator, parseCssHslFunction, scalar$3 as scalar, toAbsolute$1 as toAbsolute, toCssString$2 as toCssString, toHexString$3 as toHexString, toLibraryRgb, toScalar$3 as toScalar, withOpacity$3 as withOpacity };
|
|
2219
|
-
}
|
|
2220
|
-
/**
|
|
2221
|
-
* Scales the opacity value of an input HSL value
|
|
2222
|
-
* ```js
|
|
2223
|
-
* withOpacity()
|
|
2224
|
-
* ```
|
|
2225
|
-
* @param value Colour
|
|
2226
|
-
* @param fn Function that calcules opacity based on input scalar value
|
|
2227
|
-
*/
|
|
2228
|
-
declare function withOpacity$3<T extends Hsl>(value: T, fn: (opacityScalar: number, value: T) => number): T;
|
|
2229
|
-
/**
|
|
2230
|
-
* Increases or decreases lightness by this percentage, returning new colour
|
|
2231
|
-
*
|
|
2232
|
-
* Amount to change:
|
|
2233
|
-
* 'fixed': a fixed amount
|
|
2234
|
-
* 'delta': increase/decrease by this amount
|
|
2235
|
-
* 'pdelta': proportion of current value to change by ('percentage delta')
|
|
2236
|
-
*
|
|
2237
|
-
* ```
|
|
2238
|
-
* const colour = { h: 0.5, s: 0.5, l: 0.5, space: `hsl`, unit: `scalar` };
|
|
2239
|
-
* changeLightness(colour, { pdelta: 0.1 }); // l: 0.55
|
|
2240
|
-
* changeLightness(colour, { delta: 0.1 }); // l: 0.6
|
|
2241
|
-
* changeLightness(colour, { fixed: 0.5 }); // l: 0.5
|
|
2242
|
-
* ```
|
|
2243
|
-
*
|
|
2244
|
-
* Keep in mind the numerical value will depend on the unit of `value`. If it's scalar,
|
|
2245
|
-
* lightness is 0..1 scale, otherwise 0..100 scale.
|
|
2246
|
-
*
|
|
2247
|
-
* Use negative values to decrease (does not apply to 'fixed')
|
|
2248
|
-
* @param value Hsl colour
|
|
2249
|
-
* @param amount Amount to change
|
|
2250
|
-
*/
|
|
2251
|
-
declare function changeLightness$1(value: Hsl, amount: Partial<{
|
|
2252
|
-
pdelta: number;
|
|
2253
|
-
delta: number;
|
|
2254
|
-
fixed: number;
|
|
2255
|
-
}>): Hsl;
|
|
2256
|
-
declare function fromHexString$3<T extends ParsingOptions<Hsl>>(hexString: string, scalar: T): T extends {
|
|
2257
|
-
scalar: true;
|
|
2258
|
-
} ? HslScalar : HslAbsolute;
|
|
2259
|
-
declare function fromCss$3<T extends ParsingOptions<Hsl>>(value: string, options?: T): T extends {
|
|
2260
|
-
scalar: true;
|
|
2261
|
-
} ? HslScalar : HslAbsolute;
|
|
2262
|
-
declare function toCssString$2(hsl: Hsl): string;
|
|
2263
|
-
declare function toHexString$3(hsl: Hsl): string;
|
|
2264
|
-
declare function toAbsolute$1(hslOrString: Hsl | Rgb | string): HslAbsolute;
|
|
2265
|
-
/**
|
|
2266
|
-
* Generates a {@link HslScalar} value.
|
|
2267
|
-
*
|
|
2268
|
-
* ```js
|
|
2269
|
-
* generateScaler(10); // 10deg, default to full saturation, half lightness and full opacity
|
|
2270
|
-
*
|
|
2271
|
-
* // Generate HSL value from radian angle and 50% saturation
|
|
2272
|
-
* generateScalar(`10rad`, 0.5);
|
|
2273
|
-
*
|
|
2274
|
-
* // Generate from numeric CSS variable
|
|
2275
|
-
* generateScalar(`--hue`);
|
|
2276
|
-
* ```
|
|
2277
|
-
* @param absoluteHslOrVariable Hue angle or CSS variable
|
|
2278
|
-
* @param saturation
|
|
2279
|
-
* @param lightness
|
|
2280
|
-
* @param opacity
|
|
2281
|
-
*/
|
|
2282
|
-
declare function generateScalar$1(absoluteHslOrVariable: string | number | Angle, saturation?: number, lightness?: number, opacity?: number): HslScalar;
|
|
2283
|
-
/**
|
|
2284
|
-
* Converts a {@link Hsl} value to scalar units, or parses a colour string
|
|
2285
|
-
* and converts it.
|
|
2286
|
-
*
|
|
2287
|
-
* ```js
|
|
2288
|
-
* toScalar({ h: 100, s: 50, l: 100, unit: `absolute` });
|
|
2289
|
-
* toScalar(`red`);
|
|
2290
|
-
* ```
|
|
2291
|
-
* @param colour
|
|
2292
|
-
*/
|
|
2293
|
-
declare function toScalar$3(colour: Rgb | Hsl | string): HslScalar;
|
|
2294
|
-
declare function guard$3(hsl: Hsl): void;
|
|
2295
|
-
declare function interpolator$3(a: Hsl | string, b: Hsl | string, direction?: `longer` | `shorter`): (amount: number) => HslScalar;
|
|
2296
|
-
/**
|
|
2297
|
-
* Creates a HslScalar value from scalar (0..1) values
|
|
2298
|
-
* @param hue
|
|
2299
|
-
* @param sat
|
|
2300
|
-
* @param lightness
|
|
2301
|
-
* @param opacity
|
|
2302
|
-
*/
|
|
2303
|
-
declare function scalar$3(hue?: number, sat?: number, lightness?: number, opacity?: number): HslScalar;
|
|
2304
|
-
declare function absolute$1(hue?: number, sat?: number, lightness?: number, opacity?: number): HslAbsolute;
|
|
2305
|
-
/**
|
|
2306
|
-
* It seems Colorizr can't handle 'deg' units
|
|
2307
|
-
* @param value
|
|
2308
|
-
*/
|
|
2309
|
-
declare function parseCssHslFunction(value: string): Hsl;
|
|
2310
|
-
/**
|
|
2311
|
-
* Converts a Hsl structure (or CSS string) to Colorizr's RGB format
|
|
2312
|
-
* @param hsl HSL colour
|
|
2313
|
-
*/
|
|
2314
|
-
declare function toLibraryRgb(hsl: Hsl | string): RGB; //#endregion
|
|
2315
|
-
//#region src/colour/interpolate.d.ts
|
|
2316
|
-
/**
|
|
2317
|
-
* Returns a function to interpolate between colours, with results as a structured {@link Colour} object.
|
|
2318
|
-
* ```js
|
|
2319
|
-
* const i = interpolator([`orange`, `yellow`, `red`]);
|
|
2320
|
-
*
|
|
2321
|
-
* // Get a random colour on the above spectrum
|
|
2322
|
-
* i(Math.random());
|
|
2323
|
-
* ```
|
|
2324
|
-
*
|
|
2325
|
-
* Results will vary depending on the colour space used, play with the options.
|
|
2326
|
-
* When using a hue-based colour space, the `hue` option sets the logic for how hue values wrap.
|
|
2327
|
-
*
|
|
2328
|
-
* ```js
|
|
2329
|
-
* interpolator([`orange`, `yellow`, `red`], { space: `hsl`, hue: `longer })
|
|
2330
|
-
* ```
|
|
2331
|
-
*
|
|
2332
|
-
* Example: Draw the interpolation as a spectrum on a canvas, where each pixel is one step
|
|
2333
|
-
* ```js
|
|
2334
|
-
* let v = 0;
|
|
2335
|
-
* let incrementBy = 0.01;
|
|
2336
|
-
* while (v <= 1) {
|
|
2337
|
-
* // Get colour at this interpolation point 0..1
|
|
2338
|
-
* const colour = fn(v);
|
|
2339
|
-
* // Convert to a CSS string
|
|
2340
|
-
* ctx.fillStyle = Colour.toCssColour(colour);
|
|
2341
|
-
* // Draw a 1px wide rect, and shuffle along to the next x position
|
|
2342
|
-
* ctx.fillRect(x, y, 1, h);
|
|
2343
|
-
* x += 1;
|
|
2344
|
-
* v += incrementBy;
|
|
2345
|
-
* }
|
|
2346
|
-
* ```
|
|
2347
|
-
* @param colours Colours to interpolate between
|
|
2348
|
-
* @param opts Options for interpolation
|
|
2349
|
-
* @returns Function that interpolates based on an amount, returning a structured Colour
|
|
2350
|
-
*/
|
|
2351
|
-
declare function interpolator$2(colours: Colourish[], opts?: Partial<ColourInterpolationOpts>): (amt: number) => Colour;
|
|
2352
|
-
/**
|
|
2353
|
-
* Returns a CSS `linear-gradient` with stops corresponding to the given list of `colours`.
|
|
2354
|
-
* ```js
|
|
2355
|
-
* element.style.background = Colour.cssLinearGradient(['red','green','blue']);
|
|
2356
|
-
* ```
|
|
2357
|
-
* @param colours
|
|
2358
|
-
* @returns A 'linear-gradient' string for use in CSS, eg for background.
|
|
2359
|
-
*/
|
|
2360
|
-
declare function cssLinearGradient(colours: Colourish[]): string;
|
|
2361
|
-
/**
|
|
2362
|
-
* Returns a function that interpolates between two colours. Returns string colour values.
|
|
2363
|
-
* If you want the result as a structured colour, use {@link interpolatorDual} instead.
|
|
2364
|
-
*
|
|
2365
|
-
* By default takes a shorter direction and uses the OkLCH colourspace.
|
|
2366
|
-
* ```js
|
|
2367
|
-
* const i = interpolator(`blue`, `red`);
|
|
2368
|
-
* i(0.5); // Get the colour at 50%, as a string.
|
|
2369
|
-
* ```
|
|
2370
|
-
*
|
|
2371
|
-
* To work with structured colour values, use one of the space's `interpolate` functions.
|
|
2372
|
-
*
|
|
2373
|
-
* If you want to create discrete steps, consider {@link createSteps} or {@link scale}.
|
|
2374
|
-
*
|
|
2375
|
-
* @param colourA First colour
|
|
2376
|
-
* @param colourB Second colour
|
|
2377
|
-
* @param options Interpolation options. By default uses shorter direction and OkLCH colour space.
|
|
2378
|
-
*/
|
|
2379
|
-
declare function interpolatorDualToString(colourA: Colourish, colourB: Colourish, options?: Partial<ColourInterpolationOpts>): ((amount: number) => string);
|
|
2380
|
-
/**
|
|
2381
|
-
* Returns a function that interpolates between two colours. Returns structured colour values.
|
|
2382
|
-
* If you want the result as a ready-to-use CSS string, use {@link interpolatorDualToString} instead.
|
|
2383
|
-
*
|
|
2384
|
-
* By default takes a shorter direction and uses the OkLCH colourspace.
|
|
2385
|
-
* ```js
|
|
2386
|
-
* const i = interpolator(`blue`, `red`);
|
|
2387
|
-
* i(0.5); // Get the colour at 50%, as a Colour structure.
|
|
2388
|
-
* ```
|
|
2389
|
-
*
|
|
2390
|
-
* If you want to create discrete steps, consider {@link createSteps} or {@link scale}.
|
|
2391
|
-
* @param colourA First colour
|
|
2392
|
-
* @param colourB Second colour
|
|
2393
|
-
* @param options Interpolation options. By default uses shorter direction and OkLCH colour space.
|
|
2394
|
-
* @returns Function that interpolates between two colours, returning a structured Colour
|
|
2395
|
-
*/
|
|
2396
|
-
declare function interpolatorDual(colourA: Colourish, colourB: Colourish, options?: Partial<ColourInterpolationOpts>): (amount: number) => Colour;
|
|
2397
|
-
/**
|
|
2398
|
-
* Produces a stepped scale of colours.
|
|
2399
|
-
*
|
|
2400
|
-
* Builds off {@link createSteps} which can only step between two colours.
|
|
2401
|
-
*
|
|
2402
|
-
* ```js
|
|
2403
|
-
* // A scale of from red to green, with three colours in-between
|
|
2404
|
-
* const steps = Colour.scale([ `red`, `green` ], { stepsBetween: 3 });
|
|
2405
|
-
* for (const step of steps) {
|
|
2406
|
-
* // A CSS colour string
|
|
2407
|
-
* }
|
|
2408
|
-
* ```
|
|
2409
|
-
*
|
|
2410
|
-
* {@link cssLinearGradient} can produce a smooth gradient in CSS on the basis
|
|
2411
|
-
* of the stepped colours.
|
|
2412
|
-
* @param colours
|
|
2413
|
-
* @param opts
|
|
2414
|
-
* @returns Array of colours in string form
|
|
2415
|
-
*/
|
|
2416
|
-
declare function scale(colours: Colourish[], opts?: Partial<ColourStepOpts>): string[];
|
|
2417
|
-
type CreateStepsOptions = Partial<{
|
|
2418
|
-
space: ColourSpaces;
|
|
2419
|
-
steps: number;
|
|
2420
|
-
direction: `longer` | `shorter`;
|
|
2421
|
-
exclusive: boolean;
|
|
2422
|
-
}>;
|
|
2423
|
-
/**
|
|
2424
|
-
* Creates discrete colour steps between two colours.
|
|
2425
|
-
*
|
|
2426
|
-
* Use {@link scale} to create steps between any number of colours.
|
|
2427
|
-
*
|
|
2428
|
-
* Start and end colours are included (and counted as a step) unless `exclusive` is set to _true_
|
|
2429
|
-
*
|
|
2430
|
-
* ```js
|
|
2431
|
-
* // Array of five HslScalar
|
|
2432
|
-
* createSteps(`red`,`blue`, { steps: 5 });
|
|
2433
|
-
* ```
|
|
2434
|
-
*
|
|
2435
|
-
* Defaults to the oklch colour space, 5 steps and non-exclusive.
|
|
2436
|
-
* @param a Start colour
|
|
2437
|
-
* @param b End colour
|
|
2438
|
-
* @param options
|
|
2439
|
-
* @returns Colour steps
|
|
2440
|
-
*/
|
|
2441
|
-
declare function createSteps<T extends CreateStepsOptions>(a: Colourish | string, b: Colourish, options: T): T extends {
|
|
2442
|
-
space: `oklch`;
|
|
2443
|
-
} ? OkLchScalar[] : T extends {
|
|
2444
|
-
space: `srgb`;
|
|
2445
|
-
} ? RgbScalar[] : T extends {
|
|
2446
|
-
space: `hsl`;
|
|
2447
|
-
} ? HslScalar[] : OkLchScalar[]; //#endregion
|
|
2448
|
-
//#region src/colour/math.d.ts
|
|
2449
|
-
declare function multiplyOpacity<T extends Colourish>(colourish: T, amount: number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
|
|
2450
|
-
/**
|
|
2451
|
-
* Does a computation with the opacity of a colour, returning colour string
|
|
2452
|
-
* @param colourish Colour
|
|
2453
|
-
* @param fn Function that takes original opacity as input and returns output opacity
|
|
2454
|
-
*/
|
|
2455
|
-
/**
|
|
2456
|
-
* Does a computation with the opacity of a colour in a HSL structure
|
|
2457
|
-
* @param hsl Colour
|
|
2458
|
-
* @param fn Function that takes original opacity as input and returns output opacity
|
|
2459
|
-
*/
|
|
2460
|
-
/**
|
|
2461
|
-
* Does a computation with the opacity of a colour in a RGB structure
|
|
2462
|
-
* @param colourish Colour
|
|
2463
|
-
* @param fn Function that takes original opacity as input and returns output opacity
|
|
2464
|
-
*/
|
|
2465
|
-
declare function withOpacity$2<T extends Colourish>(colourish: T, fn: (scalarOpacity: number) => number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
|
|
2466
|
-
declare function setOpacity<T extends Colourish>(colourish: T, amount: number): T extends string ? string : T extends Hsl ? Hsl : T extends OkLch ? OkLch : T extends Rgb ? Rgb : never;
|
|
2467
|
-
declare namespace oklch_d_exports {
|
|
2468
|
-
export { OKLCH_CHROMA_MAX, absolute, fromCss$2 as fromCss, fromHexString$2 as fromHexString, fromLibrary, generateScalar, guard$2 as guard, interpolator$1 as interpolator, scalar$2 as scalar, toAbsolute, toCssString$1 as toCssString, toHexString$2 as toHexString, toScalar$2 as toScalar, withOpacity$1 as withOpacity };
|
|
2469
|
-
}
|
|
2470
|
-
declare const OKLCH_CHROMA_MAX = .4;
|
|
2471
|
-
declare function guard$2(lch: OkLch): void;
|
|
2472
|
-
/**
|
|
2473
|
-
* Coverts from the Colorizr library
|
|
2474
|
-
* Tests ranges:
|
|
2475
|
-
* l: 0..1
|
|
2476
|
-
* c: 0..1
|
|
2477
|
-
* h: 0..360
|
|
2478
|
-
* alpha: 0..1
|
|
2479
|
-
*
|
|
2480
|
-
* Default option: { scalar: true }
|
|
2481
|
-
* @param lch LCH value
|
|
2482
|
-
* @param parsingOptions Options for parsing
|
|
2483
|
-
*/
|
|
2484
|
-
declare function fromLibrary<T extends ParsingOptions<OkLch>>(lch: LCH, parsingOptions: T): T extends {
|
|
2485
|
-
scalar: true;
|
|
2486
|
-
} ? OkLchScalar : OkLchAbsolute;
|
|
2487
|
-
/**
|
|
2488
|
-
* Parse a HEX-formatted colour into OkLch structured format
|
|
2489
|
-
* @param hexString
|
|
2490
|
-
* @param options
|
|
2491
|
-
*/
|
|
2492
|
-
declare function fromHexString$2(hexString: string, options?: ParsingOptions<OkLch>): OkLch;
|
|
2493
|
-
/**
|
|
2494
|
-
* Converts from some CSS-representation of colour to a structured OkLch format.
|
|
2495
|
-
*
|
|
2496
|
-
* ```js
|
|
2497
|
-
* fromCss(`yellow`);
|
|
2498
|
-
* fromCss(`rgb(100,200,90)`);
|
|
2499
|
-
* fromCss(`#ff00ff`);
|
|
2500
|
-
* ```
|
|
2501
|
-
*
|
|
2502
|
-
* By default returns a {@link OkLchScalar} (relative) representation. Use the flag 'scalar:true' to get back
|
|
2503
|
-
* {@link OkLchAbsolute}.
|
|
2504
|
-
* @param value
|
|
2505
|
-
* @param options
|
|
2506
|
-
*/
|
|
2507
|
-
declare function fromCss$2<T extends ParsingOptions<OkLch>>(value: string, options: T): T extends {
|
|
2508
|
-
scalar: true;
|
|
2509
|
-
} ? OkLchScalar : OkLchAbsolute;
|
|
2510
|
-
/**
|
|
2511
|
-
* Returns a string or {@link OkLch} value to absolute form.
|
|
2512
|
-
*
|
|
2513
|
-
* This means ranges are:
|
|
2514
|
-
* lightness: 0..1
|
|
2515
|
-
* chroma: 0...CHROMA_MAX (0.4)
|
|
2516
|
-
* hue: 0..360
|
|
2517
|
-
* @param lchOrString
|
|
2518
|
-
*/
|
|
2519
|
-
declare function toAbsolute(lchOrString: OkLch | string): OkLchAbsolute;
|
|
2520
|
-
declare function toScalar$2(lchOrString: OkLch | string): OkLchScalar;
|
|
2521
|
-
/**
|
|
2522
|
-
* Returns the colour as a CSS colour string: `oklch(l c h / opacity)`.
|
|
2523
|
-
*
|
|
2524
|
-
* @param lch Colour
|
|
2525
|
-
* @param precision Set precision of numbers, defaults to 3
|
|
2526
|
-
* @returns CSS colour string
|
|
2527
|
-
*/
|
|
2528
|
-
declare function toCssString$1(lch: OkLch, precision?: number): string;
|
|
2529
|
-
declare function toHexString$2(lch: OkLch): string;
|
|
2530
|
-
declare function generateScalar(absoluteHslOrVariable: string | number | Angle, chroma?: number, lightness?: number, opacity?: number): OkLchScalar;
|
|
2531
|
-
/**
|
|
2532
|
-
* Scales the opacity value of an input Oklch value
|
|
2533
|
-
* ```js
|
|
2534
|
-
* withOpacity()
|
|
2535
|
-
* ```
|
|
2536
|
-
* @param value
|
|
2537
|
-
* @param fn
|
|
2538
|
-
*/
|
|
2539
|
-
declare function withOpacity$1<T extends OkLch>(value: T, fn: (opacityScalar: number, value: T) => number): T;
|
|
2540
|
-
declare function interpolator$1(a: OkLch | string, b: OkLch | string, direction?: `longer` | `shorter`): (amount: number) => OkLchScalar;
|
|
2541
|
-
declare function scalar$2(lightness?: number, chroma?: number, hue?: number, opacity?: number): OkLchScalar;
|
|
2542
|
-
/**
|
|
2543
|
-
* Create an LCH colour using absolute hue
|
|
2544
|
-
* @param l Lightness 0..1
|
|
2545
|
-
* @param c Chroma 0..4
|
|
2546
|
-
* @param h Hue 0..360
|
|
2547
|
-
* @param opacity
|
|
2548
|
-
*/
|
|
2549
|
-
declare function absolute(l: number, c: number, h: number, opacity?: number): OkLchAbsolute;
|
|
2550
|
-
declare namespace srgb_d_exports {
|
|
2551
|
-
export { changeLightness, eightBit$1 as eightBit, fromCss$1 as fromCss, fromHexString$1 as fromHexString, guard$1 as guard, interpolator, lightness, parseCssRgbFunction, scalar$1 as scalar, to8bit$1 as to8bit, toCssString, toHexString$1 as toHexString, toLibraryHsl, toScalar$1 as toScalar, withOpacity };
|
|
2552
|
-
}
|
|
2553
|
-
declare function withOpacity<T extends Rgb>(value: T, fn: (opacityScalar: number, value: T) => number): T;
|
|
2554
|
-
declare function fromHexString$1<T extends boolean>(hexString: string, scalar: T): T extends true ? RgbScalar : Rgb8Bit;
|
|
2555
|
-
declare function fromCss$1<T extends ParsingOptions<Rgb>>(value: string, options: T): T extends {
|
|
2556
|
-
scalar: true;
|
|
2557
|
-
} ? RgbScalar : Rgb8Bit;
|
|
2558
|
-
declare function toHexString$1(rgb: Rgb): string;
|
|
2559
|
-
declare function toCssString(rgb: Rgb): string;
|
|
2560
|
-
declare function to8bit$1(rgbOrString: Rgb | string): Rgb8Bit;
|
|
2561
|
-
declare function toScalar$1(rgbOrString: Rgb | Hsl | string): RgbScalar;
|
|
2562
|
-
declare function guard$1(rgb: Rgb): void;
|
|
2563
|
-
/**
|
|
2564
|
-
* Sets the lightness value.
|
|
2565
|
-
*
|
|
2566
|
-
* Amount to change:
|
|
2567
|
-
* 'fixed': a fixed amount
|
|
2568
|
-
* 'delta': increase/decrease by this amount
|
|
2569
|
-
* 'pdelta': proportion of current value to change by ('percentage delta')
|
|
2570
|
-
*
|
|
2571
|
-
* Use negative values to decrease
|
|
2572
|
-
* @param rgb Colour
|
|
2573
|
-
* @param amount Amount to change
|
|
2574
|
-
*/
|
|
2575
|
-
declare function changeLightness(rgb: Rgb, amount: Partial<{
|
|
2576
|
-
pdelta: number;
|
|
2577
|
-
delta: number;
|
|
2578
|
-
fixed: number;
|
|
2579
|
-
}>): Rgb;
|
|
2580
|
-
/**
|
|
2581
|
-
* Returns a lightness value (0..1) for an RGB input
|
|
2582
|
-
*
|
|
2583
|
-
* Calculates lightness by converting to Oklab and using the 'L' value
|
|
2584
|
-
* @param rgb
|
|
2585
|
-
*/
|
|
2586
|
-
declare function lightness(rgb: Rgb): number;
|
|
2587
|
-
/**
|
|
2588
|
-
* Creates a Rgb8Bit value from 8bit (0..255) values
|
|
2589
|
-
* @param red
|
|
2590
|
-
* @param green
|
|
2591
|
-
* @param blue
|
|
2592
|
-
* @param opacity
|
|
2593
|
-
*/
|
|
2594
|
-
declare function eightBit$1(red?: number, green?: number, blue?: number, opacity?: number): Rgb8Bit;
|
|
2595
|
-
/**
|
|
2596
|
-
* Creates a RgbScalar value from scalar (0..1) values
|
|
2597
|
-
* @param red
|
|
2598
|
-
* @param green
|
|
2599
|
-
* @param blue
|
|
2600
|
-
* @param opacity
|
|
2601
|
-
*/
|
|
2602
|
-
declare function scalar$1(red?: number, green?: number, blue?: number, opacity?: number): RgbScalar;
|
|
2603
|
-
/**
|
|
2604
|
-
* It seems Colorizr can't handle % values properly :'(
|
|
2605
|
-
* @param value
|
|
2606
|
-
*/
|
|
2607
|
-
declare function parseCssRgbFunction(value: string): Rgb;
|
|
2608
|
-
/**
|
|
2609
|
-
* Interpolates colours in Srgb space. Probably
|
|
2610
|
-
* really ugly, use OkLch space isntead.
|
|
2611
|
-
*
|
|
2612
|
-
* ```js
|
|
2613
|
-
* const i = interpolator(`red`, `blue`);
|
|
2614
|
-
* i(0.5); // Get 50% between these colours
|
|
2615
|
-
* ```
|
|
2616
|
-
* @param colourA
|
|
2617
|
-
* @param colourB
|
|
2618
|
-
*/
|
|
2619
|
-
declare function interpolator(colourA: Rgb | string, colourB: Rgb | string): (amount: number) => RgbScalar;
|
|
2620
|
-
/**
|
|
2621
|
-
* Converts a Rgb structure (or CSS string) to Colorizr's HSL format
|
|
2622
|
-
* @param rgb
|
|
2623
|
-
*/
|
|
2624
|
-
declare function toLibraryHsl(rgb: Rgb | string): HSL; //#endregion
|
|
2625
|
-
//#region src/colour/to-integer.d.ts
|
|
2626
|
-
/**
|
|
2627
|
-
* Encode 8-bit RGB values into a 24-bit value (0...16_777_215)
|
|
2628
|
-
*
|
|
2629
|
-
* Assumes RGB values are within 0..255 range
|
|
2630
|
-
* @param rgb
|
|
2631
|
-
* @returns
|
|
2632
|
-
*/
|
|
2633
|
-
declare function encodeRgbTo24Bit(rgb: Rgb8Bit | RgbBase): number;
|
|
2634
|
-
/**
|
|
2635
|
-
* Decode a 24-bit number (0...16_777_215) into 8-bit RGB
|
|
2636
|
-
* @param colour
|
|
2637
|
-
* @returns
|
|
2638
|
-
*/
|
|
2639
|
-
declare function decodeRgbFrom24Bit(colour: number): Rgb8Bit;
|
|
2640
|
-
/**
|
|
2641
|
-
* Encodes 8-bit RGB value into 16-bit RGB565 (0..65_535)
|
|
2642
|
-
* 5-bit are used for R & B channels, 6 bits for G
|
|
2643
|
-
*
|
|
2644
|
-
* Read more: https://rgbcolorpicker.com/565
|
|
2645
|
-
* @param rgb
|
|
2646
|
-
* @returns
|
|
2647
|
-
*/
|
|
2648
|
-
declare function encodeRgbTo16Bit565(rgb: Rgb8Bit | RgbBase): number;
|
|
2649
|
-
/**
|
|
2650
|
-
* Decodes 8-bit RGB value from a 16-bit RGB565 value (0...65_535)
|
|
2651
|
-
* Read more: https://rgbcolorpicker.com/565
|
|
2652
|
-
* @param colour
|
|
2653
|
-
* @returns
|
|
2654
|
-
*/
|
|
2655
|
-
declare function decodeRgbFrom16Bit565(colour: number): Rgb8Bit;
|
|
2656
|
-
declare namespace ycbcr_d_exports {
|
|
2657
|
-
export { eightBit, fromCss, fromHexString, fromSrgTo8bit, guard, scalar, to8bit, toHexString, toScalar, toSrgb8bit };
|
|
2658
|
-
}
|
|
2659
|
-
/**
|
|
2660
|
-
* Creates a YCbCr8bit value from 8bit (0..255) values
|
|
2661
|
-
* @param y Luma 0..255
|
|
2662
|
-
* @param cb Chroma blue 0..255
|
|
2663
|
-
* @param cr Chroma red 0..255
|
|
2664
|
-
* @param opacity 0..255
|
|
2665
|
-
* @returns YCbCr8bit
|
|
2666
|
-
*/
|
|
2667
|
-
declare function eightBit(y?: number, cb?: number, cr?: number, opacity?: number): YCbCr8bit;
|
|
2668
|
-
/**
|
|
2669
|
-
* Creates a YCbCr8bit value from scalar (0..1) values
|
|
2670
|
-
* @param y Luma 0..1
|
|
2671
|
-
* @param cb Chroma blue 0..1
|
|
2672
|
-
* @param cr Chroma red 0..1
|
|
2673
|
-
* @param opacity 0..1
|
|
2674
|
-
* @returns YCbCrScalar
|
|
2675
|
-
*/
|
|
2676
|
-
declare function scalar(y?: number, cb?: number, cr?: number, opacity?: number): YCbCrScalar;
|
|
2677
|
-
/**
|
|
2678
|
-
* Converts from scalar or 8bit RGB to YCbCr8bit
|
|
2679
|
-
* @param rgb
|
|
2680
|
-
* @returns
|
|
2681
|
-
*/
|
|
2682
|
-
declare function fromSrgTo8bit(rgb: Rgb): YCbCr8bit;
|
|
2683
|
-
declare function toSrgb8bit(ycbcr: YCbCr): Rgb8Bit;
|
|
2684
|
-
/**
|
|
2685
|
-
* Returns a YCbCr8bit format from either scalar or 8bit.
|
|
2686
|
-
* If the input is already 8bit, it is returned as-is.
|
|
2687
|
-
* @param ycbcr 8bit or scalar YCbCr value
|
|
2688
|
-
* @returns YCbCr8bit
|
|
2689
|
-
*/
|
|
2690
|
-
declare function to8bit(ycbcr: YCbCr): YCbCr8bit;
|
|
2691
|
-
declare function fromHexString<T extends ParsingOptions<YCbCr>>(hexString: string, scalar: T): T extends {
|
|
2692
|
-
scalar: true;
|
|
2693
|
-
} ? YCbCrScalar : YCbCr8bit;
|
|
2694
|
-
declare function fromCss<T extends ParsingOptions<YCbCr>>(value: string, options: T): T extends {
|
|
2695
|
-
scalar: true;
|
|
2696
|
-
} ? YCbCrScalar : YCbCr8bit;
|
|
2697
|
-
declare function toScalar(colour: YCbCr | Rgb | string): YCbCrScalar;
|
|
2698
|
-
declare function guard(rgb: YCbCr): void;
|
|
2699
|
-
/**
|
|
2700
|
-
* Converts a YCbCr colour to a RGB hex string.
|
|
2701
|
-
* @param ycbcr
|
|
2702
|
-
* @returns
|
|
2703
|
-
*/
|
|
2704
|
-
declare function toHexString(ycbcr: YCbCr): string;
|
|
2705
|
-
declare namespace index_d_exports$1 {
|
|
2706
|
-
export { Colour, ColourInterpolationOpts, ColourInterpolator, ColourSpaces, ColourStepOpts, Colourish, ConvertDestinations, CreateStepsOptions, CssColourNames, Hsl, HslAbsolute, HslBase, HslScalar, hsl_d_exports as HslSpace, LchBase, OkLch, OkLchAbsolute, OkLchBase, OkLchScalar, oklch_d_exports as OklchSpace, ParsingOptions, Rgb, Rgb8Bit, RgbBase, RgbScalar, srgb_d_exports as SrgbSpace, YCbCr, YCbCr8bit, YCbCrBase, YCbCrScalar, ycbcr_d_exports as YCbCrSpace, convert, convertScalar, convertToString, createSteps, cssDefinedHexColours, cssLinearGradient, decodeRgbFrom16Bit565, decodeRgbFrom24Bit, encodeRgbTo16Bit565, encodeRgbTo24Bit, fromCssColour, goldenAngleColour, guard$4 as guard, interpolator$2 as interpolator, interpolatorDual, interpolatorDualToString, isColourish, isHsl, isOkLch, isRgb, multiplyOpacity, randomHue, resolveCss, rgbToHsl, scale, setOpacity, toColour, toCssColour, toHexColour, toLibraryColour, toStringFirst, tryParseObjectToHsl, tryParseObjectToRgb, withOpacity$2 as withOpacity };
|
|
2707
|
-
} //#endregion
|
|
2708
1620
|
//#endregion
|
|
2709
1621
|
//#region src/mixins/labelled-input-base.d.ts
|
|
2710
1622
|
declare abstract class LabelledInputBase extends LitElement {
|
|
@@ -2751,7 +1663,10 @@ declare class LabelledRangeInput extends LabelledInputBase {
|
|
|
2751
1663
|
tooltip: boolean;
|
|
2752
1664
|
noTooltip: boolean;
|
|
2753
1665
|
tooltipOrientation: `top` | `right`;
|
|
1666
|
+
/** Pass-through: enables wheel-on-hover for the inner slider and editable-number. */
|
|
1667
|
+
lighttouch: boolean;
|
|
2754
1668
|
switchHeight: number;
|
|
1669
|
+
protected _renderEditableNumber(): TemplateResult<1>;
|
|
2755
1670
|
render(): TemplateResult<1>;
|
|
2756
1671
|
static styles: CSSResultGroup;
|
|
2757
1672
|
}
|
|
@@ -2759,7 +1674,7 @@ declare global {
|
|
|
2759
1674
|
interface HTMLElementTagNameMap {
|
|
2760
1675
|
'ixfx-labelled-range-input': LabelledRangeInput;
|
|
2761
1676
|
}
|
|
2762
|
-
}
|
|
1677
|
+
}
|
|
2763
1678
|
//#endregion
|
|
2764
1679
|
//#region src/colour-picker/colour-picker.d.ts
|
|
2765
1680
|
declare class ColourPicker extends LitElement {
|
|
@@ -2798,7 +1713,7 @@ declare class ColourPicker extends LitElement {
|
|
|
2798
1713
|
* HSL object, etc.). Also updates the double-click reset defaults for all
|
|
2799
1714
|
* sliders.
|
|
2800
1715
|
*/
|
|
2801
|
-
setColour(colour:
|
|
1716
|
+
setColour(colour: Colour.Colourish): void;
|
|
2802
1717
|
get rangeL(): Range;
|
|
2803
1718
|
set rangeL(range: RangeInput$1);
|
|
2804
1719
|
get rangeC(): Range;
|
|
@@ -2834,7 +1749,7 @@ declare global {
|
|
|
2834
1749
|
interface HTMLElementTagNameMap {
|
|
2835
1750
|
'ixfx-colour-picker': ColourPicker;
|
|
2836
1751
|
}
|
|
2837
|
-
}
|
|
1752
|
+
}
|
|
2838
1753
|
//#endregion
|
|
2839
1754
|
//#region src/colour-picker/colour-picker-popup.d.ts
|
|
2840
1755
|
declare const PICKER_SIZES: {
|
|
@@ -2889,7 +1804,7 @@ declare class ColourPickerPopup extends LitElement {
|
|
|
2889
1804
|
get value(): string;
|
|
2890
1805
|
private get _innerHidePreview();
|
|
2891
1806
|
private get _pickerDimensions();
|
|
2892
|
-
setColour(colour:
|
|
1807
|
+
setColour(colour: Colour.Colourish): void;
|
|
2893
1808
|
firstUpdated(changedProperties: PropertyValues): void;
|
|
2894
1809
|
updated(changedProperties: PropertyValues): void;
|
|
2895
1810
|
private _applyAnchorPositioning;
|
|
@@ -2986,12 +1901,19 @@ declare class DataController<TQuery, TItem> implements ReactiveController {
|
|
|
2986
1901
|
//#endregion
|
|
2987
1902
|
//#region src/common/types.d.ts
|
|
2988
1903
|
type TreeItem = {
|
|
2989
|
-
/** Unique identifier within the tree. */
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
1904
|
+
/** Unique identifier within the tree. */
|
|
1905
|
+
key: string;
|
|
1906
|
+
/** Visible label text. */
|
|
1907
|
+
label: string;
|
|
1908
|
+
/** When true the node cannot have children and will not show an expand affordance. */
|
|
1909
|
+
isLeaf?: boolean;
|
|
1910
|
+
/** Arbitrary application data associated with this node. */
|
|
1911
|
+
data?: unknown;
|
|
1912
|
+
/** Icon name passed to an icon component, if icons are enabled. */
|
|
1913
|
+
icon?: string;
|
|
1914
|
+
/** Tooltip text shown on hover. */
|
|
1915
|
+
tooltip?: string;
|
|
1916
|
+
/** Optional string value, e.g. for use as a command/route. */
|
|
2995
1917
|
value?: string;
|
|
2996
1918
|
};
|
|
2997
1919
|
/** A node in the tree, potentially containing lazily-loaded children. */
|
|
@@ -3058,7 +1980,8 @@ type RootEvent = {
|
|
|
3058
1980
|
type ModelEvent = InvalidateEvent | RootEvent;
|
|
3059
1981
|
type ModelSubscriber = (event: ModelEvent) => void;
|
|
3060
1982
|
type TreeDataModelOptions = {
|
|
3061
|
-
/** The initial root node. Required. */
|
|
1983
|
+
/** The initial root node. Required. */
|
|
1984
|
+
root: TreeNode;
|
|
3062
1985
|
/**
|
|
3063
1986
|
* Optional callback for lazily loading children.
|
|
3064
1987
|
* If omitted, nodes with `children === undefined` are treated as empty branches.
|
|
@@ -3150,7 +2073,9 @@ declare class TreeDataModel {
|
|
|
3150
2073
|
* Event name: `select`
|
|
3151
2074
|
*/
|
|
3152
2075
|
type TreeSelectDetail = {
|
|
3153
|
-
/** The new selection set. */
|
|
2076
|
+
/** The new selection set. */
|
|
2077
|
+
readonly selected: ReadonlySet<TreeNode>;
|
|
2078
|
+
/** The previous selection set (empty set if there was no prior selection). */
|
|
3154
2079
|
readonly previous: ReadonlySet<TreeNode>;
|
|
3155
2080
|
};
|
|
3156
2081
|
/**
|
|
@@ -3321,7 +2246,7 @@ type NarrowedTextItem = Readonly<{
|
|
|
3321
2246
|
iconName?: string;
|
|
3322
2247
|
}>;
|
|
3323
2248
|
type NarrowedTextChangeDetail = {
|
|
3324
|
-
readonly item: NarrowedTextItem;
|
|
2249
|
+
readonly item: NarrowedTextItem | undefined;
|
|
3325
2250
|
readonly query: string;
|
|
3326
2251
|
readonly selected: readonly NarrowedTextItem[];
|
|
3327
2252
|
};
|
|
@@ -3346,18 +2271,22 @@ declare class NarrowedTextElement extends LitElement {
|
|
|
3346
2271
|
height: string | undefined;
|
|
3347
2272
|
preserveFilter: boolean;
|
|
3348
2273
|
value: string;
|
|
2274
|
+
registry: CommandRegistry<unknown> | undefined;
|
|
3349
2275
|
private _query;
|
|
3350
2276
|
private _computedItems;
|
|
3351
2277
|
private _filteredItems;
|
|
3352
2278
|
private _isFocused;
|
|
3353
2279
|
private _slot;
|
|
3354
2280
|
private _selectedValues;
|
|
2281
|
+
private _ownedRegistry;
|
|
3355
2282
|
private _search;
|
|
3356
2283
|
private _searchState;
|
|
3357
2284
|
private _unsubSearch;
|
|
3358
2285
|
private tickled;
|
|
3359
2286
|
get selected(): string | string[];
|
|
3360
2287
|
set selected(value: string | string[]);
|
|
2288
|
+
selectAll(): void;
|
|
2289
|
+
deselectAll(): void;
|
|
3361
2290
|
connectedCallback(): void;
|
|
3362
2291
|
disconnectedCallback(): void;
|
|
3363
2292
|
protected firstUpdated(): void;
|
|
@@ -3378,7 +2307,7 @@ declare global {
|
|
|
3378
2307
|
interface HTMLElementTagNameMap {
|
|
3379
2308
|
'ixfx-narrowed-text': NarrowedTextElement;
|
|
3380
2309
|
}
|
|
3381
|
-
}
|
|
2310
|
+
}
|
|
3382
2311
|
//#endregion
|
|
3383
2312
|
//#region src/crumbs/crumb-navigation.d.ts
|
|
3384
2313
|
/** @deprecated Use TreeSelectDetail from src/common/tree-component.ts */
|
|
@@ -3441,6 +2370,7 @@ declare class CrumbNavigationElement extends LitElement implements TreeComponent
|
|
|
3441
2370
|
depth: number;
|
|
3442
2371
|
}>;
|
|
3443
2372
|
updated(changedProps: PropertyValues): void;
|
|
2373
|
+
connectedCallback(): void;
|
|
3444
2374
|
disconnectedCallback(): void;
|
|
3445
2375
|
/** Navigate to a node by key path. Returns false if any key is not found in already-loaded children. */
|
|
3446
2376
|
navigateTo(keys: readonly string[]): boolean;
|
|
@@ -3570,7 +2500,7 @@ declare global {
|
|
|
3570
2500
|
interface HTMLElementTagNameMap {
|
|
3571
2501
|
'ixfx-data-display': DataDisplayComponent;
|
|
3572
2502
|
}
|
|
3573
|
-
}
|
|
2503
|
+
}
|
|
3574
2504
|
//#endregion
|
|
3575
2505
|
//#region src/editable-label/editable-label.d.ts
|
|
3576
2506
|
type EditableMode = `label` | `editor`;
|
|
@@ -3642,14 +2572,43 @@ declare global {
|
|
|
3642
2572
|
interface HTMLElementTagNameMap {
|
|
3643
2573
|
'ixfx-editable-label': EditableLabel;
|
|
3644
2574
|
}
|
|
3645
|
-
}
|
|
2575
|
+
}
|
|
2576
|
+
//#endregion
|
|
2577
|
+
//#region src/mixins/wheel-nudge.d.ts
|
|
2578
|
+
/**
|
|
2579
|
+
* Direction of a wheel tick. `+1` for `deltaY < 0` (wheel up/away), `-1` for
|
|
2580
|
+
* `deltaY > 0` (wheel down/toward).
|
|
2581
|
+
*/
|
|
2582
|
+
type WheelDirection = 1 | -1;
|
|
2583
|
+
/**
|
|
2584
|
+
* Abstract surface a consumer of {@link WheelNudgeMixin} must implement.
|
|
2585
|
+
*
|
|
2586
|
+
* `_applyWheelDelta` is called once per handled wheel tick. The consumer is
|
|
2587
|
+
* expected to reuse its existing arrow-key step math (typically a shared
|
|
2588
|
+
* `_stepByDelta(direction, effectiveStep)` private method) and call it here.
|
|
2589
|
+
*
|
|
2590
|
+
* `_shouldHandleWheel` may be overridden to restrict when the wheel acts
|
|
2591
|
+
* (e.g. editable-number rejects while the user is typing).
|
|
2592
|
+
*/
|
|
2593
|
+
interface WheelNudgeConsumer {
|
|
2594
|
+
_applyWheelDelta: (direction: WheelDirection, event: WheelEvent) => void;
|
|
2595
|
+
_shouldHandleWheel: () => boolean;
|
|
2596
|
+
}
|
|
2597
|
+
/**
|
|
2598
|
+
* Internal: the surface a {@link WheelNudgeMixin}-decorated class exposes to
|
|
2599
|
+
* TypeScript — its own members plus the consumer contract.
|
|
2600
|
+
*/
|
|
2601
|
+
type WheelNudgeConsumerType<TBase> = TBase & WheelNudgeConsumer;
|
|
3646
2602
|
//#endregion
|
|
3647
2603
|
//#region src/editable-label/editable-number.d.ts
|
|
3648
|
-
declare
|
|
2604
|
+
declare const EditableNumber_base: (new (...args: any[]) => WheelNudgeConsumerType<EditableLabel>) & typeof EditableLabel;
|
|
2605
|
+
declare class EditableNumber extends EditableNumber_base {
|
|
3649
2606
|
#private;
|
|
3650
2607
|
min?: number;
|
|
3651
2608
|
max?: number;
|
|
3652
2609
|
step?: number;
|
|
2610
|
+
/** Quantised stops for keyboard nudging. Overrides `step` when > 1. */
|
|
2611
|
+
stops?: number;
|
|
3653
2612
|
dragSensitivity: number;
|
|
3654
2613
|
fillStyle?: `linear` | `circular`;
|
|
3655
2614
|
linearStyle?: `range` | `bipolar` | `unipolar`;
|
|
@@ -3680,6 +2639,13 @@ declare class EditableNumber extends EditableLabel {
|
|
|
3680
2639
|
protected _handleKeydown: (e: KeyboardEvent) => void;
|
|
3681
2640
|
private _onKeyDown;
|
|
3682
2641
|
private _handleArrowKey;
|
|
2642
|
+
/**
|
|
2643
|
+
* Apply a signed delta to the current value, clamp/snap/format, and fire
|
|
2644
|
+
* `input`/`change`. Shared between arrow-key handler and the wheel handler.
|
|
2645
|
+
*/
|
|
2646
|
+
private _applyDelta;
|
|
2647
|
+
_shouldHandleWheel(): boolean;
|
|
2648
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
3683
2649
|
private _onPointerDown;
|
|
3684
2650
|
private _onPointerMove;
|
|
3685
2651
|
private _onPointerUp;
|
|
@@ -3703,7 +2669,7 @@ declare global {
|
|
|
3703
2669
|
interface HTMLElementTagNameMap {
|
|
3704
2670
|
'ixfx-editable-number': EditableNumber;
|
|
3705
2671
|
}
|
|
3706
|
-
}
|
|
2672
|
+
}
|
|
3707
2673
|
//#endregion
|
|
3708
2674
|
//#region src/vertical-list/types.d.ts
|
|
3709
2675
|
type ListSelectionMode = `none` | `single` | `multiple`;
|
|
@@ -4167,7 +3133,8 @@ type TreeListAdapterOptions<T> = {
|
|
|
4167
3133
|
* Returns the direct children of an item to build the tree hierarchy.
|
|
4168
3134
|
* Omit for flat item lists — all items become leaf nodes at the root level.
|
|
4169
3135
|
*/
|
|
4170
|
-
getChildren?: (item: T) => readonly T[];
|
|
3136
|
+
getChildren?: (item: T) => readonly T[];
|
|
3137
|
+
/** Forwarded to the inner ixfx-tree-list. Default: `'standard'`. */
|
|
4171
3138
|
interactionMode?: TreeInteractionMode;
|
|
4172
3139
|
/**
|
|
4173
3140
|
* Controls which node types are selectable.
|
|
@@ -4288,11 +3255,13 @@ declare global {
|
|
|
4288
3255
|
'ixfx-vertical-list': VerticalListElement;
|
|
4289
3256
|
}
|
|
4290
3257
|
interface HTMLElementEventMap extends ListElementEventMap {}
|
|
4291
|
-
}
|
|
3258
|
+
}
|
|
4292
3259
|
//#endregion
|
|
4293
3260
|
//#region src/grouped-item-lister/vertical-list-adapter.d.ts
|
|
4294
3261
|
type VerticalListAdapterOptions = {
|
|
4295
|
-
/** Initial selection mode forwarded to the inner ixfx-vertical-list. Default: `'single'`. */
|
|
3262
|
+
/** Initial selection mode forwarded to the inner ixfx-vertical-list. Default: `'single'`. */
|
|
3263
|
+
selectionMode?: ListSelectionMode;
|
|
3264
|
+
/** Interaction mode forwarded to the inner ixfx-vertical-list. Default: `'standard'`. */
|
|
4296
3265
|
interactionMode?: ListInteractionMode;
|
|
4297
3266
|
/**
|
|
4298
3267
|
* Called when a command is dispatched via `ixfx-grouped-item-lister.dispatch()`.
|
|
@@ -4462,7 +3431,7 @@ declare global {
|
|
|
4462
3431
|
interface HTMLElementTagNameMap {
|
|
4463
3432
|
'ixfx-hex-editor': IxfxHexEditorElement;
|
|
4464
3433
|
}
|
|
4465
|
-
}
|
|
3434
|
+
}
|
|
4466
3435
|
//#endregion
|
|
4467
3436
|
//#region src/icons/defaults.d.ts
|
|
4468
3437
|
/**
|
|
@@ -4680,7 +3649,8 @@ type RadialInputInputEvent = CustomEvent<RadialInputInputDetail>;
|
|
|
4680
3649
|
type RadialInputChangeEvent = CustomEvent<RadialInputChangeDetail>;
|
|
4681
3650
|
//#endregion
|
|
4682
3651
|
//#region src/radial-input/radial-input.d.ts
|
|
4683
|
-
declare
|
|
3652
|
+
declare const RadialInputElement_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
3653
|
+
declare class RadialInputElement extends RadialInputElement_base {
|
|
4684
3654
|
#private;
|
|
4685
3655
|
get radius(): number;
|
|
4686
3656
|
set radius(v: number);
|
|
@@ -4705,6 +3675,7 @@ declare class RadialInputElement extends LitElement {
|
|
|
4705
3675
|
removeLane(key: string): void;
|
|
4706
3676
|
getLanes(): ReadonlyMap<string, LaneData>;
|
|
4707
3677
|
getLane(key: string): LaneData | undefined;
|
|
3678
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
4708
3679
|
protected willUpdate(changed: PropertyValues): void;
|
|
4709
3680
|
render(): unknown;
|
|
4710
3681
|
protected updated(changed: PropertyValues): void;
|
|
@@ -4716,7 +3687,7 @@ declare global {
|
|
|
4716
3687
|
interface HTMLElementTagNameMap {
|
|
4717
3688
|
'ixfx-radial-input': RadialInputElement;
|
|
4718
3689
|
}
|
|
4719
|
-
}
|
|
3690
|
+
}
|
|
4720
3691
|
//#endregion
|
|
4721
3692
|
//#region src/labelled-radial-input/labelled-radial-input.d.ts
|
|
4722
3693
|
declare class LabelledRadialInput extends LabelledInputBase {
|
|
@@ -4731,6 +3702,8 @@ declare class LabelledRadialInput extends LabelledInputBase {
|
|
|
4731
3702
|
tooltip: boolean;
|
|
4732
3703
|
flip: boolean;
|
|
4733
3704
|
aspectRatioThreshold: number;
|
|
3705
|
+
/** Pass-through: enables wheel-on-hover for the inner dial and editable-number. */
|
|
3706
|
+
lighttouch: boolean;
|
|
4734
3707
|
private _isWide;
|
|
4735
3708
|
private _getEffectivePrecision;
|
|
4736
3709
|
protected _handleResize(entries: ResizeObserverEntry[]): void;
|
|
@@ -4743,7 +3716,7 @@ declare global {
|
|
|
4743
3716
|
interface HTMLElementTagNameMap {
|
|
4744
3717
|
'ixfx-labelled-radial-input': LabelledRadialInput;
|
|
4745
3718
|
}
|
|
4746
|
-
}
|
|
3719
|
+
}
|
|
4747
3720
|
//#endregion
|
|
4748
3721
|
//#region src/led/led.d.ts
|
|
4749
3722
|
declare class LedElement extends LitElement {
|
|
@@ -4763,7 +3736,7 @@ declare global {
|
|
|
4763
3736
|
interface HTMLElementTagNameMap {
|
|
4764
3737
|
"ixfx-led": LedElement;
|
|
4765
3738
|
}
|
|
4766
|
-
}
|
|
3739
|
+
}
|
|
4767
3740
|
//#endregion
|
|
4768
3741
|
//#region src/menu/menu-bar.d.ts
|
|
4769
3742
|
declare class MenuBar extends LitElement {
|
|
@@ -4785,7 +3758,7 @@ declare global {
|
|
|
4785
3758
|
interface HTMLElementTagNameMap {
|
|
4786
3759
|
'ixfx-menu-bar': MenuBar;
|
|
4787
3760
|
}
|
|
4788
|
-
}
|
|
3761
|
+
}
|
|
4789
3762
|
//#endregion
|
|
4790
3763
|
//#region src/menu/menu-check-item.d.ts
|
|
4791
3764
|
declare class MenuCheckItem extends LitElement {
|
|
@@ -4810,7 +3783,7 @@ declare global {
|
|
|
4810
3783
|
interface HTMLElementTagNameMap {
|
|
4811
3784
|
'ixfx-menu-check-item': MenuCheckItem;
|
|
4812
3785
|
}
|
|
4813
|
-
}
|
|
3786
|
+
}
|
|
4814
3787
|
//#endregion
|
|
4815
3788
|
//#region src/menu/menu-command-controller.d.ts
|
|
4816
3789
|
declare class MenuCommandController {
|
|
@@ -4868,7 +3841,7 @@ declare global {
|
|
|
4868
3841
|
interface HTMLElementTagNameMap {
|
|
4869
3842
|
'ixfx-menu-sub-trigger': MenuSubTrigger;
|
|
4870
3843
|
}
|
|
4871
|
-
}
|
|
3844
|
+
}
|
|
4872
3845
|
//#endregion
|
|
4873
3846
|
//#region src/menu/menu-separator.d.ts
|
|
4874
3847
|
declare class MenuSeparator extends LitElement {
|
|
@@ -4879,7 +3852,7 @@ declare global {
|
|
|
4879
3852
|
interface HTMLElementTagNameMap {
|
|
4880
3853
|
'ixfx-menu-separator': MenuSeparator;
|
|
4881
3854
|
}
|
|
4882
|
-
}
|
|
3855
|
+
}
|
|
4883
3856
|
//#endregion
|
|
4884
3857
|
//#region src/menu/menu-header.d.ts
|
|
4885
3858
|
declare class MenuHeader extends LitElement {
|
|
@@ -4891,7 +3864,7 @@ declare global {
|
|
|
4891
3864
|
interface HTMLElementTagNameMap {
|
|
4892
3865
|
'ixfx-menu-header': MenuHeader;
|
|
4893
3866
|
}
|
|
4894
|
-
}
|
|
3867
|
+
}
|
|
4895
3868
|
//#endregion
|
|
4896
3869
|
//#region src/menu/menu-from-tree.d.ts
|
|
4897
3870
|
type MenuFromTreeOptions = {
|
|
@@ -4917,7 +3890,7 @@ declare global {
|
|
|
4917
3890
|
interface HTMLElementTagNameMap {
|
|
4918
3891
|
'ixfx-menu-radio-item': MenuRadioItem;
|
|
4919
3892
|
}
|
|
4920
|
-
}
|
|
3893
|
+
}
|
|
4921
3894
|
//#endregion
|
|
4922
3895
|
//#region src/menu/menu-radio-group.d.ts
|
|
4923
3896
|
declare class MenuRadioGroup extends LitElement {
|
|
@@ -4935,7 +3908,7 @@ declare global {
|
|
|
4935
3908
|
interface HTMLElementTagNameMap {
|
|
4936
3909
|
'ixfx-menu-radio-group': MenuRadioGroup;
|
|
4937
3910
|
}
|
|
4938
|
-
}
|
|
3911
|
+
}
|
|
4939
3912
|
declare namespace index_d_exports {
|
|
4940
3913
|
export { MenuBar, MenuCheckItem, MenuCommandController, MenuContainer, MenuFromTreeOptions, MenuHeader, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubTrigger, MenuTrigger, menuFromTree, menuFromTreeToElements };
|
|
4941
3914
|
}
|
|
@@ -4947,7 +3920,9 @@ type MillerConfig = {
|
|
|
4947
3920
|
};
|
|
4948
3921
|
/** Detail for the `header-click` event fired when a column header is clicked. */
|
|
4949
3922
|
type MillerHeaderClickDetail = {
|
|
4950
|
-
/** Zero-based column index whose header was clicked. */
|
|
3923
|
+
/** Zero-based column index whose header was clicked. */
|
|
3924
|
+
depth: number;
|
|
3925
|
+
/** The header text (label of the column's parent node). */
|
|
4951
3926
|
label: string;
|
|
4952
3927
|
/**
|
|
4953
3928
|
* Ancestry chain from the root node down to (and including) the node
|
|
@@ -5197,7 +4172,7 @@ declare global {
|
|
|
5197
4172
|
interface HTMLElementTagNameMap {
|
|
5198
4173
|
'ixfx-miller-list': MillerListElement;
|
|
5199
4174
|
}
|
|
5200
|
-
}
|
|
4175
|
+
}
|
|
5201
4176
|
//#endregion
|
|
5202
4177
|
//#region src/miller/miller-tree-controller.d.ts
|
|
5203
4178
|
type MillerTreeControllerOptions<T> = {
|
|
@@ -5275,14 +4250,17 @@ declare global {
|
|
|
5275
4250
|
interface HTMLElementTagNameMap {
|
|
5276
4251
|
'ixfx-panel-group': PanelGroupElement;
|
|
5277
4252
|
}
|
|
5278
|
-
}
|
|
4253
|
+
}
|
|
5279
4254
|
//#endregion
|
|
5280
4255
|
//#region src/plots/colour-map.d.ts
|
|
5281
4256
|
type ColourMode = `fixed` | `opacity` | `hue` | `saturation` | `lightness` | `scale`;
|
|
5282
4257
|
type ColourMapConfig = {
|
|
5283
|
-
mode: ColourMode;
|
|
5284
|
-
|
|
5285
|
-
|
|
4258
|
+
mode: ColourMode;
|
|
4259
|
+
/** Parsed colours for 'scale' mode. Must have ≥ 2 entries. */
|
|
4260
|
+
palette: string[];
|
|
4261
|
+
/** ixfx easing name — applied before the colour mode mapping. Takes precedence over valueMap. */
|
|
4262
|
+
easingName: string;
|
|
4263
|
+
/** Custom value mapping fn (0..1 → 0..1). Used when easingName is empty. */
|
|
5286
4264
|
valueMap: ((v: number) => number) | null;
|
|
5287
4265
|
};
|
|
5288
4266
|
type ColourResult = {
|
|
@@ -5320,6 +4298,10 @@ type PlotDataSeriesOptions = {
|
|
|
5320
4298
|
* Default: true
|
|
5321
4299
|
*/
|
|
5322
4300
|
persistentScaling: boolean;
|
|
4301
|
+
fixedRange: {
|
|
4302
|
+
min: number;
|
|
4303
|
+
max: number;
|
|
4304
|
+
} | null;
|
|
5323
4305
|
};
|
|
5324
4306
|
/**
|
|
5325
4307
|
* A data series
|
|
@@ -5327,19 +4309,28 @@ type PlotDataSeriesOptions = {
|
|
|
5327
4309
|
declare class PlotDataSeries {
|
|
5328
4310
|
#private;
|
|
5329
4311
|
values: number[];
|
|
5330
|
-
range: {
|
|
5331
|
-
min: number;
|
|
5332
|
-
max: number;
|
|
5333
|
-
};
|
|
5334
4312
|
/**
|
|
5335
4313
|
* Constructor.
|
|
5336
4314
|
*
|
|
5337
4315
|
* Default options:
|
|
5338
4316
|
* - `capacityLimit`: 100
|
|
5339
4317
|
* - `persistentScaling`: true
|
|
4318
|
+
* - `fixedRange`: null
|
|
5340
4319
|
* @param options
|
|
5341
4320
|
*/
|
|
5342
4321
|
constructor(options?: Partial<PlotDataSeriesOptions>);
|
|
4322
|
+
/**
|
|
4323
|
+
* Sets a manual range, this disabled auto-scaling.
|
|
4324
|
+
* Use {@link unsetRange} to re-enable auto-scaling.
|
|
4325
|
+
* @param min
|
|
4326
|
+
* @param max
|
|
4327
|
+
*/
|
|
4328
|
+
setRange(min: number, max: number): void;
|
|
4329
|
+
/**
|
|
4330
|
+
* Disable the manual range
|
|
4331
|
+
*/
|
|
4332
|
+
unsetRange(): void;
|
|
4333
|
+
get isAutoRange(): boolean;
|
|
5343
4334
|
/**
|
|
5344
4335
|
* Adds a single value
|
|
5345
4336
|
* @param valueOrValues Value to add
|
|
@@ -5350,6 +4341,13 @@ declare class PlotDataSeries {
|
|
|
5350
4341
|
* @param values
|
|
5351
4342
|
*/
|
|
5352
4343
|
set(values: number[]): void;
|
|
4344
|
+
/**
|
|
4345
|
+
* Returns the manual range if this is in effect, or the automatic
|
|
4346
|
+
*/
|
|
4347
|
+
get range(): {
|
|
4348
|
+
min: number;
|
|
4349
|
+
max: number;
|
|
4350
|
+
};
|
|
5353
4351
|
/**
|
|
5354
4352
|
* Clear all data and reset range. If `persistentScaling` is _false_, also resets scaling to initial state.
|
|
5355
4353
|
* @returns _true_ if there was data to clear
|
|
@@ -5375,6 +4373,8 @@ declare class PlotSingleAxis extends LitElement {
|
|
|
5375
4373
|
precise: boolean;
|
|
5376
4374
|
tooltips: boolean;
|
|
5377
4375
|
capacity: number;
|
|
4376
|
+
rangeMin: number;
|
|
4377
|
+
rangeMax: number;
|
|
5378
4378
|
persistentScale: boolean;
|
|
5379
4379
|
paused: boolean;
|
|
5380
4380
|
clickPauses: boolean;
|
|
@@ -5389,24 +4389,6 @@ declare class PlotSingleAxis extends LitElement {
|
|
|
5389
4389
|
private _height;
|
|
5390
4390
|
/** Override to customize tooltip label. */
|
|
5391
4391
|
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
4392
|
/**
|
|
5411
4393
|
* Adds a value to the data series.
|
|
5412
4394
|
*
|
|
@@ -5438,6 +4420,25 @@ declare class PlotSingleAxis extends LitElement {
|
|
|
5438
4420
|
clear(): boolean;
|
|
5439
4421
|
protected firstUpdated(_changed: PropertyValues): void;
|
|
5440
4422
|
protected updated(changed: PropertyValues): void;
|
|
4423
|
+
get series(): PlotDataSeries;
|
|
4424
|
+
/**
|
|
4425
|
+
* Get all values in the data series as a readonly array.
|
|
4426
|
+
*/
|
|
4427
|
+
get values(): readonly number[];
|
|
4428
|
+
/**
|
|
4429
|
+
* Get length of data series
|
|
4430
|
+
*/
|
|
4431
|
+
get dataLength(): number;
|
|
4432
|
+
/**
|
|
4433
|
+
* Get value at specific index of data series
|
|
4434
|
+
* @param index
|
|
4435
|
+
*/
|
|
4436
|
+
getValueAt(index: number): number | undefined;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get value index based on client X position
|
|
4439
|
+
* @param clientX
|
|
4440
|
+
*/
|
|
4441
|
+
getIndexFromClientX(clientX: number): number;
|
|
5441
4442
|
render(): TemplateResult<1>;
|
|
5442
4443
|
static styles: CSSResult;
|
|
5443
4444
|
}
|
|
@@ -5537,6 +4538,12 @@ interface PlotMultiAxis {
|
|
|
5537
4538
|
//#endregion
|
|
5538
4539
|
//#region src/plots/plot-histogram.d.ts
|
|
5539
4540
|
type PlotHistogramOrientation = `horizontal` | `vertical`;
|
|
4541
|
+
/**
|
|
4542
|
+
* - `hover`: floating `ixfx-tooltip` bubble, shown/hidden with a debounce delay.
|
|
4543
|
+
* - `inline`: the title overlay-text switches to the hovered bucket's value, instantly.
|
|
4544
|
+
* - `none`: no hover feedback.
|
|
4545
|
+
*/
|
|
4546
|
+
type PlotHistogramValueTooltips = `hover` | `inline` | `none`;
|
|
5540
4547
|
type PlotHistogramBucketClickDetail = {
|
|
5541
4548
|
readonly bucketIndex: number;
|
|
5542
4549
|
readonly valueMin: number;
|
|
@@ -5554,15 +4561,30 @@ declare class PlotHistogram extends LitElement {
|
|
|
5554
4561
|
min?: number;
|
|
5555
4562
|
max?: number;
|
|
5556
4563
|
capacity: number;
|
|
4564
|
+
/**
|
|
4565
|
+
* Fallback overlay-text, shown when nothing is hovered.
|
|
4566
|
+
* Not reflected to the native `title` attribute, so the browser's own hover tooltip doesn't show.
|
|
4567
|
+
*/
|
|
5557
4568
|
title: string;
|
|
5558
4569
|
paused: boolean;
|
|
4570
|
+
/** How hovering a bucket is communicated: a floating tooltip, the inline overlay-text, or nothing. */
|
|
4571
|
+
valueTooltips: PlotHistogramValueTooltips;
|
|
4572
|
+
/** Delay (ms) before the `hover` tooltip appears/disappears. Switching directly between buckets is instant. */
|
|
4573
|
+
tooltipDelay: number;
|
|
4574
|
+
/** Max rate (ms) at which an already-shown value display refreshes to match live-changing bucket data. */
|
|
4575
|
+
valueUpdateInterval: number;
|
|
4576
|
+
/** Override to customize the value/frequency label used by the tooltip and overlay text. */
|
|
4577
|
+
valueFormat: (valueMin: number, valueMax: number, frequency: number) => string;
|
|
5559
4578
|
private _width;
|
|
5560
4579
|
private _height;
|
|
4580
|
+
private _hoveredIndex;
|
|
4581
|
+
private _inlineOverlayText;
|
|
5561
4582
|
add(v: number): void;
|
|
5562
4583
|
set(values: number[]): void;
|
|
5563
4584
|
clear(): void;
|
|
5564
4585
|
protected firstUpdated(_changed: PropertyValues): void;
|
|
5565
4586
|
protected updated(changed: PropertyValues): void;
|
|
4587
|
+
disconnectedCallback(): void;
|
|
5566
4588
|
render(): TemplateResult<1>;
|
|
5567
4589
|
static styles: CSSResult;
|
|
5568
4590
|
}
|
|
@@ -5613,10 +4635,11 @@ declare global {
|
|
|
5613
4635
|
interface HTMLElementTagNameMap {
|
|
5614
4636
|
'ixfx-plot-xy-axis': PlotXyAxis;
|
|
5615
4637
|
}
|
|
5616
|
-
}
|
|
4638
|
+
}
|
|
5617
4639
|
//#endregion
|
|
5618
4640
|
//#region src/polar-pad/polar-pad.d.ts
|
|
5619
|
-
declare
|
|
4641
|
+
declare const PolarPad_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
4642
|
+
declare class PolarPad extends PolarPad_base {
|
|
5620
4643
|
static styles: CSSResult[];
|
|
5621
4644
|
/** Current angle in degrees. 0 = right, increases clockwise. */
|
|
5622
4645
|
angle: number;
|
|
@@ -5642,6 +4665,10 @@ declare class PolarPad extends LitElement {
|
|
|
5642
4665
|
stopsAngle?: number;
|
|
5643
4666
|
/** Number of quantised stops for radius. If set, overrides the stops setting for radius. */
|
|
5644
4667
|
stopsRadius?: number;
|
|
4668
|
+
/** Explicit keyboard nudge step for angle (degrees). Overrides the 10% default. */
|
|
4669
|
+
stepAngle?: number;
|
|
4670
|
+
/** Explicit keyboard nudge step for radius (0..1 units). Overrides the 10% default. */
|
|
4671
|
+
stepRadius?: number;
|
|
5645
4672
|
private _dragging;
|
|
5646
4673
|
private _dragStartAngle;
|
|
5647
4674
|
private _dragStartRadius;
|
|
@@ -5655,6 +4682,13 @@ declare class PolarPad extends LitElement {
|
|
|
5655
4682
|
private _onKeyDown;
|
|
5656
4683
|
private _onKeyUp;
|
|
5657
4684
|
private _handleKeyboardMove;
|
|
4685
|
+
/**
|
|
4686
|
+
* Apply a radius nudge by direction. Wheel affects radius only (matches the
|
|
4687
|
+
* keyboard `ArrowUp`/`ArrowDown` semantic per `plans/mousewheel.md`); the
|
|
4688
|
+
* angle is unchanged.
|
|
4689
|
+
*/
|
|
4690
|
+
private _stepRadiusByDelta;
|
|
4691
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
5658
4692
|
private _setCssVars;
|
|
5659
4693
|
updated(_changed: PropertyValues): void;
|
|
5660
4694
|
disconnectedCallback(): void;
|
|
@@ -5675,13 +4709,14 @@ declare global {
|
|
|
5675
4709
|
interface HTMLElementTagNameMap {
|
|
5676
4710
|
'ixfx-polar-pad': PolarPad;
|
|
5677
4711
|
}
|
|
5678
|
-
}
|
|
4712
|
+
}
|
|
5679
4713
|
//#endregion
|
|
5680
4714
|
//#region src/util/tooltip.d.ts
|
|
5681
4715
|
type FormatValueForHuman = (v: unknown) => string;
|
|
5682
4716
|
type TooltipOrientations = `top` | `right` | `bottom` | `left`;
|
|
5683
4717
|
declare class TooltipElement extends LitElement {
|
|
5684
4718
|
#private;
|
|
4719
|
+
connectedCallback(): void;
|
|
5685
4720
|
static numberFormatter: (v: number) => string;
|
|
5686
4721
|
static defaultFormatter: FormatValueForHuman;
|
|
5687
4722
|
valueFormatTooltip: FormatValueForHuman;
|
|
@@ -5696,10 +4731,11 @@ declare global {
|
|
|
5696
4731
|
interface HTMLElementTagNameMap {
|
|
5697
4732
|
"ixfx-tooltip": TooltipElement;
|
|
5698
4733
|
}
|
|
5699
|
-
}
|
|
4734
|
+
}
|
|
5700
4735
|
//#endregion
|
|
5701
4736
|
//#region src/range-input/range-input.d.ts
|
|
5702
|
-
declare
|
|
4737
|
+
declare const RangeInput_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
4738
|
+
declare class RangeInput extends RangeInput_base {
|
|
5703
4739
|
min: number;
|
|
5704
4740
|
max: number;
|
|
5705
4741
|
value: number;
|
|
@@ -5726,6 +4762,16 @@ declare class RangeInput extends LitElement {
|
|
|
5726
4762
|
_handleInput: (e: Event) => void;
|
|
5727
4763
|
_formatTooltipLabel(): string;
|
|
5728
4764
|
_handleChange: () => void;
|
|
4765
|
+
/**
|
|
4766
|
+
* Wheel handler — installed by WheelNudgeMixin on the host. Synthesises a
|
|
4767
|
+
* value change by writing to the inner `<input type="range">` and dispatching
|
|
4768
|
+
* `input` + `change`, so the existing `_handleInput` and `_handleChange`
|
|
4769
|
+
* handlers run unchanged and re-bubble the events to listeners.
|
|
4770
|
+
*
|
|
4771
|
+
* Native wheel handling is left intact for the focused-inner-input case;
|
|
4772
|
+
* the host listener fires under `lighttouch` or when focus is on the host.
|
|
4773
|
+
*/
|
|
4774
|
+
_applyWheelDelta(direction: WheelDirection, _event: WheelEvent): void;
|
|
5729
4775
|
render(): TemplateResult<1>;
|
|
5730
4776
|
static styles: CSSResultGroup;
|
|
5731
4777
|
}
|
|
@@ -5733,7 +4779,7 @@ declare global {
|
|
|
5733
4779
|
interface HTMLElementTagNameMap {
|
|
5734
4780
|
'ixfx-range-input': RangeInput;
|
|
5735
4781
|
}
|
|
5736
|
-
}
|
|
4782
|
+
}
|
|
5737
4783
|
//#endregion
|
|
5738
4784
|
//#region src/range/range-multi.d.ts
|
|
5739
4785
|
type Endpoints = `a` | `b`;
|
|
@@ -5793,10 +4839,11 @@ declare global {
|
|
|
5793
4839
|
interface HTMLElementTagNameMap {
|
|
5794
4840
|
"ixfx-range-multi": RangeMultiElement;
|
|
5795
4841
|
}
|
|
5796
|
-
}
|
|
4842
|
+
}
|
|
5797
4843
|
//#endregion
|
|
5798
4844
|
//#region src/range/range.d.ts
|
|
5799
|
-
declare
|
|
4845
|
+
declare const RangeElement_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
4846
|
+
declare class RangeElement extends RangeElement_base {
|
|
5800
4847
|
#private;
|
|
5801
4848
|
tooltip: boolean;
|
|
5802
4849
|
tooltipOrientation: TooltipOrientations;
|
|
@@ -5808,6 +4855,16 @@ declare class RangeElement extends LitElement {
|
|
|
5808
4855
|
get value(): number;
|
|
5809
4856
|
step: number;
|
|
5810
4857
|
onRangeInput(event: InputEvent): void;
|
|
4858
|
+
/**
|
|
4859
|
+
* Wheel handler — installed by WheelNudgeMixin on the host. Synthesises a
|
|
4860
|
+
* value change by writing to the inner `<input type="range">` and dispatching
|
|
4861
|
+
* `input` + `change`, so the existing `onRangeInput` handler runs unchanged.
|
|
4862
|
+
*
|
|
4863
|
+
* The native input still responds to wheel when focused (focus rule wins by
|
|
4864
|
+
* default). The host handler fires when `lighttouch` is set or when the host
|
|
4865
|
+
* itself has focus, ensuring Shift-aware step math and consistent event firing.
|
|
4866
|
+
*/
|
|
4867
|
+
_applyWheelDelta(direction: WheelDirection, _event: WheelEvent): void;
|
|
5811
4868
|
protected render(): unknown;
|
|
5812
4869
|
static styles: CSSResult[];
|
|
5813
4870
|
}
|
|
@@ -5815,7 +4872,7 @@ declare global {
|
|
|
5815
4872
|
interface HTMLElementMap {
|
|
5816
4873
|
"ixfx-range": RangeElement;
|
|
5817
4874
|
}
|
|
5818
|
-
}
|
|
4875
|
+
}
|
|
5819
4876
|
//#endregion
|
|
5820
4877
|
//#region src/selecthorizontal.d.ts
|
|
5821
4878
|
declare class SelectHorizontalElement extends LitElement {
|
|
@@ -5827,7 +4884,163 @@ declare global {
|
|
|
5827
4884
|
interface HTMLElementTagNameMap {
|
|
5828
4885
|
"ixfx-selecthorizontal-element": SelectHorizontalElement;
|
|
5829
4886
|
}
|
|
5830
|
-
}
|
|
4887
|
+
}
|
|
4888
|
+
//#endregion
|
|
4889
|
+
//#region src/slider-input/types.d.ts
|
|
4890
|
+
/**
|
|
4891
|
+
* Type definitions for slider-input component
|
|
4892
|
+
*/
|
|
4893
|
+
type SliderOrientation = `horizontal` | `vertical`;
|
|
4894
|
+
type SliderMarkerStyle = `needle` | `dot` | `triangle` | `none`;
|
|
4895
|
+
type SliderSingleStyle = `range` | `bipolar` | `unipolar`;
|
|
4896
|
+
type SliderValueMode = `single` | `dual` | `triple`;
|
|
4897
|
+
type SliderCrossover = `none` | `allow`;
|
|
4898
|
+
type SliderValueDrag = `none` | `stop` | `flex`;
|
|
4899
|
+
/**
|
|
4900
|
+
* Behaviour for the middle (C) handle in triple mode when the A/B span
|
|
4901
|
+
* changes. `none` (default) keeps C in place and only clamps it when it
|
|
4902
|
+
* falls outside the new [A, B] band. `proportional` keeps C at the same
|
|
4903
|
+
* fractional position within the band as the band moves or resizes.
|
|
4904
|
+
*/
|
|
4905
|
+
type SliderValueCFollow = `none` | `proportional`;
|
|
4906
|
+
type SliderLaneType = `value` | `fixed` | `anchored`;
|
|
4907
|
+
type SliderHandleKey = `a` | `b` | `c`;
|
|
4908
|
+
/**
|
|
4909
|
+
* Per-lane data. Mirrors radial-input's shape with the difference that
|
|
4910
|
+
* `type: 'value'` lanes track a *range* (valueMin/valueMax) rather than a
|
|
4911
|
+
* single value, while `type: 'anchored'` lanes keep a single value (0..1
|
|
4912
|
+
* length).
|
|
4913
|
+
*/
|
|
4914
|
+
interface SliderLaneData {
|
|
4915
|
+
key: string;
|
|
4916
|
+
type: SliderLaneType;
|
|
4917
|
+
/**
|
|
4918
|
+
* Used when type === 'anchored': length (0..1) of the lane symmetrically
|
|
4919
|
+
* centered on the current value.
|
|
4920
|
+
*/
|
|
4921
|
+
value?: number;
|
|
4922
|
+
/** Used when type === 'value': lower end of the lane band (0..1). */
|
|
4923
|
+
valueMin?: number;
|
|
4924
|
+
/** Used when type === 'value': upper end of the lane band (0..1). */
|
|
4925
|
+
valueMax?: number;
|
|
4926
|
+
/** Perpendicular offset from the track centreline (-1..1 scale relative to CROSS). */
|
|
4927
|
+
offset: number;
|
|
4928
|
+
/** Stroke thickness as a fraction of the CROSS dimension (0..1). */
|
|
4929
|
+
width: number;
|
|
4930
|
+
}
|
|
4931
|
+
/**
|
|
4932
|
+
* Identifies which field(s) of a dual/triple-mode detail changed.
|
|
4933
|
+
* `both` is reserved for length-drag (value-drag) gestures.
|
|
4934
|
+
*/
|
|
4935
|
+
type SliderChangedField = `min` | `max` | `c` | `both`;
|
|
4936
|
+
/**
|
|
4937
|
+
* In single mode, `value` is the single handle's value and the min/max/c
|
|
4938
|
+
* fields are undefined. In dual/triple mode, `value` is set to `valueMax`
|
|
4939
|
+
* (the "B"/upper handle) for parity with native `<input type="range">`
|
|
4940
|
+
* two-thumb patterns where a single `value` is ambiguous — consumers
|
|
4941
|
+
* wanting min/max should use `valueMin`/`valueMax` directly.
|
|
4942
|
+
*/
|
|
4943
|
+
interface SliderInputInputDetail {
|
|
4944
|
+
readonly value: number;
|
|
4945
|
+
readonly valueRelative: number;
|
|
4946
|
+
/** Lower handle value (dual/triple modes only). */
|
|
4947
|
+
readonly valueMin?: number;
|
|
4948
|
+
/** Upper handle value (dual/triple modes only). */
|
|
4949
|
+
readonly valueMax?: number;
|
|
4950
|
+
readonly valueMinRelative?: number;
|
|
4951
|
+
readonly valueMaxRelative?: number;
|
|
4952
|
+
/** Triple-mode middle handle value. */
|
|
4953
|
+
readonly valueC?: number;
|
|
4954
|
+
readonly valueCRelative?: number;
|
|
4955
|
+
/** Which field this particular event resulted from. */
|
|
4956
|
+
readonly changed?: SliderChangedField;
|
|
4957
|
+
}
|
|
4958
|
+
interface SliderInputChangeDetail {
|
|
4959
|
+
readonly value: number;
|
|
4960
|
+
readonly valueRelative: number;
|
|
4961
|
+
readonly previousValue: number;
|
|
4962
|
+
readonly valueMin?: number;
|
|
4963
|
+
readonly valueMax?: number;
|
|
4964
|
+
readonly previousValueMin?: number;
|
|
4965
|
+
readonly previousValueMax?: number;
|
|
4966
|
+
readonly valueC?: number;
|
|
4967
|
+
readonly previousValueC?: number;
|
|
4968
|
+
readonly changed?: SliderChangedField;
|
|
4969
|
+
}
|
|
4970
|
+
type SliderInputInputEvent = CustomEvent<SliderInputInputDetail>;
|
|
4971
|
+
type SliderInputChangeEvent = CustomEvent<SliderInputChangeDetail>;
|
|
4972
|
+
interface SliderInputElementEventMap {
|
|
4973
|
+
input: SliderInputInputEvent;
|
|
4974
|
+
change: SliderInputChangeEvent;
|
|
4975
|
+
}
|
|
4976
|
+
//#endregion
|
|
4977
|
+
//#region src/slider-input/slider-input.d.ts
|
|
4978
|
+
declare const SliderInputElement_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
4979
|
+
declare class SliderInputElement extends SliderInputElement_base {
|
|
4980
|
+
#private;
|
|
4981
|
+
valueA: number;
|
|
4982
|
+
valueB: number;
|
|
4983
|
+
/**
|
|
4984
|
+
* Triple-mode middle handle. `undefined` until first willUpdate, then
|
|
4985
|
+
* defaulted to the midpoint of valueA/valueB (matching radial-input's
|
|
4986
|
+
* deferred lane-correction pattern).
|
|
4987
|
+
*/
|
|
4988
|
+
valueC: number | undefined;
|
|
4989
|
+
min: number;
|
|
4990
|
+
max: number;
|
|
4991
|
+
step: number | undefined;
|
|
4992
|
+
stops: number | undefined;
|
|
4993
|
+
valueMode: SliderValueMode;
|
|
4994
|
+
singleStyle: SliderSingleStyle;
|
|
4995
|
+
orientation: SliderOrientation;
|
|
4996
|
+
markerStyle: SliderMarkerStyle;
|
|
4997
|
+
/**
|
|
4998
|
+
* Optional marker-style override for the C handle in triple mode. Lets
|
|
4999
|
+
* consumers give C a different shape (e.g. dot) from the global
|
|
5000
|
+
* `markerStyle` applied to A/B.
|
|
5001
|
+
*/
|
|
5002
|
+
markerStyleC: SliderMarkerStyle | undefined;
|
|
5003
|
+
crossover: SliderCrossover;
|
|
5004
|
+
valueDrag: SliderValueDrag;
|
|
5005
|
+
/**
|
|
5006
|
+
* In triple mode, how the C handle reacts when A or B moves the [A, B]
|
|
5007
|
+
* band. `none` (default): C keeps its value unless pushed outside the
|
|
5008
|
+
* new band. `proportional`: C is re-anchored at the same fractional
|
|
5009
|
+
* position it had within the *old* band, so it moves with A/B.
|
|
5010
|
+
*/
|
|
5011
|
+
valueCFollow: SliderValueCFollow;
|
|
5012
|
+
valueMin: number;
|
|
5013
|
+
disabled: boolean;
|
|
5014
|
+
constructor();
|
|
5015
|
+
connectedCallback(): void;
|
|
5016
|
+
addLane(key: string, options?: {
|
|
5017
|
+
value?: number;
|
|
5018
|
+
valueMin?: number;
|
|
5019
|
+
valueMax?: number;
|
|
5020
|
+
type?: SliderLaneType;
|
|
5021
|
+
offset?: number;
|
|
5022
|
+
width?: number;
|
|
5023
|
+
}): void;
|
|
5024
|
+
setLaneValue(key: string, value: number): void;
|
|
5025
|
+
setLaneRange(key: string, valueMin: number, valueMax: number): void;
|
|
5026
|
+
removeLane(key: string): void;
|
|
5027
|
+
getLanes(): ReadonlyMap<string, SliderLaneData>;
|
|
5028
|
+
getLane(key: string): SliderLaneData | undefined;
|
|
5029
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
5030
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
5031
|
+
render(): unknown;
|
|
5032
|
+
protected updated(changed: PropertyValues): void;
|
|
5033
|
+
disconnectedCallback(): void;
|
|
5034
|
+
static styles: CSSResult[];
|
|
5035
|
+
}
|
|
5036
|
+
declare global {
|
|
5037
|
+
interface HTMLElementTagNameMap {
|
|
5038
|
+
'ixfx-slider-input': SliderInputElement;
|
|
5039
|
+
}
|
|
5040
|
+
}
|
|
5041
|
+
interface SliderInputElement {
|
|
5042
|
+
addEventListener: (<K extends keyof SliderInputElementEventMap>(type: K, listener: (this: SliderInputElement, event: SliderInputElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void) & ((type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void);
|
|
5043
|
+
}
|
|
5831
5044
|
//#endregion
|
|
5832
5045
|
//#region src/snap-container/snap-container.d.ts
|
|
5833
5046
|
type SnapLogic = `centre` | `balanced`;
|
|
@@ -5872,7 +5085,7 @@ declare global {
|
|
|
5872
5085
|
interface HTMLElementTagNameMap {
|
|
5873
5086
|
'ixfx-snap-container': SnapContainer;
|
|
5874
5087
|
}
|
|
5875
|
-
}
|
|
5088
|
+
}
|
|
5876
5089
|
//#endregion
|
|
5877
5090
|
//#region src/split-layout/split-layout.d.ts
|
|
5878
5091
|
/**
|
|
@@ -5923,7 +5136,7 @@ declare global {
|
|
|
5923
5136
|
interface HTMLElementTagNameMap {
|
|
5924
5137
|
"ixfx-split-layout": SplitLayoutElement;
|
|
5925
5138
|
}
|
|
5926
|
-
}
|
|
5139
|
+
}
|
|
5927
5140
|
//#endregion
|
|
5928
5141
|
//#region src/swipe/swipe.d.ts
|
|
5929
5142
|
type SwipeInputDetail = {
|
|
@@ -5941,7 +5154,8 @@ declare global {
|
|
|
5941
5154
|
'ixfx-swipe': SwipeElement;
|
|
5942
5155
|
}
|
|
5943
5156
|
}
|
|
5944
|
-
declare
|
|
5157
|
+
declare const SwipeElement_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
5158
|
+
declare class SwipeElement extends SwipeElement_base {
|
|
5945
5159
|
#private;
|
|
5946
5160
|
barSpacing: number;
|
|
5947
5161
|
barWidth: number;
|
|
@@ -5960,6 +5174,15 @@ declare class SwipeElement extends LitElement {
|
|
|
5960
5174
|
private _animStartOffset;
|
|
5961
5175
|
private _animStartTime;
|
|
5962
5176
|
private _resizeObserver;
|
|
5177
|
+
/**
|
|
5178
|
+
* Wheel handler — installed by WheelNudgeMixin on the host. Emits `input`
|
|
5179
|
+
* synchronously on each tick (matching the user-confirmed "mirror drag"
|
|
5180
|
+
* semantic) and schedules the same retraction animation the drag releases
|
|
5181
|
+
* with, so the visual resets after a short idle.
|
|
5182
|
+
*
|
|
5183
|
+
* Step size: 10% of the [-1, 1] value range (= 0.1). Shift halves to 0.05.
|
|
5184
|
+
*/
|
|
5185
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
5963
5186
|
connectedCallback(): void;
|
|
5964
5187
|
disconnectedCallback(): void;
|
|
5965
5188
|
private _onPointerDown;
|
|
@@ -5997,12 +5220,13 @@ declare global {
|
|
|
5997
5220
|
interface HTMLElementTagNameMap {
|
|
5998
5221
|
"ixfx-tab-list-item": TabListItemElement;
|
|
5999
5222
|
}
|
|
6000
|
-
}
|
|
5223
|
+
}
|
|
6001
5224
|
//#endregion
|
|
6002
5225
|
//#region src/tabs/tab-list.d.ts
|
|
6003
5226
|
/**
|
|
6004
5227
|
* Events
|
|
6005
5228
|
* 'change' - new tab selected { previous:string, selected:string, for:string }
|
|
5229
|
+
* 'reorder' - tab moved within the list { id:string, fromIndex:number, toIndex:number }
|
|
6006
5230
|
*/
|
|
6007
5231
|
type TabListChangeDetail = {
|
|
6008
5232
|
readonly previous: string | undefined;
|
|
@@ -6010,11 +5234,19 @@ type TabListChangeDetail = {
|
|
|
6010
5234
|
readonly for: string;
|
|
6011
5235
|
};
|
|
6012
5236
|
type TabListChangeEvent = CustomEvent<TabListChangeDetail>;
|
|
5237
|
+
type TabListReorderDetail = {
|
|
5238
|
+
readonly id: string;
|
|
5239
|
+
readonly fromIndex: number;
|
|
5240
|
+
readonly toIndex: number;
|
|
5241
|
+
};
|
|
5242
|
+
type TabListReorderEvent = CustomEvent<TabListReorderDetail>;
|
|
5243
|
+
type TabListDragMode = `off` | `reorder`;
|
|
6013
5244
|
declare class TabListElement extends LitElement {
|
|
6014
5245
|
#private;
|
|
6015
5246
|
orientation: `horizontal` | `vertical-stack` | `vertical-side`;
|
|
6016
5247
|
flip: boolean;
|
|
6017
5248
|
scrollable: boolean;
|
|
5249
|
+
dragMode: TabListDragMode;
|
|
6018
5250
|
render(): TemplateResult<1>;
|
|
6019
5251
|
firstUpdated(): void;
|
|
6020
5252
|
updated(changedProperties: PropertyValues): void;
|
|
@@ -6026,7 +5258,7 @@ declare global {
|
|
|
6026
5258
|
interface HTMLElementTagNameMap {
|
|
6027
5259
|
"ixfx-tab-list": TabListElement;
|
|
6028
5260
|
}
|
|
6029
|
-
}
|
|
5261
|
+
}
|
|
6030
5262
|
//#endregion
|
|
6031
5263
|
//#region src/tabs/tab-panel.d.ts
|
|
6032
5264
|
declare class TabPanelElement extends LitElement {
|
|
@@ -6037,7 +5269,7 @@ declare global {
|
|
|
6037
5269
|
interface HTMLElementTagNameMap {
|
|
6038
5270
|
"ixfx-tab-panel": TabPanelElement;
|
|
6039
5271
|
}
|
|
6040
|
-
}
|
|
5272
|
+
}
|
|
6041
5273
|
//#endregion
|
|
6042
5274
|
//#region src/tabs/tab-panels.d.ts
|
|
6043
5275
|
declare class TabPanelsElement extends LitElement {
|
|
@@ -6065,7 +5297,7 @@ declare global {
|
|
|
6065
5297
|
interface HTMLElementTagNameMap {
|
|
6066
5298
|
"ixfx-tab-panels": TabPanelsElement;
|
|
6067
5299
|
}
|
|
6068
|
-
}
|
|
5300
|
+
}
|
|
6069
5301
|
//#endregion
|
|
6070
5302
|
//#region src/timeline/types.d.ts
|
|
6071
5303
|
type TimelineTrack = {
|
|
@@ -6301,7 +5533,7 @@ declare global {
|
|
|
6301
5533
|
interface HTMLElementTagNameMap {
|
|
6302
5534
|
'ixfx-timeline-track-tab': TimelineTrackTabElement;
|
|
6303
5535
|
}
|
|
6304
|
-
}
|
|
5536
|
+
}
|
|
6305
5537
|
//#endregion
|
|
6306
5538
|
//#region src/timeline/timeline-element.d.ts
|
|
6307
5539
|
type VCanvasElement$1 = HTMLElement & {
|
|
@@ -6449,7 +5681,6 @@ type VCanvasElement = HTMLElement & {
|
|
|
6449
5681
|
invalidateAll: () => void;
|
|
6450
5682
|
invalidateRegion: (x: number, y: number, w: number, h: number) => void;
|
|
6451
5683
|
};
|
|
6452
|
-
/** Total pointer movement (px) before an axis drag activates */
|
|
6453
5684
|
/**
|
|
6454
5685
|
* Attaches pointer and keyboard interaction handlers to the timeline.
|
|
6455
5686
|
* Returns a cleanup function.
|
|
@@ -6484,7 +5715,7 @@ declare global {
|
|
|
6484
5715
|
interface HTMLElementTagNameMap {
|
|
6485
5716
|
'ixfx-transitory-label': TransitoryLabelElement;
|
|
6486
5717
|
}
|
|
6487
|
-
}
|
|
5718
|
+
}
|
|
6488
5719
|
//#endregion
|
|
6489
5720
|
//#region src/tree/tree-controller.d.ts
|
|
6490
5721
|
type TreeControllerOptions<T> = {
|
|
@@ -6502,7 +5733,8 @@ declare class TreeController<T> {
|
|
|
6502
5733
|
declare function monitorIndeterminate(targetElOrQuery: string | HTMLElement, watchedElsOrQueries: Array<string | HTMLElement>): () => void;
|
|
6503
5734
|
//#endregion
|
|
6504
5735
|
//#region src/xy-pad/xy-pad.d.ts
|
|
6505
|
-
declare
|
|
5736
|
+
declare const XyPad_base: (new (...args: any[]) => WheelNudgeConsumerType<LitElement>) & typeof LitElement;
|
|
5737
|
+
declare class XyPad extends XyPad_base {
|
|
6506
5738
|
static styles: CSSResult[];
|
|
6507
5739
|
xMin: number;
|
|
6508
5740
|
xMax: number;
|
|
@@ -6514,6 +5746,10 @@ declare class XyPad extends LitElement {
|
|
|
6514
5746
|
yScale: string;
|
|
6515
5747
|
xSnapStep?: number;
|
|
6516
5748
|
ySnapStep?: number;
|
|
5749
|
+
/** Explicit keyboard nudge step for X axis (absolute units). Overrides the 10% default. */
|
|
5750
|
+
stepX?: number;
|
|
5751
|
+
/** Explicit keyboard nudge step for Y axis (absolute units). Overrides the 10% default. */
|
|
5752
|
+
stepY?: number;
|
|
6517
5753
|
xLabel: string;
|
|
6518
5754
|
yLabel: string;
|
|
6519
5755
|
showCrosshairs: boolean;
|
|
@@ -6533,6 +5769,12 @@ declare class XyPad extends LitElement {
|
|
|
6533
5769
|
private _onKeyDown;
|
|
6534
5770
|
private _onKeyUp;
|
|
6535
5771
|
private _handleKeyboardMove;
|
|
5772
|
+
/**
|
|
5773
|
+
* Apply a Y-axis nudge by direction. Wheel affects Y only (matches the
|
|
5774
|
+
* keyboard `ArrowUp`/`ArrowDown` semantic per `plans/mousewheel.md`).
|
|
5775
|
+
*/
|
|
5776
|
+
private _stepYByDelta;
|
|
5777
|
+
_applyWheelDelta(direction: WheelDirection, event: WheelEvent): void;
|
|
6536
5778
|
private _onPointerDown;
|
|
6537
5779
|
private _onPointerMove;
|
|
6538
5780
|
private _onPointerUp;
|
|
@@ -6580,5 +5822,5 @@ interface XyPad {
|
|
|
6580
5822
|
//#region src/index.d.ts
|
|
6581
5823
|
declare function init(): void;
|
|
6582
5824
|
//#endregion
|
|
6583
|
-
export { AcTextChangeDetail, AcTextChangeEvent, AcTextCompletionProvider, AcTextElement, AcTextItem, AcTextSelectDetail, AcTextSelectEvent, type AcTokenAddDetail, type AcTokenAddEvent, AcTokenElement, type AcTokenElementEventMap, type AcTokenItem, type AcTokenRemoveDetail, type AcTokenRemoveEvent, type AcTokenizerFn, type AcTokensChangeDetail, type AcTokensChangeEvent, ButtonElement, Checkbox, CheckboxChangeDetail, CheckboxChangeEvent, CheckboxEventMap, ClickSnapMode, ColourMapConfig, ColourMode, ColourPicker, type ColourPickerChangeEvent, type ColourPickerEventDetail, type ColourPickerInputEvent, ColourPickerPopup, ColourResult, ConfigEntry, ContiguousSelectEventDetail, CrossoverBehaviour, CrumbNavChangeDetail, CrumbNavChangeEvent, CrumbNavExpandDetail, CrumbNavExpandEvent, CrumbNavNavigateDetail, CrumbNavNavigateEvent, CrumbNavigationChangeDetail, CrumbNavigationChangeEvent, CrumbNavigationElement, CrumbNavigationElementEventMap, CrumbNavigationExpandDetail, CrumbNavigationExpandEvent, CrumbNavigationItemClickDetail, CrumbNavigationItemClickEvent, CrumbPathController, CrumbPathControllerOptions, CrumbPathElement, CrumbPathElementEventMap, CrumbSegment, CrumbSiblingLookupFn, type CssVars, DataBatch, DataController, DataControllerOptions, DataDisplayComponent, DataProviderResult, DisplayTextLogic, DragSnappingFn, DragTarget, EditableLabel, EditableLabelChangeDetail, EditableLabelChangeEvent, EditableMode, EditableNumber, Effect, type ElementIncrSearch, type ElementIncrSearchOptions, Endpoints, EntryMode, FormatValueForHuman, FormattingOptions, type FuzzySearch, type FuzzySearchOptions, FuzzySearchResult, GridMode, GridResolution, GroupedItemListerElement, type GroupedItemListerElementEventMap, type GroupedSelectDetail, type GroupedSelectEvent, HexChangeDetail, HexChangeEvent, type HighlightOptions, type HighlightTarget, ICON_CARET_RIGHT, ICON_CHECK, ICON_CHEVRON_DOWN, ICON_CLOSE, IDataProvider, type IGroupedSubComponent, type IGroupedSubComponentEventMap, type IconChangedDetail, type IconChangedEvent, type IncrSearch, type IncrSearchChangeCallback, IncrSearchTreeController as IncrSearchMillerController, IncrSearchTreeController, type IncrSearchTreeOptions as IncrSearchMillerOptions, type IncrSearchTreeOptions, type IncrSearchOptions, type IncrSearchResult, type IncrSearchState, ItemsProvider, IxfxHexEditorElement, IxfxIconElement, IxfxTimelineElement, LabelledRadialInput, LabelledRangeInput, LaneData, LaneType, LedElement, type ListActivateDetail, type ListActivateEvent, type ListElementEventMap, type ListInteractionMode, type ListItemClickDetail, type ListItemClickEvent, type ListSelectDetail, type ListSelectEvent, type ListSelectionMode, type ListTickleDetail, type ListTickleEvent, LoadChildrenCallback, MarkerStyle, index_d_exports as Menu, type TreeActivateDetail as MillerActivateDetail, TreeActivateDetail, type TreeActivateEvent as MillerActivateEvent, TreeActivateEvent, MillerBaseElement, MillerBaseElementEventMap, type TreeCollapseDetail as MillerCollapseDetail, TreeCollapseDetail, type TreeCollapseEvent as MillerCollapseEvent, TreeCollapseEvent, MillerConfig, type TreeExpandDetail as MillerExpandDetail, TreeExpandDetail, type TreeExpandEvent as MillerExpandEvent, TreeExpandEvent, MillerHeaderClickDetail, MillerHeaderClickEvent, MillerHeaderRightClickDetail, MillerHeaderRightClickEvent, type TreeItem as MillerItem, TreeItem, type TreeItemClickDetail as MillerItemClickDetail, TreeItemClickDetail, type TreeItemClickEvent as MillerItemClickEvent, TreeItemClickEvent, MillerItemDblClickDetail, MillerItemDblClickEvent, MillerItemRightClickDetail, MillerItemRightClickEvent, MillerItemState, MillerListElement, type TreeNode as MillerNode, TreeNode, type TreeSelectDetail as MillerSelectDetail, TreeSelectDetail, type TreeSelectEvent as MillerSelectEvent, TreeSelectEvent, MillerSelectionMode, type TreeTickleDetail as MillerTickleDetail, TreeTickleDetail, type TreeTickleEvent as MillerTickleEvent, TreeTickleEvent, MillerTreeController, MillerTreeControllerOptions, NarrowedTextChangeDetail, NarrowedTextChangeEvent, NarrowedTextElement, NarrowedTextItem, NoneSelectEventDetail, type OklchValue, Orientation, PanelCloseEvent, PanelElement, PanelElementEventMap, PanelGroupElement, PanelGroupOrientation, PanelOrientation, PanelToggleDetail, PanelToggleEvent, PanelToggleInteraction, PanelVariant, PlotDataSeries, PlotDataSeriesOptions, PlotHistogram, PlotHistogramBucketClickDetail, PlotHistogramBucketClickEvent, PlotHistogramElementEventMap, PlotHistogramOrientation, PlotMultiAxis, PlotMultiAxisDataPointClickDetail, PlotMultiAxisDataPointClickEvent, PlotMultiAxisElementEventMap, PlotMultiAxisLayout, PlotSingleAxis, PlotSingleAxisElementEventMap, PlotSingleAxisPointerMoveDetail, PlotSingleAxisPointerMoveEvent, PlotXyAxis, PolarPad, PolarPadInputDetail, PolarPadInputEvent, PopupItem, RadialInputChangeDetail, RadialInputChangeEvent, RadialInputElement, RadialInputInputDetail, RadialInputInputEvent, RadioGroup, RadioGroupChangeDetail, RadioGroupChangeEvent, RadioGroupMode, RadioItem, RangeElement, RangeInput, RangeMultiElement, RangeMultiInputDetail, RangeMultiInputEvent, type Rect, RectangularSelectEventDetail, RendererStyle, ResizeMode, SelectEventDetail, SelectHorizontalElement, SelectionMode, SingleAxisAgeStyle, SingleAxisDrawStyle, SingleSelectEventDetail, SnapChangeDetail, SnapChangeEvent, SnapContainer, SnapInputDetail, SnapInputEvent, SnapLogic, SplitButton, SplitButtonMode, SplitButtonSelectDetail, SplitButtonSelectEvent, SplitLayoutElement, type SubComponentActivateDetail, type SubComponentActivateEvent, type SubComponentFactory, type SubComponentItemClickDetail, type SubComponentItemClickEvent, type SubComponentSelectDetail, type SubComponentSelectEvent, type SubComponentTickleDetail, type SubComponentTickleEvent, SwipeElement, SwipeElementEventMap, SwipeInputDetail, SwipeInputEvent, SwitcherItem, TabListChangeDetail, TabListChangeEvent, TabListElement, TabListItemElement, TabPanelElement, TabPanelsElement, TimelineController, TimelineControllerConfig, TimelineDraggingCallbackDetail, TimelineDraggingDetail, TimelineDraggingEvent, TimelineElementEventMap, TimelineEvent, TimelineEventMoveDetail, TimelineEventMoveEvent, TimelineEventResizeDetail, TimelineEventResizeEvent, TimelineSelectionChangeDetail, TimelineSelectionChangeEvent, TimelineTickleChangeDetail, TimelineTickleChangeEvent, TimelineTrack, TimelineTrackReorderDetail, TimelineTrackReorderEvent, TimelineTrackResizeDetail, TimelineTrackResizeEvent, TimelineTrackSelectDetail, TimelineTrackSelectEvent, TimelineTrackTabElement, TooltipElement, TooltipOrientations, TrackHeightMode, TrackLayout, TransitoryLabelElement, TreeBaseElement, TreeBaseElementEventMap, TreeComponent, TreeComponentEventMap, TreeConfig, TreeController, TreeControllerOptions, TreeDataModel, TreeDataModelOptions, TreeExclusivity, TreeFilterPredicate, TreeInteractionMode, TreeListAdapterOptions, TreeListElement, TreeSearchHost, TreeSelectionFilter, UserScale, ValueMode, VerticalListAdapterOptions, VerticalListElement, ViewRange, XyAgeStyle, XyDrawStyle, XyPad, XyPadEventMap, XyPadInputDetail, XyPadInputEvent, applyAgeModification, applyHighlights, attachTimelineInteractions, buildHighlightTargets, clearHighlights, collectDataResult, computeColour, createAcCompletionProvider, createElementIncrSearch, createFuzzySearch, createIncrSearch, createTreeListAdapter, createVerticalListAdapter, getIcon, hasIcon, iconBus, init, monitorIndeterminate, parseColourScaleAttr, readBaseColour, registerIcon, resolveCssVars, resolveGrid, svgToDataUri, timelineStyles };
|
|
5825
|
+
export { AcTextChangeDetail, AcTextChangeEvent, AcTextCompletionProvider, AcTextElement, AcTextItem, AcTextSelectDetail, AcTextSelectEvent, type AcTokenAddDetail, type AcTokenAddEvent, AcTokenElement, type AcTokenElementEventMap, type AcTokenItem, type AcTokenRemoveDetail, type AcTokenRemoveEvent, type AcTokenizerFn, type AcTokensChangeDetail, type AcTokensChangeEvent, ButtonElement, Checkbox, CheckboxChangeDetail, CheckboxChangeEvent, CheckboxEventMap, ClickSnapMode, ColourMapConfig, ColourMode, ColourPicker, type ColourPickerChangeEvent, type ColourPickerEventDetail, type ColourPickerInputEvent, ColourPickerPopup, ColourResult, ConfigEntry, ContiguousSelectEventDetail, CrossoverBehaviour, CrumbNavChangeDetail, CrumbNavChangeEvent, CrumbNavExpandDetail, CrumbNavExpandEvent, CrumbNavNavigateDetail, CrumbNavNavigateEvent, CrumbNavigationChangeDetail, CrumbNavigationChangeEvent, CrumbNavigationElement, CrumbNavigationElementEventMap, CrumbNavigationExpandDetail, CrumbNavigationExpandEvent, CrumbNavigationItemClickDetail, CrumbNavigationItemClickEvent, CrumbPathController, CrumbPathControllerOptions, CrumbPathElement, CrumbPathElementEventMap, CrumbSegment, CrumbSiblingLookupFn, type CssVars, DataBatch, DataController, DataControllerOptions, DataDisplayComponent, DataProviderResult, DisplayTextLogic, DragSnappingFn, DragTarget, EditableLabel, EditableLabelChangeDetail, EditableLabelChangeEvent, EditableMode, EditableNumber, Effect, type ElementIncrSearch, type ElementIncrSearchOptions, Endpoints, EntryMode, FormatValueForHuman, FormattingOptions, type FuzzySearch, type FuzzySearchOptions, FuzzySearchResult, GridMode, GridResolution, GroupedItemListerElement, type GroupedItemListerElementEventMap, type GroupedSelectDetail, type GroupedSelectEvent, HexChangeDetail, HexChangeEvent, type HighlightOptions, type HighlightTarget, ICON_CARET_RIGHT, ICON_CHECK, ICON_CHEVRON_DOWN, ICON_CLOSE, IDataProvider, type IGroupedSubComponent, type IGroupedSubComponentEventMap, type IconChangedDetail, type IconChangedEvent, type IncrSearch, type IncrSearchChangeCallback, IncrSearchTreeController as IncrSearchMillerController, IncrSearchTreeController, type IncrSearchTreeOptions as IncrSearchMillerOptions, type IncrSearchTreeOptions, type IncrSearchOptions, type IncrSearchResult, type IncrSearchState, ItemsProvider, IxfxHexEditorElement, IxfxIconElement, IxfxTimelineElement, LabelledRadialInput, LabelledRangeInput, LaneData, LaneType, LedElement, type ListActivateDetail, type ListActivateEvent, type ListElementEventMap, type ListInteractionMode, type ListItemClickDetail, type ListItemClickEvent, type ListSelectDetail, type ListSelectEvent, type ListSelectionMode, type ListTickleDetail, type ListTickleEvent, LoadChildrenCallback, MarkerStyle, index_d_exports as Menu, type TreeActivateDetail as MillerActivateDetail, TreeActivateDetail, type TreeActivateEvent as MillerActivateEvent, TreeActivateEvent, MillerBaseElement, MillerBaseElementEventMap, type TreeCollapseDetail as MillerCollapseDetail, TreeCollapseDetail, type TreeCollapseEvent as MillerCollapseEvent, TreeCollapseEvent, MillerConfig, type TreeExpandDetail as MillerExpandDetail, TreeExpandDetail, type TreeExpandEvent as MillerExpandEvent, TreeExpandEvent, MillerHeaderClickDetail, MillerHeaderClickEvent, MillerHeaderRightClickDetail, MillerHeaderRightClickEvent, type TreeItem as MillerItem, TreeItem, type TreeItemClickDetail as MillerItemClickDetail, TreeItemClickDetail, type TreeItemClickEvent as MillerItemClickEvent, TreeItemClickEvent, MillerItemDblClickDetail, MillerItemDblClickEvent, MillerItemRightClickDetail, MillerItemRightClickEvent, MillerItemState, MillerListElement, type TreeNode as MillerNode, TreeNode, type TreeSelectDetail as MillerSelectDetail, TreeSelectDetail, type TreeSelectEvent as MillerSelectEvent, TreeSelectEvent, MillerSelectionMode, type TreeTickleDetail as MillerTickleDetail, TreeTickleDetail, type TreeTickleEvent as MillerTickleEvent, TreeTickleEvent, MillerTreeController, MillerTreeControllerOptions, NarrowedTextChangeDetail, NarrowedTextChangeEvent, NarrowedTextElement, NarrowedTextItem, NoneSelectEventDetail, type OklchValue, Orientation, PanelCloseEvent, PanelElement, PanelElementEventMap, PanelGroupElement, PanelGroupOrientation, PanelOrientation, PanelToggleDetail, PanelToggleEvent, PanelToggleInteraction, PanelVariant, PlotDataSeries, PlotDataSeriesOptions, PlotHistogram, PlotHistogramBucketClickDetail, PlotHistogramBucketClickEvent, PlotHistogramElementEventMap, PlotHistogramOrientation, PlotHistogramValueTooltips, PlotMultiAxis, PlotMultiAxisDataPointClickDetail, PlotMultiAxisDataPointClickEvent, PlotMultiAxisElementEventMap, PlotMultiAxisLayout, PlotSingleAxis, PlotSingleAxisElementEventMap, PlotSingleAxisPointerMoveDetail, PlotSingleAxisPointerMoveEvent, PlotXyAxis, PolarPad, PolarPadInputDetail, PolarPadInputEvent, PopupItem, RadialInputChangeDetail, RadialInputChangeEvent, RadialInputElement, RadialInputInputDetail, RadialInputInputEvent, RadioGroup, RadioGroupChangeDetail, RadioGroupChangeEvent, RadioGroupMode, RadioItem, RangeElement, RangeInput, RangeMultiElement, RangeMultiInputDetail, RangeMultiInputEvent, type Rect, RectangularSelectEventDetail, RendererStyle, ResizeMode, SelectEventDetail, SelectHorizontalElement, SelectionMode, SingleAxisAgeStyle, SingleAxisDrawStyle, SingleSelectEventDetail, SliderChangedField, SliderCrossover, SliderHandleKey, SliderInputChangeDetail, SliderInputChangeEvent, SliderInputElement, SliderInputElementEventMap, SliderInputInputDetail, SliderInputInputEvent, SliderLaneData, SliderLaneType, SliderMarkerStyle, SliderOrientation, SliderSingleStyle, SliderValueCFollow, SliderValueDrag, SliderValueMode, SnapChangeDetail, SnapChangeEvent, SnapContainer, SnapInputDetail, SnapInputEvent, SnapLogic, SplitButton, SplitButtonMode, SplitButtonSelectDetail, SplitButtonSelectEvent, SplitLayoutElement, type SubComponentActivateDetail, type SubComponentActivateEvent, type SubComponentFactory, type SubComponentItemClickDetail, type SubComponentItemClickEvent, type SubComponentSelectDetail, type SubComponentSelectEvent, type SubComponentTickleDetail, type SubComponentTickleEvent, SwipeElement, SwipeElementEventMap, SwipeInputDetail, SwipeInputEvent, SwitcherItem, TabListChangeDetail, TabListChangeEvent, TabListDragMode, TabListElement, TabListItemElement, TabListReorderDetail, TabListReorderEvent, TabPanelElement, TabPanelsElement, TimelineController, TimelineControllerConfig, TimelineDraggingCallbackDetail, TimelineDraggingDetail, TimelineDraggingEvent, TimelineElementEventMap, TimelineEvent, TimelineEventMoveDetail, TimelineEventMoveEvent, TimelineEventResizeDetail, TimelineEventResizeEvent, TimelineSelectionChangeDetail, TimelineSelectionChangeEvent, TimelineTickleChangeDetail, TimelineTickleChangeEvent, TimelineTrack, TimelineTrackReorderDetail, TimelineTrackReorderEvent, TimelineTrackResizeDetail, TimelineTrackResizeEvent, TimelineTrackSelectDetail, TimelineTrackSelectEvent, TimelineTrackTabElement, TooltipElement, TooltipOrientations, TrackHeightMode, TrackLayout, TransitoryLabelElement, TreeBaseElement, TreeBaseElementEventMap, TreeComponent, TreeComponentEventMap, TreeConfig, TreeController, TreeControllerOptions, TreeDataModel, TreeDataModelOptions, TreeExclusivity, TreeFilterPredicate, TreeInteractionMode, TreeListAdapterOptions, TreeListElement, TreeSearchHost, TreeSelectionFilter, UserScale, ValueMode, VerticalListAdapterOptions, VerticalListElement, ViewRange, XyAgeStyle, XyDrawStyle, XyPad, XyPadEventMap, XyPadInputDetail, XyPadInputEvent, applyAgeModification, applyHighlights, attachTimelineInteractions, buildHighlightTargets, clearHighlights, collectDataResult, computeColour, createAcCompletionProvider, createElementIncrSearch, createFuzzySearch, createIncrSearch, createTreeListAdapter, createVerticalListAdapter, getIcon, hasIcon, iconBus, init, monitorIndeterminate, parseColourScaleAttr, readBaseColour, registerIcon, resolveCssVars, resolveGrid, svgToDataUri, timelineStyles };
|
|
6584
5826
|
//# sourceMappingURL=index.d.ts.map
|