Cédric Foellmi
c77f2aeda8
Making a dedicated dependency-free Constants file to avoid Utils import Aladin.js!
...
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:16 +02:00
Cédric Foellmi
57c1b8423d
Linting
...
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:16 +02:00
Cédric Foellmi
ebf2d06f31
Using the Utils methods also in the examples
...
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:16 +02:00
Cédric Foellmi
5d0ec40612
Fixing imports
...
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:16 +02:00
Cédric Foellmi
82b2eb0423
Using the new Utils method
...
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:16 +02:00
Cédric Foellmi
2dc6f17c7d
Renaming Utils.js into Utils.ts and correcting related imports.
...
Note that the content of Utils.ts has also been changed. More pecisely:
- `relMouseCoords` has been set as a function of the Utils object, to avoid attaching it to canvas prototype. This was very custom way of doing, and makes testing very complicated to run, while providing no real value.
- Removed the jQuery dependency and made `urlParam` a function of the Utils object.
- Added some types when possible / easy. But TS already reveal the misuse of some function sur as `parseInt` and `parseFloat` (which act on strings, not numbers)
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:11:15 +02:00
Cédric Foellmi
402e270015
Introducing typescript & vitest
...
In order to push upward the code quailty of the Javascript code, I propose to introduce Typescript and Vitest for writing unit tests.
This first commit simply introduce the right dependencies and configuration.
Note the presence of “happy-dom” dev dep for manipulating the window object (which is involved in the first test written on Utils).
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev >
2023-07-18 12:07:21 +02:00
Matthieu Baumann
7cfbb83883
Add possibility to download the PNG export from javascript API
2023-07-11 10:53:07 +02:00
MARCHAND MANON
ba8acf4a99
fix color of context menu
2023-07-04 18:25:12 +02:00
MARCHAND MANON
d570301b1d
add the target button in svg format
2023-07-04 18:25:12 +02:00
Matthieu Baumann
41f381ab2b
add filter option for Catalog object #80
2023-06-06 10:26:37 +02:00
Matthieu Baumann
dbf8c8dbeb
remove terser from dev dep
2023-05-26 18:51:07 +02:00
Matthieu Baumann
5ef2991310
Conditional export for CJS (require)
...
Requested in #93
Co-authored-by: diego-ge
2023-05-26 18:47:57 +02:00
Matthieu Baumann
aa9dfe632e
change the deploy
2023-05-26 18:43:40 +02:00
Matthieu Baumann
78ff815e9b
npm pack
2023-05-26 18:35:21 +02:00
Matthieu Baumann
ead34d5944
add formats info
2023-05-26 18:16:02 +02:00
Matthieu Baumann
d363882308
update workflow
2023-05-26 18:16:02 +02:00
Matthieu Baumann
a80bff6289
use the umd version for index.html
2023-05-26 18:16:02 +02:00
Matthieu Baumann
05ddeb8f7d
include only js files into the npm package
2023-05-26 18:16:02 +02:00
bmatthieu3
6cce07cdfd
update ci [ci skip]
2023-05-26 18:16:02 +02:00
bmatthieu3
eedb5b2bdf
npm install and source rustup
2023-05-26 18:16:02 +02:00
bmatthieu3
4cf94eaf1a
add some ci (TO TEST)
2023-05-26 18:16:02 +02:00
bmatthieu3
fbb4d760a4
remove webpack config file
2023-05-26 18:16:02 +02:00
bmatthieu3
30b87b2464
update readme
2023-05-26 18:16:02 +02:00
bmatthieu3
54bb0be16e
update readme with new npm usage instructions
2023-05-26 18:16:02 +02:00
bmatthieu3
4808f84b37
fix: import A when it is necessary
2023-05-26 18:16:02 +02:00
bmatthieu3
fa52c39d7c
update readme
2023-05-26 18:16:02 +02:00
bmatthieu3
bcfe829b03
use vite producing es and umd aladin lite module types. The umd is consistent with what is being used since a long time (including manually the aladin lite script)
2023-05-26 18:16:02 +02:00
bmatthieu3
6b0f4e4b60
Commit related to PR #90 . We first check the clockwise order of the footprints in the celestial space first.
2023-05-23 11:46:01 +02:00
bmatthieu3
eaebc78cb7
update to fitsrs 0.2.9
2023-05-22 16:41:54 +02:00
bmatthieu3
9b3f4e8803
unrelated to this PR: the rust code handles the -pi -> pi to 0 -> 360deg ra remapping
2023-05-22 15:56:01 +02:00
Henrik Norman
44ac866ce6
Removed block of context menus. Also added handling of touchcancel
...
Co-authored-by: bmatthieu3 <matthieu.baumann@astro.unistra.fr >
2023-05-22 15:56:01 +02:00
Matthieu Baumann
34aa6faa89
Merge pull request #90 from cds-astro/removeCrossingPolygonEdges
...
check for ccw order for every 3 vertices
2023-05-20 00:10:39 +02:00
bmatthieu3
42243edf65
check for ccw order for every 3 vertices
2023-05-19 23:59:39 +02:00
Matthieu Baumann
7833ffd9da
Merge pull request #48 from imbasimba/customizationOfShapes
...
Customize colors, sizes, and shape types
2023-05-17 18:01:26 +02:00
Henrik Norman
861c224c7a
Customize colors, sizes, and shape types
...
Co-authored-by: bmatthieu3 <matthieu.baumann@astro.unistra.fr >
2023-05-17 17:56:54 +02:00
Matthieu Baumann
f2daa68054
Merge pull request #44 from imbasimba/moreEvents
...
Added events for mouse move & coordinate frame change
2023-05-17 15:14:27 +02:00
bmatthieu3
44343e36bb
closest objects needs to be done at every mousemove to change the pointer.
2023-05-17 15:07:54 +02:00
bmatthieu3
fde0b5bc68
right click move new event listener that replaces the change of cuts
2023-05-17 14:37:30 +02:00
bmatthieu3
57774e8aed
call positionChanged callback when inerting too
2023-05-17 14:12:52 +02:00
Matthieu BAUMANN
f96a3667bc
Create an objectHoveredStop with the object that we do not hover event instead of calling objectHovered with null
2023-05-17 14:12:50 +02:00
Henrik Norman
4ae7edb6e9
Added events for mouse move & coordinate frame change
...
Co-authored-by: bmatthieu3 <matthieu.baumann@astro.unistra.fr >
2023-05-17 14:11:19 +02:00
bmatthieu3
923efe3133
wait for the properties to be fetched before determining if sesame or the planetary name solver must be called
2023-05-17 13:39:25 +02:00
bmatthieu3
e7a098c257
do not compute closest object when the objectHovered or footprintHovered is not defined
2023-05-17 13:34:12 +02:00
Matthieu Baumann
2678750643
Merge pull request #42 from imbasimba/noHoverOnHiddenFootprints
...
Hidden footprints can no longer be considered as closest
2023-05-16 22:41:04 +02:00
Henrik Norman
4ad1963ee1
Hidden footprints can no longer be considered as closest
...
Co-authored-by: bmatthieu3 <matthieu.baumann@astro.unistra.fr >
2023-05-16 22:37:53 +02:00
Matthieu Baumann
12aa7fe117
Merge pull request #87 from cds-astro/resolveHoverFootprints
...
Resolve hover footprints
2023-05-16 22:18:33 +02:00
bmatthieu3
910678aa84
select footprints
2023-05-16 21:58:26 +02:00
bmatthieu3
0441726f1f
hover footprints
2023-05-16 16:46:23 +02:00
bmatthieu3
d192f0cedc
fix hovering footprint
2023-05-16 15:54:29 +02:00