@openglobus/og 0.22.2 → 0.23.0

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.
Files changed (167) hide show
  1. package/css/og.css +137 -1
  2. package/lib/@openglobus/js/Object3d.d.ts +20 -10
  3. package/lib/@openglobus/js/camera/Camera.d.ts +9 -0
  4. package/lib/@openglobus/js/camera/Frustum.d.ts +3 -0
  5. package/lib/@openglobus/js/control/CameraLock.d.ts +38 -0
  6. package/lib/@openglobus/js/control/SimpleNavigation.d.ts +27 -10
  7. package/lib/@openglobus/js/control/geoObjectEditor/ArrowEntity.d.ts +15 -0
  8. package/lib/@openglobus/js/control/geoObjectEditor/AxisTrackEntity.d.ts +9 -0
  9. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditor.d.ts +13 -0
  10. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +69 -0
  11. package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +78 -9
  12. package/lib/@openglobus/js/control/geoObjectEditor/MoveAxisEntity.d.ts +17 -0
  13. package/lib/@openglobus/js/control/geoObjectEditor/MovePlaneEntity.d.ts +7 -0
  14. package/lib/@openglobus/js/control/geoObjectEditor/RotateEntity.d.ts +9 -0
  15. package/lib/@openglobus/js/control/geoObjectEditor/colors.d.ts +8 -0
  16. package/lib/@openglobus/js/control/index.d.ts +2 -0
  17. package/lib/@openglobus/js/entity/Entity.d.ts +278 -19
  18. package/lib/@openglobus/js/entity/EntityCollection.d.ts +8 -9
  19. package/lib/@openglobus/js/entity/GeoObject.d.ts +141 -36
  20. package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +39 -63
  21. package/lib/@openglobus/js/entity/InstanceData.d.ts +76 -0
  22. package/lib/@openglobus/js/entity/Polyline.d.ts +19 -6
  23. package/lib/@openglobus/js/entity/PolylineHandler.d.ts +7 -0
  24. package/lib/@openglobus/js/index.d.ts +2 -1
  25. package/lib/@openglobus/js/layer/Vector.d.ts +4 -0
  26. package/lib/@openglobus/js/light/LightSource.d.ts +1 -139
  27. package/lib/@openglobus/js/math/Quat.d.ts +46 -33
  28. package/lib/@openglobus/js/math/Ray.d.ts +10 -4
  29. package/lib/@openglobus/js/math/Vec3.d.ts +15 -0
  30. package/lib/@openglobus/js/math.d.ts +2 -2
  31. package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +2 -2
  32. package/lib/@openglobus/js/quadTree/Node.d.ts +1 -1
  33. package/lib/@openglobus/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +1 -1
  34. package/lib/@openglobus/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +1 -1
  35. package/lib/@openglobus/js/renderer/Renderer.d.ts +63 -44
  36. package/lib/@openglobus/js/renderer/RendererEvents.d.ts +1 -0
  37. package/lib/@openglobus/js/scene/Planet.d.ts +11 -7
  38. package/lib/@openglobus/js/scene/RenderNode.d.ts +10 -25
  39. package/lib/@openglobus/js/shaders/drawnode.d.ts +1 -0
  40. package/lib/@openglobus/js/shaders/geoObject.d.ts +1 -0
  41. package/lib/@openglobus/js/shaders/utils.d.ts +1 -1
  42. package/lib/@openglobus/js/ui/Checkbox.d.ts +31 -0
  43. package/lib/@openglobus/js/ui/Dialog.d.ts +3 -0
  44. package/lib/@openglobus/js/ui/Input.d.ts +32 -0
  45. package/lib/@openglobus/js/ui/View.d.ts +3 -1
  46. package/lib/@openglobus/js/utils/objParser.d.ts +44 -12
  47. package/lib/@openglobus/js/utils/shared.d.ts +22 -0
  48. package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +0 -1
  49. package/lib/@openglobus/js/webgl/Framebuffer.d.ts +35 -8
  50. package/lib/@openglobus/js/webgl/Handler.d.ts +1 -0
  51. package/lib/@openglobus/og.css +1 -1
  52. package/lib/@openglobus/og.esm.js +1 -1
  53. package/lib/@openglobus/og.esm.js.map +1 -1
  54. package/lib/@openglobus/og.umd.js +1 -1
  55. package/lib/@openglobus/og.umd.js.map +1 -1
  56. package/lib/js/Object3d.d.ts +20 -10
  57. package/lib/js/Object3d.js +124 -48
  58. package/lib/js/camera/Camera.d.ts +9 -0
  59. package/lib/js/camera/Camera.js +27 -1
  60. package/lib/js/camera/Frustum.d.ts +3 -0
  61. package/lib/js/camera/Frustum.js +7 -0
  62. package/lib/js/control/Atmosphere.js +10 -6
  63. package/lib/js/control/CameraLock.d.ts +38 -0
  64. package/lib/js/control/CameraLock.js +216 -0
  65. package/lib/js/control/Control.js +1 -1
  66. package/lib/js/control/DebugInfo.js +13 -3
  67. package/lib/js/control/KeyboardNavigation.js +1 -1
  68. package/lib/js/control/ScaleControl.js +9 -3
  69. package/lib/js/control/SimpleNavigation.d.ts +27 -10
  70. package/lib/js/control/SimpleNavigation.js +148 -49
  71. package/lib/js/control/Sun.js +1 -1
  72. package/lib/js/control/elevationProfile/ElevationProfileScene.js +4 -4
  73. package/lib/js/control/geoObjectEditor/ArrowEntity.d.ts +15 -0
  74. package/lib/js/control/geoObjectEditor/ArrowEntity.js +59 -0
  75. package/lib/js/control/geoObjectEditor/AxisTrackEntity.d.ts +9 -0
  76. package/lib/js/control/geoObjectEditor/AxisTrackEntity.js +93 -0
  77. package/lib/js/control/geoObjectEditor/GeoObjectEditor.d.ts +13 -0
  78. package/lib/js/control/geoObjectEditor/GeoObjectEditor.js +30 -0
  79. package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +69 -0
  80. package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.js +502 -0
  81. package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +78 -9
  82. package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.js +487 -43
  83. package/lib/js/control/geoObjectEditor/MoveAxisEntity.d.ts +17 -0
  84. package/lib/js/control/geoObjectEditor/MoveAxisEntity.js +106 -0
  85. package/lib/js/control/geoObjectEditor/MovePlaneEntity.d.ts +7 -0
  86. package/lib/js/control/geoObjectEditor/MovePlaneEntity.js +34 -0
  87. package/lib/js/control/geoObjectEditor/RotateEntity.d.ts +9 -0
  88. package/lib/js/control/geoObjectEditor/RotateEntity.js +105 -0
  89. package/lib/js/control/geoObjectEditor/colors.d.ts +8 -0
  90. package/lib/js/control/geoObjectEditor/colors.js +8 -0
  91. package/lib/js/control/index.d.ts +2 -0
  92. package/lib/js/control/index.js +2 -0
  93. package/lib/js/control/timeline/TimelineControl.js +2 -0
  94. package/lib/js/entity/Entity.d.ts +278 -19
  95. package/lib/js/entity/Entity.js +483 -63
  96. package/lib/js/entity/EntityCollection.d.ts +8 -9
  97. package/lib/js/entity/EntityCollection.js +48 -45
  98. package/lib/js/entity/GeoObject.d.ts +141 -36
  99. package/lib/js/entity/GeoObject.js +153 -90
  100. package/lib/js/entity/GeoObjectHandler.d.ts +39 -63
  101. package/lib/js/entity/GeoObjectHandler.js +198 -295
  102. package/lib/js/entity/InstanceData.d.ts +76 -0
  103. package/lib/js/entity/InstanceData.js +344 -0
  104. package/lib/js/entity/Polyline.d.ts +19 -6
  105. package/lib/js/entity/Polyline.js +76 -36
  106. package/lib/js/entity/PolylineHandler.d.ts +7 -0
  107. package/lib/js/entity/PolylineHandler.js +26 -1
  108. package/lib/js/index.d.ts +2 -1
  109. package/lib/js/index.js +2 -1
  110. package/lib/js/layer/Bing.js +2 -2
  111. package/lib/js/layer/Vector.d.ts +4 -0
  112. package/lib/js/layer/Vector.js +16 -0
  113. package/lib/js/light/LightSource.d.ts +1 -139
  114. package/lib/js/light/LightSource.js +21 -227
  115. package/lib/js/math/Quat.d.ts +46 -33
  116. package/lib/js/math/Quat.js +91 -90
  117. package/lib/js/math/Ray.d.ts +10 -4
  118. package/lib/js/math/Ray.js +20 -4
  119. package/lib/js/math/Vec3.d.ts +15 -0
  120. package/lib/js/math/Vec3.js +30 -1
  121. package/lib/js/math.d.ts +2 -2
  122. package/lib/js/math.js +3 -3
  123. package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
  124. package/lib/js/quadTree/EntityCollectionNode.js +8 -8
  125. package/lib/js/quadTree/Node.d.ts +1 -1
  126. package/lib/js/quadTree/Node.js +2 -2
  127. package/lib/js/quadTree/QuadTreeStrategy.js +1 -1
  128. package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +1 -1
  129. package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.js +2 -2
  130. package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +1 -1
  131. package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.js +2 -2
  132. package/lib/js/renderer/Renderer.d.ts +63 -44
  133. package/lib/js/renderer/Renderer.js +260 -263
  134. package/lib/js/renderer/RendererEvents.d.ts +1 -0
  135. package/lib/js/renderer/RendererEvents.js +2 -1
  136. package/lib/js/scene/Planet.d.ts +11 -7
  137. package/lib/js/scene/Planet.js +109 -87
  138. package/lib/js/scene/RenderNode.d.ts +10 -25
  139. package/lib/js/scene/RenderNode.js +70 -58
  140. package/lib/js/shaders/depth.js +2 -5
  141. package/lib/js/shaders/drawnode.d.ts +1 -0
  142. package/lib/js/shaders/drawnode.js +51 -52
  143. package/lib/js/shaders/geoObject.d.ts +1 -0
  144. package/lib/js/shaders/geoObject.js +154 -91
  145. package/lib/js/shaders/polyline.js +68 -51
  146. package/lib/js/shaders/utils.d.ts +1 -1
  147. package/lib/js/shaders/utils.js +11 -0
  148. package/lib/js/ui/Checkbox.d.ts +31 -0
  149. package/lib/js/ui/Checkbox.js +110 -0
  150. package/lib/js/ui/Color.js +2 -1
  151. package/lib/js/ui/Dialog.d.ts +3 -0
  152. package/lib/js/ui/Dialog.js +20 -0
  153. package/lib/js/ui/Input.d.ts +32 -0
  154. package/lib/js/ui/Input.js +107 -0
  155. package/lib/js/ui/View.d.ts +3 -1
  156. package/lib/js/ui/View.js +6 -0
  157. package/lib/js/utils/objParser.d.ts +44 -12
  158. package/lib/js/utils/objParser.js +241 -149
  159. package/lib/js/utils/shared.d.ts +22 -0
  160. package/lib/js/utils/shared.js +34 -0
  161. package/lib/js/webgl/BaseFramebuffer.d.ts +0 -1
  162. package/lib/js/webgl/Framebuffer.d.ts +35 -8
  163. package/lib/js/webgl/Framebuffer.js +136 -29
  164. package/lib/js/webgl/Handler.d.ts +1 -0
  165. package/lib/js/webgl/Handler.js +11 -1
  166. package/lib/js/webgl/Program.js +0 -8
  167. package/package.json +4 -2
@@ -0,0 +1,106 @@
1
+ import { Entity } from "../../entity/Entity";
2
+ import { Vec3 } from "../../math/Vec3";
3
+ import { SEL_X_COLOR, SEL_Y_COLOR, SEL_Z_COLOR, X_COLOR, Y_COLOR, Z_COLOR } from "./colors";
4
+ import { ArrowEntity } from "./ArrowEntity";
5
+ export class MoveAxisEntity extends Entity {
6
+ constructor(params = {}) {
7
+ super(params);
8
+ this._size = params.size != undefined ? params.size : 1.0;
9
+ this.childEntities = [];
10
+ this._init();
11
+ }
12
+ _init() {
13
+ let arrowX = new ArrowEntity({
14
+ color: X_COLOR,
15
+ yaw: 0,
16
+ pitch: 0,
17
+ roll: 90,
18
+ properties: {
19
+ opName: "move_x",
20
+ noEdit: true,
21
+ style: {
22
+ color: X_COLOR,
23
+ selectColor: SEL_X_COLOR
24
+ }
25
+ }
26
+ });
27
+ let arrowY = new ArrowEntity({
28
+ color: Y_COLOR,
29
+ yaw: 0,
30
+ pitch: 0,
31
+ roll: 0,
32
+ properties: {
33
+ opName: "move_y",
34
+ noEdit: true,
35
+ style: {
36
+ color: Y_COLOR,
37
+ selectColor: SEL_Y_COLOR
38
+ }
39
+ }
40
+ });
41
+ let arrowZ = new ArrowEntity({
42
+ color: Z_COLOR,
43
+ yaw: 0,
44
+ pitch: 90,
45
+ roll: 0,
46
+ properties: {
47
+ opName: "move_z",
48
+ noEdit: true,
49
+ style: {
50
+ color: Z_COLOR,
51
+ selectColor: SEL_Z_COLOR
52
+ }
53
+ }
54
+ });
55
+ this.appendChild(arrowX);
56
+ this.appendChild(arrowY);
57
+ this.appendChild(arrowZ);
58
+ this.setSize(this._size);
59
+ }
60
+ setSize(size) {
61
+ this.childEntities[0].setSize(size);
62
+ this.childEntities[1].setSize(size);
63
+ this.childEntities[2].setSize(size);
64
+ }
65
+ setPitch(a) {
66
+ let line = this.childEntities[0];
67
+ let tip = line.childEntities[0];
68
+ line.setPitch(a);
69
+ tip.setPitch(a);
70
+ line = this.childEntities[1];
71
+ tip = line.childEntities[0];
72
+ line.setPitch(a);
73
+ tip.setPitch(a);
74
+ line = this.childEntities[2];
75
+ tip = line.childEntities[0];
76
+ line.setPitch(a + 90);
77
+ tip.setPitch(a + 90);
78
+ }
79
+ setYaw(a) {
80
+ let line = this.childEntities[0];
81
+ let tip = line.childEntities[0];
82
+ line.setYaw(a);
83
+ tip.setYaw(a);
84
+ line = this.childEntities[1];
85
+ tip = line.childEntities[0];
86
+ line.setYaw(a);
87
+ tip.setYaw(a);
88
+ line = this.childEntities[2];
89
+ tip = line.childEntities[0];
90
+ line.setYaw(a);
91
+ tip.setYaw(a);
92
+ }
93
+ setRoll(a) {
94
+ let line = this.childEntities[0];
95
+ let tip = line.childEntities[0];
96
+ line.setRoll(a + 90);
97
+ tip.setRoll(a + 90);
98
+ line = this.childEntities[1];
99
+ tip = line.childEntities[0];
100
+ line.setRoll(a);
101
+ tip.setRoll(a);
102
+ }
103
+ getY() {
104
+ return this.childEntities[1].getAbsoluteRotation().mulVec3(Vec3.UP).normalize();
105
+ }
106
+ }
@@ -0,0 +1,7 @@
1
+ import { Entity, IEntityParams } from "../../entity/Entity";
2
+ export interface IMovePlaneEntityParams extends IEntityParams {
3
+ }
4
+ export declare class MovePlaneEntity extends Entity {
5
+ constructor(params?: IMovePlaneEntityParams);
6
+ private _init;
7
+ }
@@ -0,0 +1,34 @@
1
+ import { Entity } from "../../entity/Entity";
2
+ import { Object3d } from "../../Object3d";
3
+ import { SEL_XZ_COLOR, XZ_COLOR } from "./colors";
4
+ const planeObj = Object3d.createPlane(1, 1, -0.5, 0, 0.5);
5
+ export class MovePlaneEntity extends Entity {
6
+ constructor(params = {}) {
7
+ super(params);
8
+ this._init();
9
+ }
10
+ _init() {
11
+ let planeXZ = new Entity({
12
+ independentPicking: true,
13
+ scale: 0.025,
14
+ forceGlobalPosition: true,
15
+ geoObject: {
16
+ color: XZ_COLOR,
17
+ tag: "plane",
18
+ object3d: planeObj,
19
+ yaw: 0,
20
+ pitch: 0,
21
+ roll: 0
22
+ },
23
+ properties: {
24
+ opName: "move_xz",
25
+ noEdit: true,
26
+ style: {
27
+ color: XZ_COLOR,
28
+ selectColor: SEL_XZ_COLOR
29
+ }
30
+ }
31
+ });
32
+ this.appendChild(planeXZ);
33
+ }
34
+ }
@@ -0,0 +1,9 @@
1
+ import { Entity, IEntityParams } from "../../entity/Entity";
2
+ import { Vec3 } from "../../math/Vec3";
3
+ export interface IRotationEntityParams extends IEntityParams {
4
+ }
5
+ export declare class RotateEntity extends Entity {
6
+ constructor(params?: IRotationEntityParams);
7
+ private _init;
8
+ setCartesian3v(cart: Vec3, yaw?: number): void;
9
+ }
@@ -0,0 +1,105 @@
1
+ import { Entity } from "../../entity/Entity";
2
+ import { Vec3 } from "../../math/Vec3";
3
+ import { RADIANS } from "../../math";
4
+ import { Quat } from "../../math/Quat";
5
+ import { SEL_X_COLOR, SEL_Y_COLOR, SEL_Z_COLOR, X_COLOR, Y_COLOR, Z_COLOR } from "./colors";
6
+ const SEG_SIZE = 360;
7
+ const VISIBLESPHERE_DOT_THRESHOLD = 0.95;
8
+ const pitchCoords = new Array(SEG_SIZE);
9
+ const yawCoords = new Array(SEG_SIZE);
10
+ const rollCoords = new Array(SEG_SIZE);
11
+ export class RotateEntity extends Entity {
12
+ constructor(params = {}) {
13
+ super(params);
14
+ this._init();
15
+ }
16
+ _init() {
17
+ const length = SEG_SIZE;
18
+ let pitch = new Entity({
19
+ independentPicking: true,
20
+ polyline: {
21
+ path3v: [Array.from({ length }, (_, i) => new Vec3())],
22
+ thickness: 3.1,
23
+ color: X_COLOR,
24
+ isClosed: true
25
+ },
26
+ properties: {
27
+ opName: "rotate_pitch",
28
+ noEdit: true,
29
+ style: {
30
+ color: X_COLOR,
31
+ selectColor: SEL_X_COLOR
32
+ }
33
+ }
34
+ });
35
+ let yaw = new Entity({
36
+ independentPicking: true,
37
+ polyline: {
38
+ path3v: [Array.from({ length }, (_, i) => new Vec3())],
39
+ thickness: 2.5,
40
+ color: Y_COLOR,
41
+ isClosed: true
42
+ },
43
+ properties: {
44
+ opName: "rotate_yaw",
45
+ noEdit: true,
46
+ style: {
47
+ color: Y_COLOR,
48
+ selectColor: SEL_Y_COLOR
49
+ }
50
+ }
51
+ });
52
+ let roll = new Entity({
53
+ independentPicking: true,
54
+ polyline: {
55
+ path3v: [Array.from({ length }, (_, i) => new Vec3())],
56
+ thickness: 2.5,
57
+ color: Z_COLOR,
58
+ isClosed: true
59
+ },
60
+ properties: {
61
+ opName: "rotate_roll",
62
+ noEdit: true,
63
+ style: {
64
+ color: Z_COLOR,
65
+ selectColor: SEL_Z_COLOR
66
+ }
67
+ }
68
+ });
69
+ this.appendChild(pitch);
70
+ this.appendChild(yaw);
71
+ this.appendChild(roll);
72
+ }
73
+ setCartesian3v(cart, yaw = 0) {
74
+ super.setCartesian3v(cart);
75
+ if (this._entityCollection && this._entityCollection.renderNode) {
76
+ let rn = this._entityCollection.renderNode;
77
+ let cam = rn.renderer.activeCamera;
78
+ let qNorthFrame = rn.getFrameRotation(cart).conjugate();
79
+ let r = cam.eye.distance(cart) * 0.15;
80
+ let qp = Quat.xRotation(0);
81
+ let qy = Quat.yRotation(yaw * RADIANS);
82
+ let qr = Quat.zRotation(0);
83
+ let qRot = qr.mul(qp).mul(qy).mul(rn.getFrameRotation(cart)).conjugate();
84
+ for (let i = 0, j = 0, step = 360 / SEG_SIZE; i < SEG_SIZE; i += step, j++) {
85
+ let a = i * RADIANS, cos_a = Math.cos(a), sin_a = Math.sin(a);
86
+ let pitch_p = qRot.mulVec3(new Vec3(0, sin_a, cos_a)).normalize().scale(r).add(cart);
87
+ let yaw_p = qNorthFrame.mulVec3(new Vec3(cos_a, 0, sin_a)).normalize().scale(r).add(cart);
88
+ let roll_p = qRot.mulVec3(new Vec3(cos_a, sin_a, 0)).normalize().scale(r).add(cart);
89
+ pitchCoords[j] = pitch_p;
90
+ yawCoords[j] = yaw_p;
91
+ rollCoords[j] = roll_p;
92
+ }
93
+ this.childEntities[0].polyline.setPath3v([pitchCoords], undefined, true);
94
+ this.childEntities[1].polyline.setPath3v([yawCoords], undefined, true);
95
+ this.childEntities[2].polyline.setPath3v([rollCoords], undefined, true);
96
+ // Gets whole circle visibility
97
+ let dir_pitch = qRot.mulVec3(new Vec3(1, 0, 0)).normalize();
98
+ let dir_yaw = qNorthFrame.mulVec3(new Vec3(0, 1, 0)).normalize();
99
+ let dir_roll = qRot.mulVec3(new Vec3(0, 0, 1)).normalize();
100
+ this.childEntities[0].polyline.setVisibleSphere(cart, Math.abs(dir_pitch.dot(cam.getForward())) > VISIBLESPHERE_DOT_THRESHOLD ? 0.0 : r);
101
+ this.childEntities[1].polyline.setVisibleSphere(cart, Math.abs(dir_yaw.dot(cam.getForward())) > VISIBLESPHERE_DOT_THRESHOLD ? 0.0 : r);
102
+ this.childEntities[2].polyline.setVisibleSphere(cart, Math.abs(dir_roll.dot(cam.getForward())) > VISIBLESPHERE_DOT_THRESHOLD ? 0.0 : r);
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,8 @@
1
+ export declare const X_COLOR = "rgb(253,77,77)";
2
+ export declare const SEL_X_COLOR = "rgb(248,115,115)";
3
+ export declare const Y_COLOR = "rgb(73,73,239)";
4
+ export declare const SEL_Y_COLOR = "rgb(90,90,253)";
5
+ export declare const Z_COLOR = "rgb(26,122,26)";
6
+ export declare const SEL_Z_COLOR = "rgb(55,191,55)";
7
+ export declare const XZ_COLOR = "rgba(255,255,255,0.8)";
8
+ export declare const SEL_XZ_COLOR = "rgba(255,255,255,1.0)";
@@ -0,0 +1,8 @@
1
+ export const X_COLOR = "rgb(253,77,77)";
2
+ export const SEL_X_COLOR = "rgb(248,115,115)";
3
+ export const Y_COLOR = "rgb(73,73,239)";
4
+ export const SEL_Y_COLOR = "rgb(90,90,253)";
5
+ export const Z_COLOR = "rgb(26,122,26)";
6
+ export const SEL_Z_COLOR = "rgb(55,191,55)";
7
+ export const XZ_COLOR = "rgba(255,255,255,0.8)";
8
+ export const SEL_XZ_COLOR = "rgba(255,255,255,1.0)";
@@ -27,3 +27,5 @@ export * from "./selection/Selection";
27
27
  export * from "./timeline/TimelineControl";
28
28
  export * from "./elevationProfile/ElevationProfileControl";
29
29
  export * from "./AtmosphereConfig";
30
+ export * from "./geoObjectEditor/GeoObjectEditor";
31
+ export * from "./CameraLock";
@@ -27,3 +27,5 @@ export * from "./selection/Selection";
27
27
  export * from "./timeline/TimelineControl";
28
28
  export * from "./elevationProfile/ElevationProfileControl";
29
29
  export * from "./AtmosphereConfig";
30
+ export * from "./geoObjectEditor/GeoObjectEditor";
31
+ export * from "./CameraLock";
@@ -63,12 +63,14 @@ class TimelineControl extends Control {
63
63
  this.renderer && this.renderer.handler.defaultClock.setDate(d);
64
64
  });
65
65
  this._timelineView.events.on("startdrag", () => {
66
+ this.planet?.sun.stop();
66
67
  this.renderer && this.renderer.controls.mouseNavigation.deactivate();
67
68
  });
68
69
  this._timelineView.events.on("stopdrag", () => {
69
70
  this.renderer && this.renderer.controls.mouseNavigation.activate();
70
71
  });
71
72
  this._timelineView.events.on("startdragcurrent", () => {
73
+ this.planet?.sun.stop();
72
74
  this.renderer && this.renderer.controls.mouseNavigation.deactivate();
73
75
  });
74
76
  this._timelineView.events.on("stopdragcurrent", () => {