@mappedin/mappedin-js 6.0.1-beta.42 → 6.0.1-beta.43
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/THIRD_PARTY_LICENSES.txt +1 -1
- package/lib/esm/{GLTFExporter-YKSUDH7B.js → GLTFExporter-6UJSTWST.js} +1 -1
- package/lib/esm/{GLTFLoader-EHCGUUZ7.js → GLTFLoader-VHKTUT76.js} +1 -1
- package/lib/esm/{browser-WIIM7TQK.js → browser-JUQDIV75.js} +1 -1
- package/lib/esm/{chunk-OZP63OFH.js → chunk-4O5ABVXW.js} +1 -1
- package/lib/esm/{chunk-ECHMMCCK.js → chunk-6XEFZ77W.js} +1 -1
- package/lib/esm/chunk-7MMSKILE.js +1 -0
- package/lib/esm/chunk-G2WDUYHG.js +1 -0
- package/lib/esm/{chunk-LDGPSNHO.js → chunk-MEAXYDH5.js} +1 -1
- package/lib/esm/{chunk-4CCSRLCA.js → chunk-NCE64JTI.js} +1 -1
- package/lib/esm/index.d.ts +137 -133
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-ZDG5OPVJ.js → inspector-WHX467BE.js} +1 -1
- package/lib/esm/{internal-ZMA7M4I6.js → internal-CKIQLSVC.js} +1 -1
- package/lib/esm/{outdoor-context-v4-HKUDARND.js → outdoor-context-v4-7JNIM35B.js} +1 -1
- package/lib/esm/{text3d-4TF6HI7P.js → text3d-TIW6FORE.js} +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-DDM2BPE5.js +0 -1
- package/lib/esm/chunk-GQSDOUZP.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as x,W as y,u as A,v as w,w as g}from"./chunk-
|
|
1
|
+
import{V as x,W as y,u as A,v as w,w as g}from"./chunk-6XEFZ77W.js";import{a as b}from"./chunk-4O5ABVXW.js";b();function M(o,l=!1){let r=o[0].index!==null,f=new Set(Object.keys(o[0].attributes)),i=new Set(Object.keys(o[0].morphAttributes)),c={},e={},h=o[0].morphTargetsRelative,u=new y,d=0;for(let t=0;t<o.length;++t){let s=o[t],a=0;if(r!==(s.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let n in s.attributes){if(!f.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+'. All geometries must have compatible attributes; make sure "'+n+'" attribute exists among all geometries, or in none of them.'),null;c[n]===void 0&&(c[n]=[]),c[n].push(s.attributes[n]),a++}if(a!==f.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". Make sure all geometries have the same number of attributes."),null;if(h!==s.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let n in s.morphAttributes){if(!i.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphAttributes must be consistent throughout all geometries."),null;e[n]===void 0&&(e[n]=[]),e[n].push(s.morphAttributes[n])}if(l){let n;if(r)n=s.index.count;else if(s.attributes.position!==void 0)n=s.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". The geometry must have either an index or a position attribute"),null;u.addGroup(d,n,t),d+=n}}if(r){let t=0,s=[];for(let a=0;a<o.length;++a){let n=o[a].index;for(let m=0;m<n.count;++m)s.push(n.getX(m)+t);t+=o[a].attributes.position.count}u.setIndex(s)}for(let t in c){let s=B(c[t]);if(!s)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;u.setAttribute(t,s)}for(let t in e){let s=e[t][0].length;if(s===0)break;u.morphAttributes=u.morphAttributes||{},u.morphAttributes[t]=[];for(let a=0;a<s;++a){let n=[];for(let p=0;p<e[t].length;++p)n.push(e[t][p][a]);let m=B(n);if(!m)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;u.morphAttributes[t].push(m)}}return u}function B(o){let l,r,f,i=-1,c=0;for(let d=0;d<o.length;++d){let t=o[d];if(l===void 0&&(l=t.array.constructor),l!==t.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(r===void 0&&(r=t.itemSize),r!==t.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(f===void 0&&(f=t.normalized),f!==t.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(i===-1&&(i=t.gpuType),i!==t.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;c+=t.count*r}let e=new l(c),h=new x(e,r,f),u=0;for(let d=0;d<o.length;++d){let t=o[d];if(t.isInterleavedBufferAttribute){let s=u/r;for(let a=0,n=t.count;a<n;a++)for(let m=0;m<r;m++){let p=t.getComponent(a,m);h.setComponent(a+s,m,p)}}else e.set(t.array,u);u+=t.count*r}return i!==void 0&&(h.gpuType=i),h}function R(o,l){if(l===A)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),o;if(l===g||l===w){let r=o.getIndex();if(r===null){let e=[],h=o.getAttribute("position");if(h!==void 0){for(let u=0;u<h.count;u++)e.push(u);o.setIndex(e),r=o.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),o}let f=r.count-2,i=[];if(l===g)for(let e=1;e<=f;e++)i.push(r.getX(0)),i.push(r.getX(e)),i.push(r.getX(e+1));else for(let e=0;e<f;e++)e%2===0?(i.push(r.getX(e)),i.push(r.getX(e+1)),i.push(r.getX(e+2))):(i.push(r.getX(e+2)),i.push(r.getX(e+1)),i.push(r.getX(e)));i.length/3!==f&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let c=o.clone();return c.setIndex(i),c.clearGroups(),c}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",l),o}export{M as a,R as b};
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// ../mappedin-js/geojson
|
|
9
9
|
// ../mappedin-js/@packages/internal/common
|
|
10
10
|
// ../mappedin-js/@mappedin/core-sdk
|
|
11
|
+
// ../mappedin-js/@packages/internal/mvf-utils/tokens/token-manager
|
|
11
12
|
// ../mappedin-js/@packages/internal/outdoor-context-v4
|
|
12
13
|
// ../mappedin-js/@packages/internal/geojson-navigator
|
|
13
14
|
// ../mappedin-js/@mappedin/mvf-core
|
|
@@ -387,7 +388,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
387
388
|
export type { Debug } from '@mappedin/mappedin-js/mappedin-js/src/debug';
|
|
388
389
|
export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
389
390
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
390
|
-
export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space,
|
|
391
|
+
export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space, ImageMetaData, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationProfile, LocationCategory, Facade, Node, Area, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
391
392
|
export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, Images, StackedMaps, DynamicFocus, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
|
|
392
393
|
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
393
394
|
export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
|
|
@@ -468,13 +469,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
468
469
|
*
|
|
469
470
|
* @returns {string} The current access token
|
|
470
471
|
*/
|
|
471
|
-
getAccessToken():
|
|
472
|
-
/**
|
|
473
|
-
* Get a SAS token for fetching images on non-public maps.
|
|
474
|
-
*
|
|
475
|
-
* @returns {string} The SAS token
|
|
476
|
-
*/
|
|
477
|
-
getSasToken(): Promise<string | undefined>;
|
|
472
|
+
getAccessToken(): string | undefined;
|
|
478
473
|
/**
|
|
479
474
|
* The name of the map.
|
|
480
475
|
*
|
|
@@ -899,7 +894,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
899
894
|
import PointOfInterest from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi';
|
|
900
895
|
import Annotation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation';
|
|
901
896
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
902
|
-
import
|
|
897
|
+
import ImageMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
|
|
903
898
|
import FloorStack from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-stack';
|
|
904
899
|
import Facade from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/facade';
|
|
905
900
|
import type { MapDataRecords, EnterpriseMapDataRecords } from '@mappedin/mappedin-js/mappedin-js/src/utils/data-creation';
|
|
@@ -918,6 +913,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
918
913
|
import { Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
|
|
919
914
|
import LocationProfile from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-profile';
|
|
920
915
|
import LocationCategory from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-category';
|
|
916
|
+
import type { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
|
|
921
917
|
/**
|
|
922
918
|
* Internal class representing detailed map data.
|
|
923
919
|
*
|
|
@@ -953,7 +949,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
953
949
|
*/
|
|
954
950
|
readonly obstructionIdByEntranceId: Record<string, string>;
|
|
955
951
|
readonly venue?: EnterpriseVenue;
|
|
956
|
-
readonly
|
|
952
|
+
readonly tokenManager?: TokenManager;
|
|
957
953
|
directions: DirectionsInternal;
|
|
958
954
|
enterpriseMode: boolean;
|
|
959
955
|
nodesById: MapDataRecords['nodesById'];
|
|
@@ -1100,8 +1096,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
1100
1096
|
get locationCategories(): LocationCategory[];
|
|
1101
1097
|
get mvfFloors(): MVFFloor[];
|
|
1102
1098
|
get mvfFloorStacks(): MVFFloorStack[];
|
|
1103
|
-
getAccessToken(): Promise<string | undefined>;
|
|
1104
|
-
getSasToken(): Promise<string | undefined>;
|
|
1105
1099
|
getByType(type: string): object[];
|
|
1106
1100
|
getByType(type: 'location-profile'): LocationProfile[];
|
|
1107
1101
|
getByType(type: 'location-category'): LocationCategory[];
|
|
@@ -1178,7 +1172,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
1178
1172
|
*/
|
|
1179
1173
|
destroy(): void;
|
|
1180
1174
|
}
|
|
1181
|
-
export { Node, Area, MapDataInternal, Space, Floor, FloorStack, Facade, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink,
|
|
1175
|
+
export { Node, Area, MapDataInternal, Space, Floor, FloorStack, Facade, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, ImageMetaData, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationCategory, LocationProfile, };
|
|
1182
1176
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space';
|
|
1183
1177
|
export type { Places };
|
|
1184
1178
|
}
|
|
@@ -3540,6 +3534,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
|
3540
3534
|
import type { LocalePackUrls } from '@packages/internal/mvf-utils';
|
|
3541
3535
|
import type { LanguagePackHydrationItem } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3542
3536
|
import type { EnvControl, TGetMapDataOptions } from '@packages/internal/mvf-utils/mvf-utils';
|
|
3537
|
+
import { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
|
|
3543
3538
|
/**
|
|
3544
3539
|
* Places are the main objects that can be searched for.
|
|
3545
3540
|
*/
|
|
@@ -3569,7 +3564,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
|
3569
3564
|
localePacksUrls?: LocalePackUrls;
|
|
3570
3565
|
languagePacks?: LanguagePackHydrationItem[];
|
|
3571
3566
|
binaryBundle?: Uint8Array;
|
|
3572
|
-
|
|
3567
|
+
tokenManager?: TokenManager;
|
|
3573
3568
|
getMapDataOptions?: TGetMapDataOptions;
|
|
3574
3569
|
};
|
|
3575
3570
|
/**
|
|
@@ -3982,7 +3977,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3982
3977
|
export type { Debug } from '@mappedin/mappedin-js/mappedin-js/src/debug';
|
|
3983
3978
|
export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
3984
3979
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3985
|
-
export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space,
|
|
3980
|
+
export { Coordinate, Annotation, Connection, Door, Floor, FloorStack, MapObject, PointOfInterest, Space, ImageMetaData, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, LocationProfile, LocationCategory, Facade, Node, Area, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3986
3981
|
export type { Camera, Models, Labels, BlueDot, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, Images, StackedMaps, DynamicFocus, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
|
|
3987
3982
|
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
3988
3983
|
export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
|
|
@@ -5120,10 +5115,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink
|
|
|
5120
5115
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
5121
5116
|
import type { Image as MVFImage } from '@mappedin/mvf';
|
|
5122
5117
|
import BaseMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-metadata-object';
|
|
5118
|
+
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
5123
5119
|
/**
|
|
5124
5120
|
* A class representing image link data within the map.
|
|
5125
5121
|
*/
|
|
5126
|
-
class
|
|
5122
|
+
class ImageMetaData extends BaseMetaData {
|
|
5127
5123
|
#private;
|
|
5128
5124
|
/**
|
|
5129
5125
|
* @internal
|
|
@@ -5135,12 +5131,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
5135
5131
|
* @param instance The instance to check.
|
|
5136
5132
|
* @returns {boolean} True if the instance is a Image, false otherwise.
|
|
5137
5133
|
*/
|
|
5138
|
-
static is(instance: object): instance is
|
|
5134
|
+
static is(instance: object): instance is ImageMetaData;
|
|
5139
5135
|
/**
|
|
5140
5136
|
* @internal
|
|
5141
5137
|
*/
|
|
5142
5138
|
constructor(options: {
|
|
5143
5139
|
mvfData: MVFImage;
|
|
5140
|
+
mapData: MapDataInternal;
|
|
5144
5141
|
});
|
|
5145
5142
|
/**
|
|
5146
5143
|
* Gets the url of the image.
|
|
@@ -5179,7 +5176,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
5179
5176
|
*/
|
|
5180
5177
|
destroy(): void;
|
|
5181
5178
|
}
|
|
5182
|
-
export default
|
|
5179
|
+
export default ImageMetaData;
|
|
5183
5180
|
}
|
|
5184
5181
|
|
|
5185
5182
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-stack' {
|
|
@@ -5838,10 +5835,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5838
5835
|
import type { TFocusTarget, TNavigationTarget, IFocusable, INavigatable } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
5839
5836
|
import { OpeningHours } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/opening-hours';
|
|
5840
5837
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
5841
|
-
import
|
|
5842
|
-
type LocationData = Omit<MVFLocation, 'categories' | 'spaces' | 'obstructions' | 'entrances' | 'shapes' | 'connections' | 'annotations' | 'areas' | 'openingHoursSpecification' | 'links' | 'pictures' | 'website'> & {
|
|
5838
|
+
import ImageMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
|
|
5839
|
+
type LocationData = Omit<MVFLocation, 'categories' | 'spaces' | 'obstructions' | 'entrances' | 'shapes' | 'connections' | 'annotations' | 'areas' | 'openingHoursSpecification' | 'links' | 'pictures' | 'website' | 'icon'> & {
|
|
5843
5840
|
links: Hyperlink[];
|
|
5844
|
-
images:
|
|
5841
|
+
images: ImageMetaData[];
|
|
5842
|
+
icon?: ImageMetaData;
|
|
5845
5843
|
};
|
|
5846
5844
|
class LocationProfile extends BaseMetaData implements LocationData, IFocusable, INavigatable {
|
|
5847
5845
|
#private;
|
|
@@ -5878,7 +5876,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5878
5876
|
/**
|
|
5879
5877
|
* The location's pictures
|
|
5880
5878
|
*/
|
|
5881
|
-
images:
|
|
5879
|
+
images: ImageMetaData[];
|
|
5882
5880
|
/**
|
|
5883
5881
|
* Web links for the location
|
|
5884
5882
|
*/
|
|
@@ -5892,7 +5890,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5892
5890
|
*
|
|
5893
5891
|
* @format uri
|
|
5894
5892
|
*/
|
|
5895
|
-
icon?:
|
|
5893
|
+
icon?: ImageMetaData;
|
|
5896
5894
|
constructor(data: MapDataInternal, options: {
|
|
5897
5895
|
mvfData: MVFLocation;
|
|
5898
5896
|
});
|
|
@@ -11662,7 +11660,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/detailed-
|
|
|
11662
11660
|
import type LocationProfile from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-profile';
|
|
11663
11661
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
11664
11662
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
11665
|
-
import
|
|
11663
|
+
import ImageMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
|
|
11666
11664
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
11667
11665
|
type PropertiesWithDetails = {
|
|
11668
11666
|
id: string;
|
|
@@ -11691,11 +11689,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/detailed-
|
|
|
11691
11689
|
*/
|
|
11692
11690
|
get description(): string;
|
|
11693
11691
|
/**
|
|
11694
|
-
* Gets the array of {@link
|
|
11692
|
+
* Gets the array of {@link ImageMetaData}s associated with this map feature.
|
|
11695
11693
|
*
|
|
11696
|
-
* @returns {
|
|
11694
|
+
* @returns {ImageMetaData[]} An array of Image objects, or an empty array if no images exist.
|
|
11697
11695
|
*/
|
|
11698
|
-
get images():
|
|
11696
|
+
get images(): ImageMetaData[];
|
|
11699
11697
|
/**
|
|
11700
11698
|
* Gets the array of {@link Hyperlink}s associated with this map feature.
|
|
11701
11699
|
*
|
|
@@ -11833,7 +11831,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/system' {
|
|
|
11833
11831
|
|
|
11834
11832
|
declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
11835
11833
|
import { Object3D } from 'three';
|
|
11836
|
-
import type { Mesh, Object3DEventMap, ShaderMaterial, Texture, TubeGeometry, Color, Vector2 } from 'three';
|
|
11834
|
+
import type { Mesh, Object3DEventMap, ShaderMaterial, Texture, TubeGeometry, Color, Vector2, Raycaster } from 'three';
|
|
11837
11835
|
import type { InteractionComponent } from '@mappedin/mappedin-js/geojson/src/components/interaction';
|
|
11838
11836
|
import type { MeshComponent } from '@mappedin/mappedin-js/geojson/src/components/mesh';
|
|
11839
11837
|
import type { ModelComponent } from '@mappedin/mappedin-js/geojson/src/components/model';
|
|
@@ -11847,42 +11845,48 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
11847
11845
|
import type { Text3DComponent } from '@mappedin/mappedin-js/geojson/src/components/text3d';
|
|
11848
11846
|
import type { ModelStyleComponnet, Text3DStyleComponent } from '@mappedin/mappedin-js/geojson/src/components/styles';
|
|
11849
11847
|
export enum Geometry3DComponents {
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11848
|
+
Mesh = 0,
|
|
11849
|
+
Style = 1,
|
|
11850
|
+
Interaction = 2
|
|
11853
11851
|
}
|
|
11854
11852
|
type Geometry3DObjectTypes = 'geometry' | 'path' | 'model' | 'custom-geometry' | 'image' | 'text3d';
|
|
11855
11853
|
export class Geometry3DObject3D extends Object3D {
|
|
11856
|
-
type: Geometry3DObjectTypes;
|
|
11857
|
-
userData: {
|
|
11858
|
-
entityId: string;
|
|
11859
|
-
/**
|
|
11860
|
-
* TODO: remove this when proper instancing is handled
|
|
11861
|
-
*/
|
|
11862
|
-
isSingleModel?: boolean;
|
|
11863
11854
|
type: Geometry3DObjectTypes;
|
|
11864
|
-
|
|
11855
|
+
userData: {
|
|
11856
|
+
entityId: string;
|
|
11857
|
+
/**
|
|
11858
|
+
* TODO: remove this when proper instancing is handled
|
|
11859
|
+
*/
|
|
11860
|
+
isSingleModel?: boolean;
|
|
11861
|
+
type: Geometry3DObjectTypes;
|
|
11862
|
+
};
|
|
11863
|
+
/**
|
|
11864
|
+
* Custom raycast implementation for model objects only.
|
|
11865
|
+
* This selectively enables recursive raycasting just for models, which have complex hierarchies,
|
|
11866
|
+
* while avoiding the performance cost of recursive raycasting for other object types.
|
|
11867
|
+
*/
|
|
11868
|
+
raycast(raycaster: Raycaster, intersects: any[]): void;
|
|
11865
11869
|
}
|
|
11866
11870
|
export type PathMaterial = ShaderMaterial & {
|
|
11867
|
-
|
|
11871
|
+
uniforms: PathUniforms;
|
|
11868
11872
|
};
|
|
11869
11873
|
export type PathMesh = Mesh<TubeGeometry, PathMaterial, Object3DEventMap>;
|
|
11870
11874
|
export class PatMeshContainer extends Geometry3DObject3D {
|
|
11871
|
-
|
|
11875
|
+
children: [PathMesh, PathMesh];
|
|
11872
11876
|
}
|
|
11873
11877
|
export type MeshComponentTypes = MeshComponent | PathComponent | ModelComponent | CustomGeometryComponent | Text3DComponent | ImageComponent;
|
|
11874
11878
|
type MappedComponentType<M> = M extends MeshComponent ? 'geometry' : M extends PathComponent ? 'path' : M extends ModelComponent ? 'model' : M extends CustomGeometryComponent ? 'custom-geometry' : M extends ImageComponent ? 'image' : M extends Text3DComponent ? 'text3d' : never;
|
|
11875
11879
|
export class Geometry3D<M extends MeshComponentTypes = MeshComponent, S extends StyleComponent | Text3DStyleComponent | ModelStyleComponnet = StyleComponent, I extends InteractionComponent = InteractionComponent, T extends MappedComponentType<M> = MappedComponentType<M>> {
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11880
|
+
id: string | number;
|
|
11881
|
+
components: [M, S, I?];
|
|
11882
|
+
get object3d(): M["mesh"];
|
|
11883
|
+
get parentObject3D(): GroupContainerObject3D | GeometryGroupObject3D | null;
|
|
11884
|
+
get type(): T;
|
|
11885
|
+
entities2D: Map<string | number, Geometry2D>;
|
|
11886
|
+
constructor(meshComponent: M, styleComponent: S);
|
|
11887
|
+
addEntity(entity: Geometry2D): void;
|
|
11888
|
+
removeEntity(entity: Geometry2D): void;
|
|
11889
|
+
removeAllEntities(): void;
|
|
11886
11890
|
}
|
|
11887
11891
|
export type TextGeometry3D = Geometry3D<Text3DComponent, Text3DStyleComponent, InteractionComponent, 'text3d'>;
|
|
11888
11892
|
export type CustomGeometry3D = Geometry3D<CustomGeometryComponent, StyleComponent, InteractionComponent, 'custom-geometry'>;
|
|
@@ -11892,86 +11896,86 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
11892
11896
|
export type MeshGeometry3D = Geometry3D<MeshComponent, StyleComponent, InteractionComponent, 'geometry'>;
|
|
11893
11897
|
export type Geometry3DTypes = TextGeometry3D | CustomGeometry3D | PathGeometry3D | ImageGeometry3D | MeshGeometry3D | ModelGeometry3D;
|
|
11894
11898
|
export interface PathUniforms {
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11939
|
-
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11899
|
+
vertexes: {
|
|
11900
|
+
type: 'f';
|
|
11901
|
+
value: number;
|
|
11902
|
+
};
|
|
11903
|
+
resolution: {
|
|
11904
|
+
type: 'v2';
|
|
11905
|
+
value: Vector2;
|
|
11906
|
+
};
|
|
11907
|
+
cameraParameters: {
|
|
11908
|
+
type: 'v2';
|
|
11909
|
+
value: Vector2;
|
|
11910
|
+
};
|
|
11911
|
+
complete: {
|
|
11912
|
+
type: 'f';
|
|
11913
|
+
value: number;
|
|
11914
|
+
};
|
|
11915
|
+
color: {
|
|
11916
|
+
type: 'c';
|
|
11917
|
+
value: Color;
|
|
11918
|
+
};
|
|
11919
|
+
pathLength: {
|
|
11920
|
+
type: 'f';
|
|
11921
|
+
value: number;
|
|
11922
|
+
};
|
|
11923
|
+
nearRadius: {
|
|
11924
|
+
type: 'f';
|
|
11925
|
+
value: number;
|
|
11926
|
+
};
|
|
11927
|
+
farRadius: {
|
|
11928
|
+
type: 'f';
|
|
11929
|
+
value: number;
|
|
11930
|
+
};
|
|
11931
|
+
nearZoom: {
|
|
11932
|
+
type: 'f';
|
|
11933
|
+
value: number;
|
|
11934
|
+
};
|
|
11935
|
+
farZoom: {
|
|
11936
|
+
type: 'f';
|
|
11937
|
+
value: number;
|
|
11938
|
+
};
|
|
11939
|
+
pulseColor: {
|
|
11940
|
+
type: 'c';
|
|
11941
|
+
value: Color;
|
|
11942
|
+
};
|
|
11943
|
+
pulse: {
|
|
11944
|
+
type: 'f';
|
|
11945
|
+
value: number;
|
|
11946
|
+
};
|
|
11947
|
+
pulseLength: {
|
|
11948
|
+
type: 'f';
|
|
11949
|
+
value: number;
|
|
11950
|
+
};
|
|
11951
|
+
pathIsVertical: {
|
|
11952
|
+
type: 'b';
|
|
11953
|
+
value: boolean;
|
|
11954
|
+
};
|
|
11955
|
+
arrowAnimationTimer: {
|
|
11956
|
+
type: 'f';
|
|
11957
|
+
value: number;
|
|
11958
|
+
};
|
|
11959
|
+
arrowTexture: {
|
|
11960
|
+
type: 't';
|
|
11961
|
+
value: Texture;
|
|
11962
|
+
};
|
|
11963
|
+
displayArrowsOnPath: {
|
|
11964
|
+
type: 'b';
|
|
11965
|
+
value: boolean;
|
|
11966
|
+
};
|
|
11967
|
+
flattenFactor: {
|
|
11968
|
+
type: 'f';
|
|
11969
|
+
value: number;
|
|
11970
|
+
};
|
|
11971
|
+
showPulse: {
|
|
11972
|
+
type: 'b';
|
|
11973
|
+
value: boolean;
|
|
11974
|
+
};
|
|
11975
|
+
opacityMultiplier: {
|
|
11976
|
+
type: 'f';
|
|
11977
|
+
value: number;
|
|
11978
|
+
};
|
|
11975
11979
|
}
|
|
11976
11980
|
export {};
|
|
11977
11981
|
}
|
|
@@ -13631,8 +13635,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/collider-pr
|
|
|
13631
13635
|
}
|
|
13632
13636
|
|
|
13633
13637
|
declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
13634
|
-
import { PerspectiveCamera, Vector3, Object3D,
|
|
13635
|
-
import { Raycaster, Vector2 } from 'three';
|
|
13638
|
+
import type { PerspectiveCamera, Vector3, Object3D, Intersection, Object3DEventMap } from 'three';
|
|
13639
|
+
import { Mesh, Raycaster, Vector2 } from 'three';
|
|
13636
13640
|
import type { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities/geometry2d';
|
|
13637
13641
|
import { QuadTree } from '@packages/internal/quad-tree';
|
|
13638
13642
|
import type { Geometry3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as z,y as A,z as B}from"./chunk-
|
|
1
|
+
import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as z,y as A,z as B}from"./chunk-G2WDUYHG.js";import{Fa as y,a,b}from"./chunk-7MMSKILE.js";import"./chunk-MEAXYDH5.js";import"./chunk-NCE64JTI.js";import"./chunk-6XEFZ77W.js";import"./chunk-4O5ABVXW.js";import"./chunk-HALSTKAB.js";export{o as Annotation,g as Area,l as Connection,c as Coordinate,B as DOORS,h as Door,a as E_SDK_LOG_LEVEL,s as EnterpriseCategory,r as EnterpriseLocation,t as EnterpriseVenue,q as Facade,j as Floor,p as FloorStack,e as Hyperlink,f as ImageMetaData,x as LocationCategory,w as LocationProfile,k as MAPPEDIN_COLORS,m as MapObject,d as Node,n as PointOfInterest,i as Space,A as WALLS,C as __setWatermarkOnClickFn,I as createMapLibreOverlay,z as enableTestMode,G as getMapData,H as getMapDataEnterprise,F as hydrateMapData,D as hydrateMapDataFromMVF,u as parseMVF,y as preloadFont,b as setLoggerLevel,E as setUseEnterpriseAPI,J as show3dMap,K as show3dMapGeojson,v as unzipMVF};
|