bruce-cesium 1.4.0 → 1.4.1
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/bruce-cesium.es5.js +58 -14
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +57 -13
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/menu-item-creator.js +57 -13
- package/dist/lib/rendering/menu-item-creator.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Geometry, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, DelayQueue, Entity as Entity$1, BatchedDataGetter, EntityRelationType, Tileset, EntityCoords, EntityFilterGetter, EntitySource, EntityRelation, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, Rectangle, KmlDataSource,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, Rectangle, KmlDataSource, CallbackProperty, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, OrthographicFrustum, JulianDate, Matrix4, Cesium3DTileset, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -6785,18 +6785,59 @@ var MenuItemCreator;
|
|
|
6785
6785
|
_b.label = 3;
|
|
6786
6786
|
case 3:
|
|
6787
6787
|
tileset = _a;
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6788
|
+
menuItem = null;
|
|
6789
|
+
if (tileset.type == Tileset.EType.Cad) {
|
|
6790
|
+
menuItem = {
|
|
6791
|
+
Caption: "Rendering Tileset",
|
|
6792
|
+
FlyTo: true,
|
|
6793
|
+
id: ObjectUtils.UId(),
|
|
6794
|
+
tileset: {
|
|
6795
|
+
TilesetID: tilesetId
|
|
6796
|
+
},
|
|
6797
|
+
Type: MenuItem.EType.CadTileset,
|
|
6798
|
+
styleId: 0,
|
|
6799
|
+
Children: []
|
|
6800
|
+
};
|
|
6801
|
+
}
|
|
6802
|
+
else if (tileset.type == Tileset.EType.PointCloud) {
|
|
6803
|
+
menuItem = {
|
|
6804
|
+
Caption: "Rendering Tileset",
|
|
6805
|
+
FlyTo: true,
|
|
6806
|
+
id: ObjectUtils.UId(),
|
|
6807
|
+
tileset: {
|
|
6808
|
+
TilesetID: tilesetId
|
|
6809
|
+
},
|
|
6810
|
+
Type: MenuItem.EType.PointCloud,
|
|
6811
|
+
Children: []
|
|
6812
|
+
};
|
|
6813
|
+
}
|
|
6814
|
+
else if (tileset.type == Tileset.EType.EntitiesSet) {
|
|
6815
|
+
menuItem = {
|
|
6816
|
+
Caption: "Rendering Tileset",
|
|
6817
|
+
FlyTo: true,
|
|
6818
|
+
id: ObjectUtils.UId(),
|
|
6819
|
+
tileset: {
|
|
6820
|
+
TilesetID: tilesetId
|
|
6821
|
+
},
|
|
6822
|
+
Type: MenuItem.EType.EntityTileset,
|
|
6823
|
+
Children: []
|
|
6824
|
+
};
|
|
6825
|
+
}
|
|
6826
|
+
else if (tileset.type == Tileset.EType.LegacyStatic ||
|
|
6827
|
+
tileset.type == Tileset.EType.LegacyExternal ||
|
|
6828
|
+
tileset.type == Tileset.EType.LegacyEntitiesSet) {
|
|
6829
|
+
menuItem = {
|
|
6830
|
+
Caption: "Rendering Tileset",
|
|
6831
|
+
FlyTo: true,
|
|
6832
|
+
id: ObjectUtils.UId(),
|
|
6833
|
+
tileset: {
|
|
6834
|
+
TilesetID: tilesetId
|
|
6835
|
+
},
|
|
6836
|
+
Type: MenuItem.EType.ArbTileset,
|
|
6837
|
+
Children: []
|
|
6838
|
+
};
|
|
6839
|
+
}
|
|
6840
|
+
if (!menuItem) return [3 /*break*/, 5];
|
|
6800
6841
|
return [4 /*yield*/, params.manager.RenderItem({
|
|
6801
6842
|
item: menuItem,
|
|
6802
6843
|
apiGetter: params.apiGetter
|
|
@@ -6807,7 +6848,10 @@ var MenuItemCreator;
|
|
|
6807
6848
|
menuItems: [menuItem],
|
|
6808
6849
|
menuItemIds: [renderedIds]
|
|
6809
6850
|
}];
|
|
6810
|
-
case 5:
|
|
6851
|
+
case 5: return [2 /*return*/, {
|
|
6852
|
+
menuItemIds: [],
|
|
6853
|
+
menuItems: []
|
|
6854
|
+
}];
|
|
6811
6855
|
}
|
|
6812
6856
|
});
|
|
6813
6857
|
});
|