chird / meteoJS

Javascript Library for meteorological and atmospheric tools
Apache License 2.0
25 stars 6 forks source link

drawing a moved dryDiabat line stopped at the half of the diagram #64

Closed HadjerSahariYassir closed 2 years ago

HadjerSahariYassir commented 2 years ago

Hi Chird,

hope you're fine, it's me again lol , trying to move 5 sorts of lines ( isobar, isotherm, mixingRatio, dryDiabats, pseudoaDiabats).

i did isobar, isotherm, mixingRation, dryDiabats. i made them moved following your suggestion of last time and also the code of plot of each sort of line. i did some changes : ( i create the line at a specific position then when clicked the line, i followed the mouse mouvement then when i clicked again the line stoped moving).

for drydiabats line i faced a problem:

as shown in the picture while i'm moving the mouse in the xAxis ( from -40° to 40° ) after that the line (with color blue), will not be drawn (the moved dryDiabat line will stopped in the middle of the diagram). i know that the cause that there are places in the diagram where temperature is hidden.

So please, do you have any suggestion of how can i move the line in the rest of the graph. temperature over 40°.

dryDiabat

chird commented 2 years ago

Hi hadjersh97,

It is a SVG thing. I think your issue happens when the mouse pointer leave the SVG graphic (e.g. on the right border with the red line). From this moment on, the SVG graphic will no longer receive a mousemove event. That means you have to solve this in some way. The API cannot do anything about this.

HadjerSahariYassir commented 2 years ago

hello Chird, yes , you know chird, i have just pass the potentiel temperature instead of temperature and then the issue was fixed. Thanks