@baidumap/mapv-three 1.3.3 → 1.4.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/dist/assets/textures/cloud/stbn.bin +0 -0
- package/dist/assets/wasm/lanelet.js +3296 -165
- package/dist/assets/wasm/lanelet.wasm +0 -0
- package/dist/assets/workers/{BaiduVectorParser.worker-d550338e.js → BaiduVectorParser.worker-f7fcc351.js} +915 -865
- package/dist/assets/workers/{CesiumTerrainParser.worker-20119751.js → CesiumTerrainParser.worker-fcae0cc9.js} +1081 -998
- package/dist/assets/workers/{MVTParser.worker-7dc8b0e4.js → MVTParser.worker-0dd27c39.js} +746 -685
- package/dist/devtool/panel.js +99 -29
- package/dist/mapvthree.module.js +16513 -18418
- package/dist/mapvthree.umd.js +13 -7
- package/dist/types/Internal.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.open.d.ts +4 -0
- package/dist/types/threejs/controls/PointerLockControls.d.ts +2 -0
- package/dist/types/threejs/loaders/utilities/BatchTableHierarchyExtension.d.ts +4 -4
- package/dist/types/threejs/loaders/utilities/FeatureTable.d.ts +1 -1
- package/dist/types/threejs/materials/effects/LightningMaterial.d.ts +9 -0
- package/dist/types/threejs/materials/extend/ExtendMeshStandardMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/DynamicSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/StaticSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/natural/VerticalGradientSkyMaterial.d.ts +1 -0
- package/dist/types/threejs/materials/polygon/PolygonMaterial.d.ts +1 -0
- package/dist/types/threejs/objects/GeoInstancedMesh.d.ts +1 -0
- package/dist/types/threejs/objects/line/Polyline.d.ts +1 -1
- package/dist/types/threejs/objects/point/Icon.d.ts +1 -0
- package/dist/types/threejs/objects/point/Label.d.ts +5 -1
- package/dist/types/threejs/objects/point/label/GeometryBufferBuilder.d.ts +3 -0
- package/dist/types/threejs/objects/point/label/TextBoxCalculator.d.ts +5 -3
- package/dist/types/threejs/objects/text/utils.d.ts +1 -1
- package/dist/types/threemap/3dtiles/HDMap3DTiles.d.ts +26 -0
- package/dist/types/threemap/3dtiles/materials/Default3DTilesMaterialManager.d.ts +51 -3
- package/dist/types/threemap/Engine.d.ts +6 -0
- package/dist/types/threemap/animations/ObjectTracker.d.ts +73 -44
- package/dist/types/threemap/animations/PathTracker.d.ts +92 -24
- package/dist/types/threemap/animations/RotateTracker.d.ts +115 -21
- package/dist/types/threemap/animations/TrackerAbstract.d.ts +15 -11
- package/dist/types/threemap/controls/PointerLockControls.d.ts +8 -2
- package/dist/types/threemap/controls/controller/ColumbusController.d.ts +10 -0
- package/dist/types/threemap/controls/controller/Scene3DController.d.ts +9 -0
- package/dist/types/threemap/controls/editors/Editor.d.ts +3 -0
- package/dist/types/threemap/engine/Clock.d.ts +156 -0
- package/dist/types/threemap/engine/Map.d.ts +20 -2
- package/dist/types/threemap/engine/Rendering.d.ts +15 -0
- package/dist/types/threemap/engine/rendering/Label.d.ts +2 -0
- package/dist/types/threemap/engine/rendering/MainNew.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/OpaquePostprocessings.d.ts +1 -1
- package/dist/types/threemap/engine/rendering/postprocessing/SkyAtmospherePass.d.ts +1 -0
- package/dist/types/threemap/engine/rendering/scene/DirectSceneRendering.d.ts +5 -0
- package/dist/types/threemap/mapView/geo/terrainData/QuantizedMeshTerrainData.d.ts +1 -1
- package/dist/types/threemap/mapView/grid/BaiduVectorOfflineGrid.d.ts +5 -0
- package/dist/types/threemap/mapView/map/MapView.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/ElementParser.d.ts +86 -0
- package/dist/types/threemap/mapView/parser/baidulane/StyleParser.d.ts +28 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/index.d.ts +25 -0
- package/dist/types/threemap/mapView/parser/baidulane/constants/types.d.ts +47 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/GeometryBuilder.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/LayerManager.d.ts +41 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/MaterialFactory.d.ts +71 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/StyleManager.d.ts +50 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/TextureManager.d.ts +65 -0
- package/dist/types/threemap/mapView/parser/baidulane/core/wasmManager.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Base.d.ts +46 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Building3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/FlatSymbol.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LabelLine.d.ts +29 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3d.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Line3dTexture.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineDash.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/LineTexture.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Poi.d.ts +26 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/Polygon3d.d.ts +40 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrude.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonExtrudeTexture.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/PolygonOpacity.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/generators/SimplePoint.d.ts +39 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Background.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Base.d.ts +27 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/BridgePier.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugLine.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPoint.d.ts +5 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/DebugPolygon.d.ts +20 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGradient.d.ts +16 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingGuide.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingLine.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingPoly.d.ts +15 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/GaoqingRoad.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/HRegion.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/LineName.d.ts +48 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Link.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poi.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Poly.d.ts +11 -0
- package/dist/types/threemap/mapView/parser/baidulane/processors/Texture.d.ts +10 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/color.d.ts +13 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/coordinate.d.ts +18 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/geometry.d.ts +3 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/icon.d.ts +8 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/merge.d.ts +7 -0
- package/dist/types/threemap/mapView/parser/baidulane/utils/tracer.d.ts +7 -0
- package/dist/types/{util/mapbox.d.ts → threemap/mapView/parser/mapbox/util.d.ts} +1 -1
- package/dist/types/threemap/mapView/surface/GroundSceneRenderer.d.ts +7 -2
- package/dist/types/threemap/mapView/surface/MapSurface.d.ts +2 -0
- package/dist/types/threemap/mapView/tileProvider/terrain/CesiumTerrainTileProvider.d.ts +3 -0
- package/dist/types/threemap/mapView/tileProvider/vector/BaiduLaneVectorTileProvider.d.ts +7 -0
- package/dist/types/threemap/mapView/tileProvider/vector/MapboxVectorTileProvider.d.ts +6 -10
- package/dist/types/threemap/mapView/utils/createGroundTileMesh.d.ts +2 -1
- package/dist/types/threemap/mapView/utils/projectVertices.d.ts +1 -1
- package/dist/types/threemap/materials/BatchBuildingMaterial.d.ts +9 -11
- package/dist/types/threemap/materials/RoadMarkingMaterial.d.ts +2 -11
- package/dist/types/threemap/materials/TerrainClassificationMaterial.d.ts +9 -7
- package/dist/types/threemap/natural/DynamicSky.d.ts +68 -22
- package/dist/types/threemap/natural/DynamicWeather.d.ts +15 -105
- package/dist/types/threemap/natural/EmptySky.d.ts +48 -62
- package/dist/types/threemap/natural/PhysicalSky.d.ts +220 -0
- package/dist/types/threemap/natural/Rain.d.ts +5 -2
- package/dist/types/threemap/natural/Snow.d.ts +5 -2
- package/dist/types/threemap/natural/StaticSky.d.ts +1 -0
- package/dist/types/threemap/natural/Thunderstorm.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/CascadedShadowMaps.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/CloudLayer.d.ts +19 -0
- package/dist/types/threemap/natural/clouds/CloudLayers.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/CloudShape.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudShapeDetail.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/CloudsEffect.d.ts +173 -0
- package/dist/types/threemap/natural/clouds/CloudsMaterial.d.ts +35 -0
- package/dist/types/threemap/natural/clouds/CloudsPass.d.ts +39 -0
- package/dist/types/threemap/natural/clouds/CloudsPostPass.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/CloudsResolveMaterial.d.ts +13 -0
- package/dist/types/threemap/natural/clouds/DensityProfile.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/LocalWeather.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/PassBase.d.ts +7 -0
- package/dist/types/threemap/natural/clouds/Procedural3DTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ProceduralTexture.d.ts +15 -0
- package/dist/types/threemap/natural/clouds/ShaderArrayPass.d.ts +3 -0
- package/dist/types/threemap/natural/clouds/ShadowMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/clouds/ShadowPass.d.ts +31 -0
- package/dist/types/threemap/natural/clouds/ShadowResolveMaterial.d.ts +8 -0
- package/dist/types/threemap/natural/clouds/Turbulence.d.ts +4 -0
- package/dist/types/threemap/natural/clouds/bayer.d.ts +2 -0
- package/dist/types/threemap/natural/clouds/constants.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/helpers/FrustumCorners.d.ts +10 -0
- package/dist/types/threemap/natural/clouds/helpers/setArrayRenderTargetLayers.d.ts +1 -0
- package/dist/types/threemap/natural/clouds/helpers/splitFrustum.d.ts +6 -0
- package/dist/types/threemap/natural/clouds/qualityPresets.d.ts +130 -0
- package/dist/types/threemap/natural/clouds/uniforms.d.ts +44 -0
- package/dist/types/threemap/natural/core/ArrayBufferLoader.d.ts +3 -0
- package/dist/types/threemap/natural/core/DataTextureLoader.d.ts +11 -0
- package/dist/types/threemap/natural/core/Ellipsoid.d.ts +17 -0
- package/dist/types/threemap/natural/core/Geodetic.d.ts +23 -0
- package/dist/types/threemap/natural/core/TypedArrayLoader.d.ts +5 -0
- package/dist/types/threemap/natural/core/capabilities.d.ts +1 -0
- package/dist/types/threemap/natural/core/celestialDirections.d.ts +5 -0
- package/dist/types/threemap/natural/core/decorators.d.ts +61 -0
- package/dist/types/threemap/natural/core/defineShorthand.d.ts +2 -0
- package/dist/types/threemap/natural/core/helpers/projectOnEllipsoidSurface.d.ts +1 -0
- package/dist/types/threemap/natural/core/math.d.ts +15 -0
- package/dist/types/threemap/natural/core/requestIdleCallback.d.ts +2 -0
- package/dist/types/threemap/natural/core/resolveIncludes.d.ts +1 -0
- package/dist/types/threemap/natural/core/shaders/index.d.ts +10 -0
- package/dist/types/threemap/natural/core/unrollLoops.d.ts +1 -0
- package/dist/types/threemap/natural/effects/DepthEffect.d.ts +15 -0
- package/dist/types/threemap/natural/effects/DitheringEffect.d.ts +6 -0
- package/dist/types/threemap/natural/effects/DownsampleThresholdMaterial.d.ts +14 -0
- package/dist/types/threemap/natural/effects/GeometryEffect.d.ts +11 -0
- package/dist/types/threemap/natural/effects/GeometryPass.d.ts +6 -0
- package/dist/types/threemap/natural/effects/LensFlareEffect.d.ts +31 -0
- package/dist/types/threemap/natural/effects/LensFlareFeaturesMaterial.d.ts +17 -0
- package/dist/types/threemap/natural/effects/NormalEffect.d.ts +16 -0
- package/dist/types/threemap/natural/effects/createHaldLookupTexture.d.ts +1 -0
- package/dist/types/threemap/natural/effects/index.d.ts +7 -0
- package/dist/types/threemap/natural/effects/setupMaterialsForGeometryPass.d.ts +1 -0
- package/dist/types/threemap/natural/sky/AerialPerspectiveEffect.d.ts +95 -0
- package/dist/types/threemap/natural/sky/AtmosphereMaterialBase.d.ts +40 -0
- package/dist/types/threemap/natural/sky/AtmosphereParameters.d.ts +32 -0
- package/dist/types/threemap/natural/sky/AtmospherePostPass.d.ts +10 -0
- package/dist/types/threemap/natural/sky/PrecomputedTexturesGenerator.d.ts +66 -0
- package/dist/types/threemap/natural/sky/SkyMaterial.d.ts +26 -0
- package/dist/types/threemap/natural/sky/constants.d.ts +14 -0
- package/dist/types/threemap/natural/sky/getAltitudeCorrectionOffset.d.ts +1 -0
- package/dist/types/threemap/video/VideoConfig.d.ts +2 -2
- package/dist/types/util/graphics/line.d.ts +2 -2
- package/dist/types/util/request.d.ts +1 -1
- package/package.json +6 -3
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/color.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/background.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill-extrusion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/fill.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/line.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/executer/symbol.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/compound_expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/assertion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/at.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/case.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coalesce.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/coercion.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/comparison.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/in.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/index_of.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/interpolate.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/length.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/let.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/literal.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/match.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/number_format.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/slice.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/step.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/var.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/definitions/within.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/evaluation_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/expression.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/is_constant.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_context.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/parsing_error.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/scope.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/stops.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/collator.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/formatted.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types/resolved_image.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/types.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/expression/values.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/feature_filter/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/convert.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/function/index.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sourceLayer.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/sprite.d.ts +0 -0
- /package/dist/types/threemap/mapView/{mapbox → parser/mapbox}/style.d.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Label Line Generator
|
|
3
|
+
* 生成路名标签渲染对象
|
|
4
|
+
*/
|
|
5
|
+
export class LabelLineGenerator extends BaseGenerator {
|
|
6
|
+
getMaterialConfig(): null;
|
|
7
|
+
generate(element: any, roadElement: any, styleConfig: any, context: any, point: any): {
|
|
8
|
+
type: string;
|
|
9
|
+
geometry: null;
|
|
10
|
+
material: null;
|
|
11
|
+
properties: {
|
|
12
|
+
poiData: {
|
|
13
|
+
position: any;
|
|
14
|
+
text: any;
|
|
15
|
+
styleId: any;
|
|
16
|
+
styleConfig: any;
|
|
17
|
+
hasText: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | null;
|
|
21
|
+
createGeometry(element: any, roadElement: any, styleConfig: any, context: any, point: any): {
|
|
22
|
+
position: any;
|
|
23
|
+
text: any;
|
|
24
|
+
styleId: any;
|
|
25
|
+
styleConfig: any;
|
|
26
|
+
hasText: boolean;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 普通像素线 Generator
|
|
3
|
+
* 生成普通线条渲染对象
|
|
4
|
+
*/
|
|
5
|
+
export class LineGenerator extends BaseGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* 生成渲染对象
|
|
8
|
+
* @param {object} geoData - 图元信息。要求包含 vertices
|
|
9
|
+
* @param {object} styleConfig - 样式配置
|
|
10
|
+
* @param {object} context - 上下文信息
|
|
11
|
+
* @returns {object} 渲染对象配置
|
|
12
|
+
*/
|
|
13
|
+
generate(geoData: object, styleConfig: object, context: object): object;
|
|
14
|
+
}
|
|
15
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 高清线 Generator
|
|
3
|
+
* 生成高清线条渲染对象(不 keepSize,可能带高度)
|
|
4
|
+
*/
|
|
5
|
+
export class Line3dGenerator extends BaseGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* 生成渲染对象
|
|
8
|
+
* @param {object} geoData - 图元信息。要求包含 vertices
|
|
9
|
+
* @param {object} styleConfig - 样式配置
|
|
10
|
+
* @param {object} context - 上下文信息
|
|
11
|
+
* @returns {object} 渲染对象配置
|
|
12
|
+
*/
|
|
13
|
+
generate(geoData: object, styleConfig: object, context: object): object;
|
|
14
|
+
}
|
|
15
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* POI Generator
|
|
3
|
+
* 生成POI标签渲染对象
|
|
4
|
+
*/
|
|
5
|
+
export class PoiGenerator extends BaseGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* 获取材质配置 - POI不需要材质配置
|
|
8
|
+
* @returns {null}
|
|
9
|
+
*/
|
|
10
|
+
getMaterialConfig(): null;
|
|
11
|
+
/**
|
|
12
|
+
* 获取顶点属性布局配置
|
|
13
|
+
* POI不需要顶点属性,返回空数组
|
|
14
|
+
* @returns {Array} 空数组
|
|
15
|
+
*/
|
|
16
|
+
getAttributeLayout(): any[];
|
|
17
|
+
/**
|
|
18
|
+
* 生成渲染对象
|
|
19
|
+
* @param {object} element - 元素对象
|
|
20
|
+
* @param {object} styleConfig - 样式配置
|
|
21
|
+
* @param {object} context - 上下文信息
|
|
22
|
+
* @returns {object} 渲染对象配置
|
|
23
|
+
*/
|
|
24
|
+
generate(element: object, styleConfig: object, context: object): object;
|
|
25
|
+
}
|
|
26
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 普通2D面 Generator
|
|
3
|
+
* 生成普通多边形渲染对象
|
|
4
|
+
*/
|
|
5
|
+
export class PolygonGenerator extends BaseGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* 生成渲染对象
|
|
8
|
+
* @param {object} geoData - 图元信息。要求包含 vertices、indices
|
|
9
|
+
* @param {object} styleConfig - 样式配置
|
|
10
|
+
* @param {object} context - 上下文信息
|
|
11
|
+
* @returns {object} 渲染对象配置
|
|
12
|
+
*/
|
|
13
|
+
generate(geoData: object, styleConfig: object, context: object): object;
|
|
14
|
+
}
|
|
15
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export class Polygon3dGenerator extends BaseGenerator {
|
|
2
|
+
getMaterialConfig(): {
|
|
3
|
+
name: string;
|
|
4
|
+
ctorName: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
depthTest: boolean;
|
|
7
|
+
vertexColors: boolean;
|
|
8
|
+
side: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
generate(geoData: any, styleConfig: any, context: any): {
|
|
12
|
+
type: string;
|
|
13
|
+
geometry: {
|
|
14
|
+
vertices: any;
|
|
15
|
+
indices: any;
|
|
16
|
+
normals: any;
|
|
17
|
+
colors: any;
|
|
18
|
+
};
|
|
19
|
+
material: {
|
|
20
|
+
name: string;
|
|
21
|
+
ctorName: string;
|
|
22
|
+
parameters: {
|
|
23
|
+
depthTest: boolean;
|
|
24
|
+
vertexColors: boolean;
|
|
25
|
+
side: any;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
attributeLayout: {
|
|
29
|
+
name: string;
|
|
30
|
+
size: number;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
createGeometry(geoData: any, styleConfig: any, context: any): {
|
|
34
|
+
vertices: any;
|
|
35
|
+
indices: any;
|
|
36
|
+
normals: any;
|
|
37
|
+
colors: any;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 拉伸高度面 Generator
|
|
3
|
+
* 生成带高度的3D多边形渲染对象(高清路面)
|
|
4
|
+
*/
|
|
5
|
+
export class PolygonExtrudeGenerator extends BaseGenerator {
|
|
6
|
+
/**
|
|
7
|
+
* 生成渲染对象
|
|
8
|
+
* @param {object} geoData - 图元信息。要求包含 vertices、indices
|
|
9
|
+
* @param {object} styleConfig - 样式配置
|
|
10
|
+
* @param {object} context - 上下文信息
|
|
11
|
+
* @returns {object} 渲染对象配置
|
|
12
|
+
*/
|
|
13
|
+
generate(geoData: object, styleConfig: object, context: object): object;
|
|
14
|
+
}
|
|
15
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 带纹理的拉伸高度面 Generator
|
|
3
|
+
*/
|
|
4
|
+
export class PolygonExtrudeTextureGenerator extends BaseGenerator {
|
|
5
|
+
/**
|
|
6
|
+
* 生成渲染对象
|
|
7
|
+
* @param {object} geoData - 图元信息。要求包含 vertices、indices
|
|
8
|
+
* @param {object} styleConfig - 样式配置
|
|
9
|
+
* @param {object} context - 上下文信息
|
|
10
|
+
* @returns {object} 渲染对象配置
|
|
11
|
+
*/
|
|
12
|
+
generate(geoData: object, styleConfig: object, context: object): object;
|
|
13
|
+
/**
|
|
14
|
+
* 根据纹理方向计算UV坐标
|
|
15
|
+
*/
|
|
16
|
+
computeUVsWithDirection(vertices: any, topVertexCount: any, textureDirection: any, textureStep: any): number[];
|
|
17
|
+
}
|
|
18
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple Point Generator
|
|
3
|
+
* 生成简单点渲染对象
|
|
4
|
+
*/
|
|
5
|
+
export class SimplePointGenerator extends BaseGenerator {
|
|
6
|
+
static material: {
|
|
7
|
+
name: string;
|
|
8
|
+
ctorName: string;
|
|
9
|
+
parameters: {};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 获取材质配置 - 简单点不需要材质配置
|
|
13
|
+
* @returns {null}
|
|
14
|
+
*/
|
|
15
|
+
getMaterialConfig(): null;
|
|
16
|
+
/**
|
|
17
|
+
* 获取顶点属性布局配置
|
|
18
|
+
* 简单点不需要顶点属性,返回空数组
|
|
19
|
+
* @returns {Array} 空数组
|
|
20
|
+
*/
|
|
21
|
+
getAttributeLayout(): any[];
|
|
22
|
+
/**
|
|
23
|
+
* 生成渲染对象
|
|
24
|
+
* @param {object} element - 元素对象
|
|
25
|
+
* @param {object} styleConfig - 样式配置
|
|
26
|
+
* @param {object} context - 上下文信息
|
|
27
|
+
* @returns {object} 渲染对象配置
|
|
28
|
+
*/
|
|
29
|
+
generate(element: object, styleConfig: object, context: object, catalogType: any): object;
|
|
30
|
+
/**
|
|
31
|
+
* 创建简单点数据
|
|
32
|
+
* @param {object} element - 元素对象
|
|
33
|
+
* @param {object} styleConfig - 样式配置
|
|
34
|
+
* @param {object} context - 上下文信息
|
|
35
|
+
* @returns {object} 简单点数据
|
|
36
|
+
*/
|
|
37
|
+
createGeometry(element: object, styleConfig: object, context: object, catalogType: any): object;
|
|
38
|
+
}
|
|
39
|
+
import { BaseGenerator } from './Base';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingRoad Processor
|
|
3
|
+
* 处理高清路面类型(GAOQING_ROAD_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class BackgroundProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: number[];
|
|
8
|
+
indices: number[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processor 基类
|
|
3
|
+
* 所有具体 Processor 的抽象基类,定义通用接口
|
|
4
|
+
* Processor 负责解析数据类型,调用 Generator,并添加图层属性
|
|
5
|
+
*/
|
|
6
|
+
export class BaseProcessor {
|
|
7
|
+
constructor(layerManager: any, generators: any, styleManager: any);
|
|
8
|
+
layerManager: any;
|
|
9
|
+
generators: any;
|
|
10
|
+
styleManager: any;
|
|
11
|
+
/**
|
|
12
|
+
* 处理元素
|
|
13
|
+
* @param {object} element - 元素对象
|
|
14
|
+
* @param {object} styleConfig - 样式配置
|
|
15
|
+
* @param {object} context - 上下文信息
|
|
16
|
+
* @returns {Array<object>} 渲染对象配置数组
|
|
17
|
+
*/
|
|
18
|
+
process(element: object, styleConfig: object, context: object): Array<object>;
|
|
19
|
+
/**
|
|
20
|
+
* 创建渲染对象,添加图层属性
|
|
21
|
+
* @param {object} generatorResult - Generator 返回的结果 {type, geometry, material}
|
|
22
|
+
* @param {string} sceneType - 图元类型,可选 '2d', '3d', 'other'
|
|
23
|
+
* @param {string} groupName - 分组名称 ('background', 'border', 'fill', 'marking')
|
|
24
|
+
* @returns {object} 完整的渲染对象,包含 properties
|
|
25
|
+
*/
|
|
26
|
+
createRenderObject(generatorResult: object, sceneType: string, groupName: string): object;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BridgePier Processor
|
|
3
|
+
* 处理桥墩类型 (PILLAR_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class BridgePierProcessor extends BaseProcessor {
|
|
6
|
+
process(element: any, styleConfig: any, context: any): object[];
|
|
7
|
+
indexOffset: number | undefined;
|
|
8
|
+
transformVertices(vertices: any, center: any, rotationZ?: number, transformMatrix?: null, altitude?: number, normals?: null): Float32Array<any>;
|
|
9
|
+
addFace(vertices: any, indices: any, colors: any, normals: any, [v0, v1, v2, v3]: [any, any, any, any], color: any): void;
|
|
10
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
11
|
+
vertices: Float32Array<any>;
|
|
12
|
+
indices: any[];
|
|
13
|
+
colors: any[];
|
|
14
|
+
normals: any[];
|
|
15
|
+
useColorsArray: boolean;
|
|
16
|
+
useNormalsArray: boolean;
|
|
17
|
+
useProjected: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class DebugLineProcessor extends BaseProcessor {
|
|
2
|
+
isDebugProcessor: boolean;
|
|
3
|
+
/**
|
|
4
|
+
* 处理元素
|
|
5
|
+
* @param {object} element - 元素对象
|
|
6
|
+
* @param {object} styleConfig - 样式配置
|
|
7
|
+
* @param {object} context - 上下文信息
|
|
8
|
+
* @returns {Array<object>} 渲染对象配置数组
|
|
9
|
+
*/
|
|
10
|
+
process(element: object, styleConfig: object, context: object, geoLayers: any, catalogType: any): Array<object>;
|
|
11
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
12
|
+
vertices: any[];
|
|
13
|
+
is3D: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DebugPolygon Processor
|
|
3
|
+
* 处理调试面类型(DEBUG_POLYGON_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class DebugPolygonProcessor extends BaseProcessor {
|
|
6
|
+
/**
|
|
7
|
+
* 处理元素
|
|
8
|
+
* @param {object} element - 元素对象
|
|
9
|
+
* @param {object} styleConfig - 样式配置
|
|
10
|
+
* @param {object} context - 上下文信息
|
|
11
|
+
* @returns {Array<object>} 渲染对象配置数组
|
|
12
|
+
*/
|
|
13
|
+
process(element: object, styleConfig: object, context: object, geoLayers: any, catalogType: any): Array<object>;
|
|
14
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
15
|
+
vertices: any[];
|
|
16
|
+
indices: any[];
|
|
17
|
+
hasExtrude: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingGradient Processor
|
|
3
|
+
* 处理渐变路类型(GAOQING_GRADIENT_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class GaoqingGradientProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
indices: any[];
|
|
9
|
+
useColorsArray: boolean;
|
|
10
|
+
colors: number[];
|
|
11
|
+
borderColors: number[];
|
|
12
|
+
is3D: boolean;
|
|
13
|
+
hasExtrude: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingGuide Processor
|
|
3
|
+
* 处理路面箭头类型(GAOQING_GUIDE_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class GaoqingGuideProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
angle: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingLine Processor
|
|
3
|
+
* 处理高清线类型(GAOQING_LINE_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class GaoqingLineProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
is3D: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingPoly Processor
|
|
3
|
+
* 处理高清多边形类型(GAOQING_POLY_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class GaoqingPolyProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
indices: any[];
|
|
9
|
+
is3D: boolean;
|
|
10
|
+
hasExtrude: boolean;
|
|
11
|
+
textureDirection: any;
|
|
12
|
+
textureStep: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GaoqingRoad Processor
|
|
3
|
+
* 处理高清路面类型(GAOQING_ROAD_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class GaoqingRoadProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
indices: any[];
|
|
9
|
+
is3D: boolean;
|
|
10
|
+
hasExtrude: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HRegion Processor
|
|
3
|
+
* 处理3D建筑类型(HREGION_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class HRegionProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
indices: any[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @class LineNameProcessor
|
|
3
|
+
* @extends BaseProcessor
|
|
4
|
+
* @description
|
|
5
|
+
* 处理路名类型(LINE_NAME_TYPE)元素。
|
|
6
|
+
*/
|
|
7
|
+
export class LineNameProcessor extends BaseProcessor {
|
|
8
|
+
/**
|
|
9
|
+
* 处理元素
|
|
10
|
+
* @param {object} element - 数据元素对象
|
|
11
|
+
* @param {object} styleConfig - 样式配置
|
|
12
|
+
* @param {object} context - 渲染上下文
|
|
13
|
+
* @param {Map} geoLayers - 图层集合
|
|
14
|
+
* @returns {Array<object>} 渲染对象配置数组
|
|
15
|
+
*/
|
|
16
|
+
process(element: object, styleConfig: object, context: object, geoLayers: Map<any, any>): Array<object>;
|
|
17
|
+
/**
|
|
18
|
+
* 处理道路标签数据
|
|
19
|
+
*/
|
|
20
|
+
processRoadLabel(element: any, roadindex: any, road_lab_pos: any, styleConfig: any, context: any, geoLayers: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* 提取索引数据
|
|
23
|
+
*/
|
|
24
|
+
extractIndexData(roadindex: any): any;
|
|
25
|
+
/**
|
|
26
|
+
* 提取标签数据
|
|
27
|
+
*/
|
|
28
|
+
extractLabelData(road_lab_pos: any): any;
|
|
29
|
+
/**
|
|
30
|
+
* 处理地理图层
|
|
31
|
+
*/
|
|
32
|
+
processGeoLayer(element: any, geoLayer: any, indexData: any, labelData: any, styleConfig: any, context: any): any;
|
|
33
|
+
/**
|
|
34
|
+
* 处理元素集
|
|
35
|
+
*/
|
|
36
|
+
processElementSet(element: any, elementSet: any, innerPos: any, labelData: any, styleConfig: any, context: any): any;
|
|
37
|
+
/**
|
|
38
|
+
* 处理道路元素
|
|
39
|
+
*/
|
|
40
|
+
processRoadElement(element: any, roadElement: any, labelData: any, styleConfig: any, context: any): any[];
|
|
41
|
+
/**
|
|
42
|
+
* 准备几何点数据
|
|
43
|
+
*/
|
|
44
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
45
|
+
points: any[][];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Poly Processor
|
|
3
|
+
* 处理普通面类型(POLY_TYPE)
|
|
4
|
+
*/
|
|
5
|
+
export class PolyProcessor extends BaseProcessor {
|
|
6
|
+
prepareGeoData(element: any, styleConfig: any, context: any): {
|
|
7
|
+
vertices: any[];
|
|
8
|
+
indices: any[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
import { BaseProcessor } from './Base';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将颜色值转换为归一化的 RGBA 数组(用于 WebGL)
|
|
3
|
+
* @param {number} colorValue - 32位整数颜色值
|
|
4
|
+
* @returns {number[]} 归一化的 [r, g, b, a] 数组 (0-1)
|
|
5
|
+
*/
|
|
6
|
+
export function getColorArr(colorValue: number): number[];
|
|
7
|
+
/**
|
|
8
|
+
* 将颜色值转换为 RGBA 数组(0-255 范围)
|
|
9
|
+
* @param {number} colorValue - 32位整数颜色值
|
|
10
|
+
* @returns {number[]} [r, g, b, a] 数组,rgb在0-255范围,a在0-1范围
|
|
11
|
+
*/
|
|
12
|
+
export function getColorRgba(colorValue: number): number[];
|
|
13
|
+
export function getDebugColor(catalogType: any): number[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function convertPOIPosition(x: any, y: any, z: any, config: any, output: any): any;
|
|
2
|
+
export function tileNormalizedPositionToMeter(input: any, tileConfig: any, output: any): any;
|
|
3
|
+
/**
|
|
4
|
+
* 给坐标点数组重新计算高度值
|
|
5
|
+
* @param {Array} points 点坐标数组,一维数组[x, y, z, x, y, z, ...]格式
|
|
6
|
+
* @param {Array|number} z 高度数组,一维数组[z, z, z, ...]格式,或者单个高度值
|
|
7
|
+
* @returns {Array} 重新计算高度后的点坐标数组
|
|
8
|
+
*/
|
|
9
|
+
export function applyPointsZ(points: any[], z?: any[] | number): any[];
|
|
10
|
+
export function parseFeature(midPoints: any, dim: any): (number | number[])[];
|
|
11
|
+
export function getTileMaxValueByZ(z: any, config: any): any;
|
|
12
|
+
export function normalizeVertex(vertex: any, tileSize: any, gapMin: any, gapMax: any, i: number | undefined, output: any): any;
|
|
13
|
+
/**
|
|
14
|
+
* 判断 zvector 是否为 3D(有高度信息)
|
|
15
|
+
* @param {Array} zvector - 高度数组
|
|
16
|
+
* @returns {boolean} true 表示需要使用 3D,false 表示使用 2D
|
|
17
|
+
*/
|
|
18
|
+
export function isZvector3D(zvector: any[]): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 合并图元数据,将2d和3d元素分开处理
|
|
3
|
+
* 2d元素需要排序并手动计算深度,3d元素根据高程自动计算
|
|
4
|
+
* @param {Object} result - 输入数据 {scene2d: [], scene3d: [], pois: []}
|
|
5
|
+
* @returns {Object} 按type分组的合并结果 {polygon: {attributes, indices, material}, ...}
|
|
6
|
+
*/
|
|
7
|
+
export function mergePrimitives(result: Object): Object;
|
|
@@ -30,7 +30,7 @@ export namespace hcl {
|
|
|
30
30
|
export { hclToRgb as reverse };
|
|
31
31
|
export { interpolateHcl as interpolate };
|
|
32
32
|
}
|
|
33
|
-
import { Color } from '
|
|
33
|
+
import { Color } from './color';
|
|
34
34
|
declare function rgbToLab(rgbColor: any): {
|
|
35
35
|
l: number;
|
|
36
36
|
a: number;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
export class GroundSceneRenderer {
|
|
2
2
|
/** @private */
|
|
3
3
|
private _renderTarget;
|
|
4
|
+
/** @private */
|
|
5
|
+
private _multipleRenderTarget;
|
|
6
|
+
/** @private */
|
|
7
|
+
private _currentRenderTarget;
|
|
4
8
|
_copyMesh: any;
|
|
5
|
-
|
|
6
|
-
_lastOverrideMaterial: any;
|
|
9
|
+
_prepareRenderTarget(engine: any, renderState: any): void;
|
|
7
10
|
_fakeDepthTexture: any;
|
|
11
|
+
_prepareMultipleRenderTarget(engine: any, renderState: any): void;
|
|
12
|
+
render(groundScene: any, engine: any, scene: any, camera: any, renderState: any): void;
|
|
8
13
|
get copyMesh(): any;
|
|
9
14
|
}
|
|
@@ -101,6 +101,8 @@ export class MapSurface {
|
|
|
101
101
|
_getDebugLabelId(surfaceTile: any): string;
|
|
102
102
|
_onBeforeSceneRender(engine: any, scene: any, camera: any, renderState: any): void;
|
|
103
103
|
_groundSceneRenderer: GroundSceneRenderer | undefined;
|
|
104
|
+
onAfterColorPass: (engine: any) => void;
|
|
105
|
+
onAfterMainPass: (engine: any) => void;
|
|
104
106
|
_cancelTileInArray(cancelTiles: any): void;
|
|
105
107
|
_requestTilesInArray(tiles: any, number: any, onlyRequestGeometry?: boolean): void;
|
|
106
108
|
_collectionCancelTiles(requestTiles: any): any[];
|