Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESM+webpackification of the engine code #262

Merged
merged 189 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
011d952
engine/js/transpiled.js: early tidying
pkgw Jul 11, 2023
b77cece
engine/.gitignore: some tidying
pkgw Jul 11, 2023
b838f49
engine: make webpack(-cli) available here
pkgw Jul 13, 2023
f79b54b
engine: begin migration to Webpack-based build
pkgw Jul 13, 2023
766a9b5
engine/js/ss.js: export some functions that we'll need
pkgw Jul 13, 2023
e1d8609
engine/js/typesystem.js: add some structured helpers for the type system
pkgw Jul 13, 2023
fe41419
engine/js/transpiled.js: convert to module form
pkgw Jul 13, 2023
ea0ec50
engine/js/transpiled.js: proper imports of dependent packages
pkgw Jul 13, 2023
bae4fc2
engine/js/index.js: add new toplevel module
pkgw Jul 13, 2023
f0e5330
engine: activate Webpack-based build!
pkgw Jul 13, 2023
b90462f
engine: remove transpiler-only Imports type
pkgw Jul 13, 2023
a4c795c
engine/js/astrocalc/date.js: reconstruct from AstroCalc/AADate.cs
pkgw Jul 13, 2023
0814056
engine/js/astrocalc/elliptical.js: reconstruct from AstroCalc/AAEllip…
pkgw Jul 13, 2023
2bd90a2
engine: set up eslint for the adapted JS source
pkgw Jul 27, 2023
6e01ce4
engine: satisy eslint in the main files
pkgw Jul 27, 2023
fa34ef7
engine: reconstruct AstroCalc/AAEarth, AstroCalc/AACoordinateTransfor…
pkgw Jul 27, 2023
f58039f
engine: AstroCalc/AA{FK5,Nutation,Sun}
pkgw Jul 27, 2023
7f4ec3e
engine: extract astrocalc/mercury.js
pkgw Jul 27, 2023
78be148
engine: extract astrocalc/venus.js
pkgw Jul 27, 2023
f24e1a8
engine: extract astrocalc/mars.js
pkgw Jul 27, 2023
39c7327
engine: extract astrocalc/jupiter.js
pkgw Jul 27, 2023
2071626
engine: extract astrocalc/saturn.js
pkgw Jul 27, 2023
b70ee2d
engine: extract astrocalc/uranus.js
pkgw Jul 27, 2023
a5eadc0
engine: extract astrocalc/neptune.js
pkgw Jul 27, 2023
655d13f
engine: extract astrocalc/pluto.js
pkgw Jul 27, 2023
c0046ad
engine: extract astrocalc/aberration.js
pkgw Jul 27, 2023
e781345
engine: extract astrocalc/kepler.js
pkgw Jul 27, 2023
1d65c7c
engine: extract {baseutil,color,double3d,util}.js; get astrocalc/elli…
pkgw Jul 27, 2023
a95afc7
engine: correct various import mistakes not caught by ESLint
pkgw Jul 27, 2023
954409e
engine/js/transpiled.js: fix a couple of forgotten enum registrations
pkgw Jul 27, 2023
ab9536f
engine/js/double3d.js: fix GL textures from webclient testing
pkgw Jul 27, 2023
84ff3dd
engine/esm: rename from "js"; this is clearer/better
pkgw Jul 27, 2023
ac2042e
engine: extract esm/astrocalc/angular_separation.js
pkgw Jul 27, 2023
1de897a
engine: extract esm/astrocalc/dynamical_time.js
pkgw Jul 27, 2023
93a4998
engine: extract esm/astrocalc/ecliptical_elements.js
pkgw Jul 27, 2023
20fc98e
engine: extract esm/astrocalc/elements_planetary_orbit.js
pkgw Jul 27, 2023
6733681
engine: extract esm/astrocalc/equation_of_time.js
pkgw Jul 27, 2023
af92ff9
engine: extract esm/astrocalc/galilean_moons.js
pkgw Jul 27, 2023
665ec99
engine: extract esm/astrocalc/globe.js
pkgw Jul 27, 2023
90feb89
engine: extract esm/astrocalc/illuminated_fraction.js
pkgw Jul 27, 2023
eee0282
engine: extract esm/astrocalc/interpolate.js
pkgw Jul 27, 2023
55f83b1
engine: extract esm/astrocalc/moon.js
pkgw Jul 27, 2023
2bf7ca2
engine: extract esm/astrocalc/moon_illuminated_fraction.js
pkgw Jul 27, 2023
fdea20b
engine: extract esm/astrocalc/moon_nodes.js
pkgw Jul 27, 2023
a5a8c5f
engine: extract esm/astrocalc/moon_perigee_apogee.js
pkgw Jul 27, 2023
f2e8802
engine: extract esm/astrocalc/moon_phases.js
pkgw Jul 27, 2023
dcf7d6f
engine: extract esm/astrocalc/{parallax,sidereal}.js
pkgw Jul 27, 2023
7df2d30
engine: extract esm/astrocalc/physical_jupiter.js
pkgw Jul 27, 2023
d97c7d2
engine: extract esm/astrocalc/physical_mars.js
pkgw Jul 27, 2023
ff2143d
engine: extract esm/astrocalc/physical_sun.js
pkgw Jul 27, 2023
c88a13d
engine: extract esm/astrocalc/precession.js
pkgw Jul 27, 2023
e9d03b7
engine: extract esm/astrocalc/rise_transit_set.js
pkgw Jul 27, 2023
6381831
engine: extract esm/astrocalc/saturn_rings.js
pkgw Jul 27, 2023
c95d0e3
engine: extract esm/astrocalc/stellar_magnitudes.js
pkgw Jul 27, 2023
731f85e
engine: extract esm/astrocalc.js
pkgw Jul 27, 2023
e4f6d22
engine: extract esm/blend_state.js
pkgw Jul 28, 2023
905e419
engine/esm/astrocalc.js: collect global state here
pkgw Jul 28, 2023
aa6919d
engine: change Tile.prepDevice to be a value in esm/render_globals.js
pkgw Jul 28, 2023
13092b0
engine: extract esm/graphics/gl_buffers.js
pkgw Jul 28, 2023
5ec86bc
engine: restore WEBGL.BLEND constant
pkgw Jul 28, 2023
c5a6964
engine: restore WEBGL.CLAMP_TO_EDGE constant
pkgw Jul 28, 2023
929f123
engine: restore WEBGL.COMPILE_STATUS constant
pkgw Jul 28, 2023
a3c0443
engine: restore WEBGL.{COLOR_BUFFER_BIT,DEPTH_BUFFER_BIT} constants
pkgw Jul 28, 2023
7a54e99
engine: restore WEBGL.DEPTH_TEST constant
pkgw Jul 28, 2023
9ab51ef
engine: restore WEBGL.DYNAMIC_DRAW constant
pkgw Jul 28, 2023
503a863
engine: restore WEBGL.FLOAT constant
pkgw Jul 28, 2023
6967588
engine: restore WEBGL.FRAGMENT_SHADER constant
pkgw Jul 28, 2023
a2f2c70
engine: restore WEBGL.LINEAR_MIPMAP_NEAREST constant
pkgw Jul 28, 2023
29e527c
engine: restore WEBGL.LINES constant
pkgw Jul 28, 2023
a059e25
engine: restore WEBGL.LINE_STRIP constant
pkgw Jul 28, 2023
8584b4b
engine: restore WEBGL.LINK_STATUS constant
pkgw Jul 28, 2023
54d2e79
engine: restore WEBGL.NEAREST constant
pkgw Jul 28, 2023
01af1ed
engine: restore WEBGL.{SRC_ALPHA,ONE,ONE_MINUS_SRC_ALPHA} constants
pkgw Jul 28, 2023
091a97f
engine: restore WEBGL.POINTS constant
pkgw Jul 28, 2023
709535c
engine: restore WEBGL.R32F constant
pkgw Jul 28, 2023
475ea7e
engine: restore WEBGL.RED constant
pkgw Jul 28, 2023
288721a
engine: restore WEBGL.RGB constant
pkgw Jul 28, 2023
cca2267
engine: restore WEBGL.RGB8 constant
pkgw Jul 28, 2023
ade80fa
engine: restore WEBGL.RGBA constant
pkgw Jul 28, 2023
dab7761
engine: restore WEBGL.TEXTURE0 constant
pkgw Jul 28, 2023
f6e7cf6
engine: restore WEBGL.TEXTURE1 constant
pkgw Jul 28, 2023
8ccf782
engine: restore WEBGL.TEXTURE_2D constant
pkgw Jul 28, 2023
e0f492f
engine: restore WEBGL.TEXTURE_MAG_FILTER constant
pkgw Jul 28, 2023
80a26e1
engine: restore WEBGL.TEXTURE_MIN_FILTER constant
pkgw Jul 28, 2023
a68c2f9
engine: restore WEBGL.TEXTURE_WRAP_S constant
pkgw Jul 28, 2023
8964317
engine: restore WEBGL.TEXTURE_WRAP_T constant
pkgw Jul 28, 2023
bc12a41
engine: restore WEBGL.TRIANGLE_FAN constant
pkgw Jul 28, 2023
85641ea
engine: restore WEBGL.{TRIANGLES,TRIANGLE_STRIP} constants
pkgw Jul 28, 2023
7288b25
engine: restore WEBGL.UNSIGNED_BYTE constant
pkgw Jul 28, 2023
01095a5
engine: restore WEBGL.UNSIGNED_INT constant
pkgw Jul 28, 2023
6327163
engine: restore WEBGL.UNSIGNED_SHORT constant
pkgw Jul 28, 2023
d3c8e80
engine: restore WEBGL.VERTEX_SHADER constant
pkgw Jul 28, 2023
558dbb7
engine/esm/transpiled.js: locate all type registrations with their types
pkgw Jul 28, 2023
55d3aad
engine/esm/transpiled.js: locate all enum registrations with their enums
pkgw Jul 28, 2023
5c7dbbe
engine: group static initializers with their classes, when possible
pkgw Jul 28, 2023
139303b
engine: delete two unused constants
pkgw Jul 28, 2023
73f9d93
engine/esm/transpiled.js: automated whitespace adjustment (1)
pkgw Jul 28, 2023
458a5e4
engine/esm/transpiled.js: automated whitespace adjustment (2)
pkgw Jul 28, 2023
8831581
engine/esm/transpiled.js: automated whitespace adjustment (3)
pkgw Jul 28, 2023
aa33209
engine/esm/transpiled.js: automated whitespace adjustment (4)
pkgw Jul 28, 2023
5c87b59
engine/esm/transpiled.js: automated whitespace adjustment (5)
pkgw Jul 28, 2023
d78ea35
engine/esm/transpiled.js: automated whitespace adjustment (6)
pkgw Jul 28, 2023
1459be9
engine/esm/transpiled.js: export formerly internal symbols
pkgw Jul 28, 2023
6c7c5ef
engine/esm/transpiled.js: automated whitespace adjustment (7)
pkgw Jul 28, 2023
6cdf46c
engine/esm/transpiled.js: automated whitespace adjustment (8)
pkgw Jul 28, 2023
48df0df
engine/esm/transpiled.js: automated whitespace adjustment (9)
pkgw Jul 28, 2023
51a2c75
engine: extract esm/url_helpers.js and esm/graphics/texture.js
pkgw Jul 28, 2023
17a7505
engine: extract esm/graphics/shaders.js
pkgw Jul 29, 2023
25191b0
engine: extract esm/graphics/primitives3d.js
pkgw Jul 29, 2023
9b2dc95
engine: extract esm/graphics/tessellator.js
pkgw Jul 29, 2023
34e1a6d
engine: extract esm/graphics/sprite2d.js
pkgw Jul 29, 2023
8d55e8b
engine: extract esm/utilities/binary_reader.js
pkgw Jul 29, 2023
72b4dea
engine: extract esm/utilities/bitmap.js
pkgw Jul 29, 2023
1c53249
engine: extract esm/utilities/context_menu_strip.js
pkgw Jul 29, 2023
d250c5e
engine: extract esm/utilities/simple_input.js
pkgw Jul 29, 2023
c8d6f80
engine: extract esm/utilities/xml_text_writer.js
pkgw Jul 29, 2023
cebcbeb
engine: extract esm/coordinates.js
pkgw Jul 29, 2023
31df3b8
engine: extract esm/fast_math.js
pkgw Jul 29, 2023
ec3395d
engine: extract {fxyf,healpix_tables,healpix_utils,hploc}.js
pkgw Jul 31, 2023
ff8e320
engine: extract interfaces.js
pkgw Jul 31, 2023
ee65c91
engine: extract annotation.js
pkgw Jul 31, 2023
75e0616
engine: extract camera_parameters.js
pkgw Jul 31, 2023
cf6d712
engine: extract web_file.js
pkgw Jul 31, 2023
f8afc32
engine: lots of work leading up to the extraction of esm/tile.js
pkgw Jul 31, 2023
ee3104e
engine: extract esm/{equirectangular_tile,render_triangle}.js
pkgw Aug 1, 2023
9864479
engine: extract esm/{healpix_tile,ui_tools}.js
pkgw Aug 1, 2023
1695718
engine: extract esm/mercator_tile.js
pkgw Aug 1, 2023
818ca61
engine: extract esm/{plot_tile,star}.js
pkgw Aug 1, 2023
ee29d6b
engine: extract esm/{sky_image_tile,tangent_tile}.js
pkgw Aug 1, 2023
7dd1805
engine: extract esm/{toast_tile,triangle}.js
pkgw Aug 1, 2023
a98a725
engine: extract esm/fits_properties.js
pkgw Aug 1, 2023
5b287d7
engine: extract esm/imageset.js
pkgw Aug 1, 2023
df0518a
engine: extract esm/constellation_filter.js
pkgw Aug 1, 2023
e686c7e
engine: extract esm/settings.js
pkgw Aug 1, 2023
312459b
engine: extract esm/{constellations,sky_text,tours/text_object}.js
pkgw Aug 2, 2023
a3143f4
engine: extract esm/space_time_controller.js
pkgw Aug 2, 2023
9e2ae25
engine/esm/transpiled.js: separate out 3d planet code
pkgw Aug 2, 2023
f0fd838
engine: extract esm/planets.js (but defer the 3D planet-drawing code …
pkgw Aug 2, 2023
b2339fe
engine: extract esm/place.js
pkgw Aug 2, 2023
e06f5b9
engine: extract esm/folder_up.js
pkgw Aug 3, 2023
de25cf3
engine: extract esm/grids.js
pkgw Aug 3, 2023
52e65fe
engine: extract esm/kepler_vertex.js
pkgw Aug 3, 2023
f43cb67
engine: extract esm/minor_planets.js
pkgw Aug 3, 2023
fb38801
engine: extract esm/pointing.js
pkgw Aug 3, 2023
0887616
engine: extract esm/tile_cache.js
pkgw Aug 3, 2023
f2ce84a
engine: extract esm/tour.js
pkgw Aug 3, 2023
2b9aa91
engine: remove some more C# files that just declared JS APIs
pkgw Aug 3, 2023
6ad0bec
engine: extract esm/video_output_type.js
pkgw Aug 3, 2023
e8776fd
engine: extract esm/viz_layer.js
pkgw Aug 3, 2023
b7f28fc
engine: extract esm/layers/layer.js
pkgw Aug 3, 2023
db33ce0
engine: extract esm/layers/great_circle_route_layer.js
pkgw Aug 4, 2023
b6fa05d
engine: extract esm/layers/grid_layer.js
pkgw Aug 4, 2023
33ac91f
engine: extract esm/{utilities/histogram,layers/imageset_layer}.js
pkgw Aug 4, 2023
25a62f5
engine: extract esm/layers/{layer_ui,object3d}.js
pkgw Aug 5, 2023
5161940
engine: extract esm/layers/orbit.js
pkgw Aug 5, 2023
0b0b21c
engine: extract esm/layers/{reference_frame,orbit_layer}.js
pkgw Aug 5, 2023
ecd8e87
engine: extract esm/layers/table.js
pkgw Aug 5, 2023
91ed139
engine: extract esm/layers/vo_table.js
pkgw Aug 5, 2023
ceb3943
engine: finally activate a low-level global WWTControl singleton in t…
pkgw Aug 5, 2023
f15171e
engine: similarly, activate a low-level global ScriptInterface singleton
pkgw Aug 5, 2023
638a9c5
engine: extract esm/tours/file_cabinet.js
pkgw Aug 5, 2023
40c5cfc
engine: extract esm/tours/overlay.js
pkgw Aug 5, 2023
1266f13
engine: extract esm/tours/selection.js
pkgw Aug 5, 2023
88b77ac
engine: extract esm/tours/tour_stop.js
pkgw Aug 5, 2023
768910c
engine: extract esm/utilities/color_picker.js
pkgw Aug 5, 2023
ffce3ed
engine: start work on esm/utilities/dialog.js
pkgw Aug 6, 2023
ac61b0e
engine: extract esm/tours/undo.js
pkgw Aug 6, 2023
172311a
engine: extract esm/tours/tour_editor.js
pkgw Aug 6, 2023
00e10ce
engine: extract esm/{view_mover,tours/tour_player}.js
pkgw Aug 6, 2023
7dc4803
engine: extract esm/layers/iss_layer.js
pkgw Aug 6, 2023
1dc478b
engine: extract esm/layers/time_series_layer.js
pkgw Aug 6, 2023
de7147c
engine: extract esm/layers/spreadsheet_layer.js
pkgw Aug 6, 2023
1efe66e
engine: extract esm/layers/vo_table_layer.js
pkgw Aug 6, 2023
3f1ae2b
engine: extract esm/layers/layer_manager.js
pkgw Aug 6, 2023
a819665
engine: extract esm/tours/tour_document.js
pkgw Aug 6, 2023
bc57243
engine: extract esm/tours/tour_edit.js
pkgw Aug 6, 2023
32c5c5f
engine: extract esm/folder.js
pkgw Aug 8, 2023
e22f408
engine: extract esm/folder_browser.js
pkgw Aug 8, 2023
8e47c9b
engine: extract esm/hips_properties.js
pkgw Aug 8, 2023
e7e5180
engine: move a bunch of miscellaneous types to good homes
pkgw Aug 8, 2023
0731d6c
engine: extract esm/planets_3d.js
pkgw Aug 8, 2023
a7b4c94
engine: extract esm/render_context.js
pkgw Aug 8, 2023
a437ea6
engine: extract esm/script_interface.js
pkgw Aug 8, 2023
7825aa9
engine: extract esm/wwt_control.js
pkgw Aug 8, 2023
025459e
engine: extract esm/wtml.js
pkgw Aug 8, 2023
692e3c5
engine: finish extracting transpiled JS code into individual files
pkgw Aug 8, 2023
7a05c29
engine/esm/tours/tour_editor.js: fix a problem stemming from using th…
pkgw Aug 18, 2023
d35688c
engine/esm/tours/overlay.js: fix a human-sourced typo
pkgw Aug 18, 2023
1a56bf8
engine/esm/graphics/shaders.js: avoid blank first lines in shader text
pkgw Aug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
engine: extract esm/script_interface.js
  • Loading branch information
pkgw committed Sep 14, 2023
commit a437ea69cd6a945f577b3cd691f0fffd227b6f19
Loading