@pipsend/charts 0.0.8 → 0.0.10
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/README.md +3 -1
- package/dist/pipsend-charts.development.mjs +116 -110
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +116 -110
- package/dist/pipsend-charts.standalone.development.mjs +116 -110
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +17 -1
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -19,11 +19,27 @@ export declare class DraggablePriceLine {
|
|
|
19
19
|
private _isDragging;
|
|
20
20
|
private _container;
|
|
21
21
|
private _unsubscribeHandlers;
|
|
22
|
+
private _isHovering;
|
|
23
|
+
private _originalColor;
|
|
22
24
|
constructor(chart: IChartApi, series: ISeriesApi<SeriesType>, options: DraggablePriceLineOptions);
|
|
23
25
|
private _createPriceLine;
|
|
24
26
|
private _setupDragHandlers;
|
|
25
27
|
private _getPriceFromY;
|
|
26
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Verifica si el mouse está EN la línea (no cerca, sino exactamente sobre ella)
|
|
30
|
+
* Usa la API de coordenadas del chart para precisión consistente
|
|
31
|
+
* @param e - Mouse event
|
|
32
|
+
* @param price - Precio calculado desde la posición Y
|
|
33
|
+
*/
|
|
34
|
+
private _isOnLine;
|
|
35
|
+
/**
|
|
36
|
+
* Verifica si el mouse está en el área del gráfico (no en el price axis)
|
|
37
|
+
*/
|
|
38
|
+
private _isInChartArea;
|
|
39
|
+
/**
|
|
40
|
+
* Activa/desactiva el estado de hover (línea negra)
|
|
41
|
+
*/
|
|
42
|
+
private _setHoverState;
|
|
27
43
|
private _updatePrice;
|
|
28
44
|
/**
|
|
29
45
|
* Update the price line options
|