@loaders.gl/i3s 3.2.12 → 3.2.13
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/dist.min.js +7 -3
- package/dist/es5/arcgis-webscene-loader.js +1 -1
- package/dist/es5/i3s-attribute-loader.js +1 -1
- package/dist/es5/i3s-building-scene-layer-loader.js +1 -1
- package/dist/es5/i3s-content-loader.js +1 -1
- package/dist/es5/i3s-loader.js +14 -4
- package/dist/es5/i3s-loader.js.map +1 -1
- package/dist/es5/i3s-node-page-loader.js +1 -1
- package/dist/es5/lib/parsers/constants.js +1 -1
- package/dist/es5/lib/parsers/constants.js.map +1 -1
- package/dist/es5/lib/parsers/parse-i3s-tile-content.js +1 -1
- package/dist/es5/lib/parsers/parse-i3s-tile-content.js.map +1 -1
- package/dist/es5/types.js.map +1 -1
- package/dist/esm/arcgis-webscene-loader.js +1 -1
- package/dist/esm/i3s-attribute-loader.js +1 -1
- package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
- package/dist/esm/i3s-content-loader.js +1 -1
- package/dist/esm/i3s-loader.js +7 -1
- package/dist/esm/i3s-loader.js.map +1 -1
- package/dist/esm/i3s-node-page-loader.js +1 -1
- package/dist/esm/lib/parsers/constants.js +1 -1
- package/dist/esm/lib/parsers/constants.js.map +1 -1
- package/dist/esm/lib/parsers/parse-i3s-tile-content.js +1 -1
- package/dist/esm/lib/parsers/parse-i3s-tile-content.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/i3s-content-worker.js +10 -10
- package/dist/i3s-loader.d.ts.map +1 -1
- package/dist/i3s-loader.js +4 -0
- package/dist/lib/parsers/constants.js +1 -1
- package/dist/lib/parsers/parse-i3s-tile-content.js +1 -1
- package/dist/types.d.ts +89 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/i3s-loader.ts +5 -0
- package/src/lib/parsers/constants.ts +1 -1
- package/src/lib/parsers/parse-i3s-tile-content.ts +1 -1
- package/src/types.ts +95 -1
package/src/types.ts
CHANGED
|
@@ -821,7 +821,7 @@ export type ArcGisWebScene = {
|
|
|
821
821
|
* Spec - https://developers.arcgis.com/web-scene-specification/objects/presentation/
|
|
822
822
|
* @todo Add presentation type.
|
|
823
823
|
*/
|
|
824
|
-
presentation:
|
|
824
|
+
presentation: ArcGisPresentation;
|
|
825
825
|
/**
|
|
826
826
|
* An object that provides information about the initial environment settings and viewpoint of the web scene.
|
|
827
827
|
*/
|
|
@@ -868,6 +868,100 @@ export type ArcGisWebScene = {
|
|
|
868
868
|
widgets?: any;
|
|
869
869
|
};
|
|
870
870
|
|
|
871
|
+
/**
|
|
872
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html
|
|
873
|
+
*/
|
|
874
|
+
type ArcGisPresentation = {
|
|
875
|
+
slides: Slide[];
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* A slide stores a snapshot of several pre-set properties of the WebScene and SceneView,
|
|
880
|
+
* such as the basemap, viewpoint and visible layers.
|
|
881
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html
|
|
882
|
+
*/
|
|
883
|
+
type Slide = {
|
|
884
|
+
id: string;
|
|
885
|
+
title: {
|
|
886
|
+
text: string;
|
|
887
|
+
};
|
|
888
|
+
thumbnail: {
|
|
889
|
+
url: string;
|
|
890
|
+
};
|
|
891
|
+
description: {
|
|
892
|
+
text: string;
|
|
893
|
+
};
|
|
894
|
+
ground: {
|
|
895
|
+
transparency: number;
|
|
896
|
+
};
|
|
897
|
+
baseMap: ArcGisBaseMap;
|
|
898
|
+
visibleLayers: ArcGisVisibleLayer[];
|
|
899
|
+
viewpoint: ArcGisViewPoint;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* The basemap of the scene. Only the base and reference layers of the basemap are stored in a slide.
|
|
904
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html
|
|
905
|
+
*/
|
|
906
|
+
type ArcGisBaseMap = {
|
|
907
|
+
id: string;
|
|
908
|
+
title: string;
|
|
909
|
+
baseMapLayers: ArcGisBaseMapLayer[];
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* The visible layers of the scene.
|
|
914
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers
|
|
915
|
+
*/
|
|
916
|
+
type ArcGisVisibleLayer = {
|
|
917
|
+
id: string;
|
|
918
|
+
sublayerIds: number[];
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* The basemap of the scene.
|
|
922
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html
|
|
923
|
+
*/
|
|
924
|
+
type ArcGisBaseMapLayer = {
|
|
925
|
+
id: string;
|
|
926
|
+
title: string;
|
|
927
|
+
url: string;
|
|
928
|
+
layerType: string;
|
|
929
|
+
visibility: boolean;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The viewpoint of the slide. This acts like a bookmark, saving a predefined location or point of view from which to view the scene.
|
|
934
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html
|
|
935
|
+
*/
|
|
936
|
+
type ArcGisViewPoint = {
|
|
937
|
+
scale: number;
|
|
938
|
+
rotation?: number;
|
|
939
|
+
/**
|
|
940
|
+
* Spec - https://developers.arcgis.com/web-scene-specification/objects/viewpoint/
|
|
941
|
+
*/
|
|
942
|
+
targetGeometry: any;
|
|
943
|
+
camera: ArcGisCamera;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* The camera defines the position, tilt, and heading of the point from which the SceneView's visible extent is observed.
|
|
948
|
+
* It is not associated with device hardware. This class only applies to 3D SceneViews.
|
|
949
|
+
* Spec - https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html
|
|
950
|
+
*/
|
|
951
|
+
export type ArcGisCamera = {
|
|
952
|
+
position: {
|
|
953
|
+
x: number;
|
|
954
|
+
y: number;
|
|
955
|
+
z: number;
|
|
956
|
+
};
|
|
957
|
+
spatialReference: {
|
|
958
|
+
wkid: number;
|
|
959
|
+
latestWkid: number;
|
|
960
|
+
};
|
|
961
|
+
heading: number;
|
|
962
|
+
tilt: number;
|
|
963
|
+
};
|
|
964
|
+
|
|
871
965
|
/**
|
|
872
966
|
* Operational layers contain your data. Usually, a basemap sits beneath your operational layers to give them geographic context.
|
|
873
967
|
* Spec- https://developers.arcgis.com/web-scene-specification/objects/operationalLayers/
|