@openglobus/og 0.11.2 → 0.11.7
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/package.json +13 -13
- package/src/og/Clock.js +10 -10
- package/src/og/Events.js +8 -6
- package/src/og/Extent.js +82 -41
- package/src/og/Globe.js +25 -13
- package/src/og/ImageCanvas.js +22 -16
- package/src/og/LonLat.js +16 -13
- package/src/og/Popup.js +21 -14
- package/src/og/QueueArray.js +6 -2
- package/src/og/Rectangle.js +11 -6
- package/src/og/Stack.js +5 -2
- package/src/og/ajax.js +21 -33
- package/src/og/astro/astro.js +5 -5
- package/src/og/astro/earth.js +22 -16
- package/src/og/astro/jd.js +23 -18
- package/src/og/astro/orbit.js +13 -11
- package/src/og/astro/rotation.js +17 -8
- package/src/og/bv/Box.js +7 -3
- package/src/og/bv/Sphere.js +14 -11
- package/src/og/camera/Camera.js +51 -54
- package/src/og/camera/Frustum.js +29 -18
- package/src/og/camera/PlanetCamera.js +32 -23
- package/src/og/control/CompassButton.js +5 -1
- package/src/og/control/Control.js +12 -10
- package/src/og/control/DebugInfo.js +4 -1
- package/src/og/control/EarthCoordinates.js +54 -33
- package/src/og/control/KeyboardNavigation.js +10 -10
- package/src/og/control/LayerSwitcher.js +22 -21
- package/src/og/control/Lighting.js +34 -3
- package/src/og/control/MouseNavigation.js +1 -1
- package/src/og/control/ScaleControl.js +1 -1
- package/src/og/control/SegmentBoundVisualization.js +6 -7
- package/src/og/control/ShowFps.js +13 -8
- package/src/og/control/SimpleNavigation.js +6 -8
- package/src/og/control/Sun.js +25 -15
- package/src/og/control/ToggleWireframe.js +4 -4
- package/src/og/control/TouchNavigation.js +44 -33
- package/src/og/control/ZoomControl.js +41 -25
- package/src/og/ellipsoid/Ellipsoid.js +162 -66
- package/src/og/ellipsoid/wgs84.js +4 -4
- package/src/og/entity/BaseBillboard.js +100 -56
- package/src/og/entity/Billboard.js +14 -10
- package/src/og/entity/BillboardHandler.js +317 -60
- package/src/og/entity/Entity.js +100 -68
- package/src/og/entity/EntityCollection.js +70 -47
- package/src/og/entity/GeoObject.js +228 -0
- package/src/og/entity/GeoObjectHandler.js +910 -0
- package/src/og/entity/Geometry.js +27 -24
- package/src/og/entity/GeometryHandler.js +596 -124
- package/src/og/entity/Label.js +80 -49
- package/src/og/entity/LabelHandler.js +45 -244
- package/src/og/entity/LabelWorker.js +218 -0
- package/src/og/entity/Object3d.js +504 -0
- package/src/og/entity/PointCloud.js +80 -32
- package/src/og/entity/PointCloudHandler.js +8 -8
- package/src/og/entity/Polyline.js +16 -16
- package/src/og/entity/Ray.js +60 -27
- package/src/og/entity/Strip.js +77 -48
- package/src/og/entity/StripHandler.js +26 -26
- package/src/og/entity/index.js +8 -16
- package/src/og/layer/BaseGeoImage.js +54 -23
- package/src/og/layer/CanvasTiles.js +24 -24
- package/src/og/layer/GeoImage.js +9 -9
- package/src/og/layer/GeoVideo.js +3 -3
- package/src/og/layer/KML.js +63 -37
- package/src/og/layer/Layer.js +44 -21
- package/src/og/layer/Material.js +23 -20
- package/src/og/layer/Vector.js +114 -68
- package/src/og/layer/WMS.js +34 -17
- package/src/og/layer/XYZ.js +48 -46
- package/src/og/light/LightSource.js +46 -39
- package/src/og/math/Mat3.js +34 -22
- package/src/og/math/Mat4.js +603 -459
- package/src/og/math/Plane.js +21 -20
- package/src/og/math/Quat.js +182 -139
- package/src/og/math/Ray.js +38 -33
- package/src/og/math/Vec2.js +85 -75
- package/src/og/math/Vec3.js +142 -112
- package/src/og/math/Vec4.js +27 -31
- package/src/og/math/coder.js +10 -10
- package/src/og/math.js +12 -12
- package/src/og/proj/EPSG3857.js +4 -4
- package/src/og/proj/EPSG4326.js +4 -4
- package/src/og/proj/Proj.js +4 -6
- package/src/og/quadTree/Node.js +8 -8
- package/src/og/renderer/Renderer.js +59 -52
- package/src/og/renderer/RendererEvents.js +50 -27
- package/src/og/scene/BaseNode.js +7 -8
- package/src/og/scene/Planet.js +102 -103
- package/src/og/scene/RenderNode.js +28 -21
- package/src/og/segment/Segment.js +26 -21
- package/src/og/segment/SegmentLonLat.js +5 -5
- package/src/og/shaders/drawnode.js +135 -142
- package/src/og/shaders/geoObject.js +211 -0
- package/src/og/shaders/pointCloud.js +41 -41
- package/src/og/shaders/shape.js +12 -18
- package/src/og/shaders/skybox.js +36 -36
- package/src/og/shaders/toneMapping.js +1 -0
- package/src/og/shapes/BaseShape.js +126 -54
- package/src/og/shapes/Icosphere.js +29 -14
- package/src/og/shapes/Sphere.js +12 -15
- package/src/og/terrain/BilTerrain.js +1 -0
- package/src/og/terrain/EmptyTerrain.js +2 -2
- package/src/og/terrain/GlobusTerrain.js +9 -9
- package/src/og/utils/FontAtlas.js +6 -2
- package/src/og/utils/TextureAtlas.js +22 -24
- package/src/og/utils/VectorTileCreator.js +1 -3
- package/src/og/utils/shared.js +16 -16
- package/src/og/webgl/Framebuffer.js +88 -40
- package/src/og/webgl/Handler.js +243 -169
- package/src/og/webgl/Multisample.js +47 -19
- package/src/og/webgl/Program.js +79 -34
- package/src/og/webgl/ProgramController.js +17 -13
- package/src/og/webgl/callbacks.js +8 -8
- package/src/og/inherits.js +0 -8
- package/src/og/utils/polylabel.js +0 -176
- package/types/Clock.d.ts +0 -90
- package/types/Deferred.d.ts +0 -6
- package/types/Events.d.ts +0 -73
- package/types/Extent.d.ts +0 -166
- package/types/Globe.d.ts +0 -75
- package/types/ImageCanvas.d.ts +0 -121
- package/types/Lock.d.ts +0 -12
- package/types/LonLat.d.ts +0 -108
- package/types/Popup.d.ts +0 -38
- package/types/QueueArray.d.ts +0 -15
- package/types/Rectangle.d.ts +0 -74
- package/types/Stack.d.ts +0 -15
- package/types/ajax.d.ts +0 -24
- package/types/arial.d.ts +0 -48
- package/types/astro/astro.d.ts +0 -38
- package/types/astro/earth.d.ts +0 -6
- package/types/astro/jd.d.ts +0 -254
- package/types/bv/Box.d.ts +0 -25
- package/types/bv/Sphere.d.ts +0 -38
- package/types/bv/index.d.ts +0 -3
- package/types/camera/Camera.d.ts +0 -303
- package/types/camera/Frustum.d.ts +0 -129
- package/types/camera/PlanetCamera.d.ts +0 -223
- package/types/camera/index.d.ts +0 -3
- package/types/cons.d.ts +0 -40
- package/types/control/CompassButton.d.ts +0 -18
- package/types/control/Control.d.ts +0 -101
- package/types/control/DebugInfo.d.ts +0 -16
- package/types/control/EarthCoordinates.d.ts +0 -47
- package/types/control/EarthNavigation.d.ts +0 -42
- package/types/control/GeoImageDragControl.d.ts +0 -6
- package/types/control/KeyboardNavigation.d.ts +0 -22
- package/types/control/LayerSwitcher.d.ts +0 -23
- package/types/control/Lighting.d.ts +0 -16
- package/types/control/MouseNavigation.d.ts +0 -51
- package/types/control/ScaleControl.d.ts +0 -22
- package/types/control/ShowFps.d.ts +0 -12
- package/types/control/SimpleNavigation.d.ts +0 -28
- package/types/control/Sun.d.ts +0 -52
- package/types/control/ToggleWireframe.d.ts +0 -12
- package/types/control/TouchNavigation.d.ts +0 -50
- package/types/control/ZoomControl.d.ts +0 -28
- package/types/control/index.d.ts +0 -17
- package/types/ellipsoid/Ellipsoid.d.ts +0 -142
- package/types/ellipsoid/index.d.ts +0 -3
- package/types/ellipsoid/wgs84.d.ts +0 -5
- package/types/entity/BaseBillboard.d.ts +0 -208
- package/types/entity/Billboard.d.ts +0 -94
- package/types/entity/BillboardHandler.d.ts +0 -74
- package/types/entity/Entity.d.ts +0 -331
- package/types/entity/EntityCollection.d.ts +0 -303
- package/types/entity/Geometry.d.ts +0 -73
- package/types/entity/GeometryHandler.d.ts +0 -76
- package/types/entity/Label.d.ts +0 -194
- package/types/entity/LabelHandler.d.ts +0 -24
- package/types/entity/PointCloud.d.ts +0 -174
- package/types/entity/PointCloudHandler.d.ts +0 -38
- package/types/entity/Polyline.d.ts +0 -304
- package/types/entity/PolylineHandler.d.ts +0 -18
- package/types/entity/Ray.d.ts +0 -123
- package/types/entity/RayHandler.d.ts +0 -67
- package/types/entity/ShapeHandler.d.ts +0 -22
- package/types/entity/Strip.d.ts +0 -118
- package/types/entity/StripHandler.d.ts +0 -38
- package/types/entity/index.d.ts +0 -8
- package/types/index.core.d.ts +0 -65
- package/types/index.d.ts +0 -45
- package/types/index.webgl.d.ts +0 -7
- package/types/inherits.d.ts +0 -4
- package/types/input/KeyboardHandler.d.ts +0 -10
- package/types/input/MouseHandler.d.ts +0 -5
- package/types/input/TouchHandler.d.ts +0 -5
- package/types/input/input.d.ts +0 -34
- package/types/layer/BaseGeoImage.d.ts +0 -107
- package/types/layer/CanvasTiles.d.ts +0 -75
- package/types/layer/GeoImage.d.ts +0 -65
- package/types/layer/GeoTexture2d.d.ts +0 -8
- package/types/layer/GeoVideo.d.ts +0 -80
- package/types/layer/KML.d.ts +0 -58
- package/types/layer/Layer.d.ts +0 -321
- package/types/layer/Material.d.ts +0 -48
- package/types/layer/Vector.d.ts +0 -228
- package/types/layer/WMS.d.ts +0 -66
- package/types/layer/XYZ.d.ts +0 -130
- package/types/layer/index.d.ts +0 -10
- package/types/light/LightSource.d.ts +0 -177
- package/types/math/Line2.d.ts +0 -11
- package/types/math/Line3.d.ts +0 -10
- package/types/math/Mat3.d.ts +0 -63
- package/types/math/Mat4.d.ts +0 -173
- package/types/math/Plane.d.ts +0 -17
- package/types/math/Quat.d.ts +0 -376
- package/types/math/Ray.d.ts +0 -81
- package/types/math/Vec2.d.ts +0 -308
- package/types/math/Vec3.d.ts +0 -459
- package/types/math/Vec4.d.ts +0 -161
- package/types/math/coder.d.ts +0 -42
- package/types/math/index.d.ts +0 -11
- package/types/math.d.ts +0 -261
- package/types/mercator.d.ts +0 -92
- package/types/proj/EPSG3857.d.ts +0 -5
- package/types/proj/EPSG4326.d.ts +0 -5
- package/types/proj/Proj.d.ts +0 -42
- package/types/quadTree/EntityCollectionNode.d.ts +0 -34
- package/types/quadTree/Node.d.ts +0 -61
- package/types/quadTree/quadTree.d.ts +0 -40
- package/types/renderer/Renderer.d.ts +0 -296
- package/types/renderer/RendererEvents.d.ts +0 -230
- package/types/res/images.d.ts +0 -3
- package/types/scene/Axes.d.ts +0 -11
- package/types/scene/BaseNode.d.ts +0 -60
- package/types/scene/Planet.d.ts +0 -574
- package/types/scene/RenderNode.d.ts +0 -143
- package/types/scene/SkyBox.d.ts +0 -10
- package/types/scene/index.d.ts +0 -4
- package/types/segment/Segment.d.ts +0 -271
- package/types/segment/SegmentLonLat.d.ts +0 -62
- package/types/segment/segmentHelper.d.ts +0 -13
- package/types/shaders/billboard.d.ts +0 -3
- package/types/shaders/depth.d.ts +0 -2
- package/types/shaders/drawnode.d.ts +0 -7
- package/types/shaders/label.d.ts +0 -4
- package/types/shaders/pointCloud.d.ts +0 -2
- package/types/shaders/polyline.d.ts +0 -3
- package/types/shaders/ray.d.ts +0 -2
- package/types/shaders/screenFrame.d.ts +0 -2
- package/types/shaders/shape.d.ts +0 -4
- package/types/shaders/skybox.d.ts +0 -2
- package/types/shaders/toneMapping.d.ts +0 -2
- package/types/shapes/BaseShape.d.ts +0 -247
- package/types/shapes/Sphere.d.ts +0 -41
- package/types/terrain/BilTerrain.d.ts +0 -8
- package/types/terrain/EmptyTerrain.d.ts +0 -72
- package/types/terrain/Geoid.d.ts +0 -26
- package/types/terrain/GlobusTerrain.d.ts +0 -153
- package/types/terrain/MapboxTerrain.d.ts +0 -8
- package/types/terrain/index.d.ts +0 -5
- package/types/utils/FontAtlas.d.ts +0 -14
- package/types/utils/GeoImageCreator.d.ts +0 -30
- package/types/utils/ImagesCacheManager.d.ts +0 -10
- package/types/utils/Loader.d.ts +0 -25
- package/types/utils/NormalMapCreator.d.ts +0 -39
- package/types/utils/PlainSegmentWorker.d.ts +0 -10
- package/types/utils/TerrainWorker.d.ts +0 -9
- package/types/utils/TextureAtlas.d.ts +0 -111
- package/types/utils/VectorTileCreator.d.ts +0 -16
- package/types/utils/colorTable.d.ts +0 -143
- package/types/utils/earcut.d.ts +0 -6
- package/types/utils/shared.d.ts +0 -230
- package/types/webgl/Framebuffer.d.ts +0 -135
- package/types/webgl/Handler.d.ts +0 -372
- package/types/webgl/Multisample.d.ts +0 -89
- package/types/webgl/Program.d.ts +0 -155
- package/types/webgl/ProgramController.d.ts +0 -84
- package/types/webgl/callbacks.d.ts +0 -1
- package/types/webgl/index.d.ts +0 -6
- package/types/webgl/types.d.ts +0 -2
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export class GeometryHandler {
|
|
2
|
-
static set _staticCounter(arg: any);
|
|
3
|
-
static get _staticCounter(): any;
|
|
4
|
-
static appendLineData(pathArr: any, isClosed: any, color: any, pickingColor: any, thickness: any, strokeColor: any, strokeSize: any, outVerticesHigh: any, outVerticesLow: any, outOrders: any, outIndexes: any, outColors: any, outPickingColors: any, outThickness: any, outStrokeColors: any, outStrokes: any, outVerticesHigh2: any, outVerticesLow2: any): void;
|
|
5
|
-
constructor(layer: any);
|
|
6
|
-
__staticId: number;
|
|
7
|
-
_layer: any;
|
|
8
|
-
_handler: any;
|
|
9
|
-
_geometries: any[];
|
|
10
|
-
_updatedGeometryArr: any[];
|
|
11
|
-
_updatedGeometry: {};
|
|
12
|
-
_removeGeometryExtentArr: any[];
|
|
13
|
-
_removeGeometryExtents: {};
|
|
14
|
-
_polyVerticesHighMerc: any[];
|
|
15
|
-
_polyVerticesLowMerc: any[];
|
|
16
|
-
_polyColors: any[];
|
|
17
|
-
_polyPickingColors: any[];
|
|
18
|
-
_polyIndexes: any[];
|
|
19
|
-
_lineVerticesHighMerc: any[];
|
|
20
|
-
_lineVerticesLowMerc: any[];
|
|
21
|
-
_lineOrders: any[];
|
|
22
|
-
_lineIndexes: any[];
|
|
23
|
-
_lineColors: any[];
|
|
24
|
-
_linePickingColors: any[];
|
|
25
|
-
_lineThickness: any[];
|
|
26
|
-
_lineStrokes: any[];
|
|
27
|
-
_lineStrokeColors: any[];
|
|
28
|
-
_polyVerticesHighBufferMerc: any;
|
|
29
|
-
_polyVerticesLowBufferMerc: any;
|
|
30
|
-
_polyColorsBuffer: any;
|
|
31
|
-
_polyPickingColorsBuffer: any;
|
|
32
|
-
_polyIndexesBuffer: any;
|
|
33
|
-
_lineVerticesHighBufferMerc: any;
|
|
34
|
-
_lineVerticesLowBufferMerc: any;
|
|
35
|
-
_lineColorsBuffer: any;
|
|
36
|
-
_linePickingColorsBuffer: any;
|
|
37
|
-
_lineThicknessBuffer: any;
|
|
38
|
-
_lineStrokesBuffer: any;
|
|
39
|
-
_lineStrokeColorsBuffer: any;
|
|
40
|
-
_lineOrdersBuffer: any;
|
|
41
|
-
_lineIndexesBuffer: any;
|
|
42
|
-
_buffersUpdateCallbacks: (() => void)[];
|
|
43
|
-
_changedBuffers: any[];
|
|
44
|
-
assignHandler(handler: any): void;
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
* @param {og.Geometry} geometry - Geometry object.
|
|
48
|
-
*/
|
|
49
|
-
public add(geometry: any): void;
|
|
50
|
-
remove(geometry: any): void;
|
|
51
|
-
_refreshRecursevely(geometry: any, treeNode: any): void;
|
|
52
|
-
_refreshRecursevelyExt(extent: any, treeNode: any): void;
|
|
53
|
-
_refreshPlanetNode(treeNode: any): void;
|
|
54
|
-
_updatePlanet(): void;
|
|
55
|
-
refresh(): void;
|
|
56
|
-
update(): void;
|
|
57
|
-
setGeometryVisibility(geometry: any): void;
|
|
58
|
-
setPolyColorArr(geometry: any, color: any): void;
|
|
59
|
-
setLineStrokeColorArr(geometry: any, color: any): void;
|
|
60
|
-
setLineColorArr(geometry: any, color: any): void;
|
|
61
|
-
setLineStrokeArr(geometry: any, width: any): void;
|
|
62
|
-
setLineThicknessArr(geometry: any, width: any): void;
|
|
63
|
-
bringToFront(geometry: any): void;
|
|
64
|
-
createPolyVerticesBuffer(): void;
|
|
65
|
-
createPolyIndexesBuffer(): void;
|
|
66
|
-
createPolyColorsBuffer(): void;
|
|
67
|
-
createPolyPickingColorsBuffer(): void;
|
|
68
|
-
createLineVerticesBuffer(): void;
|
|
69
|
-
createLineIndexesBuffer(): void;
|
|
70
|
-
createLineOrdersBuffer(): void;
|
|
71
|
-
createLineColorsBuffer(): void;
|
|
72
|
-
createLinePickingColorsBuffer(): void;
|
|
73
|
-
createLineThicknessBuffer(): void;
|
|
74
|
-
createLineStrokesBuffer(): void;
|
|
75
|
-
createLineStrokeColorsBuffer(): void;
|
|
76
|
-
}
|
package/types/entity/Label.d.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Billboard text label.
|
|
3
|
-
* @class
|
|
4
|
-
* @extends {og.BaseBillboard}
|
|
5
|
-
* @param {Object} [options] - Label options:
|
|
6
|
-
* @param {og.Vec3|Array.<number>} [options.position] - Billboard spatial position.
|
|
7
|
-
* @param {number} [options.rotation] - Screen angle rotaion.
|
|
8
|
-
* @param {og.Vec4|string|Array.<number>} [options.color] - Billboard color.
|
|
9
|
-
* @param {og.Vec3|Array.<number>} [options.alignedAxis] - Billboard aligned vector.
|
|
10
|
-
* @param {og.Vec3|Array.<number>} [options.offset] - Billboard center screen offset.
|
|
11
|
-
* @param {boolean} [options.visibility] - Visibility.
|
|
12
|
-
* @param {string} [options.text] - Text string.
|
|
13
|
-
* @param {string} [options.face] - HTML5 font face.
|
|
14
|
-
* @param {number} [options.size] - Font size in pixels.
|
|
15
|
-
* @param {string} [options.style] - HTML5 font style. Example 'normal', 'italic'.
|
|
16
|
-
* @param {string} [options.weight] - HTML5 font weight. Example 'normal', 'bold'.
|
|
17
|
-
* @param {number} [options.outline] - Text outline size. 0 - no outline, 1 - maximum outline. Default 0.58.
|
|
18
|
-
* @param {og.Vec4|string|Array.<number>} [options.outlineColor] - Outline color.
|
|
19
|
-
* @param {og.Label.ALIGN} [options.align] - Text horizontal align: "left", "right" and "center".
|
|
20
|
-
*/
|
|
21
|
-
export class Label {
|
|
22
|
-
constructor(options: any);
|
|
23
|
-
/**
|
|
24
|
-
* Label text string.
|
|
25
|
-
* @private
|
|
26
|
-
* @type {string}
|
|
27
|
-
*/
|
|
28
|
-
private _text;
|
|
29
|
-
/**
|
|
30
|
-
* HTML5 font face.
|
|
31
|
-
* @private
|
|
32
|
-
* @type {string}
|
|
33
|
-
*/
|
|
34
|
-
private _face;
|
|
35
|
-
/**
|
|
36
|
-
* Font size in pixels.
|
|
37
|
-
* @private
|
|
38
|
-
* @type {number}
|
|
39
|
-
*/
|
|
40
|
-
private _size;
|
|
41
|
-
/**
|
|
42
|
-
* Label outline.
|
|
43
|
-
* @private
|
|
44
|
-
* @type {number}
|
|
45
|
-
*/
|
|
46
|
-
private _outline;
|
|
47
|
-
/**
|
|
48
|
-
* Label outline color.
|
|
49
|
-
* @private
|
|
50
|
-
* @type {og.Vec4}
|
|
51
|
-
*/
|
|
52
|
-
private _outlineColor;
|
|
53
|
-
/**
|
|
54
|
-
* Text horizontal align: "left", "right" and "center".
|
|
55
|
-
* @private
|
|
56
|
-
* @type {og.Label.ALIGN}
|
|
57
|
-
*/
|
|
58
|
-
private _align;
|
|
59
|
-
/**
|
|
60
|
-
* Label font atlas index.
|
|
61
|
-
* @private
|
|
62
|
-
* @type {number}
|
|
63
|
-
*/
|
|
64
|
-
private _fontIndex;
|
|
65
|
-
/**
|
|
66
|
-
* Font atlas pointer.
|
|
67
|
-
* @private
|
|
68
|
-
* @type {og.utils.FontAtlas}
|
|
69
|
-
*/
|
|
70
|
-
private _fontAtlas;
|
|
71
|
-
/**
|
|
72
|
-
* Sets lablel text.
|
|
73
|
-
* @public
|
|
74
|
-
* @param {string} text - Text string.
|
|
75
|
-
* It can't be bigger than maximum labelHandler _maxLetters value.
|
|
76
|
-
*/
|
|
77
|
-
public setText(text: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* Gets current text string.
|
|
80
|
-
* @public
|
|
81
|
-
* @returns {string}
|
|
82
|
-
*/
|
|
83
|
-
public getText(): string;
|
|
84
|
-
/**
|
|
85
|
-
* Sets label text align. Could be center, left or right. Left is default.
|
|
86
|
-
* @public
|
|
87
|
-
* @param {og.Label.ALIGN} align - Text align.
|
|
88
|
-
*/
|
|
89
|
-
public setAlign(align: any): void;
|
|
90
|
-
/**
|
|
91
|
-
* Gets label text current alignment.
|
|
92
|
-
* @public
|
|
93
|
-
* @returns {og.Label.ALIGN}
|
|
94
|
-
*/
|
|
95
|
-
public getAlign(): any;
|
|
96
|
-
/**
|
|
97
|
-
* Sets font face family.
|
|
98
|
-
* @public
|
|
99
|
-
* @param {string} face - Font face family.
|
|
100
|
-
*/
|
|
101
|
-
public setFace(face: string): void;
|
|
102
|
-
/**
|
|
103
|
-
* Gets current font face.
|
|
104
|
-
* @public
|
|
105
|
-
* @returns {string}
|
|
106
|
-
*/
|
|
107
|
-
public getFace(): string;
|
|
108
|
-
/**
|
|
109
|
-
* Sets label font size in pixels.
|
|
110
|
-
* @public
|
|
111
|
-
* @param {number} size - Label size in pixels.
|
|
112
|
-
*/
|
|
113
|
-
public setSize(size: number): void;
|
|
114
|
-
/**
|
|
115
|
-
* Gets label size in pixels.
|
|
116
|
-
* @public
|
|
117
|
-
* @returns {number}
|
|
118
|
-
*/
|
|
119
|
-
public getSize(): number;
|
|
120
|
-
/**
|
|
121
|
-
* Sets text outline border size. Where 0 - is no outline and 1 - is the maximum outline size.
|
|
122
|
-
* @public
|
|
123
|
-
* @param {number} outline - Text outline size.
|
|
124
|
-
*/
|
|
125
|
-
public setOutline(outline: number): void;
|
|
126
|
-
/**
|
|
127
|
-
* Gets text current outline size.
|
|
128
|
-
* @public
|
|
129
|
-
* @returns {number}
|
|
130
|
-
*/
|
|
131
|
-
public getOutline(): number;
|
|
132
|
-
/**
|
|
133
|
-
* Sets label opacity.
|
|
134
|
-
* @public
|
|
135
|
-
* @param {number} a - Label opacity.
|
|
136
|
-
*/
|
|
137
|
-
public setOpacity(a: number): void;
|
|
138
|
-
/**
|
|
139
|
-
* Sets text outline color.
|
|
140
|
-
* @public
|
|
141
|
-
* @param {number} r - Red.
|
|
142
|
-
* @param {number} g - Green.
|
|
143
|
-
* @param {number} b - Blue.
|
|
144
|
-
* @param {number} a - Alpha.
|
|
145
|
-
*/
|
|
146
|
-
public setOutlineColor(r: number, g: number, b: number, a: number): void;
|
|
147
|
-
/**
|
|
148
|
-
* Sets text outline color.
|
|
149
|
-
* @public
|
|
150
|
-
* @param {og.Vec4} rgba - Color vector.
|
|
151
|
-
*/
|
|
152
|
-
public setOutlineColor4v(rgba: any): void;
|
|
153
|
-
/**
|
|
154
|
-
* Sets text outline color HTML string.
|
|
155
|
-
* @public
|
|
156
|
-
* @param {string} color - HTML string color.
|
|
157
|
-
*/
|
|
158
|
-
public setOutlineColorHTML(color: string): void;
|
|
159
|
-
/**
|
|
160
|
-
* Gets outline color vector.
|
|
161
|
-
* @public
|
|
162
|
-
* @returns {og.Vec4}
|
|
163
|
-
*/
|
|
164
|
-
public getOutlineColor(): any;
|
|
165
|
-
/**
|
|
166
|
-
* Sets outline opacity. Actually outline color alpha value.
|
|
167
|
-
* @public
|
|
168
|
-
* @param {number} opacity - Outline opacity.
|
|
169
|
-
*/
|
|
170
|
-
public setOutlineOpacity(opacity: number): void;
|
|
171
|
-
/**
|
|
172
|
-
* Gets outline opacity value.
|
|
173
|
-
* @public
|
|
174
|
-
* @returns {number}
|
|
175
|
-
*/
|
|
176
|
-
public getOutlineOpacity(): number;
|
|
177
|
-
/**
|
|
178
|
-
* Updates label parameters.
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
public update(): void;
|
|
182
|
-
_applyFontIndex(fontIndex: any): void;
|
|
183
|
-
/**
|
|
184
|
-
* Assigns font atlas and update.
|
|
185
|
-
* @public
|
|
186
|
-
* @param {og.utils.FontAtlas} fontAtlas - Font atlas.
|
|
187
|
-
*/
|
|
188
|
-
public assignFontAtlas(fontAtlas: any): void;
|
|
189
|
-
}
|
|
190
|
-
export namespace ALIGN {
|
|
191
|
-
const RIGHT: number;
|
|
192
|
-
const LEFT: number;
|
|
193
|
-
const CENTER: number;
|
|
194
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class LabelHandler extends BillboardHandler {
|
|
2
|
-
constructor(entityCollection: any, maxLetters?: number);
|
|
3
|
-
_gliphParamBuffer: any;
|
|
4
|
-
_fontIndexBuffer: any;
|
|
5
|
-
_noOutlineBuffer: any;
|
|
6
|
-
_outlineBuffer: any;
|
|
7
|
-
_outlineColorBuffer: any;
|
|
8
|
-
_gliphParamArr: Float32Array;
|
|
9
|
-
_fontIndexArr: Float32Array;
|
|
10
|
-
_noOutlineArr: Float32Array;
|
|
11
|
-
_outlineArr: Float32Array;
|
|
12
|
-
_outlineColorArr: Float32Array;
|
|
13
|
-
_maxLetters: number;
|
|
14
|
-
assignFontAtlas(label: any): void;
|
|
15
|
-
setText(index: any, text: any, fontIndex: any, align: any): void;
|
|
16
|
-
setOutlineColorArr(index: any, rgba: any): void;
|
|
17
|
-
setOutlineArr(index: any, outline: any): void;
|
|
18
|
-
setFontIndexArr(index: any, fontIndex: any): void;
|
|
19
|
-
createFontIndexBuffer(): void;
|
|
20
|
-
createOutlineBuffer(): void;
|
|
21
|
-
createOutlineColorBuffer(): void;
|
|
22
|
-
setMaxLetters(c: any): void;
|
|
23
|
-
}
|
|
24
|
-
import { BillboardHandler } from "./BillboardHandler.js";
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PointCloud object.
|
|
3
|
-
* @class
|
|
4
|
-
* @param {*} [options] - Point cloud options:
|
|
5
|
-
* @param {Array.<Array.<number>>} [options.points] - Points cartesian coordinates array,
|
|
6
|
-
* where first three is cartesian coordinates, next fourth is a RGBA color, and last is an point properties.
|
|
7
|
-
* @param {number} [options.pointSize] - Point screen size in pixels.
|
|
8
|
-
* @param {number} [options.pickingDistance] - Point border picking size in screen pixels.
|
|
9
|
-
* @param {boolean} [options.visibility] - Point cloud visibility.
|
|
10
|
-
* @example <caption>Creates point cloud with two ten pixel size points</caption>
|
|
11
|
-
* new og.Entity({
|
|
12
|
-
* pointCloud: {
|
|
13
|
-
* pointSize: 10,
|
|
14
|
-
* points: [
|
|
15
|
-
* [0, 0, 0, 255, 255, 255, 255, { 'name': 'White point' }],
|
|
16
|
-
* [100, 100, 0, 255, 0, 0, 255, { 'name': 'Red point' }]
|
|
17
|
-
* ]
|
|
18
|
-
* }
|
|
19
|
-
* });
|
|
20
|
-
*/
|
|
21
|
-
export class PointCloud {
|
|
22
|
-
static set _staticCounter(arg: any);
|
|
23
|
-
static get _staticCounter(): any;
|
|
24
|
-
constructor(options: any);
|
|
25
|
-
/**
|
|
26
|
-
* Object unic identifier.
|
|
27
|
-
* @public
|
|
28
|
-
* @readonly
|
|
29
|
-
* @type {number}
|
|
30
|
-
*/
|
|
31
|
-
public readonly id: number;
|
|
32
|
-
/**
|
|
33
|
-
* Cloud visibility.
|
|
34
|
-
* @public
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
*/
|
|
37
|
-
public visibility: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Point screen size in pixels.
|
|
40
|
-
* @public
|
|
41
|
-
* @type {number}
|
|
42
|
-
*/
|
|
43
|
-
public pointSize: number;
|
|
44
|
-
/**
|
|
45
|
-
* Point picking border size in pixels.
|
|
46
|
-
* @public
|
|
47
|
-
* @type {number}
|
|
48
|
-
*/
|
|
49
|
-
public pickingDistance: number;
|
|
50
|
-
/**
|
|
51
|
-
* Parent collection render node.
|
|
52
|
-
* @private
|
|
53
|
-
* @type {og.scene.RenderNode}
|
|
54
|
-
*/
|
|
55
|
-
private _renderNode;
|
|
56
|
-
/**
|
|
57
|
-
* Entity instance that holds this point cloud.
|
|
58
|
-
* @private
|
|
59
|
-
* @type {og.Entity}
|
|
60
|
-
*/
|
|
61
|
-
private _entity;
|
|
62
|
-
/**
|
|
63
|
-
* Points properties.
|
|
64
|
-
* @private
|
|
65
|
-
* @type {Array.<*>}
|
|
66
|
-
*/
|
|
67
|
-
private _points;
|
|
68
|
-
/**
|
|
69
|
-
* Coordinates array.
|
|
70
|
-
* @private
|
|
71
|
-
* @type {Array.<number>}
|
|
72
|
-
*/
|
|
73
|
-
private _coordinatesData;
|
|
74
|
-
/**
|
|
75
|
-
* Color array.
|
|
76
|
-
* @private
|
|
77
|
-
* @type {Array.<number>}
|
|
78
|
-
*/
|
|
79
|
-
private _colorData;
|
|
80
|
-
/**
|
|
81
|
-
* Picking color array.
|
|
82
|
-
* @private
|
|
83
|
-
* @type {Array.<number>}
|
|
84
|
-
*/
|
|
85
|
-
private _pickingColorData;
|
|
86
|
-
_coordinatesBuffer: any;
|
|
87
|
-
_colorBuffer: any;
|
|
88
|
-
_pickingColorBuffer: any;
|
|
89
|
-
/**
|
|
90
|
-
* Handler that stores and renders this object.
|
|
91
|
-
* @private
|
|
92
|
-
* @type {og.PointCloudHandler}
|
|
93
|
-
*/
|
|
94
|
-
private _handler;
|
|
95
|
-
_handlerIndex: number;
|
|
96
|
-
_buffersUpdateCallbacks: (() => void)[];
|
|
97
|
-
_changedBuffers: any[];
|
|
98
|
-
/**
|
|
99
|
-
* Clears point cloud data
|
|
100
|
-
* @public
|
|
101
|
-
*/
|
|
102
|
-
public clear(): void;
|
|
103
|
-
/**
|
|
104
|
-
* Set point cloud opacity.
|
|
105
|
-
* @public
|
|
106
|
-
* @param {number} opacity - Cloud opacity.
|
|
107
|
-
*/
|
|
108
|
-
public setOpacity(opacity: number): void;
|
|
109
|
-
opacity: number;
|
|
110
|
-
/**
|
|
111
|
-
* Sets cloud visibility.
|
|
112
|
-
* @public
|
|
113
|
-
* @param {number} visibility - Visibility flag.
|
|
114
|
-
*/
|
|
115
|
-
public setVisibility(visibility: number): void;
|
|
116
|
-
/**
|
|
117
|
-
* @return {boolean} Point cloud visibily.
|
|
118
|
-
*/
|
|
119
|
-
getVisibility(): boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Assign rendering scene node.
|
|
122
|
-
* @public
|
|
123
|
-
* @param {og.scene.RenderNode} renderNode - Assigned render node.
|
|
124
|
-
*/
|
|
125
|
-
public setRenderNode(renderNode: any): void;
|
|
126
|
-
/**
|
|
127
|
-
* Removes from entity.
|
|
128
|
-
* @public
|
|
129
|
-
*/
|
|
130
|
-
public remove(): void;
|
|
131
|
-
/**
|
|
132
|
-
* Adds points to render.
|
|
133
|
-
* @public
|
|
134
|
-
* @param {Array.<Array<number>>} points - Point cloud array.
|
|
135
|
-
* @example
|
|
136
|
-
* var points = [[0, 0, 0, 255, 255, 255, 255, { 'name': 'White point' }], [100, 100, 0, 255, 0, 0, 255, { 'name': 'Red point' }]];
|
|
137
|
-
*/
|
|
138
|
-
public setPoints(points: Array<Array<number>>): void;
|
|
139
|
-
setPointPosition(index: any, x: any, y: any, z: any): void;
|
|
140
|
-
setPointColor(index: any, r: any, g: any, b: any, a: any): void;
|
|
141
|
-
addPoints(points: any): void;
|
|
142
|
-
addPoint(index: any, point: any): void;
|
|
143
|
-
/**
|
|
144
|
-
* Returns specific point by index.
|
|
145
|
-
* @public
|
|
146
|
-
* @param {number} index - Point index.
|
|
147
|
-
* @return {*} Specific point
|
|
148
|
-
*/
|
|
149
|
-
public getPoint(index: number): any;
|
|
150
|
-
removePoint(index: any): void;
|
|
151
|
-
insertPoint(index: any, point: any): void;
|
|
152
|
-
/**
|
|
153
|
-
* Each point iterator.
|
|
154
|
-
* @public
|
|
155
|
-
* @param {callback} callback -
|
|
156
|
-
*/
|
|
157
|
-
public each(callback: any): void;
|
|
158
|
-
draw(): void;
|
|
159
|
-
drawPicking(): void;
|
|
160
|
-
/**
|
|
161
|
-
* Update gl buffers.
|
|
162
|
-
* @private
|
|
163
|
-
*/
|
|
164
|
-
private _update;
|
|
165
|
-
/**
|
|
166
|
-
* Delete buffers
|
|
167
|
-
* @private
|
|
168
|
-
*/
|
|
169
|
-
private _deleteBuffers;
|
|
170
|
-
_createCoordinatesBuffer(): void;
|
|
171
|
-
_createColorBuffer(): void;
|
|
172
|
-
_createPickingColorBuffer(): void;
|
|
173
|
-
_setPickingColors(): void;
|
|
174
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export class PointCloudHandler {
|
|
2
|
-
static set _staticCounter(arg: any);
|
|
3
|
-
static get _staticCounter(): any;
|
|
4
|
-
constructor(entityCollection: any);
|
|
5
|
-
/**
|
|
6
|
-
* Picking rendering option.
|
|
7
|
-
* @public
|
|
8
|
-
* @type {boolean}
|
|
9
|
-
*/
|
|
10
|
-
public pickingEnabled: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Parent collection
|
|
13
|
-
* @private
|
|
14
|
-
* @type {og.EntityCollection}
|
|
15
|
-
*/
|
|
16
|
-
private _entityCollection;
|
|
17
|
-
/**
|
|
18
|
-
* Renderer
|
|
19
|
-
* @private
|
|
20
|
-
* @type {og.Renderer}
|
|
21
|
-
*/
|
|
22
|
-
private _renderer;
|
|
23
|
-
/**
|
|
24
|
-
* Point cloud array
|
|
25
|
-
* @private
|
|
26
|
-
* @type {Array.<og.PointCloud>}
|
|
27
|
-
*/
|
|
28
|
-
private _pointClouds;
|
|
29
|
-
__staticId: number;
|
|
30
|
-
_initProgram(): void;
|
|
31
|
-
setRenderNode(renderNode: any): void;
|
|
32
|
-
add(pointCloud: any): void;
|
|
33
|
-
remove(pointCloud: any): void;
|
|
34
|
-
reindexPointCloudArray(startIndex: any): void;
|
|
35
|
-
draw(): void;
|
|
36
|
-
drawPicking(): void;
|
|
37
|
-
clear(): void;
|
|
38
|
-
}
|