@openglobus/og 0.28.7 → 1.0.0-rc2
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/LICENSE.md +218 -4
- package/README.md +31 -18
- package/lib/Deferred.d.ts +2 -2
- package/lib/Events.d.ts +1 -1
- package/lib/Globe.d.ts +8 -5
- package/lib/Object3d.d.ts +17 -14
- package/lib/Popup.d.ts +2 -2
- package/lib/assets/LabelWorker.worker-DYd7xn3M.js.map +1 -0
- package/lib/assets/PlainSegmentWorker.worker-JsKldq-e.js.map +1 -0
- package/lib/assets/TerrainWorker.worker-CqUJvMOv.js.map +1 -0
- package/lib/bv/index.d.ts +2 -2
- package/lib/camera/Camera.d.ts +280 -27
- package/lib/camera/Frustum.d.ts +100 -15
- package/lib/camera/PlanetCamera.d.ts +93 -8
- package/lib/camera/index.d.ts +2 -2
- package/lib/control/CameraFrameComposer.d.ts +2 -2
- package/lib/control/CameraFrameHandler.d.ts +1 -1
- package/lib/control/CompassButton.d.ts +2 -2
- package/lib/control/EarthCoordinates.d.ts +5 -2
- package/lib/control/FramebufferPreview.d.ts +3 -3
- package/lib/control/GeoImageDragControl.d.ts +1 -1
- package/lib/control/LayerAnimation.d.ts +2 -2
- package/lib/control/LayerSwitcher.d.ts +3 -0
- package/lib/control/Lighting.d.ts +4 -2
- package/lib/control/Navigation.d.ts +15 -11
- package/lib/control/OrthoSwitcher.d.ts +18 -0
- package/lib/control/SimpleTouchNavigation.d.ts +44 -0
- package/lib/control/Sun.d.ts +4 -2
- package/lib/control/TouchNavigation.d.ts +4 -8
- package/lib/control/atmosphere/Atmosphere.d.ts +2 -0
- package/lib/control/atmosphere/AtmosphereConfig.d.ts +2 -6
- package/lib/control/cameraDepthHandler/CameraDepthHandler.d.ts +17 -3
- package/lib/control/cameraDepthHandler/camera_depth.d.ts +2 -2
- package/lib/control/drawing/LineStringDrawingScene.d.ts +1 -0
- package/lib/control/drawing/PolygonDrawingScene.d.ts +14 -14
- package/lib/control/elevationProfile/ElevationProfile.d.ts +1 -1
- package/lib/control/elevationProfile/ElevationProfileLegend.d.ts +1 -1
- package/lib/control/elevationProfile/ElevationProfileScene.d.ts +9 -12
- package/lib/control/elevationProfile/ElevationProfileView.d.ts +16 -5
- package/lib/control/entityEditor/EntityEditor.d.ts +19 -0
- package/lib/control/{geoObjectEditor/GeoObjectEditorDialog.d.ts → entityEditor/EntityEditorDialog.d.ts} +9 -8
- package/lib/control/{geoObjectEditor/GeoObjectEditorScene.d.ts → entityEditor/EntityEditorScene.d.ts} +12 -12
- package/lib/control/{geoObjectEditor → entityEditor}/colors.d.ts +2 -2
- package/lib/control/entityTree/EntityTree.d.ts +46 -0
- package/lib/control/entityTree/EntityTreeView.d.ts +24 -0
- package/lib/control/heightRuler/HeightRulerScene.d.ts +3 -2
- package/lib/control/index.d.ts +5 -3
- package/lib/control/ruler/RulerScene.d.ts +8 -8
- package/lib/control/selection/SelectionScene.d.ts +6 -6
- package/lib/control/timeline/TimelineControl.d.ts +2 -2
- package/lib/control/timeline/TimelineModel.d.ts +1 -1
- package/lib/control/timeline/TimelineView.d.ts +52 -13
- package/lib/control/visibleExtent/segment.d.ts +7 -0
- package/lib/ellipsoid/index.d.ts +4 -4
- package/lib/entity/Entity.d.ts +114 -100
- package/lib/entity/EntityCollection.d.ts +95 -70
- package/lib/entity/{BaseBillboard.d.ts → billboard/BaseBillboard.d.ts} +16 -17
- package/lib/entity/{BaseBillboardHandler.d.ts → billboard/BaseBillboardHandler.d.ts} +24 -9
- package/lib/entity/{Billboard.d.ts → billboard/Billboard.d.ts} +11 -7
- package/lib/entity/{BillboardHandler.d.ts → billboard/BillboardHandler.d.ts} +1 -1
- package/lib/entity/{GeoObject.d.ts → geoObject/GeoObject.d.ts} +7 -6
- package/lib/entity/{GeoObjectHandler.d.ts → geoObject/GeoObjectHandler.d.ts} +29 -11
- package/lib/entity/{InstanceData.d.ts → geoObject/InstanceData.d.ts} +18 -13
- package/lib/entity/{Geometry.d.ts → geometry/Geometry.d.ts} +10 -10
- package/lib/entity/{GeometryHandler.d.ts → geometry/GeometryHandler.d.ts} +7 -7
- package/lib/entity/index.d.ts +8 -8
- package/lib/entity/{Label.d.ts → label/Label.d.ts} +12 -13
- package/lib/entity/{LabelHandler.d.ts → label/LabelHandler.d.ts} +31 -7
- package/lib/entity/{LabelWorker.d.ts → label/LabelWorker.d.ts} +3 -3
- package/lib/entity/{PointCloud.d.ts → pointCloud/PointCloud.d.ts} +18 -12
- package/lib/entity/{PointCloudHandler.d.ts → pointCloud/PointCloudHandler.d.ts} +4 -4
- package/lib/entity/polyline/Polyline.d.ts +242 -0
- package/lib/entity/polyline/PolylineBatchRenderer.d.ts +443 -0
- package/lib/entity/{PolylineHandler.d.ts → polyline/PolylineHandler.d.ts} +19 -7
- package/lib/entity/{Ray.d.ts → ray/Ray.d.ts} +27 -9
- package/lib/entity/{RayHandler.d.ts → ray/RayHandler.d.ts} +18 -8
- package/lib/entity/{Strip.d.ts → strip/Strip.d.ts} +21 -17
- package/lib/entity/{StripHandler.d.ts → strip/StripHandler.d.ts} +11 -6
- package/lib/index.d.ts +47 -42
- package/lib/layer/BaseGeoImage.d.ts +20 -17
- package/lib/layer/CanvasTiles.d.ts +14 -12
- package/lib/layer/GeoImage.d.ts +1 -1
- package/lib/layer/GeoTexture2d.d.ts +2 -2
- package/lib/layer/KML.d.ts +19 -18
- package/lib/layer/Layer.d.ts +72 -53
- package/lib/layer/Vector.d.ts +47 -30
- package/lib/layer/WMS.d.ts +1 -1
- package/lib/layer/XYZ.d.ts +11 -12
- package/lib/layer/index.d.ts +12 -12
- package/lib/math/Line2.d.ts +1 -1
- package/lib/math/Line3.d.ts +1 -1
- package/lib/math/Mat3.d.ts +3 -13
- package/lib/math/Mat4.d.ts +16 -10
- package/lib/math/Plane.d.ts +1 -1
- package/lib/math/Quat.d.ts +14 -12
- package/lib/math/Ray.d.ts +4 -3
- package/lib/math/Vec2.d.ts +25 -17
- package/lib/math/Vec3.d.ts +33 -31
- package/lib/math/Vec4.d.ts +1 -1
- package/lib/math/coder.d.ts +1 -1
- package/lib/math/index.d.ts +13 -14
- package/lib/mercator.d.ts +4 -4
- package/lib/og.css +1 -1
- package/lib/og.es.js +1 -1
- package/lib/og.es.js.map +1 -1
- package/lib/quadTree/EntityCollectionNode.d.ts +10 -10
- package/lib/quadTree/EntityCollectionsTreeStrategy.d.ts +5 -5
- package/lib/quadTree/QuadTreeStrategy.d.ts +3 -4
- package/lib/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +4 -4
- package/lib/quadTree/earth/EarthEntityCollectionsTreeStrategy.d.ts +4 -4
- package/lib/renderer/AtmosphereDeferredShading.d.ts +12 -0
- package/lib/renderer/IDeferredShadingPass.d.ts +8 -0
- package/lib/renderer/ITransparencyPass.d.ts +8 -0
- package/lib/renderer/PhongDeferredShading.d.ts +16 -0
- package/lib/renderer/Renderer.d.ts +166 -99
- package/lib/renderer/RendererEvents.d.ts +15 -5
- package/lib/renderer/WOITPass.d.ts +14 -0
- package/lib/res/fonts/Ephesis-Regular.json +1 -0
- package/lib/res/fonts/Ephesis-Regular.png +0 -0
- package/lib/res/fonts/Karla-Bold.json +1 -0
- package/lib/res/fonts/Karla-Bold.png +0 -0
- package/lib/res/fonts/Karla-Italic.json +1 -0
- package/lib/res/fonts/Karla-Italic.png +0 -0
- package/lib/res/fonts/Karla-Light.json +1 -0
- package/lib/res/fonts/Karla-Light.png +0 -0
- package/lib/res/fonts/Karla-Medium.json +1 -0
- package/lib/res/fonts/Karla-Medium.png +0 -0
- package/lib/res/fonts/Roboto-Regular.json +1 -37147
- package/lib/res/fonts/Roboto-Regular.png +0 -0
- package/lib/res/fonts/arial.json +1 -4321
- package/lib/res/fonts/arial.png +0 -0
- package/lib/res/night-4326.png +0 -0
- package/lib/res/night.png +0 -0
- package/lib/scene/AltitudeNearPlaneStrategy.d.ts +17 -0
- package/lib/scene/Axes.d.ts +4 -3
- package/lib/scene/Planet.d.ts +244 -69
- package/lib/scene/{RenderNode.d.ts → Scene.d.ts} +49 -46
- package/lib/scene/SkyBox.d.ts +5 -3
- package/lib/scene/index.d.ts +2 -2
- package/lib/segment/Segment.d.ts +29 -15
- package/lib/segment/SegmentLonLat.d.ts +0 -1
- package/lib/shadeModeConstants.d.ts +7 -0
- package/lib/shaders/applyDeferredDepth.d.ts +2 -0
- package/lib/shaders/atmos/atmos.d.ts +3 -3
- package/lib/shaders/billboard/billboard.d.ts +4 -3
- package/lib/shaders/deferredShading/deferredShading.d.ts +2 -0
- package/lib/shaders/deferredShading/deferredShadingAtmos.d.ts +3 -0
- package/lib/shaders/depth.d.ts +2 -2
- package/lib/shaders/geo_object/geo_object.d.ts +8 -4
- package/lib/shaders/label/label.d.ts +4 -4
- package/lib/shaders/pointCloud.d.ts +2 -2
- package/lib/shaders/polyline/polyline.d.ts +7 -3
- package/lib/shaders/ray/ray.d.ts +3 -2
- package/lib/shaders/screenFrame.d.ts +2 -2
- package/lib/shaders/segment/segment.d.ts +7 -0
- package/lib/shaders/skybox.d.ts +2 -2
- package/lib/shaders/strip/strip.d.ts +3 -0
- package/lib/shaders/tone_mapping/toneMapping.d.ts +2 -2
- package/lib/shaders/weightedOITResolve.d.ts +2 -0
- package/lib/terrain/BilTerrain.d.ts +1 -1
- package/lib/terrain/EmptyTerrain.d.ts +5 -6
- package/lib/terrain/GlobusTerrain.d.ts +18 -23
- package/lib/terrain/RgbTerrain.d.ts +8 -8
- package/lib/terrain/index.d.ts +5 -5
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/ui/Button.d.ts +7 -5
- package/lib/ui/ButtonGroup.d.ts +1 -1
- package/lib/ui/Checkbox.d.ts +2 -2
- package/lib/ui/Color.d.ts +2 -2
- package/lib/ui/Dialog.d.ts +30 -3
- package/lib/ui/Input.d.ts +7 -2
- package/lib/ui/Slider.d.ts +5 -2
- package/lib/ui/ToggleButton.d.ts +2 -2
- package/lib/ui/View.d.ts +1 -1
- package/lib/ui/icons.d.ts +1 -1
- package/lib/ui/index.d.ts +9 -9
- package/lib/utils/FontAtlas.d.ts +57 -8
- package/lib/utils/GeoImageCreator.d.ts +2 -2
- package/lib/utils/ImagesCacheManager.d.ts +3 -3
- package/lib/utils/Loader.d.ts +2 -2
- package/lib/utils/PlainSegmentWorker.d.ts +2 -2
- package/lib/utils/TerrainWorker.d.ts +2 -2
- package/lib/utils/TextureAtlas.d.ts +7 -2
- package/lib/utils/TextureResourceManager.d.ts +162 -0
- package/lib/utils/VectorTileCreator.d.ts +1 -1
- package/lib/utils/colorSpace.d.ts +9 -0
- package/lib/utils/gltf/gltfParser.d.ts +9 -2
- package/lib/utils/gltf/types.d.ts +20 -2
- package/lib/utils/shared.d.ts +11 -5
- package/lib/utils/textureResourceMeta.d.ts +9 -0
- package/lib/webgl/BaseFramebuffer.d.ts +7 -0
- package/lib/webgl/Framebuffer.d.ts +9 -6
- package/lib/webgl/Handler.d.ts +81 -99
- package/lib/webgl/ShaderProgram.d.ts +190 -0
- package/lib/webgl/index.d.ts +2 -2
- package/lib/webgl/variableHandlers.d.ts +2 -1
- package/package.json +77 -76
- package/lib/assets/LabelWorker.worker-BT1uJgYn.js.map +0 -1
- package/lib/assets/PlainSegmentWorker.worker-CT1cj8jj.js.map +0 -1
- package/lib/assets/TerrainWorker.worker-DmikdfB2.js.map +0 -1
- package/lib/control/OldMouseNavigation.d.ts +0 -65
- package/lib/control/ZoomControl.d.ts +0 -28
- package/lib/control/geoObjectEditor/GeoObjectEditor.d.ts +0 -13
- package/lib/control/visibleExtent/drawnode.d.ts +0 -7
- package/lib/entity/Polyline.d.ts +0 -417
- package/lib/light/LightSource.d.ts +0 -36
- package/lib/res/fonts/Roboto-Regular.ttf.cfg +0 -1340
- package/lib/res/fonts/Roboto-Regular.ttf.png +0 -0
- package/lib/res/fonts/arial.ttf.cfg +0 -1570
- package/lib/res/fonts/arial.ttf.png +0 -0
- package/lib/scene/BaseNode.d.ts +0 -61
- package/lib/shaders/drawnode/drawnode.d.ts +0 -8
- package/lib/webgl/Program.d.ts +0 -161
- package/lib/webgl/ProgramController.d.ts +0 -87
- /package/lib/control/{geoObjectEditor → entityEditor}/ArrowEntity.d.ts +0 -0
- /package/lib/control/{geoObjectEditor → entityEditor}/AxisTrackEntity.d.ts +0 -0
- /package/lib/control/{geoObjectEditor → entityEditor}/MoveAxisEntity.d.ts +0 -0
- /package/lib/control/{geoObjectEditor → entityEditor}/MovePlaneEntity.d.ts +0 -0
- /package/lib/control/{geoObjectEditor → entityEditor}/RotateEntity.d.ts +0 -0
- /package/lib/entity/{LabelWorker.worker.d.ts → label/LabelWorker.worker.d.ts} +0 -0
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,221 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
1. Definitions.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
|
203
|
+
----------------------------------------------------------------------------
|
|
204
|
+
|
|
205
|
+
Copyright 2026 Michael Gevlich
|
|
206
|
+
|
|
207
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
208
|
+
you may not use this file except in compliance with the License.
|
|
209
|
+
You may obtain a copy of the License at
|
|
210
|
+
|
|
211
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
212
|
+
|
|
213
|
+
Unless required by applicable law or agreed to in writing, software
|
|
214
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
215
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
216
|
+
See the License for the specific language governing permissions and
|
|
217
|
+
limitations under the License.
|
|
218
|
+
|
|
219
|
+
# Third-Party Code
|
|
220
|
+
|
|
221
|
+
...
|
package/README.md
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
[](https://www.npmjs.com/@openglobus/og)
|
|
1
|
+
[](https://www.npmjs.com/package/@openglobus/og)
|
|
2
2
|

|
|
3
3
|
|
|
4
4
|
# OpenGlobus
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[openglobus](https://www.openglobus.org/) is a typescript/javascript library designed to display interactive 3D maps and other geospatial data at a
|
|
6
|
+
[OpenGlobus](https://www.openglobus.org/) is a typescript/javascript library designed to display interactive 3D maps and other geospatial data at a
|
|
9
7
|
scale from planet to bee.
|
|
10
8
|
|
|
11
9
|
It supports various high-resolution terrain providers, imagery layers, renders thousands of 3D objects, provides
|
|
12
10
|
geometry measurement tools, and more. It uses the WebGL technology, open-source and
|
|
13
11
|
completely free.
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
OpenGlobus's main goal is to make 3D map features fast, good-looking, user-friendly, and easy to implement in any
|
|
16
14
|
related project.
|
|
17
15
|
|
|
18
|
-
## Getting
|
|
16
|
+
## Getting Started
|
|
19
17
|
|
|
20
18
|
### Installation
|
|
21
19
|
|
|
@@ -25,7 +23,7 @@ npm install @openglobus/og
|
|
|
25
23
|
|
|
26
24
|
### Fast initialization
|
|
27
25
|
|
|
28
|
-
Create your first
|
|
26
|
+
Create your first OpenGlobus application with the [create-openglobus](https://www.npmjs.com/package/create-openglobus) template. It supports JS, TS, React, and more.
|
|
29
27
|
|
|
30
28
|
Run:
|
|
31
29
|
|
|
@@ -33,9 +31,9 @@ Run:
|
|
|
33
31
|
npx create-openglobus
|
|
34
32
|
```
|
|
35
33
|
|
|
36
|
-
## React
|
|
34
|
+
## React Integration
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
The OpenGlobus React module is available in the [openglobus-react](https://github.com/openglobus/openglobus-react) package.
|
|
39
37
|
|
|
40
38
|
```sh
|
|
41
39
|
npm i @openglobus/openglobus-react
|
|
@@ -47,12 +45,12 @@ npm i @openglobus/openglobus-react
|
|
|
47
45
|
- [Wiki](https://github.com/openglobus/openglobus/wiki)
|
|
48
46
|
- [API documentation](https://openglobus.github.io/docs/)
|
|
49
47
|
|
|
50
|
-
## Get Started
|
|
48
|
+
## Get Started Contributing
|
|
51
49
|
|
|
52
50
|
### Development
|
|
53
51
|
|
|
54
|
-
1. Clone repository.
|
|
55
|
-
2. Run in the
|
|
52
|
+
1. Clone the repository.
|
|
53
|
+
2. Run in the repository folder:
|
|
56
54
|
|
|
57
55
|
```sh
|
|
58
56
|
npm install
|
|
@@ -66,7 +64,7 @@ Run
|
|
|
66
64
|
npm run build
|
|
67
65
|
```
|
|
68
66
|
|
|
69
|
-
|
|
67
|
+
This generates files in `lib/`:
|
|
70
68
|
|
|
71
69
|
- og.es.js
|
|
72
70
|
- og.es.js.map
|
|
@@ -81,7 +79,7 @@ First, it starts by watching sources and building into ./lib folder es module:
|
|
|
81
79
|
npm run dev
|
|
82
80
|
```
|
|
83
81
|
|
|
84
|
-
Second,
|
|
82
|
+
Second, run a local server. Then open `http://127.0.0.1:3000`:
|
|
85
83
|
|
|
86
84
|
```sh
|
|
87
85
|
npm run serve
|
|
@@ -96,20 +94,35 @@ npm run dev_serve
|
|
|
96
94
|
Third, try an example from the sandbox:
|
|
97
95
|
|
|
98
96
|
```sh
|
|
99
|
-
|
|
97
|
+
http://127.0.0.1:3000/sandbox/osm/osm.html
|
|
100
98
|
```
|
|
101
99
|
|
|
102
100
|
### Other scripts
|
|
103
101
|
|
|
104
|
-
`npm run docs` - build [api documentation](https://openglobus.github.io/docs/) into
|
|
102
|
+
`npm run docs` - build [api documentation](https://openglobus.github.io/docs/) into `docs/`
|
|
105
103
|
|
|
106
104
|
`npm run serve` - run local web server for develop and watch examples
|
|
107
105
|
|
|
108
106
|
`npm run lint` - run code linter
|
|
109
107
|
|
|
108
|
+
`npm run format` - format code and docs with Prettier
|
|
109
|
+
|
|
110
|
+
`npm run format:check` - check formatting with Prettier (non-modifying)
|
|
111
|
+
|
|
110
112
|
`npm run test` - run tests
|
|
111
113
|
|
|
112
|
-
`
|
|
114
|
+
`npm run dts` - generate TypeScript declarations
|
|
115
|
+
|
|
116
|
+
## Contributor Resources
|
|
117
|
+
|
|
118
|
+
- [Contributing guide](CONTRIBUTING.md)
|
|
119
|
+
- [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
120
|
+
- [Security policy](SECURITY.md)
|
|
121
|
+
- [Style guide](STYLEGUIDE.md)
|
|
122
|
+
- [Changelog](CHANGELOG.md)
|
|
123
|
+
- [Open an issue](https://github.com/openglobus/openglobus/issues/new/choose)
|
|
124
|
+
- [Start a discussion](https://github.com/openglobus/openglobus/discussions)
|
|
125
|
+
- [Open a pull request](https://github.com/openglobus/openglobus/compare)
|
|
113
126
|
|
|
114
127
|
## Support the Project
|
|
115
128
|
|
|
@@ -125,4 +138,4 @@ There are many ways to contribute back to the project:
|
|
|
125
138
|
|
|
126
139
|
## License
|
|
127
140
|
|
|
128
|
-
###
|
|
141
|
+
### Apache-2.0
|
package/lib/Deferred.d.ts
CHANGED
package/lib/Events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type EventCallback = ((
|
|
1
|
+
export type EventCallback = ((...args: any[]) => boolean) | ((...args: any[]) => void);
|
|
2
2
|
export type EventCallbackStamp = EventCallback & {
|
|
3
3
|
_openglobus_id?: number;
|
|
4
4
|
_openglobus_priority?: number;
|
package/lib/Globe.d.ts
CHANGED
|
@@ -9,14 +9,15 @@ import { Planet } from "./scene/Planet";
|
|
|
9
9
|
import { Sun } from "./control/Sun";
|
|
10
10
|
import { Renderer } from "./renderer/Renderer";
|
|
11
11
|
import type { HTMLDivElementExt } from "./renderer/Renderer";
|
|
12
|
-
import {
|
|
12
|
+
import { Scene } from "./scene/Scene";
|
|
13
13
|
import { Extent } from "./Extent";
|
|
14
14
|
import type { IAtmosphereParams } from "./control/atmosphere/Atmosphere";
|
|
15
15
|
import { QuadTreeStrategy } from "./quadTree";
|
|
16
|
+
import type { ShadeModeInput } from "./shadeModeConstants";
|
|
16
17
|
export interface IGlobeParams {
|
|
17
18
|
attributionContainer?: HTMLElement;
|
|
18
19
|
target?: string | HTMLElement;
|
|
19
|
-
skybox?:
|
|
20
|
+
skybox?: Scene;
|
|
20
21
|
dpi?: number;
|
|
21
22
|
msaa?: number;
|
|
22
23
|
name?: string;
|
|
@@ -48,7 +49,7 @@ export interface IGlobeParams {
|
|
|
48
49
|
minSlope?: number;
|
|
49
50
|
mass?: number;
|
|
50
51
|
zoomSpeed?: number;
|
|
51
|
-
mode?: "
|
|
52
|
+
mode?: "north" | "adaptive" | "free";
|
|
52
53
|
poleThreshold?: number;
|
|
53
54
|
disableRotation?: boolean;
|
|
54
55
|
disableTilt?: boolean;
|
|
@@ -65,6 +66,8 @@ export interface IGlobeParams {
|
|
|
65
66
|
exposure?: number;
|
|
66
67
|
maxNodesCount?: number;
|
|
67
68
|
transparentBackground?: boolean;
|
|
69
|
+
shadeMode?: ShadeModeInput;
|
|
70
|
+
reverseDepth?: boolean;
|
|
68
71
|
}
|
|
69
72
|
/**
|
|
70
73
|
* @typedef {Array<number>} LonLatCoordinate
|
|
@@ -84,7 +87,6 @@ export interface IGlobeParams {
|
|
|
84
87
|
* new control.KeyboardNavigation(),
|
|
85
88
|
* new control.EarthCoordinates(),
|
|
86
89
|
* new control.LayerSwitcher({),
|
|
87
|
-
* new control.ZoomControl(),
|
|
88
90
|
* new control.TouchNavigation(),
|
|
89
91
|
* new control.Sun()
|
|
90
92
|
* ],
|
|
@@ -111,7 +113,7 @@ export interface IGlobeParams {
|
|
|
111
113
|
* @param {number} [options.minAltitude=1.0] - Minimal camera altitude above terrain
|
|
112
114
|
* @param {number} [options.maxEqualZoomAltitude=15000000.0] - Maximal altitude since segments on the screen became the same zoom level
|
|
113
115
|
* @param {number} [options.minEqualZoomAltitude=10000.0] - Minimal altitude since segments on the screen became the same zoom level
|
|
114
|
-
* @param {number} [options.minEqualZoomCameraSlope=0.8] - Minimal camera slope above
|
|
116
|
+
* @param {number} [options.minEqualZoomCameraSlope=0.8] - Minimal camera slope above the globe where segments on the screen became the same zoom level
|
|
115
117
|
* @param {number} [options.loadingBatchSize=12] -
|
|
116
118
|
* @param {number} [options.quadTreeStrategyPrototype] - Prototype of quadTree. QuadTreeStrategy for Earth is default.
|
|
117
119
|
* @param {number} [options.msaa=0] - MSAA antialiasing parameter: 2,4,8,16. Default is 0.
|
|
@@ -121,6 +123,7 @@ export interface IGlobeParams {
|
|
|
121
123
|
* @param {IAtmosphereParams} [options.atmosphereParameters] - Atmosphere model parameters.
|
|
122
124
|
* @param {number} [options.gamma] - Gamma
|
|
123
125
|
* @param {number} [options.exposure] - Exposure
|
|
126
|
+
* @param {boolean} [options.reverseDepth=true] - Enables reverse-Z depth for the planet camera perspective mode.
|
|
124
127
|
*/
|
|
125
128
|
declare class Globe {
|
|
126
129
|
static __counter__: number;
|
package/lib/Object3d.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TypedArray } from
|
|
2
|
-
import { Vec3 } from
|
|
3
|
-
import type { NumberArray3 } from
|
|
1
|
+
import type { TypedArray } from "./utils/shared";
|
|
2
|
+
import { Vec3 } from "./math/Vec3";
|
|
3
|
+
import type { NumberArray3 } from "./math/Vec3";
|
|
4
4
|
import { Mat4 } from "./math/Mat4";
|
|
5
5
|
interface IObject3dParams {
|
|
6
6
|
name?: string;
|
|
@@ -11,18 +11,19 @@ interface IObject3dParams {
|
|
|
11
11
|
center?: boolean;
|
|
12
12
|
color?: number[] | TypedArray | string;
|
|
13
13
|
scale?: number | Vec3;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
shininess?: number;
|
|
14
|
+
metallic?: number;
|
|
15
|
+
roughness?: number;
|
|
16
|
+
ambientOcclusion?: number;
|
|
18
17
|
colorTextureSrc?: string;
|
|
19
18
|
normalTextureSrc?: string;
|
|
19
|
+
ambientOcclusionTextureSrc?: string;
|
|
20
20
|
metallicRoughnessTextureSrc?: string;
|
|
21
21
|
colorTextureImage?: HTMLImageElement;
|
|
22
22
|
normalTextureImage?: HTMLImageElement;
|
|
23
|
+
ambientOcclusionTextureImage?: HTMLImageElement;
|
|
23
24
|
metallicRoughnessTextureImage?: HTMLImageElement;
|
|
24
25
|
}
|
|
25
|
-
type
|
|
26
|
+
type MaterialProperties = Pick<IObject3dParams, "metallic" | "roughness" | "ambientOcclusion">;
|
|
26
27
|
declare class Object3d {
|
|
27
28
|
protected _name: string;
|
|
28
29
|
protected _vertices: number[];
|
|
@@ -31,14 +32,15 @@ declare class Object3d {
|
|
|
31
32
|
protected _indices: number[];
|
|
32
33
|
protected _normals: number[];
|
|
33
34
|
color: Float32Array;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
shininess: number;
|
|
35
|
+
metallic: number;
|
|
36
|
+
roughness: number;
|
|
37
|
+
ambientOcclusion: number;
|
|
38
38
|
colorTextureSrc: string | null;
|
|
39
39
|
colorTextureImage: HTMLImageElement | null;
|
|
40
40
|
normalTextureSrc: string | null;
|
|
41
41
|
normalTextureImage: HTMLImageElement | null;
|
|
42
|
+
ambientOcclusionTextureSrc: string | null;
|
|
43
|
+
ambientOcclusionTextureImage: HTMLImageElement | null;
|
|
42
44
|
metallicRoughnessTextureSrc: string | null;
|
|
43
45
|
metallicRoughnessTextureImage: HTMLImageElement | null;
|
|
44
46
|
center: Vec3;
|
|
@@ -48,13 +50,14 @@ declare class Object3d {
|
|
|
48
50
|
/**
|
|
49
51
|
* Sets the material properties for the 3D object.
|
|
50
52
|
*
|
|
51
|
-
* @param {
|
|
53
|
+
* @param {MaterialProperties} data - An object containing material properties.
|
|
52
54
|
* @param {string | NumberArray3} [data.ambient] - Ambient color of the material, as a hex string (e.g., "#ffffff") or an array of three numbers [r, g, b].
|
|
53
55
|
* @param {string | NumberArray3} [data.diffuse] - Diffuse color of the material.
|
|
54
56
|
* @param {string | NumberArray3} [data.specular] - Specular color of the material.
|
|
55
57
|
* @param {number} [data.shininess=100] - Shininess coefficient of the material, controlling specular highlight size.
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
setMaterialProperties(data: MaterialProperties): this;
|
|
60
|
+
setColor(color: number[] | TypedArray | string): this;
|
|
58
61
|
centering(): this;
|
|
59
62
|
applyMat4(m: Mat4): this;
|
|
60
63
|
scale(s: Vec3): this;
|
package/lib/Popup.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { Vec2 } from "./math/Vec2";
|
|
|
5
5
|
import { Vec3 } from "./math/Vec3";
|
|
6
6
|
import type { NumberArray2 } from "./math/Vec2";
|
|
7
7
|
import type { NumberArray3 } from "./math/Vec3";
|
|
8
|
-
import { View } from
|
|
9
|
-
import type { IViewParams, ViewEventsList } from
|
|
8
|
+
import { View } from "./ui/View";
|
|
9
|
+
import type { IViewParams, ViewEventsList } from "./ui/View";
|
|
10
10
|
interface IPopupParams extends IViewParams {
|
|
11
11
|
planet: Planet;
|
|
12
12
|
title?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelWorker.worker-DYd7xn3M.js","sources":["../src/entity/label/LabelWorker.worker.js"],"sourcesContent":["/* eslint-env worker */\n\"use strict\";\n\nfunction concatTypedArrays(dest, index, source) {\n let len = source.length,\n offset = index * len;\n for (let i = 0; i < len; i++) {\n dest[offset + i] = source[i];\n }\n}\n\nfunction srgbToLinear(v) {\n return Math.pow(v, 2.2);\n}\n\nself.onmessage = function (e) {\n var labelData = e.data.labelData,\n id = labelData[0],\n maxLetters = labelData[1],\n isVisible = labelData[2],\n /*3, 4, 5*/ _positionHigh_x = labelData[3],\n _positionHigh_y = labelData[4],\n _positionHigh_z = labelData[5],\n /*6, 7, 8*/ _positionLow_x = labelData[6],\n _positionLow_y = labelData[7],\n _positionLow_z = labelData[8],\n /*9*/ _size = labelData[9],\n /*10, 11*/ _offset_x = labelData[10],\n _offset_y = labelData[11],\n /*12, 13, 14, 15*/ _color_x = labelData[12],\n _color_y = labelData[13],\n _color_z = labelData[14],\n _color_w = labelData[15],\n /*16*/ _rotation = labelData[16],\n /*17, 18, 19*/ _alignedAxis_x = labelData[17],\n _alignedAxis_y = labelData[18],\n _alignedAxis_z = labelData[19],\n /*20*/ _fontIndex = labelData[20],\n /*21*/ _outline = labelData[21],\n /*22, 23, 24, 25*/ _outlineColor_x = labelData[22],\n _outlineColor_y = labelData[23],\n _outlineColor_z = labelData[24],\n _outlineColor_w = labelData[25],\n /*26, 27, 28*/ _pickingColor_x = labelData[26],\n _pickingColor_y = labelData[27],\n _pickingColor_z = labelData[28];\n\n let _vertexArr = new Float32Array(maxLetters * 12),\n _texCoordArr = new Float32Array(maxLetters * 24),\n _gliphParamArr = new Float32Array(maxLetters * 24),\n _positionHighArr = new Float32Array(maxLetters * 18),\n _positionLowArr = new Float32Array(maxLetters * 18),\n _sizeArr = new Float32Array(maxLetters * 6),\n _offsetArr = new Float32Array(maxLetters * 12),\n _rgbaArr = new Float32Array(maxLetters * 24),\n _rotationArr = new Float32Array(maxLetters * 6),\n _alignedAxisArr = new Float32Array(maxLetters * 18),\n _fontIndexArr = new Float32Array(maxLetters * 6),\n _outlineArr = new Float32Array(maxLetters * 6),\n _outlineColorArr = new Float32Array(maxLetters * 24),\n _pickingColorArr = new Float32Array(maxLetters * 18);\n\n for (let i = 0; i < maxLetters; i++) {\n if (isVisible !== 0) {\n concatTypedArrays(_vertexArr, i, [0, 0, 0, -1, 1, -1, 1, -1, 1, 0, 0, 0]);\n } else {\n concatTypedArrays(_vertexArr, i, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);\n }\n\n concatTypedArrays(\n _texCoordArr,\n i,\n [0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0]\n );\n concatTypedArrays(_gliphParamArr, i, [1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0]);\n\n var x = _positionHigh_x,\n y = _positionHigh_y,\n z = _positionHigh_z,\n w;\n concatTypedArrays(_positionHighArr, i, [x, y, z, x, y, z, x, y, z, x, y, z, x, y, z, x, y, z]);\n\n x = _positionLow_x;\n y = _positionLow_y;\n z = _positionLow_z;\n concatTypedArrays(_positionLowArr, i, [x, y, z, x, y, z, x, y, z, x, y, z, x, y, z, x, y, z]);\n\n x = _size;\n concatTypedArrays(_sizeArr, i, [x, x, x, x, x, x]);\n\n x = _offset_x;\n y = _offset_y;\n concatTypedArrays(_offsetArr, i, [x, y, x, y, x, y, x, y, x, y, x, y]);\n\n x = srgbToLinear(_color_x);\n y = srgbToLinear(_color_y);\n z = srgbToLinear(_color_z);\n w = _color_w;\n concatTypedArrays(_rgbaArr, i, [x, y, z, w, x, y, z, w, x, y, z, w, x, y, z, w, x, y, z, w, x, y, z, w]);\n\n x = _rotation;\n concatTypedArrays(_rotationArr, i, [x, x, x, x, x, x]);\n\n x = _alignedAxis_x;\n y = _alignedAxis_y;\n z = _alignedAxis_z;\n concatTypedArrays(_alignedAxisArr, i, [x, y, z, x, y, z, x, y, z, x, y, z, x, y, z, x, y, z]);\n\n x = _fontIndex;\n concatTypedArrays(_fontIndexArr, i, [x, x, x, x, x, x]);\n\n x = _outline;\n concatTypedArrays(_outlineArr, i, [x, x, x, x, x, x]);\n\n x = srgbToLinear(_outlineColor_x);\n y = srgbToLinear(_outlineColor_y);\n z = srgbToLinear(_outlineColor_z);\n w = _outlineColor_w;\n concatTypedArrays(_outlineColorArr, i, [\n x,\n y,\n z,\n w,\n x,\n y,\n z,\n w,\n x,\n y,\n z,\n w,\n x,\n y,\n z,\n w,\n x,\n y,\n z,\n w,\n x,\n y,\n z,\n w\n ]);\n\n x = _pickingColor_x / 255;\n y = _pickingColor_y / 255;\n z = _pickingColor_z / 255;\n concatTypedArrays(_pickingColorArr, i, [x, y, z, x, y, z, x, y, z, x, y, z, x, y, z, x, y, z]);\n }\n\n self.postMessage(\n {\n id: id,\n vertexArr: _vertexArr,\n texCoordArr: _texCoordArr,\n gliphParamArr: _gliphParamArr,\n positionHighArr: _positionHighArr,\n positionLowArr: _positionLowArr,\n sizeArr: _sizeArr,\n offsetArr: _offsetArr,\n rgbaArr: _rgbaArr,\n rotationArr: _rotationArr,\n alignedAxisArr: _alignedAxisArr,\n fontIndexArr: _fontIndexArr,\n outlineArr: _outlineArr,\n outlineColorArr: _outlineColorArr,\n pickingColorArr: _pickingColorArr\n },\n [\n _vertexArr.buffer,\n _texCoordArr.buffer,\n _gliphParamArr.buffer,\n _positionHighArr.buffer,\n _positionLowArr.buffer,\n _sizeArr.buffer,\n _offsetArr.buffer,\n _rgbaArr.buffer,\n _rotationArr.buffer,\n _alignedAxisArr.buffer,\n _fontIndexArr.buffer,\n _outlineArr.buffer,\n _outlineColorArr.buffer,\n _pickingColorArr.buffer\n ]\n );\n};\n"],"names":["concatTypedArrays","dest","index","source","len","length","offset","i","srgbToLinear","v","Math","pow","self","onmessage","e","labelData","data","id","maxLetters","isVisible","_positionHigh_x","_positionHigh_y","_positionHigh_z","_positionLow_x","_positionLow_y","_positionLow_z","_size","_offset_x","_offset_y","_color_x","_color_y","_color_z","_color_w","_rotation","_alignedAxis_x","_alignedAxis_y","_alignedAxis_z","_fontIndex","_outline","_outlineColor_x","_outlineColor_y","_outlineColor_z","_outlineColor_w","_pickingColor_x","_pickingColor_y","_pickingColor_z","_vertexArr","Float32Array","_texCoordArr","_gliphParamArr","_positionHighArr","_positionLowArr","_sizeArr","_offsetArr","_rgbaArr","_rotationArr","_alignedAxisArr","_fontIndexArr","_outlineArr","_outlineColorArr","_pickingColorArr","w","x","y","z","postMessage","vertexArr","texCoordArr","gliphParamArr","positionHighArr","positionLowArr","sizeArr","offsetArr","rgbaArr","rotationArr","alignedAxisArr","fontIndexArr","outlineArr","outlineColorArr","pickingColorArr","buffer"],"mappings":"yBAGA,SAASA,EAAkBC,EAAMC,EAAOC,EAAA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AGA,EAAGA,IAGpD9D,EAAkB0D,EAAanD,EAAG,CADlCuD,EAAIxB,EACkCwB,EAAGA,EAAGA,EAAGA,EAAGA,CAAAA,CAAAA,EAMlD9D,EAAkB2D,EAAkBpD,EAAG,CAJvCuD,EAAItD,EAAa+B,CAAAA,EACjBwB,EAAIvD,EAAagC,CAAAA,EACjBwB,EAAIxD,EAAaiC,GACjBoB,EAAInB,EAMAoB,EACAC,EACAC,EACAH,EACAC,EACAC,EACAC,EACAH,EACAC,EACAC,EACAC,EACAH,EACAC,EACAC,EACAC,EACAH,EACAC,EACAC,EACAC,EACAH,CAAAA,CAAAA,EAMJ7D,EAAkB4D,EAAkBrD,EAAG,CAHvCuD,EAAInB,EAAkB,IACtBoB,EAAInB,EAAkB,IACtBoB,EAAInB,EAAkB,IAC2BiB,EAAGC,EAAGC,EAAGF,EAAGC,EAAGC,EAAGF,EAAGC,EAAGC,EAAGF,EAAGC,EAAGC,EAAGF,EAAGC,EAAGC,CAAAA,CAAAA,CAC/F,CAEApD,KAAKqD,YACD,CACIhD,GAAIA,EACJiD,UAAWpB,EACXqB,YAAanB,EACboB,cAAenB,EACfoB,gBAAiBnB,EACjBoB,eAAgBnB,EAChBoB,QAASnB,EACToB,UAAWnB,EACXoB,QAASnB,EACToB,YAAanB,EACboB,eAAgBnB,EAChBoB,aAAcnB,EACdoB,WAAYnB,EACZoB,gBAAiBnB,EACjBoB,gBAAiBnB,CAAAA,EAErB,CACId,EAAWkC,OACXhC,EAAagC,OACb/B,EAAe+B,OACf9B,EAAiB8B,OACjB7B,EAAgB6B,OAChB5B,EAAS4B,OACT3B,EAAW2B,OACX1B,EAAS0B,OACTzB,EAAayB,OACbxB,EAAgBwB,OAChBvB,EAAcuB,OACdtB,EAAYsB,OACZrB,EAAiBqB,OACjBpB,EAAiBoB,MAAAA,CAAAA,CAG7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlainSegmentWorker.worker-JsKldq-e.js","sources":["../src/utils/PlainSegmentWorker.worker.js"],"sourcesContent":["/* eslint-env worker */\n\"use strict\";\n\nlet model = null;\n\nlet cached_ix = null;\nlet cached_iy = null;\nlet v00 = null;\nlet v01 = null;\nlet v10 = null;\nlet v11 = null;\n//let t = null;\n\nfunction rawval(ix, iy) {\n if (iy < 0) {\n iy = -iy;\n ix += model.width / 2;\n } else if (iy >= model.height) {\n iy = 2 * (model.height - 1) - iy;\n ix += model.width / 2;\n }\n\n if (ix < 0) {\n ix += model.width;\n } else if (ix >= model.width) {\n ix -= model.width;\n }\n\n var k = (iy * model.width + ix) * 2 + model.i;\n\n return (model.rawfile[k] << 8) | model.rawfile[k + 1];\n}\n\nfunction getHeightMSL(lon, lat) {\n if (!model) return 0;\n\n if (lon < 0) lon += 360.0;\n\n var fy = (90 - lat) * model.rlatres;\n var fx = lon * model.rlonres;\n var iy = Math.floor(fy);\n var ix = Math.floor(fx);\n\n fx -= ix;\n fy -= iy;\n\n if (iy === model.height - 1) {\n iy--;\n }\n\n if (cached_ix !== ix || cached_iy !== iy) {\n cached_ix = ix;\n cached_iy = iy;\n\n v00 = rawval(ix, iy);\n v01 = rawval(ix + 1, iy);\n v10 = rawval(ix, iy + 1);\n v11 = rawval(ix + 1, iy + 1);\n }\n\n let h = null;\n\n var a = (1 - fx) * v00 + fx * v01;\n var b = (1 - fx) * v10 + fx * v11;\n\n h = (1 - fy) * a + fy * b;\n\n return model.offset + model.scale * h;\n}\n\nconst HALF_PI = Math.PI * 0.5;\nconst POLE = 20037508.34;\nconst PI_BY_POLE = Math.PI / POLE;\nconst INV_POLE_BY_180 = 180.0 / POLE;\nconst INV_PI_BY_180 = 180.0 / Math.PI;\nconst INV_PI_BY_180_HALF_PI = INV_PI_BY_180 * HALF_PI;\nconst RADIANS = Math.PI / 180.0;\nconst INV_PI_BY_360 = INV_PI_BY_180 * 2.0;\n\nlet E2 = 0.0,\n A = 0.0;\n\nlet _projFunc = null;\n\nconst Vec3 = function (x, y, z) {\n this.x = x;\n this.y = y;\n this.z = z;\n};\n\nvar geodeticToCartesian = function (lon, lat, heightFactor, res) {\n let h = getHeightMSL(lon, lat) * heightFactor;\n\n let latrad = RADIANS * lat,\n lonrad = RADIANS * lon;\n\n let slt = Math.sin(latrad);\n\n let N = A / Math.sqrt(1.0 - E2 * slt * slt);\n let nc = (N + h) * Math.cos(latrad);\n\n res.x = nc * Math.cos(lonrad);\n res.y = nc * Math.sin(lonrad);\n res.z = (N * (1 - E2) + h) * slt;\n};\n\nvar geodeticToCartesianInverse = function (lon, lat, heightFactor, res) {\n geodeticToCartesian(\n lon * INV_POLE_BY_180,\n INV_PI_BY_360 * Math.atan(Math.exp(lat * PI_BY_POLE)) - INV_PI_BY_180_HALF_PI,\n heightFactor,\n res\n );\n};\n\nvar worldPos = new Vec3(0.0, 0.0, 0.0);\nvar rtcPos = new Vec3(0.0, 0.0, 0.0);\nvar _tempHigh = new Vec3(0.0, 0.0, 0.0);\nvar _tempLow = new Vec3(0.0, 0.0, 0.0);\n\nvar doubleToTwoFloats = function (v, high, low) {\n let x = v.x,\n y = v.y,\n z = v.z;\n\n var doubleHigh;\n\n if (x >= 0.0) {\n doubleHigh = Math.floor(x / 65536.0) * 65536.0;\n high.x = Math.fround(doubleHigh);\n low.x = Math.fround(x - doubleHigh);\n } else {\n doubleHigh = Math.floor(-x / 65536.0) * 65536.0;\n high.x = Math.fround(-doubleHigh);\n low.x = Math.fround(x + doubleHigh);\n }\n\n if (y >= 0.0) {\n doubleHigh = Math.floor(y / 65536.0) * 65536.0;\n high.y = Math.fround(doubleHigh);\n low.y = Math.fround(y - doubleHigh);\n } else {\n doubleHigh = Math.floor(-y / 65536.0) * 65536.0;\n high.y = Math.fround(-doubleHigh);\n low.y = Math.fround(y + doubleHigh);\n }\n\n if (z >= 0.0) {\n doubleHigh = Math.floor(z / 65536.0) * 65536.0;\n high.z = Math.fround(doubleHigh);\n low.z = Math.fround(z - doubleHigh);\n } else {\n doubleHigh = Math.floor(-z / 65536.0) * 65536.0;\n high.z = Math.fround(-doubleHigh);\n low.z = Math.fround(z + doubleHigh);\n }\n};\n\nself.onmessage = function (msg) {\n if (msg.data.model) {\n model = msg.data.model;\n model.rawfile = msg.data.rawfile;\n } else if (msg.data.params) {\n let rtc_x = msg.data.params[14];\n let rtc_y = msg.data.params[15];\n let rtc_z = msg.data.params[16];\n\n let xmin = 549755748352.0,\n xmax = -549755748352.0,\n ymin = 549755748352.0,\n ymax = -549755748352.0,\n zmin = 549755748352.0,\n zmax = -549755748352.0;\n\n E2 = msg.data.params[8];\n A = msg.data.params[9];\n\n let gridSize = msg.data.params[2],\n fgs = msg.data.params[3],\n r2_x = msg.data.params[10],\n r2_y = msg.data.params[11],\n r2_z = msg.data.params[12];\n\n let heightFactor = msg.data.params[13];\n\n if (msg.data.params[1] === 0.0) {\n _projFunc = geodeticToCartesianInverse;\n } else {\n _projFunc = geodeticToCartesian;\n }\n\n let maxFgs = Math.max(fgs, gridSize);\n let llStep = (msg.data.params[6] - msg.data.params[4]) / maxFgs;\n let ltStep = (msg.data.params[7] - msg.data.params[5]) / maxFgs;\n\n let esw_lon = msg.data.params[4],\n ene_lat = msg.data.params[7];\n\n let dg = Math.max(fgs / gridSize, 1.0),\n gs = maxFgs + 1;\n\n const gsgs = gs * gs;\n\n const gridSize3 = (gridSize + 1) * (gridSize + 1) * 3;\n\n let plainNormals = new Float32Array(gridSize3);\n\n let plainVertices = new Float64Array(gridSize3);\n let plainVerticesHigh = new Float32Array(gridSize3);\n let plainVerticesLow = new Float32Array(gridSize3);\n let normalMapNormals = new Float32Array(gsgs * 3);\n let normalMapVertices = new Float64Array(gsgs * 3);\n\n let ind = 0,\n nmInd = 0;\n\n for (let k = 0; k < gsgs; k++) {\n let j = k % gs,\n i = ~~(k / gs);\n\n _projFunc(esw_lon + j * llStep, ene_lat - i * ltStep, heightFactor, worldPos);\n\n let nx = worldPos.x * r2_x,\n ny = worldPos.y * r2_y,\n nz = worldPos.z * r2_z;\n let l = 1.0 / Math.sqrt(nx * nx + ny * ny + nz * nz);\n let nxl = nx * l,\n nyl = ny * l,\n nzl = nz * l;\n\n rtcPos.x = worldPos.x - rtc_x;\n rtcPos.y = worldPos.y - rtc_y;\n rtcPos.z = worldPos.z - rtc_z;\n\n normalMapVertices[nmInd] = rtcPos.x;\n normalMapNormals[nmInd++] = nxl;\n\n normalMapVertices[nmInd] = rtcPos.y;\n normalMapNormals[nmInd++] = nyl;\n\n normalMapVertices[nmInd] = rtcPos.z;\n normalMapNormals[nmInd++] = nzl;\n\n if (i % dg === 0 && j % dg === 0) {\n doubleToTwoFloats(rtcPos, _tempHigh, _tempLow);\n\n plainVertices[ind] = rtcPos.x;\n plainVerticesHigh[ind] = _tempHigh.x;\n plainVerticesLow[ind] = _tempLow.x;\n plainNormals[ind++] = nxl;\n\n plainVertices[ind] = rtcPos.y;\n plainVerticesHigh[ind] = _tempHigh.y;\n plainVerticesLow[ind] = _tempLow.y;\n plainNormals[ind++] = nyl;\n\n plainVertices[ind] = rtcPos.z;\n plainVerticesHigh[ind] = _tempHigh.z;\n plainVerticesLow[ind] = _tempLow.z;\n plainNormals[ind++] = nzl;\n\n if (worldPos.x < xmin) xmin = worldPos.x;\n if (worldPos.x > xmax) xmax = worldPos.x;\n if (worldPos.y < ymin) ymin = worldPos.y;\n if (worldPos.y > ymax) ymax = worldPos.y;\n if (worldPos.z < zmin) zmin = worldPos.z;\n if (worldPos.z > zmax) zmax = worldPos.z;\n }\n }\n\n let x = (xmax - xmin) * 0.5,\n y = (ymax - ymin) * 0.5,\n z = (zmax - zmin) * 0.5;\n\n let plainRadius = Math.sqrt(x * x + y * y + z * z);\n\n self.postMessage(\n {\n id: msg.data.params[0],\n plainVertices: plainVertices,\n plainVerticesHigh: plainVerticesHigh,\n plainVerticesLow: plainVerticesLow,\n plainNormals: plainNormals,\n normalMapNormals: normalMapNormals,\n normalMapVertices: normalMapVertices,\n plainRadius: plainRadius,\n relativeCenter: [rtc_x, rtc_y, rtc_z]\n },\n [\n plainVertices.buffer,\n plainVerticesHigh.buffer,\n plainVerticesLow.buffer,\n plainNormals.buffer,\n normalMapNormals.buffer,\n normalMapVertices.buffer\n ]\n );\n }\n};\n"],"names":["model","cached_ix","cached_iy","v00","v01","v10","v11","rawval","ix","iy","width","height","k","i","rawfile","HALF_PI","Math","PI","POLE","PI_BY_POLE","INV_POLE_BY_180","INV_PI_BY_180","INV_PI_BY_180_HALF_PI","RADIANS","INV_PI_BY_360","E2","A","_projFunc","Vec3","x","y","z","this","geodeticToCartesian","lon","lat","heightFactor","res","h","fy","rlatres","fx","rlonres","floor","offset","scale","latrad","lonrad","slt","sin","N","sqrt","nc","cos","geodeticToCartesianInverse","atan","exp","worldPos","rtcPos","_tempHigh","_tempLow","doubleToTwoFloats","v","high","low","doubleHigh","fround","self","onmessage","msg","data","params","rtc_x","rtc_y","rtc_z","xmin","xmax","ymin","ymax","zmin","zmax","gridSize","fgs","r2_x","r2_y","r2_z","maxFgs","max","llStep","ltStep","esw_lon","ene_lat","dg","gs","gsgs","gridSize3","plainNormals","Float32Array","plainVertices","Float64Array","plainVerticesHigh","plainVerticesLow","normalMapNormals","normalMapVertices","ind","nmInd","j","nx","ny","nz","l","nxl","nyl","nzl","plainRadius","postMessage","id","relativeCenter","buffer"],"mappings":"yBAGA,IAAIA,EAAQ,KAERC,EAAY,KACZC,EAAY,KACZC,EAAM,KACNC,EAAM,KACNC,EAAM,KACNC,EAAM,KAGV,SAASC,EAAOC,EAAIC,EAAAA,CACZA,EAAK,GACLA,EAAAA,CAAMA,EACND,GAAMR,EAAMU,MAAQ,GACbD,GAAMT,EAAMW,SACnBF,EAAK,GAAKT,EAAMW,OAAS,GAAKF,EAC9BD,GAAMR,EAAMU,MAAQ,GAGpBF,EAAK,EACLA,GAAMR,EAAMU,MACLF,GAAMR,EAAMU,QACnBF,GAAMR,EAAMU,OAGhB,IAAIE,EAA8B,GAAzBH,EAAKT,EAAMU,MAAQF,GAAUR,EAAMa,EAE5C,OAAQb,EAAMc,QA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