@openglobus/og 0.19.3 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/css/og.css +18 -4
- package/lib/@openglobus/js/Clock.d.ts +106 -0
- package/lib/@openglobus/js/Deferred.d.ts +6 -0
- package/lib/@openglobus/js/Events.d.ts +90 -0
- package/lib/@openglobus/js/Extent.d.ts +145 -0
- package/lib/@openglobus/js/Globe.d.ts +134 -0
- package/lib/@openglobus/js/ImageCanvas.d.ts +128 -0
- package/lib/@openglobus/js/Lock.d.ts +15 -0
- package/lib/@openglobus/js/LonLat.d.ts +128 -0
- package/lib/@openglobus/js/Object3d.d.ts +64 -0
- package/lib/@openglobus/js/Popup.d.ts +46 -0
- package/lib/@openglobus/js/QueueArray.d.ts +16 -0
- package/lib/@openglobus/js/Rectangle.d.ts +76 -0
- package/lib/@openglobus/js/Stack.d.ts +20 -0
- package/lib/@openglobus/js/astro/astro.d.ts +39 -0
- package/lib/@openglobus/js/astro/earth.d.ts +8 -0
- package/lib/@openglobus/js/astro/jd.d.ts +234 -0
- package/lib/@openglobus/js/astro/orbit.d.ts +5 -0
- package/lib/@openglobus/js/astro/rotation.d.ts +2 -0
- package/lib/@openglobus/js/bv/Box.d.ts +32 -0
- package/lib/@openglobus/js/bv/Sphere.d.ts +37 -0
- package/lib/@openglobus/js/bv/index.d.ts +3 -0
- package/lib/@openglobus/js/camera/Camera.d.ts +314 -0
- package/lib/@openglobus/js/camera/Frustum.d.ts +139 -0
- package/lib/@openglobus/js/camera/PlanetCamera.d.ts +234 -0
- package/lib/@openglobus/js/camera/index.d.ts +3 -0
- package/lib/@openglobus/js/cons.d.ts +40 -0
- package/lib/@openglobus/js/control/Atmosphere.d.ts +16 -0
- package/lib/@openglobus/js/control/CompassButton.d.ts +16 -0
- package/lib/@openglobus/js/control/Control.d.ts +100 -0
- package/lib/@openglobus/js/control/DebugInfo.d.ts +25 -0
- package/lib/@openglobus/js/control/DrawingSwitcher.d.ts +13 -0
- package/lib/@openglobus/js/control/EarthCoordinates.d.ts +41 -0
- package/lib/@openglobus/js/control/EarthNavigation.d.ts +50 -0
- package/lib/@openglobus/js/control/GeoImageDragControl.d.ts +22 -0
- package/lib/@openglobus/js/control/KeyboardNavigation.d.ts +28 -0
- package/lib/@openglobus/js/control/LayerAnimation.d.ts +71 -0
- package/lib/@openglobus/js/control/LayerSwitcher.d.ts +36 -0
- package/lib/@openglobus/js/control/Lighting.d.ts +53 -0
- package/lib/@openglobus/js/control/MouseNavigation.d.ts +64 -0
- package/lib/@openglobus/js/control/MouseWheelZoomControl.d.ts +44 -0
- package/lib/@openglobus/js/control/RulerSwitcher.d.ts +17 -0
- package/lib/@openglobus/js/control/ScaleControl.d.ts +24 -0
- package/lib/@openglobus/js/control/SegmentBoundVisualization.d.ts +12 -0
- package/lib/@openglobus/js/control/ShowFps.d.ts +9 -0
- package/lib/@openglobus/js/control/SimpleNavigation.d.ts +25 -0
- package/lib/@openglobus/js/control/SimpleSkyBackground.d.ts +17 -0
- package/lib/@openglobus/js/control/Sun.d.ts +33 -0
- package/lib/@openglobus/js/control/ToggleWireframe.d.ts +14 -0
- package/lib/@openglobus/js/control/TouchNavigation.d.ts +52 -0
- package/lib/@openglobus/js/control/ZoomControl.d.ts +27 -0
- package/lib/@openglobus/js/control/drawing/DrawingControl.d.ts +12 -0
- package/lib/@openglobus/js/control/drawing/LineStringDrawingScene.d.ts +15 -0
- package/lib/@openglobus/js/control/drawing/PolygonDrawingScene.d.ts +98 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfile.d.ts +77 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileButtonsView.d.ts +14 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileControl.d.ts +33 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileLegend.d.ts +20 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileScene.d.ts +80 -0
- package/lib/@openglobus/js/control/elevationProfile/ElevationProfileView.d.ts +63 -0
- package/lib/@openglobus/js/control/elevationProfile/PointListDialog.d.ts +12 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRuler.d.ts +7 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRulerScene.d.ts +35 -0
- package/lib/@openglobus/js/control/heightRuler/HeightRulerSwitcher.d.ts +6 -0
- package/lib/@openglobus/js/control/index.d.ts +29 -0
- package/lib/@openglobus/js/control/ruler/Ruler.d.ts +13 -0
- package/lib/@openglobus/js/control/ruler/RulerScene.d.ts +88 -0
- package/lib/@openglobus/js/control/selection/Selection.d.ts +55 -0
- package/lib/@openglobus/js/control/selection/SelectionScene.d.ts +44 -0
- package/lib/@openglobus/js/control/timeline/TimelineControl.d.ts +18 -0
- package/lib/@openglobus/js/control/timeline/TimelineModel.d.ts +41 -0
- package/lib/@openglobus/js/control/timeline/TimelineView.d.ts +85 -0
- package/lib/@openglobus/js/control/timeline/timelineUtils.d.ts +12 -0
- package/lib/@openglobus/js/control/visibleExtent/drawnode.d.ts +7 -0
- package/lib/@openglobus/js/ellipsoid/Ellipsoid.d.ts +193 -0
- package/lib/@openglobus/js/ellipsoid/index.d.ts +3 -0
- package/lib/@openglobus/js/ellipsoid/wgs84.d.ts +6 -0
- package/lib/@openglobus/js/entity/BaseBillboard.d.ts +222 -0
- package/lib/@openglobus/js/entity/BaseBillboardHandler.d.ts +81 -0
- package/lib/@openglobus/js/entity/Billboard.d.ts +113 -0
- package/lib/@openglobus/js/entity/BillboardHandler.d.ts +15 -0
- package/lib/@openglobus/js/entity/Entity.d.ts +354 -0
- package/lib/@openglobus/js/entity/EntityCollection.d.ts +363 -0
- package/lib/@openglobus/js/entity/GeoObject.d.ts +152 -0
- package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +104 -0
- package/lib/@openglobus/js/entity/Geometry.d.ts +124 -0
- package/lib/@openglobus/js/entity/GeometryHandler.d.ts +84 -0
- package/lib/@openglobus/js/entity/Label.d.ts +214 -0
- package/lib/@openglobus/js/entity/LabelHandler.d.ts +65 -0
- package/lib/@openglobus/js/entity/LabelWorker.d.ts +15 -0
- package/lib/@openglobus/js/entity/PointCloud.d.ts +179 -0
- package/lib/@openglobus/js/entity/PointCloudHandler.d.ts +42 -0
- package/lib/@openglobus/js/entity/Polyline.d.ts +345 -0
- package/lib/@openglobus/js/entity/PolylineHandler.d.ts +22 -0
- package/lib/@openglobus/js/entity/Ray.d.ts +133 -0
- package/lib/@openglobus/js/entity/RayHandler.d.ts +70 -0
- package/lib/@openglobus/js/entity/Strip.d.ts +139 -0
- package/lib/@openglobus/js/entity/StripHandler.d.ts +42 -0
- package/lib/@openglobus/js/entity/index.d.ts +10 -0
- package/lib/@openglobus/js/index.d.ts +33 -0
- package/lib/@openglobus/js/input/KeyboardHandler.d.ts +33 -0
- package/lib/@openglobus/js/input/MouseHandler.d.ts +16 -0
- package/lib/@openglobus/js/input/TouchHandler.d.ts +11 -0
- package/lib/@openglobus/js/input/input.d.ts +3 -0
- package/lib/@openglobus/js/layer/BaseGeoImage.d.ts +145 -0
- package/lib/@openglobus/js/layer/Bing.d.ts +4 -0
- package/lib/@openglobus/js/layer/CanvasTiles.d.ts +103 -0
- package/lib/@openglobus/js/layer/GeoImage.d.ts +61 -0
- package/lib/@openglobus/js/layer/GeoTexture2d.d.ts +17 -0
- package/lib/@openglobus/js/layer/GeoVideo.d.ts +68 -0
- package/lib/@openglobus/js/layer/KML.d.ts +72 -0
- package/lib/@openglobus/js/layer/Layer.d.ts +415 -0
- package/lib/@openglobus/js/layer/Material.d.ts +34 -0
- package/lib/@openglobus/js/layer/OpenStreetMap.d.ts +4 -0
- package/lib/@openglobus/js/layer/Vector.d.ts +246 -0
- package/lib/@openglobus/js/layer/WMS.d.ts +75 -0
- package/lib/@openglobus/js/layer/XYZ.d.ts +148 -0
- package/lib/@openglobus/js/layer/index.d.ts +12 -0
- package/lib/@openglobus/js/light/LightSource.d.ts +174 -0
- package/lib/@openglobus/js/math/Line2.d.ts +11 -0
- package/lib/@openglobus/js/math/Line3.d.ts +28 -0
- package/lib/@openglobus/js/math/Mat3.d.ts +77 -0
- package/lib/@openglobus/js/math/Mat4.d.ts +195 -0
- package/lib/@openglobus/js/math/Plane.d.ts +20 -0
- package/lib/@openglobus/js/math/Quat.d.ts +373 -0
- package/lib/@openglobus/js/math/Ray.d.ts +76 -0
- package/lib/@openglobus/js/math/Vec2.d.ts +310 -0
- package/lib/@openglobus/js/math/Vec3.d.ts +472 -0
- package/lib/@openglobus/js/math/Vec4.d.ts +163 -0
- package/lib/@openglobus/js/math/coder.d.ts +51 -0
- package/lib/@openglobus/js/math/index.d.ts +11 -0
- package/lib/@openglobus/js/math.d.ts +266 -0
- package/lib/@openglobus/js/mercator.d.ts +92 -0
- package/lib/@openglobus/js/proj/EPSG3857.d.ts +9 -0
- package/lib/@openglobus/js/proj/EPSG4326.d.ts +9 -0
- package/lib/@openglobus/js/proj/Proj.d.ts +43 -0
- package/lib/@openglobus/js/quadTree/EPSG4326QuadTreeStrategy.d.ts +6 -0
- package/lib/@openglobus/js/quadTree/EarthQuadTreeStrategy.d.ts +9 -0
- package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +54 -0
- package/lib/@openglobus/js/quadTree/MarsQuadTreeStrategy.d.ts +11 -0
- package/lib/@openglobus/js/quadTree/Node.d.ts +80 -0
- package/lib/@openglobus/js/quadTree/QuadTreeStrategy.d.ts +28 -0
- package/lib/@openglobus/js/quadTree/Wgs84QuadTreeStrategy.d.ts +6 -0
- package/lib/@openglobus/js/quadTree/index.d.ts +12 -0
- package/lib/@openglobus/js/quadTree/quadTree.d.ts +40 -0
- package/lib/@openglobus/js/renderer/Renderer.d.ts +319 -0
- package/lib/@openglobus/js/renderer/RendererEvents.d.ts +240 -0
- package/lib/@openglobus/js/scene/Axes.d.ts +12 -0
- package/lib/@openglobus/js/scene/BaseNode.d.ts +61 -0
- package/lib/@openglobus/js/scene/Planet.d.ts +652 -0
- package/lib/@openglobus/js/scene/RenderNode.d.ts +150 -0
- package/lib/@openglobus/js/scene/SkyBox.d.ts +13 -0
- package/lib/@openglobus/js/scene/index.d.ts +5 -0
- package/lib/@openglobus/js/segment/Segment.d.ts +288 -0
- package/lib/@openglobus/js/segment/SegmentLonLat.d.ts +44 -0
- package/lib/@openglobus/js/segment/SegmentLonLatWgs84.d.ts +10 -0
- package/lib/@openglobus/js/segment/Slice.d.ts +13 -0
- package/lib/@openglobus/js/segment/segmentHelper.d.ts +18 -0
- package/lib/@openglobus/js/shaders/atmos.d.ts +4 -0
- package/lib/@openglobus/js/shaders/billboard.d.ts +3 -0
- package/lib/@openglobus/js/shaders/bloom.d.ts +2 -0
- package/lib/@openglobus/js/shaders/blur.d.ts +3 -0
- package/lib/@openglobus/js/shaders/depth.d.ts +2 -0
- package/lib/@openglobus/js/shaders/drawnode.d.ts +8 -0
- package/lib/@openglobus/js/shaders/geoObject.d.ts +3 -0
- package/lib/@openglobus/js/shaders/label.d.ts +4 -0
- package/lib/@openglobus/js/shaders/lumFilter.d.ts +2 -0
- package/lib/@openglobus/js/shaders/pointCloud.d.ts +2 -0
- package/lib/@openglobus/js/shaders/polyline.d.ts +3 -0
- package/lib/@openglobus/js/shaders/ray.d.ts +2 -0
- package/lib/@openglobus/js/shaders/screenFrame.d.ts +2 -0
- package/lib/@openglobus/js/shaders/skybox.d.ts +2 -0
- package/lib/@openglobus/js/shaders/toneMapping.d.ts +2 -0
- package/lib/@openglobus/js/shaders/utils.d.ts +1 -0
- package/lib/@openglobus/js/terrain/BilTerrain.d.ts +18 -0
- package/lib/@openglobus/js/terrain/EmptyTerrain.d.ts +113 -0
- package/lib/@openglobus/js/terrain/Geoid.d.ts +33 -0
- package/lib/@openglobus/js/terrain/GlobusRgbTerrain.d.ts +6 -0
- package/lib/@openglobus/js/terrain/GlobusTerrain.d.ts +137 -0
- package/lib/{js/terrain/MapboxTerrain.d.ts → @openglobus/js/terrain/RgbTerrain.d.ts} +6 -5
- package/lib/@openglobus/js/terrain/index.d.ts +6 -0
- package/lib/@openglobus/js/ui/Button.d.ts +32 -0
- package/lib/@openglobus/js/ui/ButtonGroup.d.ts +16 -0
- package/lib/@openglobus/js/ui/Color.d.ts +22 -0
- package/lib/@openglobus/js/ui/Dialog.d.ts +55 -0
- package/lib/@openglobus/js/ui/Slider.d.ts +38 -0
- package/lib/@openglobus/js/ui/ToggleButton.d.ts +20 -0
- package/lib/@openglobus/js/ui/View.d.ts +37 -0
- package/lib/@openglobus/js/ui/icons.d.ts +1 -0
- package/lib/@openglobus/js/utils/BaseWorker.d.ts +14 -0
- package/lib/@openglobus/js/utils/FontAtlas.d.ts +82 -0
- package/lib/@openglobus/js/utils/GeoImageCreator.d.ts +34 -0
- package/lib/@openglobus/js/utils/ImagesCacheManager.d.ts +22 -0
- package/lib/@openglobus/js/utils/Loader.d.ts +63 -0
- package/lib/@openglobus/js/utils/NormalMapCreator.d.ts +52 -0
- package/lib/@openglobus/js/utils/PlainSegmentWorker.d.ts +24 -0
- package/lib/@openglobus/js/utils/TerrainWorker.d.ts +28 -0
- package/lib/@openglobus/js/utils/TextureAtlas.d.ts +113 -0
- package/lib/@openglobus/js/utils/VectorTileCreator.d.ts +18 -0
- package/lib/@openglobus/js/utils/colorTable.d.ts +3 -0
- package/lib/@openglobus/js/utils/earcut.d.ts +7 -0
- package/lib/@openglobus/js/utils/objParser.d.ts +24 -0
- package/lib/@openglobus/js/utils/shared.d.ts +263 -0
- package/lib/@openglobus/js/utils/units.d.ts +16 -0
- package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +53 -0
- package/lib/@openglobus/js/webgl/Framebuffer.d.ts +69 -0
- package/lib/@openglobus/js/webgl/Handler.d.ts +473 -0
- package/lib/@openglobus/js/webgl/Multisample.d.ts +27 -0
- package/lib/@openglobus/js/webgl/Program.d.ts +159 -0
- package/lib/@openglobus/js/webgl/ProgramController.d.ts +86 -0
- package/lib/@openglobus/js/webgl/index.d.ts +6 -0
- package/lib/@openglobus/js/webgl/types.d.ts +9 -0
- package/lib/@openglobus/js/webgl/variableHandlers.d.ts +22 -0
- package/lib/@openglobus/og.css +1 -1
- package/lib/@openglobus/og.esm.js +1 -1
- package/lib/@openglobus/og.esm.js.map +1 -1
- package/lib/@openglobus/og.umd.js +1 -1
- package/lib/@openglobus/og.umd.js.map +1 -1
- package/lib/js/Extent.js +2 -2
- package/lib/js/Globe.d.ts +1 -1
- package/lib/js/Object3d.d.ts +16 -1
- package/lib/js/Object3d.js +66 -1
- package/lib/js/astro/jd.js +26 -26
- package/lib/js/camera/Frustum.d.ts +1 -1
- package/lib/js/camera/Frustum.js +3 -2
- package/lib/js/control/DebugInfo.js +19 -18
- package/lib/js/control/Lighting.d.ts +4 -0
- package/lib/js/control/Lighting.js +51 -12
- package/lib/js/control/SimpleSkyBackground.d.ts +2 -0
- package/lib/js/control/SimpleSkyBackground.js +13 -3
- package/lib/js/control/drawing/PolygonDrawingScene.js +2 -2
- package/lib/js/control/timeline/timelineUtils.js +32 -32
- package/lib/js/control/visibleExtent/drawnode.js +1 -1
- package/lib/js/entity/GeoObject.d.ts +20 -6
- package/lib/js/entity/GeoObject.js +44 -4
- package/lib/js/entity/GeoObjectHandler.d.ts +6 -1
- package/lib/js/entity/GeoObjectHandler.js +58 -6
- package/lib/js/entity/Geometry.d.ts +24 -11
- package/lib/js/entity/Geometry.js +17 -9
- package/lib/js/entity/GeometryHandler.js +5 -5
- package/lib/js/entity/Label.d.ts +7 -0
- package/lib/js/entity/Label.js +11 -0
- package/lib/js/entity/Polyline.d.ts +15 -7
- package/lib/js/entity/Polyline.js +54 -6
- package/lib/js/entity/Strip.d.ts +12 -0
- package/lib/js/entity/Strip.js +16 -0
- package/lib/js/entity/StripHandler.js +1 -1
- package/lib/js/entity/index.d.ts +10 -11
- package/lib/js/entity/index.js +10 -11
- package/lib/js/index.d.ts +5 -5
- package/lib/js/index.js +5 -5
- package/lib/js/layer/Bing.d.ts +4 -0
- package/lib/js/layer/Bing.js +40 -0
- package/lib/js/layer/GeoImage.d.ts +1 -1
- package/lib/js/layer/GeoVideo.d.ts +1 -1
- package/lib/js/layer/Layer.d.ts +1 -1
- package/lib/js/layer/Layer.js +2 -2
- package/lib/js/layer/OpenStreetMap.d.ts +4 -0
- package/lib/js/layer/OpenStreetMap.js +19 -0
- package/lib/js/layer/Vector.d.ts +3 -0
- package/lib/js/layer/Vector.js +3 -3
- package/lib/js/layer/index.d.ts +12 -11
- package/lib/js/layer/index.js +12 -11
- package/lib/js/math/Mat4.js +18 -17
- package/lib/js/mercator.js +2 -1
- package/lib/js/quadTree/EPSG4326QuadTreeStrategy.js +4 -5
- package/lib/js/quadTree/EarthQuadTreeStrategy.d.ts +3 -0
- package/lib/js/quadTree/EarthQuadTreeStrategy.js +40 -5
- package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
- package/lib/js/quadTree/EntityCollectionNode.js +13 -14
- package/lib/js/quadTree/MarsQuadTreeStrategy.d.ts +5 -0
- package/lib/js/quadTree/MarsQuadTreeStrategy.js +31 -5
- package/lib/js/quadTree/Node.d.ts +2 -1
- package/lib/js/quadTree/Node.js +38 -28
- package/lib/js/quadTree/QuadTreeStrategy.d.ts +3 -0
- package/lib/js/quadTree/QuadTreeStrategy.js +17 -0
- package/lib/js/quadTree/Wgs84QuadTreeStrategy.js +3 -3
- package/lib/js/renderer/Renderer.js +1 -0
- package/lib/js/scene/Axes.js +4 -4
- package/lib/js/scene/Planet.js +6 -4
- package/lib/js/segment/Segment.d.ts +12 -9
- package/lib/js/segment/Segment.js +47 -24
- package/lib/js/segment/SegmentLonLat.d.ts +1 -5
- package/lib/js/segment/SegmentLonLat.js +8 -100
- package/lib/js/segment/SegmentLonLatWgs84.js +5 -3
- package/lib/js/shaders/billboard.js +4 -4
- package/lib/js/shaders/drawnode.js +16 -19
- package/lib/js/shaders/geoObject.js +10 -11
- package/lib/js/shaders/ray.js +7 -3
- package/lib/js/terrain/BilTerrain.d.ts +1 -1
- package/lib/js/terrain/BilTerrain.js +7 -6
- package/lib/js/terrain/EmptyTerrain.d.ts +7 -0
- package/lib/js/terrain/EmptyTerrain.js +7 -0
- package/lib/js/terrain/GlobusRgbTerrain.d.ts +6 -0
- package/lib/js/terrain/GlobusRgbTerrain.js +25 -0
- package/lib/js/terrain/GlobusTerrain.d.ts +5 -5
- package/lib/js/terrain/GlobusTerrain.js +35 -30
- package/lib/js/terrain/RgbTerrain.d.ts +22 -0
- package/lib/js/terrain/RgbTerrain.js +415 -0
- package/lib/js/terrain/index.d.ts +3 -2
- package/lib/js/terrain/index.js +3 -2
- package/lib/js/ui/Color.d.ts +22 -0
- package/lib/js/ui/Color.js +58 -0
- package/lib/js/utils/GeoImageCreator.js +1 -1
- package/lib/js/utils/NormalMapCreator.js +1 -1
- package/lib/js/utils/VectorTileCreator.js +3 -3
- package/lib/js/utils/objParser.js +3 -3
- package/lib/js/utils/shared.d.ts +3 -9
- package/lib/js/utils/shared.js +24 -9
- package/package.json +26 -18
- package/lib/js/terrain/MapboxTerrain.js +0 -298
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Extent } from "../Extent";
|
|
2
|
+
import { Segment } from "../segment/Segment";
|
|
3
|
+
import { XYZ, IXYZParams } from "./XYZ";
|
|
4
|
+
interface IWMSParams extends IXYZParams {
|
|
5
|
+
extra?: any;
|
|
6
|
+
layers: string;
|
|
7
|
+
imageWidth?: number;
|
|
8
|
+
imageHeight?: number;
|
|
9
|
+
version?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Used to display WMS services as tile layers on the globe.
|
|
13
|
+
* @class
|
|
14
|
+
* @extends {XYZ}
|
|
15
|
+
* @param {string} name - Layer name.
|
|
16
|
+
* @param {Object} options - Options:
|
|
17
|
+
* @param {number} [options.opacity=1.0] - Layer opacity.
|
|
18
|
+
* @param {number} [options.minZoom=0] - Minimal visibility zoom level.
|
|
19
|
+
* @param {number} [options.maxZoom=0] - Maximal visibility zoom level.
|
|
20
|
+
* @param {string} [options.attribution] - Layer attribution that displayed in the attribution area on the screen.
|
|
21
|
+
* @param {boolean} [options.isBaseLayer=false] - Base layer flag.
|
|
22
|
+
* @param {boolean} [options.visibility=true] - Layer visibility.
|
|
23
|
+
* @param {string} options.url - WMS url source.
|
|
24
|
+
* @param {number} [options.width=256] - Tile width.
|
|
25
|
+
* @param {number} [options.height=256] - Tile height.
|
|
26
|
+
* @param {string} options.layers - WMS layers string.
|
|
27
|
+
* @param {string} [options.version="1.1.1"] - WMS version.
|
|
28
|
+
* @param {Object} extra - Extra parameters (by WMS reference or by WMS service vendors) to pass to WMS service.
|
|
29
|
+
* @example:
|
|
30
|
+
* new og.layer.WMS("USA States", {
|
|
31
|
+
* isBaseLayer: false,
|
|
32
|
+
* url: "http://openglobus.org/geoserver/",
|
|
33
|
+
* layers: "topp:states",
|
|
34
|
+
* opacity: 0.5,
|
|
35
|
+
* zIndex: 50,
|
|
36
|
+
* attribution: 'USA states - geoserver WMS example',
|
|
37
|
+
* version: "1.1.1",
|
|
38
|
+
* visibility: false }, {
|
|
39
|
+
* transparent: true,
|
|
40
|
+
* sld: "style.sld"}
|
|
41
|
+
* );
|
|
42
|
+
*/
|
|
43
|
+
declare class WMS extends XYZ {
|
|
44
|
+
protected _extra: string;
|
|
45
|
+
/**
|
|
46
|
+
* WMS layers string.
|
|
47
|
+
* @public
|
|
48
|
+
* @type {string}
|
|
49
|
+
*/
|
|
50
|
+
layers: string;
|
|
51
|
+
/**
|
|
52
|
+
* WMS tile width.
|
|
53
|
+
* @public
|
|
54
|
+
* @type {number}
|
|
55
|
+
*/
|
|
56
|
+
imageWidth: number;
|
|
57
|
+
/**
|
|
58
|
+
* WMS tile height.
|
|
59
|
+
* @public
|
|
60
|
+
* @type {number}
|
|
61
|
+
*/
|
|
62
|
+
imageHeight: number;
|
|
63
|
+
protected _getBbox: (extent: Extent) => string;
|
|
64
|
+
protected _version: string;
|
|
65
|
+
constructor(name: string | null, options: IWMSParams);
|
|
66
|
+
static createRequestUrl(url: string, layers: string, format: string | undefined, version: string | undefined, request: string | undefined, srs: string, bbox: string, width?: number, height?: number, extra?: string): string;
|
|
67
|
+
static get_bbox_v1_1_1(extent: Extent): string;
|
|
68
|
+
static get_bbox_v1_3_0(extent: Extent): string;
|
|
69
|
+
_checkSegment(segment: Segment): boolean;
|
|
70
|
+
get instanceName(): string;
|
|
71
|
+
protected _createUrl(segment: Segment): string;
|
|
72
|
+
setVersion(version?: string): void;
|
|
73
|
+
_correctFullExtent(): void;
|
|
74
|
+
}
|
|
75
|
+
export { WMS };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Layer, ILayerParams, LayerEventsList } from "./Layer";
|
|
2
|
+
import { Segment } from "../segment/Segment";
|
|
3
|
+
import { EventsHandler } from "../Events";
|
|
4
|
+
import { Material } from "./Material";
|
|
5
|
+
import { NumberArray4 } from "../math/Vec4";
|
|
6
|
+
export interface IXYZParams extends ILayerParams {
|
|
7
|
+
url?: string;
|
|
8
|
+
subdomains?: string[];
|
|
9
|
+
minNativeZoom?: number;
|
|
10
|
+
maxNativeZoom?: number;
|
|
11
|
+
urlRewrite?: Function;
|
|
12
|
+
}
|
|
13
|
+
type XYZEventsList = [
|
|
14
|
+
"load",
|
|
15
|
+
"loadend"
|
|
16
|
+
];
|
|
17
|
+
type XYZEventsType = EventsHandler<XYZEventsList> & EventsHandler<LayerEventsList>;
|
|
18
|
+
/**
|
|
19
|
+
* Represents an imagery tiles source provider.
|
|
20
|
+
* @class
|
|
21
|
+
* @extends {Layer}
|
|
22
|
+
* @param {string} name - Layer name.
|
|
23
|
+
* @param {IXYZParams} options:
|
|
24
|
+
* @param {number} [options.opacity=1.0] - Layer opacity.
|
|
25
|
+
* @param {Array.<string>} [options.subdomains=['a','b','c']] - Subdomains of the tile service.
|
|
26
|
+
* @param {number} [options.minZoom=0] - Minimal visibility zoom level.
|
|
27
|
+
* @param {number} [options.maxZoom=0] - Maximal visibility zoom level.
|
|
28
|
+
* @param {number} [options.minNativeZoom=0] - Minimal available zoom level.
|
|
29
|
+
* @param {number} [options.maxNativeZoom=19] - Maximal available zoom level.
|
|
30
|
+
* @param {string} [options.attribution] - Layer attribution that displayed in the attribution area on the screen.
|
|
31
|
+
* @param {boolean} [options.isBaseLayer=false] - Base layer flag.
|
|
32
|
+
* @param {boolean} [options.visibility=true] - Layer visibility.
|
|
33
|
+
* @param {string} [options.crossOrigin=true] - If true, all tiles will have their crossOrigin attribute set to ''.
|
|
34
|
+
* @param {string} options.url - Tile url source template(see example below).
|
|
35
|
+
* @param {string} options.textureFilter - texture gl filter. NEAREST, LINEAR, MIPMAP, ANISOTROPIC.
|
|
36
|
+
* @param {Function} options.urlRewrite - Url rewrite function.
|
|
37
|
+
*
|
|
38
|
+
* @fires EventsHandler<XYZEventsList>#load
|
|
39
|
+
* @fires EventsHandler<XYZEventsList>#loadend
|
|
40
|
+
*
|
|
41
|
+
* @example <caption>Creates OpenStreetMap base tile layer</caption>
|
|
42
|
+
* new og.layer.XYZ("OpenStreetMap", {
|
|
43
|
+
* isBaseLayer: true,
|
|
44
|
+
* url: "http://b.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
45
|
+
* visibility: true,
|
|
46
|
+
* attribution: 'Data @ <a href="http://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="http://www.openstreetmap.org/copyright">ODbL</a>'
|
|
47
|
+
* });
|
|
48
|
+
*/
|
|
49
|
+
export declare class XYZ extends Layer {
|
|
50
|
+
events: XYZEventsType;
|
|
51
|
+
/**
|
|
52
|
+
* Tile url source template.
|
|
53
|
+
* @public
|
|
54
|
+
* @type {string}
|
|
55
|
+
*/
|
|
56
|
+
url: string;
|
|
57
|
+
/**
|
|
58
|
+
* @protected
|
|
59
|
+
*/
|
|
60
|
+
protected _s: string[];
|
|
61
|
+
/**
|
|
62
|
+
* Minimal native zoom level when tiles are available.
|
|
63
|
+
* @public
|
|
64
|
+
* @type {number}
|
|
65
|
+
*/
|
|
66
|
+
minNativeZoom: number;
|
|
67
|
+
/**
|
|
68
|
+
* Maximal native zoom level when tiles are available.
|
|
69
|
+
* @public
|
|
70
|
+
* @type {number}
|
|
71
|
+
*/
|
|
72
|
+
maxNativeZoom: number;
|
|
73
|
+
/**
|
|
74
|
+
* Rewrites imagery tile url query.
|
|
75
|
+
* @private
|
|
76
|
+
* @param {Segment} segment - Segment to load.
|
|
77
|
+
* @param {string} url - Created url.
|
|
78
|
+
* @returns {string} - Url query string.
|
|
79
|
+
*/
|
|
80
|
+
protected _urlRewriteCallback: Function | null;
|
|
81
|
+
protected _requestsPeerSubdomains: number;
|
|
82
|
+
protected _requestCount: number;
|
|
83
|
+
constructor(name: string | null, options?: IXYZParams);
|
|
84
|
+
/**
|
|
85
|
+
* @warning Use XYZ.isIdle in requestAnimationFrame(after setVisibility)
|
|
86
|
+
*/
|
|
87
|
+
get isIdle(): boolean;
|
|
88
|
+
get instanceName(): string;
|
|
89
|
+
/**
|
|
90
|
+
* Abort loading tiles.
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
abortLoading(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Sets layer visibility.
|
|
96
|
+
* @public
|
|
97
|
+
* @param {boolean} visibility - Layer visibility.
|
|
98
|
+
*/
|
|
99
|
+
setVisibility(visibility: boolean): void;
|
|
100
|
+
remove(): this;
|
|
101
|
+
/**
|
|
102
|
+
* Sets imagery tiles url source template.
|
|
103
|
+
* @public
|
|
104
|
+
* @param {string} url - Url template.
|
|
105
|
+
* @example
|
|
106
|
+
* http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
|
|
107
|
+
* where {z}, {x} and {y} - replaces by current tile values, {s} - random domain.
|
|
108
|
+
*/
|
|
109
|
+
setUrl(url: string): void;
|
|
110
|
+
_checkSegment(segment: Segment): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Start to load tile material.
|
|
113
|
+
* @public
|
|
114
|
+
* @virtual
|
|
115
|
+
* @param {Material} material - Loads current material.
|
|
116
|
+
* @param {boolean} [forceLoading=false] -
|
|
117
|
+
*/
|
|
118
|
+
loadMaterial(material: Material, forceLoading?: boolean): void;
|
|
119
|
+
/**
|
|
120
|
+
* Creates query url.
|
|
121
|
+
* @protected
|
|
122
|
+
* @virtual
|
|
123
|
+
* @param {Segment} segment - Creates specific url for current segment.
|
|
124
|
+
* @returns {string} - Returns url string.
|
|
125
|
+
*/
|
|
126
|
+
protected _createUrl(segment: Segment): string;
|
|
127
|
+
protected _getSubdomain(): string;
|
|
128
|
+
/**
|
|
129
|
+
* Returns actual url query string.
|
|
130
|
+
* @protected
|
|
131
|
+
* @param {Segment} segment - Segment that loads image data.
|
|
132
|
+
* @returns {string} - Url string.
|
|
133
|
+
*/
|
|
134
|
+
protected _getHTTPRequestString(segment: Segment): any;
|
|
135
|
+
/**
|
|
136
|
+
* Sets url rewrite callback, used for custom url rewriting for every tile loading.
|
|
137
|
+
* @public
|
|
138
|
+
* @param {Function} ur - The callback that returns tile custom created url.
|
|
139
|
+
*/
|
|
140
|
+
setUrlRewriteCallback(ur: Function): void;
|
|
141
|
+
applyMaterial(material: Material, forceLoading?: boolean): NumberArray4;
|
|
142
|
+
clearMaterial(material: Material): void;
|
|
143
|
+
/**
|
|
144
|
+
* @protected
|
|
145
|
+
*/
|
|
146
|
+
protected _correctFullExtent(): void;
|
|
147
|
+
}
|
|
148
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './CanvasTiles';
|
|
2
|
+
export * from './GeoImage';
|
|
3
|
+
export * from './GeoTexture2d';
|
|
4
|
+
export * from './GeoVideo';
|
|
5
|
+
export * from './KML';
|
|
6
|
+
export * from './Layer';
|
|
7
|
+
export * from './Vector';
|
|
8
|
+
export * from './WMS';
|
|
9
|
+
export * from './XYZ';
|
|
10
|
+
export * from './Material';
|
|
11
|
+
export * from './OpenStreetMap';
|
|
12
|
+
export * from './Bing';
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Vec3 } from "../math/Vec3";
|
|
2
|
+
import { RenderNode } from "../scene/RenderNode";
|
|
3
|
+
export interface ILightSourceParams {
|
|
4
|
+
position?: Vec3;
|
|
5
|
+
directional?: boolean;
|
|
6
|
+
ambient?: Vec3;
|
|
7
|
+
diffuse?: Vec3;
|
|
8
|
+
specular?: Vec3;
|
|
9
|
+
shininess?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Represents basic light source.
|
|
13
|
+
* @class
|
|
14
|
+
* @param {string} [name] - Light source name.
|
|
15
|
+
* @param {ILightSourceParams} [params] - Light parameters:
|
|
16
|
+
* @param {Vec3} [params.position] - Light source position if it is a point light, otherwise it is a light direction vector.
|
|
17
|
+
* @param {Vec3} [params.ambient] - Ambient RGB color.
|
|
18
|
+
* @param {Vec3} [params.diffuse] - Diffuse RGB color.
|
|
19
|
+
* @param {Vec3} [params.specular] - Specular RGB color.
|
|
20
|
+
* @param {number} [params.shininess] - Specular shininess.
|
|
21
|
+
*/
|
|
22
|
+
declare class LightSource {
|
|
23
|
+
static __counter__: number;
|
|
24
|
+
/**
|
|
25
|
+
* Light name.
|
|
26
|
+
* @protected
|
|
27
|
+
* @type {string}
|
|
28
|
+
*/
|
|
29
|
+
protected _name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Render node where light is shines.
|
|
32
|
+
* @protected
|
|
33
|
+
* @type {RenderNode}
|
|
34
|
+
*/
|
|
35
|
+
protected _renderNode: RenderNode | null;
|
|
36
|
+
/**
|
|
37
|
+
* Light position.
|
|
38
|
+
* @public
|
|
39
|
+
* @type {Vec3}
|
|
40
|
+
*/
|
|
41
|
+
_position: Vec3;
|
|
42
|
+
/**
|
|
43
|
+
* True if the light is directional.
|
|
44
|
+
* @public
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
*/
|
|
47
|
+
directional: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Ambient color.
|
|
50
|
+
* @protected
|
|
51
|
+
* @type {Vec3}
|
|
52
|
+
*/
|
|
53
|
+
protected _ambient: Vec3;
|
|
54
|
+
/**
|
|
55
|
+
* Diffuse color.
|
|
56
|
+
* @protected
|
|
57
|
+
* @type {Vec3}
|
|
58
|
+
*/
|
|
59
|
+
protected _diffuse: Vec3;
|
|
60
|
+
/**
|
|
61
|
+
* Specular color.
|
|
62
|
+
* @protected
|
|
63
|
+
* @type {Vec3}
|
|
64
|
+
*/
|
|
65
|
+
protected _specular: Vec3;
|
|
66
|
+
/**
|
|
67
|
+
* Shininess.
|
|
68
|
+
* @protected
|
|
69
|
+
* @type {number}
|
|
70
|
+
*/
|
|
71
|
+
protected _shininess: number;
|
|
72
|
+
/**
|
|
73
|
+
* Light activity.
|
|
74
|
+
* @protected
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
*/
|
|
77
|
+
protected _active: boolean;
|
|
78
|
+
protected _tempAmbient: Vec3;
|
|
79
|
+
protected _tempDiffuse: Vec3;
|
|
80
|
+
protected _tempSpecular: Vec3;
|
|
81
|
+
protected _tempShininess: number;
|
|
82
|
+
constructor(name: string, params: ILightSourceParams);
|
|
83
|
+
/**
|
|
84
|
+
* Creates clone of the current light object.
|
|
85
|
+
* @todo: TODO
|
|
86
|
+
* @public
|
|
87
|
+
* @returns {LightSource}
|
|
88
|
+
*/
|
|
89
|
+
clone(): void;
|
|
90
|
+
/**
|
|
91
|
+
* Set light activity. If activity is false the light doesn't shine.
|
|
92
|
+
* @public
|
|
93
|
+
* @param {boolean} active - Light activity.
|
|
94
|
+
*/
|
|
95
|
+
setActive(active: boolean): void;
|
|
96
|
+
/**
|
|
97
|
+
* Gets light activity.
|
|
98
|
+
* @public
|
|
99
|
+
* @returns {boolean}
|
|
100
|
+
*/
|
|
101
|
+
isActive(): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Set light source position, or if it is a directional type sets light direction vector.
|
|
104
|
+
* @public
|
|
105
|
+
* @param {Vec3} position - Light position or direction vector.
|
|
106
|
+
*/
|
|
107
|
+
setPosition3v(position: Vec3): void;
|
|
108
|
+
/**
|
|
109
|
+
* Set light source position, or if it is a directional type sets light direction vector.
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
setPosition(x: number, y: number, z: number): void;
|
|
113
|
+
/**
|
|
114
|
+
* Returns light source position, or if it is a directional type sets light direction vector.
|
|
115
|
+
* @public
|
|
116
|
+
* @returns {Vec3} - Light source position/direction.
|
|
117
|
+
*/
|
|
118
|
+
getPosition(): Vec3;
|
|
119
|
+
/**
|
|
120
|
+
* Set ambient color.
|
|
121
|
+
* @public
|
|
122
|
+
* @param {Vec3} rgb - Ambient color.
|
|
123
|
+
*/
|
|
124
|
+
setAmbient3v(rgb: Vec3): void;
|
|
125
|
+
/**
|
|
126
|
+
* Set diffuse color.
|
|
127
|
+
* @public
|
|
128
|
+
* @param {Vec3} rgb - Diffuse color.
|
|
129
|
+
*/
|
|
130
|
+
setDiffuse3v(rgb: Vec3): void;
|
|
131
|
+
/**
|
|
132
|
+
* Set specular color.
|
|
133
|
+
* @public
|
|
134
|
+
* @param {Vec3} rgb - Specular color.
|
|
135
|
+
*/
|
|
136
|
+
setSpecular3v(rgb: Vec3): void;
|
|
137
|
+
/**
|
|
138
|
+
* Set ambient color.
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
setAmbient(r: number, g: number, b: number): void;
|
|
142
|
+
/**
|
|
143
|
+
* Set diffuse color.
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
setDiffuse(r: number, g: number, b: number): void;
|
|
147
|
+
/**
|
|
148
|
+
* Set specular color.
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
setSpecular(r: number, g: number, b: number): void;
|
|
152
|
+
/**
|
|
153
|
+
* Set material shininess.
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
setShininess(shininess: number): void;
|
|
157
|
+
/**
|
|
158
|
+
* Sets light to black.
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
setBlack(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Adds current light to the render node scene.
|
|
164
|
+
* @public
|
|
165
|
+
* @param {RenderNode} renderNode - Render node scene.
|
|
166
|
+
*/
|
|
167
|
+
addTo(renderNode: RenderNode): void;
|
|
168
|
+
/**
|
|
169
|
+
* Removes from render node scene.
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
remove(): void;
|
|
173
|
+
}
|
|
174
|
+
export { LightSource };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vec2 } from './Vec2';
|
|
2
|
+
export declare class Line2 {
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
c: number;
|
|
6
|
+
constructor(a?: number, b?: number, c?: number);
|
|
7
|
+
static get(p0: Vec2, p1: Vec2): Line2;
|
|
8
|
+
static getParallel(l: Line2, p: Vec2): Line2;
|
|
9
|
+
static getIntersection(L0: Line2, L1: Line2): Vec2;
|
|
10
|
+
intersects(l: Line2): Vec2;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Sphere } from "../bv/Sphere";
|
|
2
|
+
import { Vec3 } from './Vec3';
|
|
3
|
+
/**
|
|
4
|
+
* @todo: write tests
|
|
5
|
+
* @class Line3
|
|
6
|
+
* Represents a line segment in 3d space.
|
|
7
|
+
* @param {Vec3} [p0] - First point of the line
|
|
8
|
+
* @param {Vec3} [p1] - Second point of the line
|
|
9
|
+
*/
|
|
10
|
+
export declare class Line3 {
|
|
11
|
+
/**
|
|
12
|
+
* First point of the line
|
|
13
|
+
* @public
|
|
14
|
+
* @type: Vec3
|
|
15
|
+
*/
|
|
16
|
+
p0: Vec3;
|
|
17
|
+
/**
|
|
18
|
+
* Second point of the line
|
|
19
|
+
* @public
|
|
20
|
+
* @type: Vec3
|
|
21
|
+
*/
|
|
22
|
+
p1: Vec3;
|
|
23
|
+
constructor(p0?: Vec3, p1?: Vec3);
|
|
24
|
+
getMagnitude(): number;
|
|
25
|
+
getSphereIntersection(sphere: Sphere): [Vec3] | [Vec3, Vec3] | [];
|
|
26
|
+
intersects(line: Line3, res: Vec3, res2?: Vec3): boolean;
|
|
27
|
+
getNearestDistancePoint(point: Vec3, res: Vec3): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Mat4 } from "./Mat4";
|
|
2
|
+
import { Vec3 } from "./Vec3";
|
|
3
|
+
export type NumberArray9 = [
|
|
4
|
+
number,
|
|
5
|
+
number,
|
|
6
|
+
number,
|
|
7
|
+
number,
|
|
8
|
+
number,
|
|
9
|
+
number,
|
|
10
|
+
number,
|
|
11
|
+
number,
|
|
12
|
+
number
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Class represents a 3x3 matrix.
|
|
16
|
+
* @class
|
|
17
|
+
*/
|
|
18
|
+
export declare class Mat3 {
|
|
19
|
+
/**
|
|
20
|
+
* A 3x3 matrix, indexing as a column-major order array.
|
|
21
|
+
* @public
|
|
22
|
+
* @type {Array.<number>}
|
|
23
|
+
*/
|
|
24
|
+
_m: NumberArray9;
|
|
25
|
+
constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Sets column-major order array matrix.
|
|
28
|
+
* @public
|
|
29
|
+
* @param {Array.<number>} m - Matrix array.
|
|
30
|
+
* @returns {Mat3}
|
|
31
|
+
*/
|
|
32
|
+
set(m: NumberArray9): Mat3;
|
|
33
|
+
/**
|
|
34
|
+
* Duplicates a Mat3 instance.
|
|
35
|
+
* @public
|
|
36
|
+
* @returns {Mat3}
|
|
37
|
+
*/
|
|
38
|
+
clone(): Mat3;
|
|
39
|
+
/**
|
|
40
|
+
* Copy matrix.
|
|
41
|
+
* @public
|
|
42
|
+
* @param {Mat3} a - Matrix to copy.
|
|
43
|
+
* @returns {Mat3}
|
|
44
|
+
*/
|
|
45
|
+
copy(a: Mat3): Mat3;
|
|
46
|
+
/**
|
|
47
|
+
* Creates transposed matrix from the current.
|
|
48
|
+
* @public
|
|
49
|
+
* @returns {Mat3}
|
|
50
|
+
*/
|
|
51
|
+
transposeTo(): Mat3;
|
|
52
|
+
/**
|
|
53
|
+
* Sets matrix to identity.
|
|
54
|
+
* @public
|
|
55
|
+
* @returns {Mat3}
|
|
56
|
+
*/
|
|
57
|
+
setIdentity(): Mat3;
|
|
58
|
+
/**
|
|
59
|
+
* Multiply to 3d vector.
|
|
60
|
+
* @public
|
|
61
|
+
* @params {Vec3} p - 3d vector.
|
|
62
|
+
* @returns {Vec3}
|
|
63
|
+
*/
|
|
64
|
+
mulVec(p: Vec3): Vec3;
|
|
65
|
+
/**
|
|
66
|
+
* Converts to 4x4 matrix.
|
|
67
|
+
* @public
|
|
68
|
+
* @returns {Mat4}
|
|
69
|
+
*/
|
|
70
|
+
toMatrix4(): Mat4;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Mat3 factory.
|
|
74
|
+
* @static
|
|
75
|
+
* @return {Mat3}
|
|
76
|
+
*/
|
|
77
|
+
export declare function mat3(): Mat3;
|