@trdrs/quickcharts 5.7.1 → 5.9.0

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +139 -9
  3. package/dist/{ar-N6ZTWN65.js → ar-UCEHBM7A.js} +13 -2
  4. package/dist/ar-UCEHBM7A.js.map +1 -0
  5. package/dist/{assets-BFaYQSN_.d.ts → assets-BlTu7v6I.d.ts} +14 -0
  6. package/dist/{ca_ES-VHYHWEYE.js → ca_ES-BFGULOZT.js} +13 -2
  7. package/dist/ca_ES-BFGULOZT.js.map +1 -0
  8. package/dist/{chunk-ETG46YGK.js → chunk-QDGOF34R.js} +5 -56
  9. package/dist/chunk-QDGOF34R.js.map +1 -0
  10. package/dist/{de-IYDL4R7X.js → de-GCEC2EYH.js} +13 -2
  11. package/dist/de-GCEC2EYH.js.map +1 -0
  12. package/dist/drawings.d.ts +2 -2
  13. package/dist/drawings.js +1 -1
  14. package/dist/{es-LBKNPA3H.js → es-ZB54BYRR.js} +13 -2
  15. package/dist/es-ZB54BYRR.js.map +1 -0
  16. package/dist/feature-manifest.json +11 -1
  17. package/dist/{fr-MHNDYCBF.js → fr-G4UQFXAQ.js} +13 -2
  18. package/dist/fr-G4UQFXAQ.js.map +1 -0
  19. package/dist/{he_IL-BMEFQ3ZN.js → he_IL-WWCSQOSV.js} +13 -2
  20. package/dist/he_IL-WWCSQOSV.js.map +1 -0
  21. package/dist/{id_ID-TXN53FZX.js → id_ID-7F2V4KIE.js} +13 -2
  22. package/dist/id_ID-7F2V4KIE.js.map +1 -0
  23. package/dist/index.d.ts +72 -10
  24. package/dist/index.js +1046 -802
  25. package/dist/index.js.map +1 -1
  26. package/dist/{it-OGBC7TOS.js → it-ACKDFMK4.js} +13 -2
  27. package/dist/it-ACKDFMK4.js.map +1 -0
  28. package/dist/{ja-53733PVE.js → ja-O64YJRIH.js} +13 -2
  29. package/dist/ja-O64YJRIH.js.map +1 -0
  30. package/dist/{ko-3VKR42AF.js → ko-ZVNVRNQC.js} +13 -2
  31. package/dist/ko-ZVNVRNQC.js.map +1 -0
  32. package/dist/{ms_MY-MS365YCK.js → ms_MY-3OXH5BKH.js} +13 -2
  33. package/dist/ms_MY-3OXH5BKH.js.map +1 -0
  34. package/dist/{pl-LW3WQV2B.js → pl-22JL2HZV.js} +13 -2
  35. package/dist/pl-22JL2HZV.js.map +1 -0
  36. package/dist/{pt-ODOVBTAY.js → pt-P4JJ5ICZ.js} +13 -2
  37. package/dist/{pt-ODOVBTAY.js.map → pt-P4JJ5ICZ.js.map} +1 -1
  38. package/dist/quickcharts.css +202 -101
  39. package/dist/{ru-IPHJS4OI.js → ru-YC5ROSB7.js} +13 -2
  40. package/dist/ru-YC5ROSB7.js.map +1 -0
  41. package/dist/{sv-EPVCTIWY.js → sv-X5EQXKFO.js} +13 -2
  42. package/dist/sv-X5EQXKFO.js.map +1 -0
  43. package/dist/{symbols-CCYUK8MU.d.ts → symbols-DNMxzgfN.d.ts} +5 -0
  44. package/dist/symbols.d.ts +1 -1
  45. package/dist/{th-QONC4EYZ.js → th-3JWJOZ46.js} +13 -2
  46. package/dist/th-3JWJOZ46.js.map +1 -0
  47. package/dist/theme-manifest.json +22 -0
  48. package/dist/{tr-JIO34LZJ.js → tr-E3WXPPX4.js} +13 -2
  49. package/dist/tr-E3WXPPX4.js.map +1 -0
  50. package/dist/{vi-6TAWAJKM.js → vi-4YVVQQHU.js} +13 -2
  51. package/dist/vi-4YVVQQHU.js.map +1 -0
  52. package/dist/{zh-2BABI2QN.js → zh-GTCA4GAB.js} +13 -2
  53. package/dist/zh-GTCA4GAB.js.map +1 -0
  54. package/dist/{zh_TW-L2X3VH4E.js → zh_TW-47TPXCBL.js} +13 -2
  55. package/dist/zh_TW-47TPXCBL.js.map +1 -0
  56. package/package.json +1 -1
  57. package/dist/ar-N6ZTWN65.js.map +0 -1
  58. package/dist/ca_ES-VHYHWEYE.js.map +0 -1
  59. package/dist/chunk-ETG46YGK.js.map +0 -1
  60. package/dist/de-IYDL4R7X.js.map +0 -1
  61. package/dist/es-LBKNPA3H.js.map +0 -1
  62. package/dist/fr-MHNDYCBF.js.map +0 -1
  63. package/dist/he_IL-BMEFQ3ZN.js.map +0 -1
  64. package/dist/id_ID-TXN53FZX.js.map +0 -1
  65. package/dist/it-OGBC7TOS.js.map +0 -1
  66. package/dist/ja-53733PVE.js.map +0 -1
  67. package/dist/ko-3VKR42AF.js.map +0 -1
  68. package/dist/ms_MY-MS365YCK.js.map +0 -1
  69. package/dist/pl-LW3WQV2B.js.map +0 -1
  70. package/dist/ru-IPHJS4OI.js.map +0 -1
  71. package/dist/sv-EPVCTIWY.js.map +0 -1
  72. package/dist/th-QONC4EYZ.js.map +0 -1
  73. package/dist/tr-JIO34LZJ.js.map +0 -1
  74. package/dist/vi-6TAWAJKM.js.map +0 -1
  75. package/dist/zh-2BABI2QN.js.map +0 -1
  76. package/dist/zh_TW-L2X3VH4E.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as ChartDatafeed, M as MarkIconId, F as FeedBar, S as SymbolRow, D as DatafeedSearchOptions, a as SearchPage, b as SearchClassNode } from './symbols-CCYUK8MU.js';
2
- export { B as BarMark, c as BarsEvent, d as DatafeedConfig, e as FeedUnavailableError, H as HistoryPage, f as MarkColor, g as MarkColorPair, h as MarkColorRole, i as MarkLine, j as MarkLineStyle, k as MarkPlacement, l as MarkShape, O as OlderPageVerdict, P as PricesHandlers, m as SubscribeHandlers, n as SymbolNames, o as SymbolPrices, T as TimescaleMark, p as olderPageVerdict, s as symbolNames } from './symbols-CCYUK8MU.js';
3
- import { ao as en, C as ChartMessageKey, G as GlyphSourcePort, M as MagnetMode, d as CursorMode, Q as TextEditFrame, N as TextDraft, L as LineStyle, I as IDrawing, m as DrawingCounts, D as DrawingStyle, $ as VisibilityPreset, X as ToolPreset, Y as ToolTemplate, S as SerializedDrawing, o as DrawingPreferences, l as DrawingAssetPort } from './assets-BFaYQSN_.js';
1
+ import { C as ChartDatafeed, M as MarkIconId, F as FeedBar, S as SymbolRow, D as DatafeedSearchOptions, a as SearchPage, b as SearchClassNode } from './symbols-DNMxzgfN.js';
2
+ export { B as BarMark, c as BarsEvent, d as DatafeedConfig, e as FeedUnavailableError, H as HistoryPage, f as MarkColor, g as MarkColorPair, h as MarkColorRole, i as MarkLine, j as MarkLineStyle, k as MarkPlacement, l as MarkShape, O as OlderPageVerdict, P as PricesHandlers, m as SubscribeHandlers, n as SymbolNames, o as SymbolPrices, T as TimescaleMark, p as olderPageVerdict, s as symbolNames } from './symbols-DNMxzgfN.js';
3
+ import { ao as en, C as ChartMessageKey, W as TimeframeVisibility, G as GlyphSourcePort, M as MagnetMode, d as CursorMode, Q as TextEditFrame, N as TextDraft, L as LineStyle, I as IDrawing, m as DrawingCounts, D as DrawingStyle, $ as VisibilityPreset, X as ToolPreset, Y as ToolTemplate, S as SerializedDrawing, o as DrawingPreferences, l as DrawingAssetPort } from './assets-BlTu7v6I.js';
4
4
  import { b as ResourceRef, C as ChartSaveLoadAdapter, q as ChartMeta, t as ChartBody, h as DrawingResourceContext, R as ResourceStore, u as DrawingsMeta, j as DrawingsBody, T as TemplateMeta, a as TemplateBody, v as LayoutMeta, w as LayoutBody, e as DrawingContextKind } from './resources-XglhzzW0.js';
5
5
  export { c as ChartLocalDrawingContext, D as DRAWING_CONTEXT_VERSION, d as DRAWING_DOCUMENT_VERSION, f as DrawingEntry, g as DrawingGroup, i as DrawingTombstone, L as LayoutSharedDrawingContext, M as MemoryResourcesOptions, x as ResourceAbortError, S as SymbolGlobalDrawingContext, y as TemplateKind, W as WriteOutcome, k as drawingContextKey, l as emptyDrawingDocument, m as liveDrawingEntries, n as liveDrawingGroups, z as memorySaveLoadAdapter, o as mergeDrawingDocuments, p as parseDrawingDocument, r as reviseDrawingDocument, s as sameDrawingContext } from './resources-XglhzzW0.js';
6
6
  import { LineData, UTCTimestamp, HistogramData, WhitespaceData, IChartApi, ISeriesApi, CreatePriceLineOptions, PriceLineOptions, ISeriesPrimitive, Time, PriceScaleMode, SeriesType, SeriesAttachedParameter, TickMarkType } from 'lightweight-charts';
@@ -55,6 +55,16 @@ declare const THEME_ROLES: readonly [{
55
55
  readonly family: "canvas";
56
56
  readonly kind: "color";
57
57
  readonly description: "The divider between stacked panes and around the plot area.";
58
+ }, {
59
+ readonly id: "canvas.paneDivider";
60
+ readonly family: "canvas";
61
+ readonly kind: "color";
62
+ readonly description: "The line between stacked panes.";
63
+ }, {
64
+ readonly id: "canvas.paneDividerHover";
65
+ readonly family: "canvas";
66
+ readonly kind: "color";
67
+ readonly description: "The band over the line between stacked panes while the pointer is on it.";
58
68
  }, {
59
69
  readonly id: "canvas.watermark";
60
70
  readonly family: "canvas";
@@ -918,7 +928,7 @@ interface DictionaryLoader<Source extends Catalog, Code extends string = ChartLo
918
928
  has(code: Code): boolean;
919
929
  }
920
930
 
921
- declare const KEYS_ADDED_IN_MAJOR: readonly ["chrome.autoScale", "chrome.autoScaleMark", "chrome.currencyAndUnit", "chrome.deletePane", "chrome.logScale", "chrome.logScaleMark", "chrome.paneButtons", "chrome.priceLevelMenu", "chrome.scaleAsk", "chrome.scaleBid", "chrome.scaleHigh", "chrome.scaleLow", "chrome.scaleMenu", "chrome.scaleModes", "command.drawingPlaceHorizontalLine", "command.marksRefresh", "history.changeMovePane", "legend.movePaneDown", "legend.movePaneUp", "menu.autoFitScale", "menu.drawHorizontalLine", "menu.invertScale", "menu.labelBidAsk", "menu.labelExtendedHours", "menu.labelHighLow", "menu.labelIndicatorName", "menu.labelIndicatorValue", "menu.labelPreviousClose", "menu.labelSymbolName", "menu.labelSymbolValue", "menu.lineBidAsk", "menu.lineExtendedHours", "menu.lineHighLow", "menu.linePreviousClose", "menu.linePrice", "menu.moreSettings", "menu.moveScaleLeft", "menu.moveScaleRight", "menu.resetPriceScale", "menu.scaleIndexed", "menu.scaleLabels", "menu.scaleLines", "menu.scaleLogarithmic", "menu.scalePercent", "menu.scalePriceChartOnly", "menu.scaleRegular", "picker.allKinds", "picker.indicators", "picker.kindFilter", "picker.technicals"];
931
+ declare const KEYS_ADDED_IN_MAJOR: readonly ["chrome.autoScale", "chrome.autoScaleMark", "chrome.currencyAndUnit", "chrome.deletePane", "chrome.logScale", "chrome.logScaleMark", "chrome.paneButtons", "chrome.priceLevelMenu", "chrome.scaleAsk", "chrome.scaleBid", "chrome.scaleHigh", "chrome.scaleLow", "chrome.scaleMenu", "chrome.scaleModes", "command.drawingPlaceHorizontalLine", "command.marksRefresh", "history.changeMovePane", "legend.movePaneDown", "legend.movePaneUp", "menu.autoFitScale", "menu.drawHorizontalLine", "menu.invertScale", "menu.labelBidAsk", "menu.labelExtendedHours", "menu.labelHighLow", "menu.labelIndicatorName", "menu.labelIndicatorValue", "menu.labelPreviousClose", "menu.labelSymbolName", "menu.labelSymbolValue", "menu.lineBidAsk", "menu.lineExtendedHours", "menu.lineHighLow", "menu.linePreviousClose", "menu.linePrice", "menu.moreSettings", "menu.moveScaleLeft", "menu.moveScaleRight", "menu.resetPriceScale", "menu.scaleIndexed", "menu.scaleLabels", "menu.scaleLines", "menu.scaleLogarithmic", "menu.scalePercent", "menu.scalePriceChartOnly", "menu.scaleRegular", "picker.allKinds", "picker.indicators", "picker.kindFilter", "picker.technicals", "search.moreListings", "settings.defaults", "settings.falling", "settings.growing", "settings.indicatorPinnedNote", "settings.inputValues", "settings.inputsInStatusLine", "settings.outputValues", "settings.resetSettings", "settings.saveAsDefault", "settings.valuesInStatusLine"];
922
932
  type KeyAddedInMajor = (typeof KEYS_ADDED_IN_MAJOR)[number];
923
933
 
924
934
  type ChartTranslate = Translate<typeof en>;
@@ -1125,6 +1135,16 @@ declare const chartDictionaries: DictionaryLoader<{
1125
1135
  readonly 'settings.lineStyleDotted': "Dotted";
1126
1136
  readonly 'settings.labelsOnPriceScale': "Labels on price scale";
1127
1137
  readonly 'settings.showIndicator': "Show this indicator";
1138
+ readonly 'settings.growing': "Growing";
1139
+ readonly 'settings.falling': "Falling";
1140
+ readonly 'settings.outputValues': "Output values";
1141
+ readonly 'settings.inputValues': "Input values";
1142
+ readonly 'settings.valuesInStatusLine': "Values in status line";
1143
+ readonly 'settings.inputsInStatusLine': "Inputs in status line";
1144
+ readonly 'settings.defaults': "Defaults";
1145
+ readonly 'settings.resetSettings': "Reset settings";
1146
+ readonly 'settings.saveAsDefault': "Save as default";
1147
+ readonly 'settings.indicatorPinnedNote': "An indicator stays on at least one timeframe, so it can always be reached again.";
1128
1148
  readonly 'picker.title': "Indicators";
1129
1149
  readonly 'picker.search': "Search indicators";
1130
1150
  readonly 'picker.noMatches': "No matching indicators.";
@@ -1777,6 +1797,10 @@ declare const chartDictionaries: DictionaryLoader<{
1777
1797
  readonly 'search.recent': "Recent symbols";
1778
1798
  readonly 'search.addedMark': "{symbol} is on the chart. Click to remove.";
1779
1799
  readonly 'search.compareEmpty': "No symbols here yet. Why not add some?";
1800
+ readonly 'search.moreListings': {
1801
+ readonly one: "{count} more listing";
1802
+ readonly other: "{count} more listings";
1803
+ };
1780
1804
  readonly 'search.allClasses': "All";
1781
1805
  readonly 'search.classFilter': "Asset class";
1782
1806
  readonly 'search.limitToScope': "Limit search to {scope}";
@@ -2746,6 +2770,9 @@ interface ThemeRootStyle {
2746
2770
  interface CanvasTheme {
2747
2771
  background: string;
2748
2772
  paneBorder: string;
2773
+ /** The line between stacked panes, and the band over it while the pointer is on it. */
2774
+ paneDivider: string;
2775
+ paneDividerHover: string;
2749
2776
  /** The ink a watermark writes behind the bars. */
2750
2777
  watermark: string;
2751
2778
  grid: string;
@@ -2973,7 +3000,7 @@ interface ChartIconDiagnostic {
2973
3000
  }
2974
3001
 
2975
3002
  /** The glyphs of the chart's own controls, by meaning, each with every drawing that carries it. */
2976
- declare const CONTROL_ICONS: Readonly<Record<"info" | "search" | "bold" | "open" | "close" | "volume" | "indicators" | "copy" | "textColor" | "visible" | "lineColor" | "template" | "fillColor" | "italic" | "locked" | "sync" | "caret" | "tip" | "measure" | "image" | "eraser" | "delete" | "remove" | "hidden" | "pause" | "play" | "reset" | "scroll" | "magnet" | "collapse" | "paneCollapse" | "paneRestore" | "paneMaximize" | "marketStatus" | "replayStatus" | "replayMark" | "replayCut" | "replay" | "undo" | "redo" | "settings" | "fullscreen" | "tileMaximize" | "tileRestore" | "download" | "chevronDown" | "chevronUp" | "chevronLeft" | "chevronRight" | "check" | "clear" | "goLive" | "stepForward" | "stepBack" | "calendar" | "selectBar" | "firstAvailable" | "randomBar" | "clock" | "cursorCross" | "cursorDot" | "cursorArrow" | "magnetStrong" | "drawingsShown" | "drawingsHidden" | "indicatorsShown" | "indicatorsHidden" | "allShown" | "allHidden" | "zoomIn" | "grip" | "tableAddColumn" | "tableAddRow" | "favoritesBar" | "lineSolid" | "lineDashed" | "lineDotted" | "lineThickness1" | "lineThickness2" | "lineThickness3" | "lineThickness4" | "lineEndNormal" | "lineEndArrow" | "settingsSymbol" | "settingsStatusLine" | "settingsScales" | "settingsCanvas" | "settingsEvents" | "compare" | "fullscreenExit" | "paneMoveUp" | "paneMoveDown" | "zoomOut" | "add" | "rename" | "duplicate" | "favorite" | "favorited" | "sortAscending" | "sortDescending" | "flyout" | "submenu" | "more" | "emptySearch" | "emptyCompare" | "operatorsShow" | "operatorsHide" | "operatorAdd" | "operatorSubtract" | "operatorMultiply" | "operatorDivide" | "operatorPower" | "operatorReciprocal" | "selectDate" | "zoomTool" | "stayInMode" | "stayInModeOn" | "unlocked" | "hide" | "glyphTools" | "visualOrder" | "volumeMuted", readonly Glyph[]>>;
3003
+ declare const CONTROL_ICONS: Readonly<Record<"info" | "search" | "bold" | "open" | "close" | "volume" | "indicators" | "copy" | "textColor" | "visible" | "lineColor" | "template" | "fillColor" | "italic" | "locked" | "sync" | "caret" | "tip" | "measure" | "image" | "eraser" | "delete" | "remove" | "hidden" | "pause" | "play" | "reset" | "scroll" | "magnet" | "collapse" | "marketStatus" | "replayStatus" | "replayMark" | "replayCut" | "replay" | "undo" | "redo" | "settings" | "fullscreen" | "tileMaximize" | "tileRestore" | "download" | "chevronDown" | "chevronUp" | "chevronLeft" | "chevronRight" | "check" | "clear" | "goLive" | "stepForward" | "stepBack" | "calendar" | "selectBar" | "firstAvailable" | "randomBar" | "clock" | "cursorCross" | "cursorDot" | "cursorArrow" | "magnetStrong" | "drawingsShown" | "drawingsHidden" | "indicatorsShown" | "indicatorsHidden" | "allShown" | "allHidden" | "zoomIn" | "grip" | "tableAddColumn" | "tableAddRow" | "favoritesBar" | "lineSolid" | "lineDashed" | "lineDotted" | "lineThickness1" | "lineThickness2" | "lineThickness3" | "lineThickness4" | "lineEndNormal" | "lineEndArrow" | "settingsSymbol" | "settingsStatusLine" | "settingsScales" | "settingsCanvas" | "settingsEvents" | "compare" | "fullscreenExit" | "paneCollapse" | "paneRestore" | "paneMaximize" | "paneMoveUp" | "paneMoveDown" | "zoomOut" | "add" | "rename" | "duplicate" | "favorite" | "favorited" | "sortAscending" | "sortDescending" | "flyout" | "submenu" | "more" | "emptySearch" | "emptyCompare" | "operatorsShow" | "operatorsHide" | "operatorAdd" | "operatorSubtract" | "operatorMultiply" | "operatorDivide" | "operatorPower" | "operatorReciprocal" | "selectDate" | "zoomTool" | "stayInMode" | "stayInModeOn" | "unlocked" | "hide" | "glyphTools" | "visualOrder" | "volumeMuted", readonly Glyph[]>>;
2977
3004
  /** An icon of one of the chart's own controls. */
2978
3005
  type ControlIconId = keyof typeof CONTROL_ICONS;
2979
3006
  /** Every icon a host may draw: a control's glyph by its meaning, a chart style by its id, a drawing
@@ -3008,13 +3035,24 @@ interface ChartIconArtwork {
3008
3035
  * theme's roles, an illustration, answers none, and so does an id it does not draw. */
3009
3036
  declare function chartIconArtwork(id: ChartIconId): readonly ChartIconArtwork[];
3010
3037
 
3011
- /** A declared numeric input: `int`/`float` bound by min/max, `enum` an index into `options`. */
3038
+ /** A declared input, held as a number: `int` and `float` bound by `min` and `max` and stepped by
3039
+ * `step`, `enum` an index into `options`, `bool` 1 for on and 0 for off. A settings surface labels
3040
+ * it with `title`, else its key read as words; sets it under the heading `group` names, with the
3041
+ * inputs before and after it that name the same group; and lets it be edited while the input
3042
+ * `enabledWhen` names holds one of its `values`. */
3012
3043
  interface ManifestInput {
3013
- readonly kind: 'int' | 'float' | 'enum';
3044
+ readonly kind: 'int' | 'float' | 'enum' | 'bool';
3014
3045
  readonly default: number;
3015
3046
  readonly min?: number;
3016
3047
  readonly max?: number;
3048
+ readonly step?: number;
3017
3049
  readonly options?: readonly string[];
3050
+ readonly title?: string;
3051
+ readonly group?: string;
3052
+ readonly enabledWhen?: {
3053
+ readonly input: string;
3054
+ readonly values: readonly number[];
3055
+ };
3018
3056
  }
3019
3057
  /** A declared plot channel. `area` fills toward `base`; `marker` draws an event glyph on bars with
3020
3058
  * a finite value (`location` 'above'/'below' tracks the bar, 'absolute' anchors at the value).
@@ -3033,18 +3071,24 @@ interface ManifestPlot {
3033
3071
  readonly location?: 'above' | 'below' | 'absolute';
3034
3072
  readonly text?: string;
3035
3073
  readonly scale?: 'volume';
3074
+ /** The words a settings surface names the plot with, else its key read as words. */
3075
+ readonly title?: string;
3036
3076
  }
3037
3077
  /** A declared static horizontal level. */
3038
3078
  interface ManifestLevel {
3039
3079
  readonly price: number;
3040
3080
  readonly color?: string;
3041
3081
  readonly lineStyle?: 'solid' | 'dashed' | 'dotted';
3082
+ /** The words a settings surface names the level with, else its key read as words. */
3083
+ readonly title?: string;
3042
3084
  }
3043
3085
  /** A declared band fill between two edges. Each name in `between` is a plot key, or a level key
3044
3086
  * when no plot carries that name: an oscillator's background shades between its limit levels. */
3045
3087
  interface ManifestFill {
3046
3088
  readonly between: readonly [string, string];
3047
3089
  readonly color?: string;
3090
+ /** The words a settings surface names the fill with, else its key read as words. */
3091
+ readonly title?: string;
3048
3092
  }
3049
3093
  /** The declarative indicator manifest: placement + declared inputs/plots/levels/fills, no code.
3050
3094
  * Identity fields are optional — the walker renders from structure, not identity — so any
@@ -3169,6 +3213,8 @@ interface IndicatorOverrides {
3169
3213
  inputsInStatusLine?: boolean;
3170
3214
  hidden?: boolean;
3171
3215
  };
3216
+ /** The timeframes the instance draws on; absent = every timeframe. */
3217
+ visibility?: TimeframeVisibility;
3172
3218
  }
3173
3219
  /** The one render-or-not read for the hidden toggle — every consumer asks this, so they can never
3174
3220
  * disagree about what "hidden" means. */
@@ -3686,12 +3732,19 @@ interface ChartExtensionContext {
3686
3732
  * taken, or paint over the image what the chart's canvases do not carry. The returned function
3687
3733
  * withdraws the contribution, and detach withdraws it either way. */
3688
3734
  contributeCapture(capture: ChartExtensionCapture): () => void;
3735
+ /** Say that the state the handle's `serialize()` answers has changed, so the open layout holds
3736
+ * changes it has not written: it reads as unsaved, and an autosave writes it. The call joins the
3737
+ * one debounced save-needed signal every change on the chart raises, so a burst of calls writes
3738
+ * once. A call made while the chart restores saved content, while the extension attaches or
3739
+ * while the chart reads its state does nothing, and so does a call after detach. */
3740
+ stateChanged(): void;
3689
3741
  }
3690
3742
  /** What an extension gives back at attach. `detach` is required; the two state methods are the
3691
3743
  * opt-in for anything the viewer would expect a saved chart to bring back. */
3692
3744
  interface ChartExtensionHandle {
3693
3745
  /** Viewer state to store in the chart's save blob, under this extension's id. Anything
3694
- * JSON-serializable. Return undefined to store nothing. */
3746
+ * JSON-serializable. Return undefined to store nothing. When what it answers changes, the
3747
+ * context's `stateChanged()` says so, and the layout writes it. */
3695
3748
  serialize?(): unknown;
3696
3749
  /** Apply state a previous `serialize()` produced. Never called with another extension's state. */
3697
3750
  restore?(state: unknown): void;
@@ -3777,7 +3830,8 @@ interface IndicatorPickerBuiltInState {
3777
3830
  interface IndicatorPickerSource {
3778
3831
  collections: readonly IndicatorPickerCollection[];
3779
3832
  /** The kinds the source's items come in beside indicators. With at least one, the picker shows a
3780
- * row of filters (All, Indicators, then these in order) under its search field. */
3833
+ * row of filters (All, Indicators, then these in order) at the head of its list's column, over
3834
+ * the column headings. */
3781
3835
  kinds?: readonly IndicatorPickerKind[];
3782
3836
  /** The host supplies localized text. A new query or collection aborts the previous read.
3783
3837
  * `builtInIds` are the built-ins the picker lists: every one, or those `builtInIndicators`
@@ -5159,6 +5213,14 @@ interface ChartHandle {
5159
5213
  visibleRange(): TimeRange | null;
5160
5214
  /** The range preset currently framing this chart, or null after other navigation. */
5161
5215
  rangePreset(): string | null;
5216
+ /** Frame a window of the feed's unix seconds. A window inside the bars the chart holds frames at
5217
+ * once. A window starting before the oldest bar held first pages older history in through the
5218
+ * datafeed, the same older-page ask a scroll back makes, page after page until the bars reach
5219
+ * `from`, the feed states the end of its history or the chart holds 20,000 bars, and then frames
5220
+ * the window over the bars held; the view stays where it stands while the pages are away. A page
5221
+ * that fails ends the paging and frames the window over the bars held. A symbol or timeframe
5222
+ * switch, any other navigation or the chart's disposal while a page is away leaves the window
5223
+ * unframed. */
5162
5224
  setVisibleRange(range: TimeRange): void;
5163
5225
  logicalRange(): LogicalRange | null;
5164
5226
  setLogicalRange(range: LogicalRange): void;
@@ -6257,7 +6319,7 @@ declare function openInputsEditor(container: HTMLElement, rect: {
6257
6319
  h: number;
6258
6320
  }, inputs: Readonly<Record<string, ManifestInput>>, current: Readonly<Record<string, number>>, onApply: (patch: Record<string, number>) => void,
6259
6321
  /** The chart's language: the two actions re-label if it changes while the editor is open. A
6260
- * field's name and an enum's options are the manifest's own vocabulary and are not translated. */
6322
+ * field's name and an enum's options are the manifest's own words and are not translated. */
6261
6323
  strings?: ChartI18n): void;
6262
6324
 
6263
6325
  /** The chart settings a chart opens with under a resolved theme, before any host or viewer names a