@christtrade/depth 0.17.0 → 0.19.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.
- package/depth.cjs +67 -68
- package/depth.css +1 -1
- package/depth.mjs +67 -68
- package/depth.nopreflight.css +1 -1
- package/package.json +1 -1
- package/types/components/ui/collapse.d.ts +10 -0
- package/types/core/CellEngines.d.ts +15 -0
- package/types/core/ChartModel.d.ts +3 -2
- package/types/core/DepthChart.d.ts +49 -5
- package/types/core/PluginSchedule.d.ts +11 -0
- package/types/core/RenderEngine.d.ts +42 -5
- package/types/core/ThemeRegistry.d.ts +18 -0
- package/types/core/TypedEventBus.d.ts +17 -1
- package/types/core/builtin-themes.d.ts +7 -0
- package/types/core/index.d.ts +5 -4
- package/types/core/plugin-startup.d.ts +4 -2
- package/types/core/theme-style.d.ts +9 -0
- package/types/hooks/useChartData.d.ts +0 -1
- package/types/hooks/useChartInteraction.d.ts +1 -0
- package/types/hooks/useChartSubscriptions.d.ts +1 -0
- package/types/hooks/useRenderEngine.d.ts +2 -50
- package/types/hooks/useTradeLines.d.ts +3 -1
- package/types/interfaces/ICoordinateTransformer.d.ts +0 -1
- package/types/interfaces/plugins/IChartPlugin.d.ts +19 -3
- package/types/lib/renderers/renderer.d.ts +1 -11
- package/types/lib/types/chart-settings.d.ts +17 -0
- package/types/lib/types/index.d.ts +2 -1
|
@@ -98,8 +98,9 @@ export type TradeLine = {
|
|
|
98
98
|
preview?: boolean;
|
|
99
99
|
movable?: boolean;
|
|
100
100
|
locked?: boolean;
|
|
101
|
-
/** Called
|
|
101
|
+
/** Called on every move while dragging, with the price under the pointer. */
|
|
102
102
|
onMove?: (newPrice: number) => void;
|
|
103
|
+
/** Called when the drag ends, with the final price. Skipped if it ended where it started. */
|
|
103
104
|
afterMove?: (newPrice: number) => void;
|
|
104
105
|
/** Called when user clicks the x button */
|
|
105
106
|
onClose?: () => void;
|