@mappedin/mappedin-js 6.0.1-beta.41 → 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-KTOVIOEP.js → GLTFExporter-6UJSTWST.js} +1 -1
- package/lib/esm/{GLTFLoader-27GHL672.js → GLTFLoader-VHKTUT76.js} +1 -1
- package/lib/esm/{browser-HJJPOQZ3.js → browser-JUQDIV75.js} +1 -1
- package/lib/esm/{chunk-YXZOAYFJ.js → chunk-4O5ABVXW.js} +1 -1
- package/lib/esm/{chunk-RJTPVVPZ.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-ZKST35SK.js → chunk-MEAXYDH5.js} +1 -1
- package/lib/esm/{chunk-ERH6UBJK.js → chunk-NCE64JTI.js} +1 -1
- package/lib/esm/index.d.ts +156 -141
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-MC5DPTXA.js → inspector-WHX467BE.js} +1 -1
- package/lib/esm/{internal-SB6CKAWY.js → internal-CKIQLSVC.js} +1 -1
- package/lib/esm/{outdoor-context-v4-E5AHLHIP.js → outdoor-context-v4-7JNIM35B.js} +1 -1
- package/lib/esm/{text3d-46AG4T7E.js → text3d-TIW6FORE.js} +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-HH7HMNDW.js +0 -1
- package/lib/esm/chunk-K3YNXHST.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
|
|
@@ -381,13 +382,13 @@ declare module '@mappedin/mappedin-js' {
|
|
|
381
382
|
export { parseMVF, unzipMVF, enableTestMode, preloadFont, MAPPEDIN_COLORS };
|
|
382
383
|
export type { MapView, MapData, MapViewState, MappedinMapLibreOverlay, TMappedinMapLibreOverlayEvents, TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TStackedMapsEvents, TExpandOptions, TStackedMapsState, TFollowMode, TFollowCameraOptions, TEvents, TEventPayload, TFloorChangeReason, TClickPayload, THoverPayload, TShow3DMapOptions, TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, TAntialiasingOptions, TMVF, PaintStyle, LineStyle, EnvMapOptions, Shading, TMVFStyleCollection, TMVFStyle, TMVFLineStringStyle, TMVFPolygonStyle, TMVFPointStyle, Environment, InsetPadding, InsetPaddingOption, OperationHours, SiblingGroup, LocationState, Text3DState, AddText3DOptions, UpdatableText3DState, InitializeText3DState, UpdateModelState, InitializeModelState, };
|
|
383
384
|
export type * from 'geojson';
|
|
384
|
-
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
385
|
+
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, TFacadeState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
385
386
|
export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
386
387
|
export type { Label, Marker, Path, PathSegment, Shape, CameraTransform, Model, Image, Text3D, } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
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
|
}
|
|
@@ -1977,6 +1971,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
1977
1971
|
*/
|
|
1978
1972
|
opacity: number;
|
|
1979
1973
|
};
|
|
1974
|
+
export type TFacadeState = {
|
|
1975
|
+
type: 'facade';
|
|
1976
|
+
/**
|
|
1977
|
+
* The opacity of the facade.
|
|
1978
|
+
*/
|
|
1979
|
+
opacity: number;
|
|
1980
|
+
};
|
|
1980
1981
|
/**
|
|
1981
1982
|
* Defines the state for geometry elements like {@link Space} when updated.
|
|
1982
1983
|
*/
|
|
@@ -2047,9 +2048,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/types' {
|
|
|
2047
2048
|
/**
|
|
2048
2049
|
* The type for updating the state of map elements (colors, texts, etc.).
|
|
2049
2050
|
*/
|
|
2050
|
-
export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject
|
|
2051
|
+
export type TUpdateState<T> = T extends WALLS ? Partial<TWallsState> : T extends DOORS | Door ? Partial<TDoorsState> : T extends Model ? Partial<UpdateModelState> : T extends Marker ? Partial<TMarkerState> : T extends Label ? Partial<TLabelState> : T extends Space | MapObject ? Partial<TGeometryState> : T extends Floor ? Partial<TFloorState> : T extends Facade ? Partial<TFacadeState> : T extends Shape ? Partial<Omit<TShapeState, 'height' | 'type'>> : T extends Text3D ? UpdatableText3DState : T extends Path ? Partial<TPathState> : T extends PathSegment ? Partial<TPathState> : T extends string ? Record<string, any> : never;
|
|
2051
2052
|
export type TUpdateStates = Partial<Omit<TGeometryState, 'interactive' | 'hoverColor' | 'type'>> | Partial<TMarkerState> | Partial<TLabelState> | Partial<TGeometryState> | Partial<TPathState>;
|
|
2052
|
-
export type TGetState<T> = T extends WALLS ? TWallsState | undefined : T extends DOORS ? TDoorsState | undefined : T extends Marker ? TMarkerState | undefined : T extends Shape ? TShapeState | undefined : T extends Model ? TModelState | undefined : T extends Label ? TLabelState | undefined : T extends Image ? TImageState | undefined : T extends Text3D ? Text3DState | undefined : T extends Space | MapObject ? TGeometryState | undefined : T extends Floor ? TFloorState | undefined : T extends Path ? TPathState | undefined : T extends PathSegment ? TPathState | undefined : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | TPathState | undefined : never;
|
|
2053
|
+
export type TGetState<T> = T extends WALLS ? TWallsState | undefined : T extends DOORS ? TDoorsState | undefined : T extends Marker ? TMarkerState | undefined : T extends Shape ? TShapeState | undefined : T extends Model ? TModelState | undefined : T extends Label ? TLabelState | undefined : T extends Image ? TImageState | undefined : T extends Text3D ? Text3DState | undefined : T extends Space | MapObject ? TGeometryState | undefined : T extends Floor ? TFloorState | undefined : T extends Facade ? TFacadeState | undefined : T extends Path ? TPathState | undefined : T extends PathSegment ? TPathState | undefined : T extends string ? TLabelState | TGeometryState | TMarkerState | TModelState | TPathState | undefined : never;
|
|
2053
2054
|
/**
|
|
2054
2055
|
* Options for {@link Camera} animations on the map.
|
|
2055
2056
|
*/
|
|
@@ -2772,6 +2773,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/constants' {
|
|
|
2772
2773
|
export const FOOTPRINT_LAYER = "FootprintLayer";
|
|
2773
2774
|
export const OCCLUSION_LAYER = "OcclusionLayer";
|
|
2774
2775
|
export const IMAGES_LAYER = "ImagesLayer";
|
|
2776
|
+
export const FACADES_LAYER = "FacadesLayer";
|
|
2775
2777
|
export const SELF_SERVE_API_AUDIENCE: string[];
|
|
2776
2778
|
export const ENTERPRISE_API_AUDIENCE: string[];
|
|
2777
2779
|
export const MAPPEDIN_COLORS: {
|
|
@@ -3532,6 +3534,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
|
3532
3534
|
import type { LocalePackUrls } from '@packages/internal/mvf-utils';
|
|
3533
3535
|
import type { LanguagePackHydrationItem } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3534
3536
|
import type { EnvControl, TGetMapDataOptions } from '@packages/internal/mvf-utils/mvf-utils';
|
|
3537
|
+
import { TokenManager } from '@packages/internal/mvf-utils/tokens/token-manager';
|
|
3535
3538
|
/**
|
|
3536
3539
|
* Places are the main objects that can be searched for.
|
|
3537
3540
|
*/
|
|
@@ -3561,7 +3564,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
|
3561
3564
|
localePacksUrls?: LocalePackUrls;
|
|
3562
3565
|
languagePacks?: LanguagePackHydrationItem[];
|
|
3563
3566
|
binaryBundle?: Uint8Array;
|
|
3564
|
-
|
|
3567
|
+
tokenManager?: TokenManager;
|
|
3565
3568
|
getMapDataOptions?: TGetMapDataOptions;
|
|
3566
3569
|
};
|
|
3567
3570
|
/**
|
|
@@ -3968,13 +3971,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3968
3971
|
export { parseMVF, unzipMVF, enableTestMode, preloadFont, MAPPEDIN_COLORS };
|
|
3969
3972
|
export type { MapView, MapData, MapViewState, MappedinMapLibreOverlay, TMappedinMapLibreOverlayEvents, TBlueDotEvents, TBlueDotAction, TBlueDotState, GeolocationPositionExtended, TStackedMapsEvents, TExpandOptions, TStackedMapsState, TFollowMode, TFollowCameraOptions, TEvents, TEventPayload, TFloorChangeReason, TClickPayload, THoverPayload, TShow3DMapOptions, TGetMapDataOptions, TGetMapDataWithAccessTokenOptions, TGetMapDataWithCredentialsOptions, TGetMapDataSharedOptions, TAntialiasingOptions, TMVF, PaintStyle, LineStyle, EnvMapOptions, Shading, TMVFStyleCollection, TMVFStyle, TMVFLineStringStyle, TMVFPolygonStyle, TMVFPointStyle, Environment, InsetPadding, InsetPaddingOption, OperationHours, SiblingGroup, LocationState, Text3DState, AddText3DOptions, UpdatableText3DState, InitializeText3DState, UpdateModelState, InitializeModelState, };
|
|
3970
3973
|
export type * from 'geojson';
|
|
3971
|
-
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3974
|
+
export type { TUpdateState, TUpdateStates, TLabelState, TGeometryState, TModelState, TShapeState, TDoorsState, TImageState, TWallsState, TCameraAnimationOptions, TAnimationOptions, TFocusOnOptions, TEasingFunction, TCameraTarget, TNavigationTarget, TDirectionZone, TAddMarkerOptions, TAddPathOptions, TLabelAppearance, TAddLabelOptions, TAddModelOptions, TAddModel, TAddImageOptions, TGetDirectionsOptions, TCollisionRankingTier, TMarkerAnchor, TDirectionInstruction, TDirectionInstructionAction, TGetState, TMarkerState, TBlueDotOptions, TBlueDotPositionUpdate, TFocusTarget, IFocusable, IAnchorable, TMapDataObjectTypes, TFloorState, TFacadeState, } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3972
3975
|
export { WALLS, DOORS } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
3973
3976
|
export type { Label, Marker, Path, PathSegment, Shape, CameraTransform, Model, Image, Text3D, } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
3974
3977
|
export type { Debug } from '@mappedin/mappedin-js/mappedin-js/src/debug';
|
|
3975
3978
|
export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
3976
3979
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3977
|
-
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';
|
|
3978
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';
|
|
3979
3982
|
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
3980
3983
|
export type { TFindNearestOptions, TFindNearestResult, TQueriables, Query } from '@mappedin/mappedin-js/mappedin-js/src/query';
|
|
@@ -5112,10 +5115,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink
|
|
|
5112
5115
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
5113
5116
|
import type { Image as MVFImage } from '@mappedin/mvf';
|
|
5114
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';
|
|
5115
5119
|
/**
|
|
5116
5120
|
* A class representing image link data within the map.
|
|
5117
5121
|
*/
|
|
5118
|
-
class
|
|
5122
|
+
class ImageMetaData extends BaseMetaData {
|
|
5119
5123
|
#private;
|
|
5120
5124
|
/**
|
|
5121
5125
|
* @internal
|
|
@@ -5127,12 +5131,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
5127
5131
|
* @param instance The instance to check.
|
|
5128
5132
|
* @returns {boolean} True if the instance is a Image, false otherwise.
|
|
5129
5133
|
*/
|
|
5130
|
-
static is(instance: object): instance is
|
|
5134
|
+
static is(instance: object): instance is ImageMetaData;
|
|
5131
5135
|
/**
|
|
5132
5136
|
* @internal
|
|
5133
5137
|
*/
|
|
5134
5138
|
constructor(options: {
|
|
5135
5139
|
mvfData: MVFImage;
|
|
5140
|
+
mapData: MapDataInternal;
|
|
5136
5141
|
});
|
|
5137
5142
|
/**
|
|
5138
5143
|
* Gets the url of the image.
|
|
@@ -5171,7 +5176,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
5171
5176
|
*/
|
|
5172
5177
|
destroy(): void;
|
|
5173
5178
|
}
|
|
5174
|
-
export default
|
|
5179
|
+
export default ImageMetaData;
|
|
5175
5180
|
}
|
|
5176
5181
|
|
|
5177
5182
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor-stack' {
|
|
@@ -5830,10 +5835,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5830
5835
|
import type { TFocusTarget, TNavigationTarget, IFocusable, INavigatable } from '@mappedin/mappedin-js/mappedin-js/src/types';
|
|
5831
5836
|
import { OpeningHours } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/opening-hours';
|
|
5832
5837
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
5833
|
-
import
|
|
5834
|
-
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'> & {
|
|
5835
5840
|
links: Hyperlink[];
|
|
5836
|
-
images:
|
|
5841
|
+
images: ImageMetaData[];
|
|
5842
|
+
icon?: ImageMetaData;
|
|
5837
5843
|
};
|
|
5838
5844
|
class LocationProfile extends BaseMetaData implements LocationData, IFocusable, INavigatable {
|
|
5839
5845
|
#private;
|
|
@@ -5870,7 +5876,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5870
5876
|
/**
|
|
5871
5877
|
* The location's pictures
|
|
5872
5878
|
*/
|
|
5873
|
-
images:
|
|
5879
|
+
images: ImageMetaData[];
|
|
5874
5880
|
/**
|
|
5875
5881
|
* Web links for the location
|
|
5876
5882
|
*/
|
|
@@ -5884,7 +5890,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-
|
|
|
5884
5890
|
*
|
|
5885
5891
|
* @format uri
|
|
5886
5892
|
*/
|
|
5887
|
-
icon?:
|
|
5893
|
+
icon?: ImageMetaData;
|
|
5888
5894
|
constructor(data: MapDataInternal, options: {
|
|
5889
5895
|
mvfData: MVFLocation;
|
|
5890
5896
|
});
|
|
@@ -9707,7 +9713,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/api' {
|
|
|
9707
9713
|
updateWatermark(options: WatermarkUpdateOptions): void;
|
|
9708
9714
|
get currentFloorStack(): FloorStack;
|
|
9709
9715
|
get currentFloor(): Floor;
|
|
9710
|
-
getState<T extends Space | Text3DView | MapObject | Label | Marker | Image | Shape | Model | Path | PathSegment | Floor | string>(target: T): TGetState<T>;
|
|
9716
|
+
getState<T extends Space | Text3DView | MapObject | Label | Marker | Image | Shape | Model | Path | PathSegment | Floor | Facade | string>(target: T): TGetState<T>;
|
|
9711
9717
|
setHoverColor(c: string): void;
|
|
9712
9718
|
getHoverColor(): string | undefined;
|
|
9713
9719
|
/**
|
|
@@ -11654,7 +11660,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/detailed-
|
|
|
11654
11660
|
import type LocationProfile from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location-profile';
|
|
11655
11661
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
11656
11662
|
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
11657
|
-
import
|
|
11663
|
+
import ImageMetaData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
|
|
11658
11664
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
11659
11665
|
type PropertiesWithDetails = {
|
|
11660
11666
|
id: string;
|
|
@@ -11683,11 +11689,11 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/detailed-
|
|
|
11683
11689
|
*/
|
|
11684
11690
|
get description(): string;
|
|
11685
11691
|
/**
|
|
11686
|
-
* Gets the array of {@link
|
|
11692
|
+
* Gets the array of {@link ImageMetaData}s associated with this map feature.
|
|
11687
11693
|
*
|
|
11688
|
-
* @returns {
|
|
11694
|
+
* @returns {ImageMetaData[]} An array of Image objects, or an empty array if no images exist.
|
|
11689
11695
|
*/
|
|
11690
|
-
get images():
|
|
11696
|
+
get images(): ImageMetaData[];
|
|
11691
11697
|
/**
|
|
11692
11698
|
* Gets the array of {@link Hyperlink}s associated with this map feature.
|
|
11693
11699
|
*
|
|
@@ -11825,7 +11831,7 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/system' {
|
|
|
11825
11831
|
|
|
11826
11832
|
declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
11827
11833
|
import { Object3D } from 'three';
|
|
11828
|
-
import type { Mesh, Object3DEventMap, ShaderMaterial, Texture, TubeGeometry, Color, Vector2 } from 'three';
|
|
11834
|
+
import type { Mesh, Object3DEventMap, ShaderMaterial, Texture, TubeGeometry, Color, Vector2, Raycaster } from 'three';
|
|
11829
11835
|
import type { InteractionComponent } from '@mappedin/mappedin-js/geojson/src/components/interaction';
|
|
11830
11836
|
import type { MeshComponent } from '@mappedin/mappedin-js/geojson/src/components/mesh';
|
|
11831
11837
|
import type { ModelComponent } from '@mappedin/mappedin-js/geojson/src/components/model';
|
|
@@ -11839,42 +11845,48 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
11839
11845
|
import type { Text3DComponent } from '@mappedin/mappedin-js/geojson/src/components/text3d';
|
|
11840
11846
|
import type { ModelStyleComponnet, Text3DStyleComponent } from '@mappedin/mappedin-js/geojson/src/components/styles';
|
|
11841
11847
|
export enum Geometry3DComponents {
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11848
|
+
Mesh = 0,
|
|
11849
|
+
Style = 1,
|
|
11850
|
+
Interaction = 2
|
|
11845
11851
|
}
|
|
11846
11852
|
type Geometry3DObjectTypes = 'geometry' | 'path' | 'model' | 'custom-geometry' | 'image' | 'text3d';
|
|
11847
11853
|
export class Geometry3DObject3D extends Object3D {
|
|
11848
|
-
type: Geometry3DObjectTypes;
|
|
11849
|
-
userData: {
|
|
11850
|
-
entityId: string;
|
|
11851
|
-
/**
|
|
11852
|
-
* TODO: remove this when proper instancing is handled
|
|
11853
|
-
*/
|
|
11854
|
-
isSingleModel?: boolean;
|
|
11855
11854
|
type: Geometry3DObjectTypes;
|
|
11856
|
-
|
|
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;
|
|
11857
11869
|
}
|
|
11858
11870
|
export type PathMaterial = ShaderMaterial & {
|
|
11859
|
-
|
|
11871
|
+
uniforms: PathUniforms;
|
|
11860
11872
|
};
|
|
11861
11873
|
export type PathMesh = Mesh<TubeGeometry, PathMaterial, Object3DEventMap>;
|
|
11862
11874
|
export class PatMeshContainer extends Geometry3DObject3D {
|
|
11863
|
-
|
|
11875
|
+
children: [PathMesh, PathMesh];
|
|
11864
11876
|
}
|
|
11865
11877
|
export type MeshComponentTypes = MeshComponent | PathComponent | ModelComponent | CustomGeometryComponent | Text3DComponent | ImageComponent;
|
|
11866
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;
|
|
11867
11879
|
export class Geometry3D<M extends MeshComponentTypes = MeshComponent, S extends StyleComponent | Text3DStyleComponent | ModelStyleComponnet = StyleComponent, I extends InteractionComponent = InteractionComponent, T extends MappedComponentType<M> = MappedComponentType<M>> {
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
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;
|
|
11878
11890
|
}
|
|
11879
11891
|
export type TextGeometry3D = Geometry3D<Text3DComponent, Text3DStyleComponent, InteractionComponent, 'text3d'>;
|
|
11880
11892
|
export type CustomGeometry3D = Geometry3D<CustomGeometryComponent, StyleComponent, InteractionComponent, 'custom-geometry'>;
|
|
@@ -11884,86 +11896,86 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/geometry3d' {
|
|
|
11884
11896
|
export type MeshGeometry3D = Geometry3D<MeshComponent, StyleComponent, InteractionComponent, 'geometry'>;
|
|
11885
11897
|
export type Geometry3DTypes = TextGeometry3D | CustomGeometry3D | PathGeometry3D | ImageGeometry3D | MeshGeometry3D | ModelGeometry3D;
|
|
11886
11898
|
export interface PathUniforms {
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
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
|
-
|
|
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
|
+
};
|
|
11967
11979
|
}
|
|
11968
11980
|
export {};
|
|
11969
11981
|
}
|
|
@@ -13413,6 +13425,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
|
|
|
13413
13425
|
import type { RendererCore, BBox } from '@mappedin/core-sdk';
|
|
13414
13426
|
import type { AggregatedStyleMap } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils';
|
|
13415
13427
|
import type { TShow3DMapOptions } from '@mappedin/mappedin-js/mappedin-js/src';
|
|
13428
|
+
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
13416
13429
|
class Layer {
|
|
13417
13430
|
containerId: string;
|
|
13418
13431
|
labelIds: Set<string>;
|
|
@@ -13436,8 +13449,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
|
|
|
13436
13449
|
layers: Map<string, Layer>;
|
|
13437
13450
|
footprint?: Feature<Polygon | MultiPolygon | null, MVFFloor>;
|
|
13438
13451
|
floorStackId: string;
|
|
13452
|
+
/** Map of styleId to array of facadeIds for styling */
|
|
13453
|
+
facadesByStyleId: Map<string, string[]>;
|
|
13439
13454
|
get geoJSONBoundingBox(): BBox | undefined;
|
|
13440
|
-
constructor(parentId: string, floor: MVFFloor, renderer: RendererCore, multiFloorView: Required<TShow3DMapOptions['multiFloorView']>, options: TShow3DMapOptions, mvf?: ParsedMVF, styleMap?: AggregatedStyleMap);
|
|
13455
|
+
constructor(parentId: string, floor: MVFFloor, renderer: RendererCore, multiFloorView: Required<TShow3DMapOptions['multiFloorView']>, options: TShow3DMapOptions, mvf?: ParsedMVF, styleMap?: AggregatedStyleMap, mapDataInternal?: MapDataInternal);
|
|
13441
13456
|
load: () => this;
|
|
13442
13457
|
get visible(): boolean;
|
|
13443
13458
|
setVisible(visible: boolean): void;
|
|
@@ -13446,7 +13461,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/floor-object'
|
|
|
13446
13461
|
}
|
|
13447
13462
|
|
|
13448
13463
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
13449
|
-
import { Coordinate, type Floor, type MapObject, type Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
13464
|
+
import { Coordinate, type Floor, type MapObject, type Space, type Facade } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
13450
13465
|
import type { EntranceCollection, LineString, Polygon, Point, SpaceProperties, ObstructionProperties, StyleCollection, PolygonStyle, LineStringStyle, Feature, ObstructionCollection, PointStyle } from '@mappedin/mvf';
|
|
13451
13466
|
import type { PolygonFeatureProperties } from '@packages/internal/mvf-utils';
|
|
13452
13467
|
import type { BBox, FeatureCollection, MultiLineString } from 'geojson';
|
|
@@ -13485,7 +13500,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/utils' {
|
|
|
13485
13500
|
};
|
|
13486
13501
|
export function groupGeometryByStyle(features: Feature<LineString | Polygon | Point, PolygonFeatureProperties<SpaceProperties | ObstructionProperties>>[], styleMap: AggregatedStyleMap): Map<WithId<PolygonStyle> | WithId<LineStringStyle> | WithId<PointStyle>, Feature<Polygon | LineString | Point, PolygonFeatureProperties<SpaceProperties | ObstructionProperties>>[]>;
|
|
13487
13502
|
export function translateToCoreStyle(style: PolygonStyle | LineStringStyle, userOptions?: TShow3DMapOptions): PaintStyle | LineStyle;
|
|
13488
|
-
export const getTargetID: <T extends Space | Shape | MapObject | Label | Text3D | Marker | Model | Path | PathSegment | Image | Floor | string>(target: T, api: GeoJsonApi) => string | undefined;
|
|
13503
|
+
export const getTargetID: <T extends Space | Shape | MapObject | Label | Text3D | Marker | Model | Path | PathSegment | Image | Floor | Facade | string>(target: T, api: GeoJsonApi) => string | undefined;
|
|
13489
13504
|
export function tweenToPromise(tween: Tween): Promise<void>;
|
|
13490
13505
|
export function getBoundingBox(geometry: GeoJSON.Feature<GeoJSON.Polygon | GeoJSON.MultiPolygon, any>): BBox;
|
|
13491
13506
|
export function expandBbox(bbox: BBox, bboxToExpand: BBox): number[];
|
|
@@ -13620,8 +13635,8 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/collisions/collider-pr
|
|
|
13620
13635
|
}
|
|
13621
13636
|
|
|
13622
13637
|
declare module '@mappedin/mappedin-js/geojson/src/systems/interactions/system' {
|
|
13623
|
-
import { PerspectiveCamera, Vector3, Object3D,
|
|
13624
|
-
import { Raycaster, Vector2 } from 'three';
|
|
13638
|
+
import type { PerspectiveCamera, Vector3, Object3D, Intersection, Object3DEventMap } from 'three';
|
|
13639
|
+
import { Mesh, Raycaster, Vector2 } from 'three';
|
|
13625
13640
|
import type { Geometry2D } from '@mappedin/mappedin-js/geojson/src/entities/geometry2d';
|
|
13626
13641
|
import { QuadTree } from '@packages/internal/quad-tree';
|
|
13627
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};
|