@gearbox-protocol/ui-kit 3.13.0-next.1 → 3.13.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.js +131 -122
- package/dist/esm/components/graph/graph.js +339 -293
- package/dist/types/components/graph/graph.d.ts +8 -1
- package/dist/types/components/trading-view/trading-view.d.ts +7 -0
- package/package.json +1 -1
|
@@ -108,10 +108,17 @@ export interface GraphProps {
|
|
|
108
108
|
* between series with different data coverage.
|
|
109
109
|
*/
|
|
110
110
|
visibleTimeFrom?: number;
|
|
111
|
+
/**
|
|
112
|
+
* When true, all user-initiated zoom and pan interactions are disabled.
|
|
113
|
+
* The visible time range can only be changed programmatically — e.g. via
|
|
114
|
+
* range buttons. Specifically disables: mouse-wheel zoom, pinch zoom,
|
|
115
|
+
* axis drag-to-scale, axis double-click reset, and scroll/drag panning.
|
|
116
|
+
*/
|
|
117
|
+
disableZoom?: boolean;
|
|
111
118
|
}
|
|
112
119
|
/**
|
|
113
120
|
* Graph component that renders a chart using lightweight-charts library
|
|
114
121
|
* with support for area series, custom tooltips, and vertical line annotations
|
|
115
122
|
* Supports single or multiple series with different colors and legends
|
|
116
123
|
*/
|
|
117
|
-
export declare function Graph({ series, className, showLegend, onUnselectSeries, xMeasureUnit, yMeasureUnit, optionsOverrides, verticalLineOptions, currentValueDecimals, useSharedPriceScale, showCurrentValue, graphTitle, yScaleMin, yScaleMinMultiple, visibleTimeFrom, }: GraphProps): React.ReactElement;
|
|
124
|
+
export declare function Graph({ series, className, showLegend, onUnselectSeries, xMeasureUnit, yMeasureUnit, optionsOverrides, verticalLineOptions, currentValueDecimals, useSharedPriceScale, showCurrentValue, graphTitle, yScaleMin, yScaleMinMultiple, visibleTimeFrom, disableZoom, }: GraphProps): React.ReactElement;
|
|
@@ -94,6 +94,13 @@ export interface TradingViewProps<T extends string = string> extends Omit<GraphV
|
|
|
94
94
|
* so colors stay stable across reloads (same label keeps the same color).
|
|
95
95
|
*/
|
|
96
96
|
seriesColorPersistenceKey?: string;
|
|
97
|
+
/**
|
|
98
|
+
* When true, all user-initiated zoom and pan interactions are disabled.
|
|
99
|
+
* The time range can only be changed via the range buttons.
|
|
100
|
+
* Disables: mouse-wheel zoom, pinch zoom, axis drag, axis double-click reset,
|
|
101
|
+
* and scroll/drag panning.
|
|
102
|
+
*/
|
|
103
|
+
disableZoom?: boolean;
|
|
97
104
|
}
|
|
98
105
|
/**
|
|
99
106
|
* TradingView — comprehensive charting component with graph selection and time range controls.
|