@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
|
@@ -24,11 +24,7 @@ interface ITouchNavigationParams extends IControlParams {
|
|
|
24
24
|
*/
|
|
25
25
|
jerkLimit?: number;
|
|
26
26
|
}
|
|
27
|
-
export type TouchNavigationEventsList = [
|
|
28
|
-
"inertiamove",
|
|
29
|
-
"drag",
|
|
30
|
-
"doubletapzoom"
|
|
31
|
-
];
|
|
27
|
+
export type TouchNavigationEventsList = ["inertiamove", "drag", "doubletapzoom"];
|
|
32
28
|
declare class TouchExt {
|
|
33
29
|
x: number;
|
|
34
30
|
y: number;
|
|
@@ -52,9 +48,9 @@ declare class TouchExt {
|
|
|
52
48
|
* @param {number} [options.inertia] - inertia factor. Default is 0.007
|
|
53
49
|
* @param {number} [options.minSlope] - minimal slope for vertical camera movement. Default is 0.1
|
|
54
50
|
* @param {number} [options.jerkLimit] - limit for touch jerk speed to prevent unexpected camera movement. Default is 0.08
|
|
55
|
-
* @fires
|
|
56
|
-
* @fires
|
|
57
|
-
* @fires
|
|
51
|
+
* @fires inertiamove
|
|
52
|
+
* @fires drag
|
|
53
|
+
* @fires doubletapzoom
|
|
58
54
|
*/
|
|
59
55
|
export declare class TouchNavigation extends Control {
|
|
60
56
|
grabbedPoint: Vec3;
|
|
@@ -27,8 +27,10 @@ export declare class Atmosphere extends Control {
|
|
|
27
27
|
_scatteringBuffer: Framebuffer | null;
|
|
28
28
|
opacity: number;
|
|
29
29
|
protected _parameters: AtmosphereParameters;
|
|
30
|
+
protected _isReady: boolean;
|
|
30
31
|
constructor(options?: IAtmosphereParams);
|
|
31
32
|
setParameters(parameters: AtmosphereParameters): void;
|
|
33
|
+
get isReady(): boolean;
|
|
32
34
|
get parameters(): AtmosphereParameters;
|
|
33
35
|
initPlanetAtmosphereShader(): void;
|
|
34
36
|
oninit(): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Control, type IControlParams } from "../Control";
|
|
2
|
-
import { Dialog } from
|
|
2
|
+
import { Dialog } from "../../ui/Dialog";
|
|
3
3
|
import { Slider } from "../../ui/Slider";
|
|
4
4
|
import { ToggleButton } from "../../ui/ToggleButton";
|
|
5
|
-
import { View } from
|
|
5
|
+
import { View } from "../../ui/View";
|
|
6
6
|
import type { AtmosphereParameters } from "../../shaders/atmos/atmos";
|
|
7
7
|
interface IAtmosphereConfigParams extends IControlParams {
|
|
8
8
|
}
|
|
@@ -13,8 +13,6 @@ export declare class AtmosphereConfig extends Control {
|
|
|
13
13
|
protected _toggleBtn: ToggleButton;
|
|
14
14
|
protected _dialog: Dialog<null>;
|
|
15
15
|
protected _panel: View<null>;
|
|
16
|
-
$maxOpacity: HTMLElement | null;
|
|
17
|
-
$minOpacity: HTMLElement | null;
|
|
18
16
|
$rayleight: HTMLElement | null;
|
|
19
17
|
$mie: HTMLElement | null;
|
|
20
18
|
$height: HTMLElement | null;
|
|
@@ -32,8 +30,6 @@ export declare class AtmosphereConfig extends Control {
|
|
|
32
30
|
$groundAlbedo: HTMLElement | null;
|
|
33
31
|
$ozoneDensityHeight: HTMLElement | null;
|
|
34
32
|
$ozoneDensityWide: HTMLElement | null;
|
|
35
|
-
protected _maxOpacity: Slider;
|
|
36
|
-
protected _minOpacity: Slider;
|
|
37
33
|
protected _rayleight: Slider;
|
|
38
34
|
protected _mie: Slider;
|
|
39
35
|
protected _height: Slider;
|
|
@@ -5,24 +5,38 @@ import { Framebuffer } from "../../webgl";
|
|
|
5
5
|
import { Control, IControlParams } from "../Control";
|
|
6
6
|
import { Vec3 } from "../../math/Vec3";
|
|
7
7
|
import { LonLat } from "../../LonLat";
|
|
8
|
-
import {
|
|
8
|
+
import { Vector } from "../../layer/Vector";
|
|
9
|
+
import { Entity } from "../../entity/Entity";
|
|
9
10
|
import { QuadTreeStrategy } from "../../quadTree";
|
|
11
|
+
interface IPerimeterSegmentsData {
|
|
12
|
+
segments: LonLat[][];
|
|
13
|
+
isClosed: boolean;
|
|
14
|
+
}
|
|
10
15
|
export interface ICameraDepthHandlerParams extends IControlParams {
|
|
16
|
+
showFrustum?: boolean;
|
|
17
|
+
showFootprint?: boolean;
|
|
11
18
|
}
|
|
12
19
|
export declare class CameraDepthHandler extends Control {
|
|
13
20
|
protected _frameHandler: CameraFrameHandler | null;
|
|
14
21
|
protected _frameComposer: CameraFrameComposer;
|
|
15
|
-
readonly
|
|
22
|
+
readonly cameraFootprintLayer: Vector;
|
|
23
|
+
protected readonly _cameraFootprintEntity: Entity;
|
|
24
|
+
protected _cameraFootprintSegmentPointCounts: number[] | null;
|
|
25
|
+
protected _cameraFootprintClosedState: boolean | null;
|
|
16
26
|
protected _quadTreeStrategy: QuadTreeStrategy | null;
|
|
17
|
-
protected
|
|
27
|
+
protected _showFrustum: boolean;
|
|
28
|
+
protected _showFootprint: boolean;
|
|
18
29
|
constructor(params: ICameraDepthHandlerParams);
|
|
19
30
|
protected _createCamera(): Camera;
|
|
20
31
|
get camera(): Camera | undefined;
|
|
21
32
|
oninit(): void;
|
|
22
33
|
get framebuffer(): Framebuffer | undefined;
|
|
23
34
|
protected _depthHandlerCallback: (frameHandler: CameraFrameHandler) => void;
|
|
35
|
+
protected _renderFootprint(frameHandler: CameraFrameHandler): void;
|
|
36
|
+
protected _collectPerimeterLonLats(width: number, height: number): IPerimeterSegmentsData;
|
|
24
37
|
getCartesianFromPixelTerrain(x: number, y: number): Vec3 | undefined;
|
|
25
38
|
getLonLatFromPixelTerrain(x: number, y: number): LonLat | undefined;
|
|
26
39
|
activate(): void;
|
|
27
40
|
deactivate(): void;
|
|
28
41
|
}
|
|
42
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function camera_depth():
|
|
1
|
+
import { ShaderProgram } from "../../webgl";
|
|
2
|
+
export declare function camera_depth(): ShaderProgram;
|
|
@@ -9,6 +9,7 @@ declare class LineStringDrawingScene extends PolygonDrawingScene {
|
|
|
9
9
|
protected _clearGhostPointer(): void;
|
|
10
10
|
protected _moveCorner(indexCurrent: number, indexPrev: number, indexCenter: number): void;
|
|
11
11
|
protected _moveCornerPoint(e: Vec2): void;
|
|
12
|
+
clear(): void;
|
|
12
13
|
_updateGhostOutlinePointer(groundPos: Vec3): void;
|
|
13
14
|
protected _initGhostLayerPointer(): void;
|
|
14
15
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type EventsHandler } from
|
|
2
|
-
import type { CoordinatesType, IGeometryStyle } from "../../entity/Geometry";
|
|
3
|
-
import type { IGeoObjectParams } from "../../entity/GeoObject";
|
|
4
|
-
import type { IPolylineParams } from "../../entity/Polyline";
|
|
5
|
-
import { Entity } from
|
|
1
|
+
import { type EventsHandler } from "../../Events";
|
|
2
|
+
import type { CoordinatesType, IGeometryStyle } from "../../entity/geometry/Geometry";
|
|
3
|
+
import type { IGeoObjectParams } from "../../entity/geoObject/GeoObject";
|
|
4
|
+
import type { IPolylineParams } from "../../entity/polyline/Polyline";
|
|
5
|
+
import { Entity } from "../../entity/Entity";
|
|
6
6
|
import type { IMouseState } from "../../renderer/RendererEvents";
|
|
7
|
-
import { Planet } from
|
|
8
|
-
import {
|
|
9
|
-
import { Vec2 } from
|
|
10
|
-
import { Vec3 } from
|
|
11
|
-
import { Vector } from
|
|
7
|
+
import { Planet } from "../../scene/Planet";
|
|
8
|
+
import { Scene } from "../../scene/Scene";
|
|
9
|
+
import { Vec2 } from "../../math/Vec2";
|
|
10
|
+
import { Vec3 } from "../../math/Vec3";
|
|
11
|
+
import { Vector } from "../../layer/Vector";
|
|
12
12
|
type PolygonDrawingSceneEventsList = ["change", "startpoint"];
|
|
13
13
|
export interface IPolygonDrawingSceneParams {
|
|
14
14
|
coordinates?: CoordinatesType[];
|
|
@@ -18,9 +18,9 @@ export interface IPolygonDrawingSceneParams {
|
|
|
18
18
|
fillStyle?: IGeometryStyle;
|
|
19
19
|
name: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const NUM_SEGMENTS =
|
|
22
|
-
export declare const OUTLINE_ALT = 0
|
|
23
|
-
declare class PolygonDrawingScene extends
|
|
21
|
+
export declare const NUM_SEGMENTS = 300;
|
|
22
|
+
export declare const OUTLINE_ALT = 0;
|
|
23
|
+
declare class PolygonDrawingScene extends Scene {
|
|
24
24
|
events: EventsHandler<PolygonDrawingSceneEventsList>;
|
|
25
25
|
_planet: Planet | null;
|
|
26
26
|
_cornerStyle: IGeoObjectParams;
|
|
@@ -72,7 +72,7 @@ declare class PolygonDrawingScene extends RenderNode {
|
|
|
72
72
|
protected _drawCorners(): void;
|
|
73
73
|
protected _drawCenters(): void;
|
|
74
74
|
protected _drawGhostCorner(): void;
|
|
75
|
-
|
|
75
|
+
protected _onForwardpass: () => void;
|
|
76
76
|
protected _checkTerrainCollision(entity: Entity): void;
|
|
77
77
|
protected _moveCenterPoint(): void;
|
|
78
78
|
protected _addNew(cart: Vec3): void;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { type EventsHandler } from
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
|
+
import { type EventsHandler } from "../../Events";
|
|
3
3
|
import { LonLat } from "../../LonLat";
|
|
4
4
|
import { Planet } from "../../scene/Planet";
|
|
5
|
-
import {
|
|
6
|
-
import { Vector } from
|
|
7
|
-
import { Vec2 } from
|
|
8
|
-
import { Vec3 } from
|
|
5
|
+
import { Scene } from "../../scene/Scene";
|
|
6
|
+
import { Vector } from "../../layer/Vector";
|
|
7
|
+
import { Vec2 } from "../../math/Vec2";
|
|
8
|
+
import { Vec3 } from "../../math/Vec3";
|
|
9
9
|
import type { IMouseState } from "../../renderer/RendererEvents";
|
|
10
10
|
import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
|
|
11
11
|
export interface IElevationProfileSceneParams {
|
|
12
12
|
name?: string;
|
|
13
13
|
planet?: Planet;
|
|
14
14
|
}
|
|
15
|
-
declare class ElevationProfileScene extends
|
|
15
|
+
declare class ElevationProfileScene extends Scene {
|
|
16
16
|
events: EventsHandler<ElevationProfileSceneEventsList>;
|
|
17
17
|
protected _planet: Planet | null;
|
|
18
18
|
protected _trackLayer: Vector;
|
|
@@ -70,11 +70,8 @@ declare class ElevationProfileScene extends RenderNode {
|
|
|
70
70
|
setPointerVisibility(visibility: boolean): void;
|
|
71
71
|
setVisibility(visibility: boolean): void;
|
|
72
72
|
clear(): void;
|
|
73
|
-
|
|
73
|
+
protected _onForwardpass: () => void;
|
|
74
74
|
get ellipsoid(): Ellipsoid | null;
|
|
75
75
|
}
|
|
76
|
-
type ElevationProfileSceneEventsList = [
|
|
77
|
-
"change",
|
|
78
|
-
"addpoint"
|
|
79
|
-
];
|
|
76
|
+
type ElevationProfileSceneEventsList = ["change", "addpoint"];
|
|
80
77
|
export { ElevationProfileScene };
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import type { EventsHandler } from "../../Events";
|
|
2
|
-
import { View } from
|
|
3
|
-
import type { IViewParams, ViewEventsList } from
|
|
4
|
-
import { ElevationProfile } from
|
|
5
|
-
import type { GroundItem, TrackItem } from
|
|
2
|
+
import { View } from "../../ui/View";
|
|
3
|
+
import type { IViewParams, ViewEventsList } from "../../ui/View";
|
|
4
|
+
import { ElevationProfile } from "./ElevationProfile";
|
|
5
|
+
import type { GroundItem, TrackItem } from "./ElevationProfile";
|
|
6
6
|
import type { MouseEventExt } from "../../input/MouseHandler";
|
|
7
7
|
interface IElevationProfileViewParams extends IViewParams {
|
|
8
8
|
fillStyle?: string;
|
|
9
9
|
}
|
|
10
|
-
type ElevationProfileViewEventsList = [
|
|
10
|
+
type ElevationProfileViewEventsList = [
|
|
11
|
+
"startdrag",
|
|
12
|
+
"stopdrag",
|
|
13
|
+
"pointer",
|
|
14
|
+
"mouseenter",
|
|
15
|
+
"mouseleave",
|
|
16
|
+
"dblclick",
|
|
17
|
+
"tracklength",
|
|
18
|
+
"groundlength",
|
|
19
|
+
"warninglength",
|
|
20
|
+
"collisionlength"
|
|
21
|
+
];
|
|
11
22
|
declare class ElevationProfileView extends View<ElevationProfile> {
|
|
12
23
|
events: EventsHandler<ElevationProfileViewEventsList> & EventsHandler<ViewEventsList>;
|
|
13
24
|
fillStyle: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Control, type IControlParams } from "../Control";
|
|
2
|
+
import { EntityEditorScene } from "./EntityEditorScene";
|
|
3
|
+
import { EntityEditorDialog } from "./EntityEditorDialog";
|
|
4
|
+
import { Entity } from "../../entity/Entity";
|
|
5
|
+
import { Dialog } from "../../ui";
|
|
6
|
+
export interface IEntityEditorParams extends IControlParams {
|
|
7
|
+
}
|
|
8
|
+
export declare class EntityEditor extends Control {
|
|
9
|
+
protected _entityEditorScene: EntityEditorScene;
|
|
10
|
+
protected _dialog: EntityEditorDialog;
|
|
11
|
+
constructor(options?: IEntityEditorParams);
|
|
12
|
+
oninit(): void;
|
|
13
|
+
onactivate(): void;
|
|
14
|
+
ondeactivate(): void;
|
|
15
|
+
selectEntity(entity: Entity): void;
|
|
16
|
+
positionDialogLeftOf(anchor: Dialog<unknown>): void;
|
|
17
|
+
unselectEntity(): void;
|
|
18
|
+
getSelectedEntity(): Entity | null;
|
|
19
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Dialog, type IDialogParams } from "../../ui/Dialog";
|
|
2
|
-
import {
|
|
2
|
+
import { EntityEditorScene } from "./EntityEditorScene";
|
|
3
3
|
import { Entity } from "../../entity/Entity";
|
|
4
4
|
import { Input } from "../../ui/Input";
|
|
5
5
|
import { Checkbox } from "../../ui/Checkbox";
|
|
6
|
-
import { Button } from "../../ui/Button";
|
|
7
6
|
import { Vec3 } from "../../math/Vec3";
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { Slider } from "../../ui/Slider";
|
|
8
|
+
interface IEntityEditorDialog extends IDialogParams {
|
|
9
|
+
model: EntityEditorScene;
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class EntityEditorDialog extends Dialog<EntityEditorScene> {
|
|
12
12
|
protected _relativePositionView: Checkbox;
|
|
13
13
|
protected _lonView: Input;
|
|
14
14
|
protected _latView: Input;
|
|
@@ -29,8 +29,8 @@ export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorSce
|
|
|
29
29
|
protected _scaleXView: Input;
|
|
30
30
|
protected _scaleYView: Input;
|
|
31
31
|
protected _scaleZView: Input;
|
|
32
|
-
protected
|
|
33
|
-
constructor(params:
|
|
32
|
+
protected _opacityView: Slider;
|
|
33
|
+
constructor(params: IEntityEditorDialog);
|
|
34
34
|
render(params: any): this;
|
|
35
35
|
protected _onVisibility: (vis: boolean) => void;
|
|
36
36
|
remove(): void;
|
|
@@ -38,6 +38,7 @@ export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorSce
|
|
|
38
38
|
protected _clearSceneEvents(): void;
|
|
39
39
|
protected _onSelect: (entity: Entity) => void;
|
|
40
40
|
protected _refresh(entity: Entity): void;
|
|
41
|
+
protected _setDialogTitle(entity: Entity): void;
|
|
41
42
|
hide(): void;
|
|
42
43
|
protected _onUnselect: (entity: Entity) => void;
|
|
43
44
|
protected _onChangeRelativePosition: (checked: boolean) => void;
|
|
@@ -64,6 +65,6 @@ export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorSce
|
|
|
64
65
|
protected _onChangeScaleX: (val: string) => void;
|
|
65
66
|
protected _onChangeScaleY: (val: string) => void;
|
|
66
67
|
protected _onChangeScaleZ: (val: string) => void;
|
|
67
|
-
protected
|
|
68
|
+
protected _onChangeOpacity: (val: number) => void;
|
|
68
69
|
}
|
|
69
70
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type EventsHandler } from
|
|
1
|
+
import { type EventsHandler } from "../../Events";
|
|
2
2
|
import { Planet } from "../../scene/Planet";
|
|
3
|
-
import {
|
|
4
|
-
import { Vec2 } from
|
|
5
|
-
import { Vec3 } from
|
|
6
|
-
import { Quat } from
|
|
3
|
+
import { Scene } from "../../scene/Scene";
|
|
4
|
+
import { Vec2 } from "../../math/Vec2";
|
|
5
|
+
import { Vec3 } from "../../math/Vec3";
|
|
6
|
+
import { Quat } from "../../math/Quat";
|
|
7
7
|
import type { IMouseState } from "../../renderer/RendererEvents";
|
|
8
8
|
import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
|
|
9
9
|
import { Entity } from "../../entity/Entity";
|
|
@@ -12,11 +12,11 @@ import { MovePlaneEntity } from "./MovePlaneEntity";
|
|
|
12
12
|
import { RotateEntity } from "./RotateEntity";
|
|
13
13
|
import { AxisTrackEntity } from "./AxisTrackEntity";
|
|
14
14
|
import { EntityCollection } from "../../entity/EntityCollection";
|
|
15
|
-
export interface
|
|
15
|
+
export interface IEntityEditorSceneParams {
|
|
16
16
|
planet?: Planet;
|
|
17
17
|
name?: string;
|
|
18
18
|
}
|
|
19
|
-
type
|
|
19
|
+
type EntityEditorSceneEventsList = [
|
|
20
20
|
"mousemove",
|
|
21
21
|
"mouseenter",
|
|
22
22
|
"mouseleave",
|
|
@@ -51,8 +51,8 @@ type GeoObjectSceneEventsList = [
|
|
|
51
51
|
"roll",
|
|
52
52
|
"scale"
|
|
53
53
|
];
|
|
54
|
-
declare class
|
|
55
|
-
events: EventsHandler<
|
|
54
|
+
declare class EntityEditorScene extends Scene {
|
|
55
|
+
events: EventsHandler<EntityEditorSceneEventsList>;
|
|
56
56
|
protected _planet: Planet | null;
|
|
57
57
|
protected _startPos: Vec2 | null;
|
|
58
58
|
protected _startClick: Vec2;
|
|
@@ -73,7 +73,7 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
73
73
|
protected _selectedMove: string | null;
|
|
74
74
|
protected _ops: Record<string, (mouseState: IMouseState) => void>;
|
|
75
75
|
protected _axisTrackVisibility: boolean;
|
|
76
|
-
constructor(options?:
|
|
76
|
+
constructor(options?: IEntityEditorSceneParams);
|
|
77
77
|
get ellipsoid(): Ellipsoid | undefined;
|
|
78
78
|
get planet(): Planet | null;
|
|
79
79
|
bindPlanet(planet: Planet): void;
|
|
@@ -105,7 +105,7 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
105
105
|
unselect(): void;
|
|
106
106
|
protected _onLclick: (e: IMouseState) => void;
|
|
107
107
|
clear(): void;
|
|
108
|
-
|
|
108
|
+
protected _onForwardpass: () => void;
|
|
109
109
|
protected _moveX: (e: IMouseState) => void;
|
|
110
110
|
protected _moveY: (e: IMouseState) => void;
|
|
111
111
|
protected _moveZ: (e: IMouseState) => void;
|
|
@@ -124,4 +124,4 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
124
124
|
lockView(): void;
|
|
125
125
|
unlockView(): void;
|
|
126
126
|
}
|
|
127
|
-
export {
|
|
127
|
+
export { EntityEditorScene };
|
|
@@ -4,5 +4,5 @@ export declare const Y_COLOR = "rgb(73,73,239)";
|
|
|
4
4
|
export declare const SEL_Y_COLOR = "rgb(90,90,253)";
|
|
5
5
|
export declare const Z_COLOR = "rgb(26,122,26)";
|
|
6
6
|
export declare const SEL_Z_COLOR = "rgb(55,191,55)";
|
|
7
|
-
export declare const XZ_COLOR = "rgba(255,
|
|
8
|
-
export declare const SEL_XZ_COLOR = "rgba(255,
|
|
7
|
+
export declare const XZ_COLOR = "rgba(255,165,0,0.2)";
|
|
8
|
+
export declare const SEL_XZ_COLOR = "rgba(255,165,0,1)";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Control } from "../Control";
|
|
2
|
+
import type { IControlParams } from "../Control";
|
|
3
|
+
import { Dialog } from "../../ui/Dialog";
|
|
4
|
+
import { Entity } from "../../entity/Entity";
|
|
5
|
+
import { ToggleButton } from "../../ui/ToggleButton";
|
|
6
|
+
import { View } from "../../ui/View";
|
|
7
|
+
import { EntityTreeView } from "./EntityTreeView";
|
|
8
|
+
import { EntityEditor } from "../entityEditor/EntityEditor";
|
|
9
|
+
export interface IEntityTreeParams extends IControlParams {
|
|
10
|
+
entities?: Entity[];
|
|
11
|
+
title?: string;
|
|
12
|
+
top?: number;
|
|
13
|
+
right?: number;
|
|
14
|
+
width?: number;
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
expandedByDefault?: boolean;
|
|
17
|
+
entityEditor?: EntityEditor;
|
|
18
|
+
}
|
|
19
|
+
export declare class EntityTree extends Control {
|
|
20
|
+
protected _dialog: Dialog<null>;
|
|
21
|
+
protected _toggleBtn: ToggleButton;
|
|
22
|
+
protected _panel: View<null>;
|
|
23
|
+
protected _treeView: EntityTreeView | null;
|
|
24
|
+
protected _entities: Entity[];
|
|
25
|
+
protected _expandedEntityIds: Set<number>;
|
|
26
|
+
protected _expandedByDefault: boolean;
|
|
27
|
+
protected _$tree: HTMLElement | null;
|
|
28
|
+
protected _entityEditor: EntityEditor | null;
|
|
29
|
+
constructor(options?: IEntityTreeParams);
|
|
30
|
+
oninit(): void;
|
|
31
|
+
onremove(): void;
|
|
32
|
+
onactivate(): void;
|
|
33
|
+
ondeactivate(): void;
|
|
34
|
+
setEntity(entity: Entity | null): void;
|
|
35
|
+
setEntities(entities: Entity[]): void;
|
|
36
|
+
addEntity(entity: Entity): void;
|
|
37
|
+
removeEntity(entity: Entity): void;
|
|
38
|
+
protected _containsEntity(entities: Entity[], target: Entity): boolean;
|
|
39
|
+
protected _collectEntityIds(entity: Entity, result: Set<number>): void;
|
|
40
|
+
protected _onDialogVisibility: (isVisible: boolean) => void;
|
|
41
|
+
protected _onToggleButtonChange: (isActive: boolean) => void;
|
|
42
|
+
protected _onEntitySelect: (entity: Entity) => void;
|
|
43
|
+
protected _resolveEntityEditor(): void;
|
|
44
|
+
protected _clearTreeView(): void;
|
|
45
|
+
protected _renderEntityTree(): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type EventsHandler } from "../../Events";
|
|
2
|
+
import type { Entity } from "../../entity/Entity";
|
|
3
|
+
import { View, type IViewParams, type ViewEventsList } from "../../ui/View";
|
|
4
|
+
type EntityTreeViewEvents = ["select"];
|
|
5
|
+
export interface IEntityTreeViewParams extends IViewParams {
|
|
6
|
+
model: Entity[];
|
|
7
|
+
expandedByDefault?: boolean;
|
|
8
|
+
expandedEntityIds?: Set<number>;
|
|
9
|
+
}
|
|
10
|
+
type EntityTreeViewEventsExt = EventsHandler<EntityTreeViewEvents> & EventsHandler<ViewEventsList>;
|
|
11
|
+
export declare class EntityTreeView extends View<Entity[]> {
|
|
12
|
+
events: EntityTreeViewEventsExt;
|
|
13
|
+
protected _expandedByDefault: boolean;
|
|
14
|
+
protected _expandedEntityIds: Set<number>;
|
|
15
|
+
constructor(params: IEntityTreeViewParams);
|
|
16
|
+
render(params?: any): this;
|
|
17
|
+
setEntities(entities: Entity[]): void;
|
|
18
|
+
protected _renderTree(): void;
|
|
19
|
+
protected _renderEntities(entities: Entity[], parentNode: HTMLElement): void;
|
|
20
|
+
protected _createEntityNode(entity: Entity): HTMLElement;
|
|
21
|
+
protected _getToggleText(isExpanded: boolean): string;
|
|
22
|
+
protected _getEntityTypes(entity: Entity): string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity } from
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
2
|
import { LonLat } from "../../LonLat";
|
|
3
3
|
import { RulerScene, type IRulerSceneParams } from "../ruler/RulerScene";
|
|
4
4
|
import { Vector } from "../../layer/Vector";
|
|
@@ -30,6 +30,7 @@ declare class HeightRulerScene extends RulerScene {
|
|
|
30
30
|
clear(): void;
|
|
31
31
|
_createCorners(): void;
|
|
32
32
|
init(): void;
|
|
33
|
-
|
|
33
|
+
onremove(): void;
|
|
34
|
+
protected _onForwardpassHeight: () => void;
|
|
34
35
|
}
|
|
35
36
|
export { HeightRulerScene };
|
package/lib/control/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export * from "./KeyboardNavigation";
|
|
|
8
8
|
export * from "./LayerAnimation";
|
|
9
9
|
export * from "./LayerSwitcher";
|
|
10
10
|
export * from "./Lighting";
|
|
11
|
-
export * from "./OldMouseNavigation";
|
|
12
11
|
export * from "./Navigation";
|
|
12
|
+
export * from "./OrthoSwitcher";
|
|
13
13
|
export * from "./RulerSwitcher";
|
|
14
14
|
export * from "./ScaleControl";
|
|
15
15
|
export * from "./ShowFps";
|
|
@@ -18,7 +18,6 @@ export * from "./SimpleSkyBackground";
|
|
|
18
18
|
export * from "./Sun";
|
|
19
19
|
export * from "./ToggleWireframe";
|
|
20
20
|
export * from "./TouchNavigation";
|
|
21
|
-
export * from "./ZoomControl";
|
|
22
21
|
export * from "./drawing/DrawingControl";
|
|
23
22
|
export * from "./heightRuler/HeightRuler";
|
|
24
23
|
export * from "./ruler/Ruler";
|
|
@@ -26,10 +25,13 @@ export * from "./selection/Selection";
|
|
|
26
25
|
export * from "./timeline/TimelineControl";
|
|
27
26
|
export * from "./elevationProfile/ElevationProfileControl";
|
|
28
27
|
export * from "./atmosphere/AtmosphereConfig";
|
|
29
|
-
export * from "./
|
|
28
|
+
export * from "./entityEditor/EntityEditor";
|
|
30
29
|
export * from "./CameraLock";
|
|
31
30
|
export * from "./object3dManager/Object3dManager";
|
|
32
31
|
export * from "./CameraFrameComposer";
|
|
33
32
|
export * from "./CameraFrameHandler";
|
|
34
33
|
export * from "./cameraDepthHandler/CameraDepthHandler";
|
|
35
34
|
export * from "./FramebufferPreview";
|
|
35
|
+
export * from "./SimpleTouchNavigation";
|
|
36
|
+
export * from "./entityTree/EntityTree";
|
|
37
|
+
export * from "./entityTree/EntityTreeView";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import type { EventsHandler } from
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
|
+
import type { EventsHandler } from "../../Events";
|
|
3
3
|
import { LonLat } from "../../LonLat";
|
|
4
4
|
import { Planet } from "../../scene/Planet";
|
|
5
|
-
import {
|
|
6
|
-
import { Vector } from
|
|
7
|
-
import { Vec2 } from
|
|
8
|
-
import { Vec3 } from
|
|
5
|
+
import { Scene } from "../../scene/Scene";
|
|
6
|
+
import { Vector } from "../../layer/Vector";
|
|
7
|
+
import { Vec2 } from "../../math/Vec2";
|
|
8
|
+
import { Vec3 } from "../../math/Vec3";
|
|
9
9
|
import type { IMouseState } from "../../renderer/RendererEvents";
|
|
10
10
|
import { Ellipsoid } from "../../ellipsoid/Ellipsoid";
|
|
11
11
|
export interface IRulerSceneParams {
|
|
@@ -43,7 +43,7 @@ type RulerSceneEventsList = [
|
|
|
43
43
|
"touchleave",
|
|
44
44
|
"touchenter"
|
|
45
45
|
];
|
|
46
|
-
declare class RulerScene extends
|
|
46
|
+
declare class RulerScene extends Scene {
|
|
47
47
|
events: EventsHandler<RulerSceneEventsList>;
|
|
48
48
|
protected _ignoreTerrain: boolean;
|
|
49
49
|
protected _planet: Planet | null;
|
|
@@ -82,7 +82,7 @@ declare class RulerScene extends RenderNode {
|
|
|
82
82
|
protected _onMouseMove: (e: IMouseState) => void;
|
|
83
83
|
clear(): void;
|
|
84
84
|
isCornersPositionChanged(): boolean;
|
|
85
|
-
|
|
85
|
+
protected _onForwardpass(): void;
|
|
86
86
|
get ellipsoid(): Ellipsoid | null;
|
|
87
87
|
}
|
|
88
88
|
export { RulerScene };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Entity } from
|
|
2
|
-
import { Events } from
|
|
3
|
-
import { Vector } from
|
|
4
|
-
import {
|
|
5
|
-
declare class SelectionScene extends
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
|
+
import { Events } from "../../Events";
|
|
3
|
+
import { Vector } from "../../layer/Vector";
|
|
4
|
+
import { Scene } from "../../scene/Scene";
|
|
5
|
+
declare class SelectionScene extends Scene {
|
|
6
6
|
events: Events<string[]>;
|
|
7
7
|
_ignoreTerrain: boolean;
|
|
8
8
|
_onSelect: any;
|
|
@@ -38,7 +38,7 @@ declare class SelectionScene extends RenderNode {
|
|
|
38
38
|
_drawLine(startLonLat: any, endLonLat: any, startPos?: any): void;
|
|
39
39
|
_onMouseMove(e: any): void;
|
|
40
40
|
clear(): void;
|
|
41
|
-
|
|
41
|
+
protected _onForwardpass: () => void;
|
|
42
42
|
get ellipsoid(): any;
|
|
43
43
|
}
|
|
44
44
|
export { SelectionScene };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dialog } from "../../ui/Dialog";
|
|
2
2
|
import { ToggleButton } from "../../ui/ToggleButton";
|
|
3
|
-
import { Control, type IControlParams } from
|
|
4
|
-
import { TimelineView } from
|
|
3
|
+
import { Control, type IControlParams } from "../Control";
|
|
4
|
+
import { TimelineView } from "./TimelineView";
|
|
5
5
|
interface ITimelineControlParams extends IControlParams {
|
|
6
6
|
name?: string;
|
|
7
7
|
current?: Date;
|