@openglobus/og 0.28.7 → 1.0.0-rc10
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 +33 -18
- package/lib/Deferred.d.ts +2 -2
- package/lib/Events.d.ts +1 -1
- package/lib/Globe.d.ts +22 -11
- package/lib/Object3d.d.ts +18 -15
- package/lib/Popup.d.ts +2 -2
- package/lib/assets/LabelWorker.worker-C24YLEkW.js.map +1 -0
- package/lib/assets/PlainSegmentWorker.worker-DJHXd0bF.js.map +1 -0
- package/lib/assets/TerrainWorker.worker-B4Gp0jCy.js.map +1 -0
- package/lib/bv/index.d.ts +2 -2
- package/lib/camera/Camera.d.ts +320 -33
- package/lib/camera/Frustum.d.ts +136 -15
- package/lib/camera/PlanetCamera.d.ts +114 -11
- package/lib/camera/index.d.ts +2 -2
- package/lib/control/CompassButton.d.ts +2 -2
- package/lib/control/EarthCoordinates.d.ts +5 -2
- package/lib/control/FramebufferPreview.d.ts +20 -4
- 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 +7 -2
- package/lib/control/Navigation.d.ts +27 -12
- 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/depthCamera/DepthCamera.d.ts +118 -0
- package/lib/control/depthCamera/DepthCameraHandler.d.ts +25 -0
- package/lib/control/depthCamera/depth_camera.d.ts +2 -0
- 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/CameraEditorView.d.ts +62 -0
- package/lib/control/entityEditor/EntityEditor.d.ts +20 -0
- package/lib/control/entityEditor/EntityEditorDialog.d.ts +38 -0
- package/lib/control/{geoObjectEditor/GeoObjectEditorScene.d.ts → entityEditor/EntityEditorScene.d.ts} +28 -12
- package/lib/control/{geoObjectEditor/GeoObjectEditorDialog.d.ts → entityEditor/EntityEditorView.d.ts} +22 -23
- package/lib/control/entityEditor/ProjectorEditorView.d.ts +31 -0
- package/lib/control/{geoObjectEditor → entityEditor}/RotateEntity.d.ts +5 -1
- 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 +7 -6
- 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 +19 -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 +140 -72
- 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} +32 -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} +29 -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 +59 -42
- package/lib/layer/BaseGeoImage.d.ts +20 -17
- package/lib/layer/BaseTileMaterialLayer.d.ts +36 -0
- package/lib/layer/CanvasTiles.d.ts +20 -22
- 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 +106 -37
- package/lib/layer/WMS.d.ts +1 -1
- package/lib/layer/XYZ.d.ts +14 -31
- package/lib/layer/index.d.ts +12 -12
- package/lib/math/Line2.d.ts +10 -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 +2 -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 +8 -5
- package/lib/quadTree/QuadTreeStrategy.d.ts +6 -5
- package/lib/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +4 -4
- package/lib/quadTree/earth/EarthEntityCollectionsTreeStrategy.d.ts +7 -4
- package/lib/quadTree/equi/EquiEntityCollectionsTreeStrategy.d.ts +3 -0
- 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 +18 -0
- package/lib/renderer/Renderer.d.ts +195 -100
- package/lib/renderer/RendererEvents.d.ts +16 -5
- package/lib/renderer/WOITPass.d.ts +14 -0
- package/lib/renderer/cascadeShadows/CascadeShadowManager.d.ts +34 -0
- package/lib/renderer/cascadeShadows/CascadeShadowMap.d.ts +112 -0
- package/lib/renderer/cascadeShadows/cascade_shadow_depth.d.ts +2 -0
- package/lib/renderer/projectors/Projector.d.ts +66 -0
- package/lib/renderer/projectors/ProjectorManager.d.ts +85 -0
- package/lib/renderer/projectors/ProjectorsPass.d.ts +37 -0
- package/lib/renderer/shadows/ShadowManager.d.ts +40 -0
- package/lib/renderer/shadows/ShadowMap.d.ts +21 -0
- package/lib/renderer/textureUnits.d.ts +6 -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 +268 -72
- package/lib/scene/{RenderNode.d.ts → Scene.d.ts} +47 -51
- package/lib/scene/SkyBox.d.ts +7 -4
- package/lib/scene/index.d.ts +2 -2
- package/lib/segment/Segment.d.ts +38 -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/common/uniforms.d.ts +27 -0
- 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 +9 -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/projectorsPass/projectorsPass.d.ts +2 -0
- 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/varianceBlur.d.ts +2 -0
- package/lib/shaders/weightedOITResolve.d.ts +2 -0
- package/lib/terrain/BilTerrain.d.ts +1 -1
- package/lib/terrain/EmptyTerrain.d.ts +6 -7
- package/lib/terrain/GlobusTerrain.d.ts +18 -23
- package/lib/terrain/MapterhornTerrain.d.ts +10 -0
- package/lib/terrain/RgbTerrain.d.ts +19 -8
- package/lib/terrain/index.d.ts +10 -6
- 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 +7 -4
- package/lib/ui/Dialog.d.ts +30 -3
- package/lib/ui/Input.d.ts +19 -3
- package/lib/ui/Slider.d.ts +5 -2
- package/lib/ui/TitleBarView.d.ts +21 -0
- 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 +10 -9
- package/lib/utils/FontAtlas.d.ts +61 -10
- 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 +24 -5
- package/lib/utils/shared.d.ts +12 -5
- package/lib/utils/textureResourceMeta.d.ts +9 -0
- package/lib/webgl/BaseFramebuffer.d.ts +35 -0
- package/lib/webgl/Framebuffer.d.ts +14 -13
- package/lib/webgl/Handler.d.ts +94 -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 +79 -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/CameraFrameComposer.d.ts +0 -19
- package/lib/control/CameraFrameHandler.d.ts +0 -26
- package/lib/control/OldMouseNavigation.d.ts +0 -65
- package/lib/control/ZoomControl.d.ts +0 -28
- package/lib/control/cameraDepthHandler/CameraDepthHandler.d.ts +0 -28
- package/lib/control/cameraDepthHandler/camera_depth.d.ts +0 -2
- 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/entity/{LabelWorker.worker.d.ts → label/LabelWorker.worker.d.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Dialog, type IDialogParams } from "../../ui/Dialog";
|
|
2
|
+
import { EntityEditorScene } from "./EntityEditorScene";
|
|
3
|
+
import { Entity } from "../../entity/Entity";
|
|
4
|
+
import { Vec3 } from "../../math/Vec3";
|
|
5
|
+
import { CameraEditorView } from "./CameraEditorView";
|
|
6
|
+
import { EntityEditorView } from "./EntityEditorView";
|
|
7
|
+
import { ProjectorEditorView } from "./ProjectorEditorView";
|
|
8
|
+
interface IEntityEditorDialog extends IDialogParams {
|
|
9
|
+
model: EntityEditorScene;
|
|
10
|
+
}
|
|
11
|
+
export declare class EntityEditorDialog extends Dialog<EntityEditorScene> {
|
|
12
|
+
protected _entityView: EntityEditorView | null;
|
|
13
|
+
protected _cameraView: CameraEditorView | null;
|
|
14
|
+
protected _projectorView: ProjectorEditorView | null;
|
|
15
|
+
constructor(params: IEntityEditorDialog);
|
|
16
|
+
render(params: any): this;
|
|
17
|
+
protected _onVisibility: (vis: boolean) => void;
|
|
18
|
+
remove(): void;
|
|
19
|
+
protected _initSceneEvents(): void;
|
|
20
|
+
protected _clearSceneEvents(): void;
|
|
21
|
+
protected _onSelect: (entity: Entity) => void;
|
|
22
|
+
protected _refreshViews(entity: Entity): void;
|
|
23
|
+
protected _refreshEntityView(entity: Entity): void;
|
|
24
|
+
protected _removeEntityView(): void;
|
|
25
|
+
protected _refreshCameraView(entity: Entity): void;
|
|
26
|
+
protected _removeCameraView(): void;
|
|
27
|
+
protected _refreshProjectorView(entity: Entity): void;
|
|
28
|
+
protected _removeProjectorView(): void;
|
|
29
|
+
protected _removeViews(): void;
|
|
30
|
+
protected _setDialogTitle(entity: Entity): void;
|
|
31
|
+
hide(): void;
|
|
32
|
+
protected _onUnselect: () => void;
|
|
33
|
+
protected _onPosition: (pos: Vec3, entity: Entity) => void;
|
|
34
|
+
protected _onPitch: (a: number, entity: Entity) => void;
|
|
35
|
+
protected _onYaw: (a: number, entity: Entity) => void;
|
|
36
|
+
protected _onRoll: (a: number, entity: Entity) => void;
|
|
37
|
+
}
|
|
38
|
+
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,16 @@ 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
|
+
editMode?: EditModeName;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
export declare const NATIVE_MODE = 0;
|
|
21
|
+
export declare const YAW_MODE = 1;
|
|
22
|
+
export type EditMode = typeof NATIVE_MODE | typeof YAW_MODE;
|
|
23
|
+
export type EditModeName = "native" | "yaw";
|
|
24
|
+
type EntityEditorSceneEventsList = [
|
|
20
25
|
"mousemove",
|
|
21
26
|
"mouseenter",
|
|
22
27
|
"mouseleave",
|
|
@@ -51,8 +56,8 @@ type GeoObjectSceneEventsList = [
|
|
|
51
56
|
"roll",
|
|
52
57
|
"scale"
|
|
53
58
|
];
|
|
54
|
-
declare class
|
|
55
|
-
events: EventsHandler<
|
|
59
|
+
declare class EntityEditorScene extends Scene {
|
|
60
|
+
events: EventsHandler<EntityEditorSceneEventsList>;
|
|
56
61
|
protected _planet: Planet | null;
|
|
57
62
|
protected _startPos: Vec2 | null;
|
|
58
63
|
protected _startClick: Vec2;
|
|
@@ -62,6 +67,7 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
62
67
|
protected _axisTrackLayer: EntityCollection;
|
|
63
68
|
protected _selectedEntity: Entity | null;
|
|
64
69
|
protected _selectedEntityCart: Vec3;
|
|
70
|
+
protected _selectedEntityRotation: Quat;
|
|
65
71
|
protected _selectedEntityPitch: number;
|
|
66
72
|
protected _selectedEntityYaw: number;
|
|
67
73
|
protected _selectedEntityRoll: number;
|
|
@@ -73,10 +79,14 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
73
79
|
protected _selectedMove: string | null;
|
|
74
80
|
protected _ops: Record<string, (mouseState: IMouseState) => void>;
|
|
75
81
|
protected _axisTrackVisibility: boolean;
|
|
76
|
-
|
|
82
|
+
protected _editMode: EditMode;
|
|
83
|
+
constructor(options?: IEntityEditorSceneParams);
|
|
77
84
|
get ellipsoid(): Ellipsoid | undefined;
|
|
78
85
|
get planet(): Planet | null;
|
|
86
|
+
get editMode(): EditMode;
|
|
87
|
+
set editMode(mode: EditMode);
|
|
79
88
|
bindPlanet(planet: Planet): void;
|
|
89
|
+
protected _parseEditMode(mode: EditModeName | undefined): EditMode;
|
|
80
90
|
init(): void;
|
|
81
91
|
onremove(): void;
|
|
82
92
|
protected _addAxisLayers(): void;
|
|
@@ -105,7 +115,7 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
105
115
|
unselect(): void;
|
|
106
116
|
protected _onLclick: (e: IMouseState) => void;
|
|
107
117
|
clear(): void;
|
|
108
|
-
|
|
118
|
+
protected _onForwardpass: () => void;
|
|
109
119
|
protected _moveX: (e: IMouseState) => void;
|
|
110
120
|
protected _moveY: (e: IMouseState) => void;
|
|
111
121
|
protected _moveZ: (e: IMouseState) => void;
|
|
@@ -113,6 +123,12 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
113
123
|
protected _moveXY: (e: IMouseState) => void;
|
|
114
124
|
protected _moveZY: (e: IMouseState) => void;
|
|
115
125
|
getFrameRotation(cartesian: Vec3): Quat;
|
|
126
|
+
protected _isPlanetEntity(entity: Entity): boolean;
|
|
127
|
+
protected _isYawMode(): boolean;
|
|
128
|
+
protected _getYawModeFrameRotation(entity: Entity, cart: Vec3): Quat;
|
|
129
|
+
protected _getEntityRotation(entity: Entity, cart: Vec3): Quat;
|
|
130
|
+
protected _setRotateEntityCartesian3v(entity: Entity, cart: Vec3): void;
|
|
131
|
+
protected _setEntityRotation(entity: Entity, rotation: Quat, cart: Vec3): void;
|
|
116
132
|
protected _rotatePitch: (e: IMouseState) => void;
|
|
117
133
|
protected _rotateYaw: (e: IMouseState) => void;
|
|
118
134
|
protected _rotateRoll: (e: IMouseState) => void;
|
|
@@ -124,4 +140,4 @@ declare class GeoObjectEditorScene extends RenderNode {
|
|
|
124
140
|
lockView(): void;
|
|
125
141
|
unlockView(): void;
|
|
126
142
|
}
|
|
127
|
-
export {
|
|
143
|
+
export { EntityEditorScene };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { Dialog, type IDialogParams } from "../../ui/Dialog";
|
|
2
|
-
import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
|
|
3
1
|
import { Entity } from "../../entity/Entity";
|
|
4
|
-
import { Input } from "../../ui/Input";
|
|
5
2
|
import { Checkbox } from "../../ui/Checkbox";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { Input } from "../../ui/Input";
|
|
4
|
+
import { Slider } from "../../ui/Slider";
|
|
5
|
+
import { TitleBarView } from "../../ui/TitleBarView";
|
|
6
|
+
import { View, type IViewParams } from "../../ui/View";
|
|
7
|
+
import { EntityEditorScene } from "./EntityEditorScene";
|
|
8
|
+
interface IEntityEditorViewParams extends IViewParams {
|
|
9
|
+
model: EntityEditorScene;
|
|
10
|
+
entity?: Entity;
|
|
10
11
|
}
|
|
11
|
-
export declare class
|
|
12
|
+
export declare class EntityEditorView extends View<EntityEditorScene> {
|
|
13
|
+
protected _entity: Entity | null;
|
|
14
|
+
protected _titleBarView: TitleBarView;
|
|
15
|
+
protected _bodyEl: HTMLElement | null;
|
|
12
16
|
protected _relativePositionView: Checkbox;
|
|
17
|
+
protected _yawModeView: Checkbox;
|
|
13
18
|
protected _lonView: Input;
|
|
14
19
|
protected _latView: Input;
|
|
15
20
|
protected _heightView: Input;
|
|
@@ -29,22 +34,16 @@ export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorSce
|
|
|
29
34
|
protected _scaleXView: Input;
|
|
30
35
|
protected _scaleYView: Input;
|
|
31
36
|
protected _scaleZView: Input;
|
|
32
|
-
protected
|
|
33
|
-
constructor(params:
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
protected _opacityView: Slider;
|
|
38
|
+
constructor(params: IEntityEditorViewParams);
|
|
39
|
+
bindEntity(entity: Entity): void;
|
|
40
|
+
render(params?: unknown): this;
|
|
41
|
+
refresh(entity?: Entity | null): void;
|
|
42
|
+
refreshRotation(entity?: Entity | null): void;
|
|
36
43
|
remove(): void;
|
|
37
|
-
protected
|
|
38
|
-
protected _clearSceneEvents(): void;
|
|
39
|
-
protected _onSelect: (entity: Entity) => void;
|
|
40
|
-
protected _refresh(entity: Entity): void;
|
|
41
|
-
hide(): void;
|
|
42
|
-
protected _onUnselect: (entity: Entity) => void;
|
|
44
|
+
protected _onTitleBarChange: (isCollapsed: boolean) => void;
|
|
43
45
|
protected _onChangeRelativePosition: (checked: boolean) => void;
|
|
44
|
-
protected
|
|
45
|
-
protected _onPitch: (a: number, entity: Entity) => void;
|
|
46
|
-
protected _onYaw: (a: number, entity: Entity) => void;
|
|
47
|
-
protected _onRoll: (a: number, entity: Entity) => void;
|
|
46
|
+
protected _onChangeYawMode: (checked: boolean) => void;
|
|
48
47
|
protected _onChangeLon: (val: string) => void;
|
|
49
48
|
protected _onChangeLat: (val: string) => void;
|
|
50
49
|
protected _onChangeHeight: (val: string) => void;
|
|
@@ -64,6 +63,6 @@ export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorSce
|
|
|
64
63
|
protected _onChangeScaleX: (val: string) => void;
|
|
65
64
|
protected _onChangeScaleY: (val: string) => void;
|
|
66
65
|
protected _onChangeScaleZ: (val: string) => void;
|
|
67
|
-
protected
|
|
66
|
+
protected _onChangeOpacity: (val: number) => void;
|
|
68
67
|
}
|
|
69
68
|
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Checkbox } from "../../ui/Checkbox";
|
|
2
|
+
import { Color } from "../../ui/Color";
|
|
3
|
+
import { Input } from "../../ui/Input";
|
|
4
|
+
import { TitleBarView } from "../../ui/TitleBarView";
|
|
5
|
+
import { View, type IViewParams } from "../../ui/View";
|
|
6
|
+
import { type Projector } from "../../renderer/projectors/Projector";
|
|
7
|
+
interface IProjectorEditorViewParams extends IViewParams {
|
|
8
|
+
projector: Projector;
|
|
9
|
+
}
|
|
10
|
+
export declare class ProjectorEditorView extends View<Projector> {
|
|
11
|
+
protected _enabledView: Checkbox;
|
|
12
|
+
protected _colorView: Color;
|
|
13
|
+
protected _opacityView: Input;
|
|
14
|
+
protected _priorityView: Input;
|
|
15
|
+
protected _modeEl: HTMLSelectElement | null;
|
|
16
|
+
protected _modeRowEl: HTMLElement | null;
|
|
17
|
+
protected _titleBarView: TitleBarView;
|
|
18
|
+
protected _bodyEl: HTMLElement | null;
|
|
19
|
+
constructor(params: IProjectorEditorViewParams);
|
|
20
|
+
bindProjector(projector: Projector): void;
|
|
21
|
+
render(params?: unknown): this;
|
|
22
|
+
refresh(): void;
|
|
23
|
+
remove(): void;
|
|
24
|
+
protected _onTitleBarChange: (isCollapsed: boolean) => void;
|
|
25
|
+
protected _onChangeEnabled: (enabled: boolean) => void;
|
|
26
|
+
protected _onChangeColor: (color: string) => void;
|
|
27
|
+
protected _onChangeOpacity: (value: string) => void;
|
|
28
|
+
protected _onChangePriority: (value: string) => void;
|
|
29
|
+
protected _onChangeMode: () => void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Entity, type IEntityParams } from "../../entity/Entity";
|
|
2
2
|
import { Vec3 } from "../../math/Vec3";
|
|
3
|
+
import { Quat } from "../../math/Quat";
|
|
3
4
|
export interface IRotationEntityParams extends IEntityParams {
|
|
4
5
|
}
|
|
5
6
|
export declare class RotateEntity extends Entity {
|
|
6
7
|
constructor(params?: IRotationEntityParams);
|
|
7
8
|
private _init;
|
|
8
|
-
setCartesian3v(cart: Vec3
|
|
9
|
+
setCartesian3v(cart: Vec3): void;
|
|
10
|
+
setCartesian3v(cart: Vec3, rotation: Quat): void;
|
|
11
|
+
setYawCartesian3v(cart: Vec3, yaw: number): void;
|
|
12
|
+
protected _updateGizmo(cart: Vec3, qRot: Quat, qYaw: Quat): void;
|
|
9
13
|
}
|
|
@@ -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,12 @@ 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
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
34
|
-
export * from "./cameraDepthHandler/CameraDepthHandler";
|
|
31
|
+
export * from "./depthCamera/DepthCamera";
|
|
32
|
+
export * from "./depthCamera/DepthCameraHandler";
|
|
35
33
|
export * from "./FramebufferPreview";
|
|
34
|
+
export * from "./SimpleTouchNavigation";
|
|
35
|
+
export * from "./entityTree/EntityTree";
|
|
36
|
+
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,22 @@
|
|
|
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
|
+
import { type EventsHandler } from "../../Events";
|
|
6
|
+
type TimelineControlEventsList = [
|
|
7
|
+
"visibility",
|
|
8
|
+
"change",
|
|
9
|
+
"setcurrent",
|
|
10
|
+
"current",
|
|
11
|
+
"play",
|
|
12
|
+
"playback",
|
|
13
|
+
"pause",
|
|
14
|
+
"reset",
|
|
15
|
+
"startdrag",
|
|
16
|
+
"stopdrag",
|
|
17
|
+
"startdragcurrent",
|
|
18
|
+
"stopdragcurrent"
|
|
19
|
+
];
|
|
5
20
|
interface ITimelineControlParams extends IControlParams {
|
|
6
21
|
name?: string;
|
|
7
22
|
current?: Date;
|
|
@@ -12,6 +27,8 @@ declare class TimelineControl extends Control {
|
|
|
12
27
|
protected _timelineView: TimelineView;
|
|
13
28
|
protected _toggleBtn: ToggleButton;
|
|
14
29
|
protected _dialog: Dialog<null>;
|
|
30
|
+
protected _defaultClockWasRunningBeforeDrag: boolean;
|
|
31
|
+
events: EventsHandler<TimelineControlEventsList>;
|
|
15
32
|
constructor(options?: ITimelineControlParams);
|
|
16
33
|
oninit(): void;
|
|
17
34
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EventsHandler } from "../../Events";
|
|
2
2
|
import { ButtonGroup } from "../../ui/ButtonGroup";
|
|
3
|
-
import { View } from
|
|
4
|
-
import type { IViewParams, ViewEventsList } from
|
|
3
|
+
import { View } from "../../ui/View";
|
|
4
|
+
import type { IViewParams, ViewEventsList } from "../../ui/View";
|
|
5
5
|
import { ToggleButton } from "../../ui/ToggleButton";
|
|
6
|
-
import { TimelineModel } from
|
|
6
|
+
import { TimelineModel } from "./TimelineModel";
|
|
7
7
|
import type { MouseEventExt } from "../../input/MouseHandler";
|
|
8
8
|
interface ITimelineViewParams extends IViewParams {
|
|
9
9
|
currentDate?: Date;
|
|
@@ -13,18 +13,28 @@ interface ITimelineViewParams extends IViewParams {
|
|
|
13
13
|
maxDate?: Date;
|
|
14
14
|
fillStyle?: string;
|
|
15
15
|
}
|
|
16
|
+
declare const TOUCH_MODE_NONE = 0;
|
|
17
|
+
declare const TOUCH_MODE_CURRENT = 1;
|
|
18
|
+
declare const TOUCH_MODE_PINCH = 2;
|
|
19
|
+
declare const TOUCH_MODE_SCALE = 3;
|
|
16
20
|
type TimelineViewEventsList = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
"startdrag",
|
|
22
|
+
"stopdrag",
|
|
23
|
+
"startdragcurrent",
|
|
24
|
+
"stopdragcurrent",
|
|
25
|
+
"setcurrent",
|
|
26
|
+
"reset",
|
|
27
|
+
"play",
|
|
28
|
+
"playback",
|
|
29
|
+
"pause",
|
|
30
|
+
"visibility"
|
|
27
31
|
];
|
|
32
|
+
type TimelineTouchMode = typeof TOUCH_MODE_NONE | typeof TOUCH_MODE_CURRENT | typeof TOUCH_MODE_PINCH | typeof TOUCH_MODE_SCALE;
|
|
33
|
+
interface ITimelineTouchPointer {
|
|
34
|
+
pointerId: number;
|
|
35
|
+
clientX: number;
|
|
36
|
+
clientY: number;
|
|
37
|
+
}
|
|
28
38
|
declare class TimelineView extends View<TimelineModel> {
|
|
29
39
|
events: EventsHandler<TimelineViewEventsList> & EventsHandler<ViewEventsList>;
|
|
30
40
|
fillStyle: string;
|
|
@@ -46,6 +56,12 @@ declare class TimelineView extends View<TimelineModel> {
|
|
|
46
56
|
protected _clickCurrentDate: Date;
|
|
47
57
|
protected _clickTime: number;
|
|
48
58
|
protected _clickDelay: number;
|
|
59
|
+
protected _clickMoveTolerance: number;
|
|
60
|
+
protected _touchMode: TimelineTouchMode;
|
|
61
|
+
protected _touchPinchDistance: number;
|
|
62
|
+
protected _touchPointers: Map<number, ITimelineTouchPointer>;
|
|
63
|
+
protected _touchScalePointerId: number | null;
|
|
64
|
+
protected _touchCurrentPointerId: number | null;
|
|
49
65
|
protected _onResizeObserver_: () => void;
|
|
50
66
|
protected _resizeObserver: ResizeObserver;
|
|
51
67
|
protected _pauseBtn: ToggleButton;
|
|
@@ -67,17 +83,40 @@ declare class TimelineView extends View<TimelineModel> {
|
|
|
67
83
|
protected _onMouseWheel: (e: MouseEventExt) => void;
|
|
68
84
|
protected _onMouseWheelFF: (e: MouseEventExt) => void;
|
|
69
85
|
protected _zoom(pointerTime: number, pointerCenterOffsetX: number, dir: number): void;
|
|
86
|
+
protected _zoomByScale(pointerTime: number, pointerCenterOffsetX: number, scale: number): void;
|
|
87
|
+
protected _startScaleDrag(clientX: number, sourceEvent: Event, allowClick?: boolean, pointerId?: number | null): void;
|
|
88
|
+
protected _moveScaleDrag(clientX: number): void;
|
|
89
|
+
protected _stopScaleDrag(clientX: number | null, allowClick?: boolean): void;
|
|
90
|
+
protected _startCurrentDrag(clientX: number, sourceEvent: Event, pointerId?: number | null): void;
|
|
91
|
+
protected _moveCurrentDrag(clientX: number): void;
|
|
92
|
+
protected _stopCurrentDrag(): void;
|
|
93
|
+
protected _isClickGesture(clientX: number): boolean;
|
|
94
|
+
protected _setCurrentByClientX(clientX: number): Date;
|
|
95
|
+
protected _captureTouchPointer(e: PointerEvent): void;
|
|
96
|
+
protected _updateTouchPointer(e: PointerEvent): void;
|
|
97
|
+
protected _releaseTouchPointerCapture(pointerId: number): void;
|
|
98
|
+
protected _getFirstTouchPointer(): ITimelineTouchPointer | null;
|
|
99
|
+
protected _getTwoTouchPointers(): [ITimelineTouchPointer, ITimelineTouchPointer] | null;
|
|
100
|
+
protected _getTouchPointer(pointerId: number | null): ITimelineTouchPointer | null;
|
|
101
|
+
protected _getTouchDistance(t0: ITimelineTouchPointer, t1: ITimelineTouchPointer): number;
|
|
102
|
+
protected _startPinchGesture(t0: ITimelineTouchPointer, t1: ITimelineTouchPointer, sourceEvent: Event): void;
|
|
103
|
+
protected _movePinchGesture(t0: ITimelineTouchPointer, t1: ITimelineTouchPointer): void;
|
|
70
104
|
protected _onMouseDown: (e: MouseEvent) => void;
|
|
71
105
|
protected _onMouseUp: (e: MouseEvent) => void;
|
|
72
106
|
protected _onMouseEnter: () => void;
|
|
73
107
|
protected _onMouseOut: () => void;
|
|
74
108
|
protected _onCurrentMouseEnter: () => void;
|
|
75
109
|
protected _onCurrentMouseOut: () => void;
|
|
110
|
+
protected _onScalePointerDown: (e: PointerEvent) => void;
|
|
111
|
+
protected _onCurrentPointerDown: (e: PointerEvent) => void;
|
|
112
|
+
protected _onPointerMove: (e: PointerEvent) => void;
|
|
113
|
+
protected _onPointerUp: (e: PointerEvent) => void;
|
|
76
114
|
protected _onMouseMove: (e: MouseEvent) => void;
|
|
77
115
|
get clientWidth(): number;
|
|
78
116
|
get clientHeight(): number;
|
|
79
117
|
protected _resize(): void;
|
|
80
118
|
getOffsetByTime(milliseconds: number): number;
|
|
119
|
+
protected _clearEvents(): void;
|
|
81
120
|
remove(): void;
|
|
82
121
|
protected _clearCanvas(): void;
|
|
83
122
|
protected _drawCurrent(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ShaderProgram } from "../../webgl/ShaderProgram";
|
|
2
|
+
export declare function segment_screen_nl(): ShaderProgram;
|
|
3
|
+
export declare function segment_screen_wl(): ShaderProgram;
|
|
4
|
+
export declare function segment_screen_wl_webgl2(): ShaderProgram;
|
|
5
|
+
export declare function segment_colorPicking(): ShaderProgram;
|
|
6
|
+
export declare function segment_heightPicking(): ShaderProgram;
|
|
7
|
+
export declare function segment_depth(): ShaderProgram;
|
package/lib/ellipsoid/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./Ellipsoid";
|
|
2
|
+
export * from "./wgs84";
|
|
3
|
+
export * from "./mars";
|
|
4
|
+
export * from "./moon";
|