openalgo-charts 1.0.26 → 1.0.27
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/index.d.ts
CHANGED
|
@@ -1053,6 +1053,16 @@ declare class PriceLine implements IPrimitive {
|
|
|
1053
1053
|
setPrice(price: number): void;
|
|
1054
1054
|
/** Update the info segment text (e.g. live position P&L); repaints. */
|
|
1055
1055
|
setLeftLabel(text: string): void;
|
|
1056
|
+
/**
|
|
1057
|
+
* Restyle in place; repaints. `id` is the hit-test handle the chart routes
|
|
1058
|
+
* clicks and drags through, so it is not patchable — swapping it under a
|
|
1059
|
+
* live drag would strand the gesture.
|
|
1060
|
+
*
|
|
1061
|
+
* A last-price line is the case this exists for: it has to follow the tick
|
|
1062
|
+
* direction, and only `setPrice` was updatable, so the colour was stuck at
|
|
1063
|
+
* whatever it was constructed with.
|
|
1064
|
+
*/
|
|
1065
|
+
setOptions(patch: Partial<Omit<PriceLineOptions, 'id'>>): void;
|
|
1056
1066
|
/**
|
|
1057
1067
|
* Show a dimmed reference line at the pre-drag price while the user drags
|
|
1058
1068
|
* (pass the original price on drag start, null on drag end to clear).
|