@mappedin/mappedin-js 6.19.0 → 6.20.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.
@@ -1,8 +1,8 @@
1
- import * as _mappedin_mvf_v22 from "@mappedin/mvf-v2";
1
+ import * as _mappedin_mvf_v25 from "@mappedin/mvf-v2";
2
2
  import { AnnotationCollection, AnnotationSymbol, AreaCollection, AreaId, BaseTextAreaProperties, Category, CategoryId, Connection as Connection$1, Details, EnterpriseCategory as EnterpriseCategory$1, EnterpriseCategoryId, EnterpriseLocation as EnterpriseLocation$1, EnterpriseLocationId, EnterpriseLocationInstance, EnterpriseTexture, EnterpriseVenue as EnterpriseVenue$1, EnterpriseVenueType, EntranceCollection, EntranceFeature, Facade as Facade$1, Feature as Feature$1, FeatureCollection as FeatureCollection$1, FloatingFloorTextProperties, FloorCollection, FloorId, FloorProperties, FloorStack as FloorStack$1, FloorTextCommonProperties, Geometry as Geometry$1, Hyperlink as Hyperlink$1, Image, Language, LineStringStyle, LineStringStyle as TMVFLineStringStyle, Location, LocationId, LocationLink, LocationSocial, LocationSocial as LocationSocial$1, LocationState, LocationState as LocationState$1, MVFv2_STANDARD_MVFv3, MultiPolygon as MultiPolygon$1, NavigationFlagDeclarations, NodeCollection, NodeId, ObstructionCollection, ObstructionCollection as ObstructionCollection$1, ObstructionFeature, ObstructionId, OpeningHoursSpecification, OperationHours, OperationHours as OperationHours$1, ParsedMVF, ParsedMVF as TMVF, ParsedMVFLocalePack, Point as Point$1, PointStyle, PointStyle as TMVFPointStyle, Polygon as Polygon$1, PolygonStyle, PolygonStyle as TMVFPolygonStyle, SiblingGroup, SiblingGroup as SiblingGroup$1, SpaceCollection, SpaceCollection as SpaceCollection$1, SpaceFeature, SpaceId, SpaceProperties, Style as TMVFStyle, StyleCollection, StyleCollection as TMVFStyleCollection, TilesetStyle } from "@mappedin/mvf-v2";
3
3
  import { MVFv2_STANDARD_MVFv3 as MVFv2_STANDARD_MVFv3$1, ParsedMVF as ParsedMVF$1, RawMVF } from "@mappedin/mvf-v2/no-validator-lite";
4
4
  import * as _mappedin_renderer_three0 from "@mappedin/renderer-three";
5
- import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelAppearance as LabelAppearance$1, LabelRenderedState, LabelTextPlacement as LabelTextPlacement$1, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three";
5
+ import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelRenderedState, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three";
6
6
  import * as _tweenjs_tween_js0 from "@tweenjs/tween.js";
7
7
  import { Group, Tween } from "@tweenjs/tween.js";
8
8
  import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context";
@@ -209,6 +209,11 @@ type TSearchOptions = {
209
209
  */
210
210
  enabled: boolean;
211
211
  };
212
+ /**
213
+ * Options shared by every {@link getMapData} call regardless of authentication mode.
214
+ * Carries the target `mapId` and optional overrides such as environment, base URL,
215
+ * and language preferences.
216
+ */
212
217
  type TGetMapDataSharedOptions = {
213
218
  /**
214
219
  * Mappedin map ID.
@@ -304,8 +309,12 @@ type TGetMapDataSharedOptions = {
304
309
  */
305
310
  prefetchTokens?: boolean;
306
311
  /**
307
- * @hidden
308
- * @internal
312
+ * Load draft (unpublished) enterprise map instead of the live version.
313
+ * Set to `"draft"` to fetch the latest unpublished changes.
314
+ * Leave unspecified to load the published live data.
315
+ *
316
+ * Requires an Enterprise API key. Only applicable to maps made in Mappedin CMS.
317
+ * @default undefined
309
318
  */
310
319
  layoutId?: 'draft';
311
320
  /**
@@ -344,6 +353,8 @@ type TGetMapDataWithCredentialsOptions = {
344
353
  secret: string;
345
354
  } & TGetMapDataSharedOptions;
346
355
  /**
356
+ * {@link getMapData} options that authenticate with a pre-issued access token,
357
+ * as opposed to a `key`/`secret` pair.
347
358
  * @interface
348
359
  */
349
360
  type TGetMapDataWithAccessTokenOptions = {
@@ -352,6 +363,10 @@ type TGetMapDataWithAccessTokenOptions = {
352
363
  */
353
364
  accessToken: string;
354
365
  } & TGetMapDataSharedOptions;
366
+ /**
367
+ * Options accepted by {@link getMapData}. Either credentials (`key`/`secret`) or an
368
+ * `accessToken` may be supplied alongside the shared options.
369
+ */
355
370
  type TGetMapDataOptions = TGetMapDataWithCredentialsOptions | TGetMapDataWithAccessTokenOptions;
356
371
  /**
357
372
  * @internal
@@ -399,9 +414,21 @@ type ParsedMVFResult = {
399
414
  mvf2: ParsedMVF$1;
400
415
  mvf3?: MVFv2_STANDARD_MVFv3$1;
401
416
  };
417
+ /**
418
+ * Decompress and parse a binary MVF (Mappedin Venue Format) payload into the
419
+ * structured `ParsedMVFResult` consumed by {@link hydrateMapData}.
420
+ *
421
+ * @param data - The gzipped MVF binary payload.
422
+ * @param inputVersion - The MVF schema version to parse against.
423
+ */
402
424
  declare function unzipAndParseMVFv2(data: Uint8Array, inputVersion?: string): Promise<ParsedMVFResult>;
403
425
  //#endregion
404
426
  //#region src/hydrate-map-data.d.ts
427
+ /**
428
+ * Pre-fetched MVF data passed to {@link hydrateMapData} so a map can be constructed
429
+ * without going to the network. Supports both binary (`Uint8Array`) and JSON forms,
430
+ * optional language packs, and matches the shape produced by Mappedin's CDN.
431
+ */
405
432
  type THydrateMapDataBundle = {
406
433
  type: 'binary';
407
434
  options?: {
@@ -599,8 +626,19 @@ type CaptureEventsPayloadMap = {
599
626
  * Optional array of result IDs (hits).
600
627
  */
601
628
  hits?: string[];
629
+ /**
630
+ * Total number of results returned for the query across all result categories
631
+ * (places + enterprise locations + enterprise categories). Useful for identifying
632
+ * queries that return no results (`resultCount === 0`).
633
+ */
634
+ resultCount?: number;
602
635
  };
603
636
  };
637
+ /**
638
+ * Sends user interaction analytics events to Mappedin's analytics backend.
639
+ * Captures map loads, search queries, directions, and custom user events so
640
+ * usage of an indoor map can be measured and tuned.
641
+ */
604
642
  declare class Analytics {
605
643
  #private;
606
644
  /**
@@ -635,6 +673,12 @@ declare class Analytics {
635
673
  analyticsBaseUrl: string;
636
674
  /** Flag to disable authentication. */
637
675
  noAuth: boolean;
676
+ /**
677
+ * Marks the tenant as an enterprise venue. Only enterprise venues are allowed to send
678
+ * `x-mappedin-key` / `x-mappedin-secret` headers to the analytics gateway — non-enterprise
679
+ * tenants must use `accessToken` (Bearer) auth, otherwise the gateway returns 401.
680
+ */
681
+ enterprise: boolean;
638
682
  /** Flag to enable geolocation mode. */
639
683
  geolocationMode: boolean;
640
684
  /** The context in which the analytics are being used. */
@@ -689,6 +733,12 @@ type AnalyticState = {
689
733
  analyticsBaseUrl: string;
690
734
  /** Flag to disable authentication. */
691
735
  noAuth: boolean;
736
+ /**
737
+ * Marks the tenant as an enterprise venue. Only enterprise venues are allowed to send
738
+ * `x-mappedin-key` / `x-mappedin-secret` headers to the analytics gateway — non-enterprise
739
+ * tenants must use `accessToken` (Bearer) auth, otherwise the gateway returns 401.
740
+ */
741
+ enterprise: boolean;
692
742
  /** Flag to enable geolocation mode. */
693
743
  geolocationMode: boolean;
694
744
  /** @internal The device ID to be used for analytics. */
@@ -3056,6 +3106,15 @@ declare const LABEL_TEXT_PLACEMENT: {
3056
3106
  readonly CENTER: "center";
3057
3107
  };
3058
3108
  declare const LABEL_LOW_PRIORITY = "low-priority";
3109
+ /**
3110
+ * The placement of a label's text relative to its pin.
3111
+ *
3112
+ * - `'right'` — text appears to the right of the pin.
3113
+ * - `'left'` — text appears to the left of the pin.
3114
+ * - `'top'` — text appears above the pin.
3115
+ * - `'hidden'` — text is hidden, only the pin is visible.
3116
+ * - `'center'` — text is centered at the pin location and the pin is hidden.
3117
+ */
3059
3118
  type LabelTextPlacement = (typeof LABEL_TEXT_PLACEMENT)[keyof typeof LABEL_TEXT_PLACEMENT];
3060
3119
  type LabelTextPlacementInternal = LabelTextPlacement | typeof LABEL_LOW_PRIORITY;
3061
3120
  type EasingCurve$1 = string;
@@ -3108,7 +3167,66 @@ declare const labelAppearanceSchemaBase: ZodObject<{
3108
3167
  __EXPERIMENTAL_wrapperShadowOffsetX: ZodDefault<ZodNumber>;
3109
3168
  __EXPERIMENTAL_wrapperShadowOffsetY: ZodDefault<ZodNumber>;
3110
3169
  __EXPERIMENTAL_wrapperShadowBlur: ZodDefault<ZodNumber>;
3170
+ __EXPERIMENTAL_wrapperOpacity: ZodDefault<ZodNumber>;
3111
3171
  }, $strip>;
3172
+ /**
3173
+ * Options to control how a label is rendered.
3174
+ *
3175
+ * | Option | Type | Description | Default |
3176
+ * |--------|------|-------------|---------|
3177
+ * | `margin` | `number` | Margin around the label text and pin in pixels. This will affect label density. Minimum is 6px. | 6 |
3178
+ * | `maxLines` | `number` | Number of lines to display when text spans multiple lines. | 2 |
3179
+ * | `textSize` | `number` | Text size in pixels | 11.5 |
3180
+ * | `maxWidth` | `number` | Maximum width of text in pixels. | 150 |
3181
+ * | `lineHeight` | `number` | Line height sets the height of a line box. It's commonly used to set the distance between lines of text. | 1.2 |
3182
+ * | `color` | `string` | A color string for the label text and pin. | `#333` |
3183
+ * | `outlineColor` | `string` | A color string for the outline around the label text and pin. | `white` |
3184
+ * | `textColor` | `string` | A color string representing just the text color. Defaults to the same as `color`. | - |
3185
+ * | `textOutlineColor` | `string` | A color string representing just the text outline. Defaults to the same as `outlineColor`. | - |
3186
+ * | `pinColor` | `string` | A color string representing just the pin color. Defaults to the same as `color`. | - |
3187
+ * | `pinOutlineColor` | `string` | A color string representing just the pin outline. Defaults to the same as `outlineColor`. | - |
3188
+ * | `pinColorInactive` | `string` | A color string representing just the pin color when the label is inactive. Defaults to the same as `pinColor`. | - |
3189
+ * | `pinOutlineColorInactive` | `string` | A color string representing just the pin outline when the label is inactive. Defaults to the same as `pinOutlineColor`. | - |
3190
+ * | `icon` | `string` | An icon to be placed inside the label pin. Can be an SVG string or a path to a PNG or JPEG. | - |
3191
+ * | `iconSize` | `number` | Size of the icon in pixels. Requires `icon` to be set. | 20 |
3192
+ * | `iconScale` | `number` \| {@link Interpolation} | Scale the icon uniformly. Specify a number or an {@link Interpolation} object. | 1 |
3193
+ * | `iconPadding` | `number` | Padding between the icon and the pin's border in pixels. | 2 |
3194
+ * | `iconFit` | `'fill'` \| `'contain'` \| `'cover'` | How the icon should fit inside the pin. Options: `fill` (stretch to fill), `cover` (maintain aspect ratio and fill), `contain` (maintain aspect ratio and fit inside). | `cover` |
3195
+ * | `iconOverflow` | `'visible'` \| `'hidden'` | Whether the icon should overflow the circle of the pin. | `hidden` |
3196
+ * | `iconVisible` | `boolean` \| `number` | Controls icon visibility. If boolean, directly shows/hides the icon. If number, defines the zoom level at which the icon becomes visible. | `true` |
3197
+ * | `opacity` | `number` | The opacity of the Label when it is enabled and visible. | `1` |
3198
+ *
3199
+ * @example Render a label with an SVG icon
3200
+ * ```ts
3201
+ * mapView.Labels.add(space, "Label", {
3202
+ * appearance: {
3203
+ * icon: `<svg>...</svg>`,
3204
+ * },
3205
+ * });
3206
+ * ```
3207
+ *
3208
+ * @example Render a label with an image icon
3209
+ * ```ts
3210
+ * mapView.Labels.add(space, "Label", {
3211
+ * appearance: {
3212
+ * icon: 'https://example.com/icon.png',
3213
+ * },
3214
+ * });
3215
+ * ```
3216
+ *
3217
+ * @example Scale a label's icon with zoom level
3218
+ * ```ts
3219
+ * mapView.Labels.add(space, "Label", {
3220
+ * appearance: {
3221
+ * iconScale: {
3222
+ * on: 'zoom-level',
3223
+ * input: [19, 22],
3224
+ * output: [1, 3],
3225
+ * },
3226
+ * },
3227
+ * });
3228
+ * ```
3229
+ */
3112
3230
  type LabelAppearance = Partial<input<typeof labelAppearanceSchemaBase>> & {
3113
3231
  iconScale?: number | Interpolation$2<'zoom-level', number[]>;
3114
3232
  };
@@ -3156,6 +3274,7 @@ declare const labelAppearanceSchema: ZodPipe<ZodObject<{
3156
3274
  __EXPERIMENTAL_wrapperShadowOffsetX: ZodDefault<ZodNumber>;
3157
3275
  __EXPERIMENTAL_wrapperShadowOffsetY: ZodDefault<ZodNumber>;
3158
3276
  __EXPERIMENTAL_wrapperShadowBlur: ZodDefault<ZodNumber>;
3277
+ __EXPERIMENTAL_wrapperOpacity: ZodDefault<ZodNumber>;
3159
3278
  }, $strip>, ZodTransform<Required<LabelAppearance>, {
3160
3279
  margin: number;
3161
3280
  maxLines: number;
@@ -3183,6 +3302,7 @@ declare const labelAppearanceSchema: ZodPipe<ZodObject<{
3183
3302
  __EXPERIMENTAL_wrapperShadowOffsetX: number;
3184
3303
  __EXPERIMENTAL_wrapperShadowOffsetY: number;
3185
3304
  __EXPERIMENTAL_wrapperShadowBlur: number;
3305
+ __EXPERIMENTAL_wrapperOpacity: number;
3186
3306
  textColor?: string | undefined;
3187
3307
  textOutlineColor?: string | undefined;
3188
3308
  pinColor?: string | undefined;
@@ -3252,6 +3372,7 @@ declare class LabelComponent {
3252
3372
  interactive: boolean;
3253
3373
  isOccluded: boolean;
3254
3374
  offscreen: boolean;
3375
+ disposed: boolean;
3255
3376
  /**
3256
3377
  * Whether the label can be shown, which is decided by the collision engine
3257
3378
  */
@@ -4595,6 +4716,11 @@ type TNavigationOptions = {
4595
4716
  animated?: boolean;
4596
4717
  };
4597
4718
  };
4719
+ /**
4720
+ * Snapshot of the navigation system's state at a point in time, including the
4721
+ * active floors, paths, and directions. Returned by `Navigation.getState()` and
4722
+ * suitable for serialization or use in undo/redo flows.
4723
+ */
4598
4724
  type NavigationState = {
4599
4725
  isMultiFloor: boolean;
4600
4726
  floorStacks: FloorStack[];
@@ -4916,7 +5042,7 @@ declare class Footprint {
4916
5042
  /**
4917
5043
  * Builds the basement mask for elevation 0 floors
4918
5044
  */
4919
- buildBasementMask(): void;
5045
+ buildBasementMask(spacesOpenToBelow?: Feature$1<Polygon$1, SpaceProperties>[]): void;
4920
5046
  /**
4921
5047
  * Updates the state of the footprint geometry (walls and ceiling)
4922
5048
  * @param state Partial state to update
@@ -5332,6 +5458,7 @@ declare class Shapes {
5332
5458
  * ```ts
5333
5459
  * const shape = mapView.Shapes.add(geometry, {
5334
5460
  * color: 'green',
5461
+ * hoverColor: 'blue',
5335
5462
  * opacity: 0.7,
5336
5463
  * height: 2,
5337
5464
  * interactive: true
@@ -5369,6 +5496,11 @@ type InspectorState = {
5369
5496
  type InspectorOption = Partial<InspectorState>;
5370
5497
  //#endregion
5371
5498
  //#region src/debug.d.ts
5499
+ /**
5500
+ * Diagnostic utilities exposed at `MapView.Debug`. Provides toggles for
5501
+ * debug visualizations, snapshots of the current camera state, and other
5502
+ * inspection helpers useful while developing against Mappedin JS.
5503
+ */
5372
5504
  declare class Debug {
5373
5505
  #private;
5374
5506
  state: DebugState$1;
@@ -6290,6 +6422,10 @@ type PartialExcept<T$1, K$1 extends string> = { [P in keyof T$1 as P extends K$1
6290
6422
  type ExtractDeep<T$1, U$1, Depth extends readonly number[] = []> = Depth['length'] extends 3 ? any : { [K in keyof T$1 as T$1[K] extends U$1 ? K : T$1[K] extends object | undefined ? ExtractDeep<NonNullable<T$1[K]>, U$1, [...Depth, 0]> extends never ? never : K : never]: T$1[K] extends object | undefined ? undefined extends T$1[K] ? ExtractDeep<NonNullable<T$1[K]>, U$1, [...Depth, 0]> | undefined : ExtractDeep<NonNullable<T$1[K]>, U$1, [...Depth, 0]> : T$1[K] extends U$1 ? T$1[K] : never };
6291
6423
  //#endregion
6292
6424
  //#region src/api-geojson/auto/index.d.ts
6425
+ /**
6426
+ * Map view objects automatically created by `MapView.auto()` — typically labels
6427
+ * and markers generated from venue data for common element types.
6428
+ */
6293
6429
  type AutoElements = {
6294
6430
  labels: Label[];
6295
6431
  markers: Marker[];
@@ -7126,6 +7262,11 @@ declare class MapView {
7126
7262
  /**
7127
7263
  * Get the X and Y of a {@link Coordinate} measured from the top left corner of the map canvas.
7128
7264
  *
7265
+ * The projected altitude is derived from the floor's live state (via `coordinate.floorId`)
7266
+ * plus `coordinate.verticalOffset`. For coordinates without a `floorId`, `verticalOffset`
7267
+ * is used directly as an absolute scene altitude — useful for "what if" projections at
7268
+ * arbitrary altitudes without mutating the scene.
7269
+ *
7129
7270
  * @experimental
7130
7271
  */
7131
7272
  getScreenCoordinateFromCoordinate(coordinate: Coordinate): {
@@ -7492,7 +7633,7 @@ declare class Camera {
7492
7633
  /**
7493
7634
  * The camera's current pan mode.
7494
7635
  */
7495
- get panMode(): "elevation" | "default";
7636
+ get panMode(): "default" | "elevation";
7496
7637
  /**
7497
7638
  * Set the camera's pan mode. 'elevation' moves the camera up and down, while 'default' allows the camera to pan in all directions.
7498
7639
  * @experimental
@@ -7634,6 +7775,24 @@ declare class Camera {
7634
7775
  * The current elevation of the camera in meters.
7635
7776
  */
7636
7777
  get elevation(): number;
7778
+ /**
7779
+ * The maximum elevation (in meters) the camera is allowed to reach.
7780
+ * @default Infinity
7781
+ */
7782
+ get maxElevation(): number;
7783
+ /**
7784
+ * Cap the camera's elevation in meters. Useful when `panMode` is
7785
+ * `'elevation'` (vertical drag) to prevent the camera from rising above a
7786
+ * building or floor stack. Pass `Infinity` to remove the cap.
7787
+ *
7788
+ * Applies to user pedestal drag, `setElevation`, and `animateElevation`.
7789
+ * If the current elevation is above the new cap it is snapped down to it.
7790
+ *
7791
+ * @experimental
7792
+ * @param maxElevation The new maximum elevation in meters.
7793
+ * @default Infinity
7794
+ */
7795
+ setMaxElevation(maxElevation: number): void;
7637
7796
  /**
7638
7797
  * Animate the camera's elevation to a specified elevation.
7639
7798
  * @experimental
@@ -8389,6 +8548,11 @@ declare class Paths {
8389
8548
  type CurrentMapGetter$2 = () => GeojsonApiMapObject | undefined;
8390
8549
  //#endregion
8391
8550
  //#region src/api-geojson/style.d.ts
8551
+ /**
8552
+ * Applies named visual style presets to the current map. Accessible from
8553
+ * {@link MapView.Style}, it supports loading a {@link StyleCollection} or
8554
+ * setting an individual style by id.
8555
+ */
8392
8556
  declare class Style {
8393
8557
  #private;
8394
8558
  /**
@@ -8416,9 +8580,11 @@ type HiddenOutdoorGeometry = [polygons: GeoJSON.Feature<GeoJSON.Polygon | GeoJSO
8416
8580
  * [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) is a TypeScript library that uses WebGL to render interactive maps from vector tiles in a browser. The Mappedin SDK makes use of it to display the outdoor map.
8417
8581
  *
8418
8582
  * By providing access to the MapLibre map used to draw the outdoor map, the Mappedin SDK enables developers to draw on and manipulate the outdoor map.
8419
- * Developers can use most capabilities of MapLibre GL JS with key exceptions being Interactivity and Camera, which are not available.
8583
+ * Developers can use most capabilities of MapLibre GL JS. The key exception is Interactivity, which is not available; direct Camera control is discouraged because Mappedin JS owns the outdoor camera (see below).
8584
+ *
8585
+ * User touch and click events are handled by Mappedin JS and are not propagated to the outdoor map layer. Camera movement is also driven by Mappedin JS; moving the MapLibre camera directly is not supported and may be overridden.
8420
8586
  *
8421
- * User touch and click events are handled by Mappedin JS and are not propagated to the outdoor map layer. Camera movement is also handled by Mappedin JS and cannot be manipulated using MapLibre controls.
8587
+ * IMPORTANT: Moving the camera via `Outdoor.map` (for example `Outdoor.map.flyTo` / `easeTo` / `jumpTo` / `setZoom`) is not supported Mappedin JS controls the outdoor camera and may override these calls. Use {@link MapView.Camera} (for example {@link Camera.animateTo}, {@link Camera.set}, or {@link Camera.focusOn}) instead.
8422
8588
  *
8423
8589
  * Refer to the [Outdoor Map Guide](https://developer.mappedin.com/web-sdk/outdoor-map) for more information and interactive examples.
8424
8590
  */
@@ -8434,11 +8600,30 @@ declare class Outdoor {
8434
8600
  */
8435
8601
  setStyle(style: any): void;
8436
8602
  /**
8437
- * Returns a Maplibre map for advanced usage.
8603
+ * Returns the underlying MapLibre GL map for **advanced, non-camera** usage,
8604
+ * such as adding custom layers, sources, GeoJSON, or deck.gl overlays.
8605
+ *
8606
+ * IMPORTANT: Moving the camera through this object is not supported. Camera
8607
+ * control (center, zoom, bearing, pitch, elevation) is owned by Mappedin JS,
8608
+ * so MapLibre camera methods such as `flyTo`, `easeTo`, `jumpTo`, `panTo`,
8609
+ * `zoomTo`, `setZoom`, `setCenter`, `setBearing`, or `setPitch` may be
8610
+ * overridden. Use the {@link Camera} API instead — it is the supported,
8611
+ * fully-featured path (animation promises, collision-aware framing).
8612
+ *
8613
+ * To move the camera, use the {@link Camera} API instead:
8614
+ * - {@link Camera.animateTo} — smoothly move to a center / zoom / bearing / pitch
8615
+ * - {@link Camera.set} — instantly set the camera
8616
+ * - {@link Camera.focusOn} — frame one or more map elements
8617
+ *
8618
+ * @example Move the camera to a coordinate (correct — do NOT use `Outdoor.map.flyTo`)
8619
+ * ```ts
8620
+ * mapView.Camera.animateTo({ center: coordinate, zoomLevel: 19 }, { duration: 600 });
8621
+ * ```
8438
8622
  *
8439
- * @returns {object} Maplibre map instance
8623
+ * @returns The MapLibre GL `Map` instance, or `undefined` if the outdoor view is disabled.
8440
8624
  *
8441
8625
  * Limitations:
8626
+ * - Camera methods are not supported (see above) — use {@link MapView.Camera} to move the camera.
8442
8627
  * - Maplibre interaction events are not supported, use Mappedin JS interaction events.
8443
8628
  * - Maplibre markers and labels may overlap as they are not integrated with the Mappedin JS collision engine.
8444
8629
  */
@@ -8659,6 +8844,7 @@ declare class Text3D {
8659
8844
  }
8660
8845
  //#endregion
8661
8846
  //#region src/states/doors-state.d.ts
8847
+ /** @internal */
8662
8848
  declare const doorsStateSchemaPartial: ZodObject<{
8663
8849
  type: ZodOptional<ZodDefault<ZodLiteral<"doors">>>;
8664
8850
  color: ZodOptional<ZodDefault<ZodString>>;
@@ -8672,6 +8858,7 @@ declare const doorsStateSchemaPartial: ZodObject<{
8672
8858
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
8673
8859
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
8674
8860
  }, $strip>;
8861
+ /** @internal */
8675
8862
  declare const doorsStateSchemaStrict: ZodObject<{
8676
8863
  type: ZodDefault<ZodLiteral<"doors">>;
8677
8864
  color: ZodDefault<ZodString>;
@@ -8685,24 +8872,39 @@ declare const doorsStateSchemaStrict: ZodObject<{
8685
8872
  visible: ZodDefault<ZodBoolean>;
8686
8873
  opacity: ZodDefault<ZodNumber>;
8687
8874
  }, $strict>;
8875
+ /**
8876
+ * The serialized state of all doors in the map, including their colors and visibility.
8877
+ */
8688
8878
  type TDoorsState = output<typeof doorsStateSchemaStrict>;
8879
+ /**
8880
+ * A partial doors state used to apply incremental updates, where every field is optional.
8881
+ */
8689
8882
  type TDoorsUpdateState = output<typeof doorsStateSchemaPartial>;
8690
8883
  //#endregion
8691
8884
  //#region src/states/facade-state.d.ts
8885
+ /** @internal */
8692
8886
  declare const facadeStateSchemaPartial: ZodObject<{
8693
8887
  type: ZodOptional<ZodDefault<ZodLiteral<"facade">>>;
8694
8888
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
8695
8889
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
8696
8890
  }, $strip>;
8891
+ /** @internal */
8697
8892
  declare const facadeStateSchemaStrict: ZodObject<{
8698
8893
  type: ZodDefault<ZodLiteral<"facade">>;
8699
8894
  opacity: ZodDefault<ZodNumber>;
8700
8895
  visible: ZodDefault<ZodBoolean>;
8701
8896
  }, $strict>;
8897
+ /**
8898
+ * The serialized state of all building facades, including their materials and visibility.
8899
+ */
8702
8900
  type TFacadeState = output<typeof facadeStateSchemaStrict>;
8901
+ /**
8902
+ * A partial facades state used to apply incremental updates, where every field is optional.
8903
+ */
8703
8904
  type TFacadeUpdateState = output<typeof facadeStateSchemaPartial>;
8704
8905
  //#endregion
8705
8906
  //#region src/states/floor-state.d.ts
8907
+ /** @internal */
8706
8908
  declare const floorStateSchemaPartial: ZodObject<{
8707
8909
  geometry: ZodOptional<ZodObject<{
8708
8910
  type: ZodOptional<ZodDefault<ZodLiteral<"floor.geometry">>>;
@@ -8780,6 +8982,7 @@ declare const floorStateSchemaPartial: ZodObject<{
8780
8982
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
8781
8983
  altitude: ZodOptional<ZodDefault<ZodNumber>>;
8782
8984
  }, $strip>;
8985
+ /** @internal */
8783
8986
  declare const floorStateSchemaStrict: ZodObject<{
8784
8987
  geometry: ZodObject<{
8785
8988
  type: ZodDefault<ZodLiteral<"floor.geometry">>;
@@ -8857,10 +9060,17 @@ declare const floorStateSchemaStrict: ZodObject<{
8857
9060
  visible: ZodDefault<ZodBoolean>;
8858
9061
  altitude: ZodDefault<ZodNumber>;
8859
9062
  }, $strict>;
9063
+ /**
9064
+ * The serialized state of a floor, including its geometry, labels, markers, paths, and visibility.
9065
+ */
8860
9066
  type TFloorState = output<typeof floorStateSchemaStrict>;
9067
+ /**
9068
+ * A partial floor state used to apply incremental updates, where every field is optional.
9069
+ */
8861
9070
  type TFloorUpdateState = output<typeof floorStateSchemaPartial>;
8862
9071
  //#endregion
8863
9072
  //#region src/states/geometry-state.d.ts
9073
+ /** @internal */
8864
9074
  declare const geometryStateSchemaPartial: ZodObject<{
8865
9075
  type: ZodOptional<ZodDefault<ZodLiteral<"geometry">>>;
8866
9076
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -8883,6 +9093,7 @@ declare const geometryStateSchemaPartial: ZodObject<{
8883
9093
  borderColor: ZodOptional<ZodOptional<ZodString>>;
8884
9094
  borderWidth: ZodOptional<ZodOptional<ZodNumber>>;
8885
9095
  }, $strip>;
9096
+ /** @internal */
8886
9097
  declare const geometryStateSchemaStrict: ZodObject<{
8887
9098
  type: ZodDefault<ZodLiteral<"geometry">>;
8888
9099
  visible: ZodDefault<ZodBoolean>;
@@ -8906,12 +9117,17 @@ declare const geometryStateSchemaStrict: ZodObject<{
8906
9117
  borderWidth: ZodOptional<ZodNumber>;
8907
9118
  }, $strict>;
8908
9119
  /**
8909
- * Defines the state for geometry elements like {@link Space} when updated.
9120
+ * The serialized state of a geometry element such as a {@link Space}, including
9121
+ * its style, color, and visibility.
8910
9122
  */
8911
9123
  type TGeometryState = output<typeof geometryStateSchemaStrict>;
9124
+ /**
9125
+ * A partial geometry state used to apply incremental updates, where every field is optional.
9126
+ */
8912
9127
  type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
8913
9128
  //#endregion
8914
9129
  //#region src/states/label-state.d.ts
9130
+ /** @internal */
8915
9131
  declare const labelStateSchema: ZodObject<{
8916
9132
  type: ZodDefault<ZodLiteral<"label">>;
8917
9133
  text: ZodString;
@@ -8934,6 +9150,7 @@ declare const labelStateSchema: ZodObject<{
8934
9150
  }>>]>>;
8935
9151
  occlude: ZodDefault<ZodBoolean>;
8936
9152
  }, $strip>;
9153
+ /** @internal */
8937
9154
  declare const labelStateSchemaPartial: ZodObject<{
8938
9155
  type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
8939
9156
  text: ZodOptional<ZodString>;
@@ -8956,10 +9173,18 @@ declare const labelStateSchemaPartial: ZodObject<{
8956
9173
  }>>]>>>;
8957
9174
  occlude: ZodOptional<ZodDefault<ZodBoolean>>;
8958
9175
  }, $strip>;
9176
+ /**
9177
+ * The serialized state of a label, including its position, appearance, and rank.
9178
+ * Returned by state APIs and used by extensions that need to inspect or persist label state.
9179
+ */
8959
9180
  type TLabelState = output<typeof labelStateSchema>;
9181
+ /**
9182
+ * A partial label state used to apply incremental updates, where every field is optional.
9183
+ */
8960
9184
  type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
8961
9185
  //#endregion
8962
9186
  //#region src/states/marker-state.d.ts
9187
+ /** @internal */
8963
9188
  declare const markerStateSchema: ZodObject<{
8964
9189
  type: ZodDefault<ZodLiteral<"marker">>;
8965
9190
  rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
@@ -9000,9 +9225,10 @@ declare const markerStateSchema: ZodObject<{
9000
9225
  occlude: ZodDefault<ZodBoolean>;
9001
9226
  animated: ZodDefault<ZodBoolean>;
9002
9227
  }, $strip>;
9228
+ /** @internal */
9003
9229
  declare const markerStateSchemaPartial: ZodObject<{
9004
- type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
9005
9230
  enabled: ZodOptional<ZodDefault<ZodBoolean>>;
9231
+ type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
9006
9232
  interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
9007
9233
  rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
9008
9234
  occlude: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -9039,12 +9265,23 @@ declare const markerStateSchemaPartial: ZodObject<{
9039
9265
  contentHTML: ZodOptional<ZodString>;
9040
9266
  animated: ZodOptional<ZodDefault<ZodBoolean>>;
9041
9267
  }, $strip>;
9268
+ /**
9269
+ * The serialized state of a marker, including its anchor, HTML content, and rank.
9270
+ * Returned by state APIs and used by extensions that need to inspect or persist marker state.
9271
+ */
9042
9272
  type TMarkerState = output<typeof markerStateSchema>;
9273
+ /**
9274
+ * A partial marker state used to apply incremental updates, where every field is optional.
9275
+ */
9043
9276
  type TMarkerUpdateState = output<typeof markerStateSchemaPartial>;
9044
9277
  //#endregion
9045
9278
  //#region src/states/path-state.d.ts
9046
- /** Border color - 'darken' auto-darkens main color, or explicit hex color string */
9279
+ /**
9280
+ * Border color - 'darken' auto-darkens main color, or explicit hex color string.
9281
+ * @internal
9282
+ */
9047
9283
  type BorderColor = LiteralUnion<'darken', string>;
9284
+ /** @internal */
9048
9285
  declare const pathStateSchemaPartial: ZodObject<{
9049
9286
  type: ZodOptional<ZodDefault<ZodLiteral<"path">>>;
9050
9287
  color: ZodOptional<ZodDefault<ZodString>>;
@@ -9095,6 +9332,7 @@ declare const pathStateSchemaPartial: ZodObject<{
9095
9332
  dithering: ZodOptional<ZodNumber>;
9096
9333
  }, $strip>>>;
9097
9334
  }, $strip>;
9335
+ /** @internal */
9098
9336
  declare const pathStateSchemaStrict: ZodObject<{
9099
9337
  type: ZodDefault<ZodLiteral<"path">>;
9100
9338
  color: ZodDefault<ZodString>;
@@ -9145,15 +9383,24 @@ declare const pathStateSchemaStrict: ZodObject<{
9145
9383
  dithering: ZodOptional<ZodNumber>;
9146
9384
  }, $strip>>;
9147
9385
  }, $strict>;
9386
+ /**
9387
+ * The serialized state of a path, including its waypoints, style, and animation.
9388
+ * Returned by state APIs and used by extensions that need to inspect or persist path state.
9389
+ */
9148
9390
  type TPathState = output<typeof pathStateSchemaStrict>;
9391
+ /**
9392
+ * A partial path state used to apply incremental updates, where every field is optional.
9393
+ */
9149
9394
  type TPathUpdateState = input<typeof pathStateSchemaPartial>;
9150
9395
  //#endregion
9151
9396
  //#region src/states/shape-state.d.ts
9397
+ /** @internal */
9152
9398
  declare const shapeStateSchemaPartial: ZodObject<{
9153
9399
  type: ZodOptional<ZodDefault<ZodLiteral<"shape">>>;
9154
9400
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
9155
9401
  altitude: ZodOptional<ZodDefault<ZodNumber>>;
9156
9402
  color: ZodOptional<ZodDefault<ZodString>>;
9403
+ hoverColor: ZodOptional<ZodOptional<ZodString>>;
9157
9404
  height: ZodOptional<ZodDefault<ZodNumber>>;
9158
9405
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
9159
9406
  interactive: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -9166,11 +9413,13 @@ declare const shapeStateSchemaPartial: ZodObject<{
9166
9413
  }, $strip>>>;
9167
9414
  position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
9168
9415
  }, $strip>;
9416
+ /** @internal */
9169
9417
  declare const shapeStateSchemaStrict: ZodObject<{
9170
9418
  type: ZodDefault<ZodLiteral<"shape">>;
9171
9419
  visible: ZodDefault<ZodBoolean>;
9172
9420
  altitude: ZodDefault<ZodNumber>;
9173
9421
  color: ZodDefault<ZodString>;
9422
+ hoverColor: ZodOptional<ZodString>;
9174
9423
  height: ZodDefault<ZodNumber>;
9175
9424
  opacity: ZodDefault<ZodNumber>;
9176
9425
  interactive: ZodDefault<ZodBoolean>;
@@ -9184,12 +9433,16 @@ declare const shapeStateSchemaStrict: ZodObject<{
9184
9433
  position: ZodCustom<Coordinate, Coordinate>;
9185
9434
  }, $strict>;
9186
9435
  /**
9187
- * Represents the state of a shape.
9436
+ * The serialized state of a shape feature collection, including its geometry and styling.
9188
9437
  */
9189
9438
  type TShapeState = output<typeof shapeStateSchemaStrict>;
9439
+ /**
9440
+ * A partial shape state used to apply incremental updates, where every field is optional.
9441
+ */
9190
9442
  type TShapeUpdateState = output<typeof shapeStateSchemaPartial>;
9191
9443
  //#endregion
9192
9444
  //#region src/states/image-state.d.ts
9445
+ /** @internal */
9193
9446
  declare const imageStateSchema: ZodObject<{
9194
9447
  type: ZodDefault<ZodLiteral<"image3d">>;
9195
9448
  visible: ZodDefault<ZodBoolean>;
@@ -9202,6 +9455,7 @@ declare const imageStateSchema: ZodObject<{
9202
9455
  flipImagesToFaceCamera: ZodDefault<ZodBoolean>;
9203
9456
  interactive: ZodDefault<ZodBoolean>;
9204
9457
  }, $strip>;
9458
+ /** @internal */
9205
9459
  declare const imageStateSchemaPartial: ZodObject<{
9206
9460
  type: ZodOptional<ZodDefault<ZodLiteral<"image3d">>>;
9207
9461
  visible: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -9214,10 +9468,17 @@ declare const imageStateSchemaPartial: ZodObject<{
9214
9468
  flipImagesToFaceCamera: ZodOptional<ZodDefault<ZodBoolean>>;
9215
9469
  interactive: ZodOptional<ZodDefault<ZodBoolean>>;
9216
9470
  }, $strip>;
9471
+ /**
9472
+ * The serialized state of a 3D image overlay, including its coordinate, size, and opacity.
9473
+ */
9217
9474
  type TImage3DState = output<typeof imageStateSchema>;
9475
+ /**
9476
+ * A partial 3D image state used to apply incremental updates, where every field is optional.
9477
+ */
9218
9478
  type TImage3DUpdateState = output<typeof imageStateSchemaPartial>;
9219
9479
  //#endregion
9220
9480
  //#region src/states/model-state.d.ts
9481
+ /** @internal */
9221
9482
  declare const modelStateUpdateSchema: ZodObject<{
9222
9483
  altitude: ZodOptional<ZodOptional<ZodNumber>>;
9223
9484
  id: ZodOptional<ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>>;
@@ -9237,6 +9498,7 @@ declare const modelStateUpdateSchema: ZodObject<{
9237
9498
  scale: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
9238
9499
  rotation: ZodOptional<ZodUnion<readonly [ZodNumber, ZodTuple<[ZodNumber, ZodNumber, ZodNumber], null>]>>;
9239
9500
  }, $strip>;
9501
+ /** @internal */
9240
9502
  declare const modelStateSchemaStrict: ZodObject<{
9241
9503
  altitude: ZodOptional<ZodNumber>;
9242
9504
  id: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
@@ -9257,12 +9519,16 @@ declare const modelStateSchemaStrict: ZodObject<{
9257
9519
  clippingPlaneTopVisible: ZodDefault<ZodBoolean>;
9258
9520
  }, $strict>;
9259
9521
  /**
9260
- * Represents the state of a model.
9522
+ * The serialized state of a 3D model, including its coordinate, rotation, and scale.
9261
9523
  */
9262
9524
  type TModelState = output<typeof modelStateSchemaStrict>;
9525
+ /**
9526
+ * A partial 3D model state used to apply incremental updates, where every field is optional.
9527
+ */
9263
9528
  type TModelUpdateState = output<typeof modelStateUpdateSchema>;
9264
9529
  //#endregion
9265
9530
  //#region src/states/text3d-state.d.ts
9531
+ /** @internal */
9266
9532
  declare const text3DUpdateStateSchema: ZodObject<{
9267
9533
  visible: ZodOptional<ZodOptional<ZodBoolean>>;
9268
9534
  color: ZodOptional<ZodOptional<ZodString>>;
@@ -9283,6 +9549,7 @@ declare const text3DUpdateStateSchema: ZodObject<{
9283
9549
  type: ZodOptional<ZodDefault<ZodLiteral<"text3d">>>;
9284
9550
  position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
9285
9551
  }, $strict>;
9552
+ /** @internal */
9286
9553
  declare const text3DStateSchemaStrict: ZodObject<{
9287
9554
  visible: ZodBoolean;
9288
9555
  color: ZodString;
@@ -9309,10 +9576,17 @@ declare const text3DStateSchemaStrict: ZodObject<{
9309
9576
  type: ZodDefault<ZodLiteral<"text3d">>;
9310
9577
  position: ZodCustom<Coordinate, Coordinate>;
9311
9578
  }, $strict>;
9579
+ /**
9580
+ * The serialized state of a 3D text element, including its coordinate, content, and appearance.
9581
+ */
9312
9582
  type TText3DState = output<typeof text3DStateSchemaStrict>;
9583
+ /**
9584
+ * A partial 3D text state used to apply incremental updates, where every field is optional.
9585
+ */
9313
9586
  type TText3DUpdateState = output<typeof text3DUpdateStateSchema>;
9314
9587
  //#endregion
9315
9588
  //#region src/states/walls-state.d.ts
9589
+ /** @internal */
9316
9590
  declare const wallsStateSchemaPartial: ZodObject<{
9317
9591
  type: ZodOptional<ZodDefault<ZodLiteral<"walls">>>;
9318
9592
  color: ZodOptional<ZodDefault<ZodString>>;
@@ -9327,6 +9601,7 @@ declare const wallsStateSchemaPartial: ZodObject<{
9327
9601
  height: ZodOptional<ZodDefault<ZodNumber>>;
9328
9602
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
9329
9603
  }, $strip>;
9604
+ /** @internal */
9330
9605
  declare const wallsStateSchemaStrict: ZodObject<{
9331
9606
  type: ZodDefault<ZodLiteral<"walls">>;
9332
9607
  color: ZodDefault<ZodString>;
@@ -9341,7 +9616,13 @@ declare const wallsStateSchemaStrict: ZodObject<{
9341
9616
  height: ZodDefault<ZodNumber>;
9342
9617
  opacity: ZodDefault<ZodNumber>;
9343
9618
  }, $strict>;
9619
+ /**
9620
+ * The serialized state of all walls in the map, including their colors and visibility.
9621
+ */
9344
9622
  type TWallsState = output<typeof wallsStateSchemaStrict>;
9623
+ /**
9624
+ * A partial walls state used to apply incremental updates, where every field is optional.
9625
+ */
9345
9626
  type TWallsUpdateState = output<typeof wallsStateSchemaPartial>;
9346
9627
  //#endregion
9347
9628
  //#region src/states/state-utils.d.ts
@@ -10245,6 +10526,11 @@ declare class MappedinRenderError extends MappedinError {
10245
10526
  }
10246
10527
  //#endregion
10247
10528
  //#region src/events.d.ts
10529
+ /**
10530
+ * Free-form context string passed to `MapView.setFloor` (via {@link TSetFloorOptions})
10531
+ * that is forwarded to `floor-change` event listeners as `event.reason`. Useful for
10532
+ * distinguishing user-initiated floor changes from programmatic ones.
10533
+ */
10248
10534
  type TFloorChangeReason = string;
10249
10535
  /**
10250
10536
  * The payload for a user click event on the map.
@@ -10481,9 +10767,17 @@ type TEvents = {
10481
10767
  error: MappedinRenderError;
10482
10768
  };
10483
10769
  };
10770
+ /**
10771
+ * Resolves to the payload type for a given {@link TEvents} event name. Use this
10772
+ * to type the parameter of an event handler without depending on the internal
10773
+ * shape of `TEvents`.
10774
+ */
10484
10775
  type TEventPayload<EventName extends keyof TEvents> = TEvents[EventName] extends {
10485
10776
  data: null;
10486
10777
  } ? TEvents[EventName]['data'] : TEvents[EventName];
10778
+ /**
10779
+ * Events emitted by {@link MapData}, such as when the active language pack changes.
10780
+ */
10487
10781
  type TMapDataEvents = {
10488
10782
  'language-change': {
10489
10783
  code: string;
@@ -10525,12 +10819,22 @@ interface IGeoJSONData {
10525
10819
  }
10526
10820
  //#endregion
10527
10821
  //#region src/types/index.d.ts
10822
+ /**
10823
+ * Result of an animation that may have run to completion or been cancelled before finishing.
10824
+ */
10528
10825
  type TAnimateStateResult = {
10529
10826
  result: 'completed' | 'cancelled';
10530
10827
  };
10828
+ /**
10829
+ * A promise extended with a `cancel()` method. Calling `cancel()` aborts the in-flight
10830
+ * operation; the promise still settles, typically with a `'cancelled'` result.
10831
+ */
10531
10832
  type TCancellablePromise<T$1> = Promise<T$1> & {
10532
10833
  cancel: () => void;
10533
10834
  };
10835
+ /**
10836
+ * The action a user should take at a step of a {@link Directions} instruction.
10837
+ */
10534
10838
  declare enum ACTION_TYPE {
10535
10839
  Departure = "Departure",
10536
10840
  TakeConnection = "TakeConnection",
@@ -11288,6 +11592,7 @@ type TAddModelOptions = Omit<InitializeModelState$1, 'scale' | 'url'> & {
11288
11592
  scale?: number | [number, number, number];
11289
11593
  };
11290
11594
  /**
11595
+ * Options for adding a 3D text element to the map.
11291
11596
  * @interface
11292
11597
  */
11293
11598
  type TAddText3DOptions = AddText3DOptions$1;
@@ -11444,7 +11749,7 @@ type TAddLabelOptions = {
11444
11749
  /**
11445
11750
  * Customize the appearance of the {@link Label} and its pin
11446
11751
  */
11447
- appearance?: LabelAppearance$1;
11752
+ appearance?: LabelAppearance;
11448
11753
  /**
11449
11754
  * Whether the Label should be clickable.
11450
11755
  * @default false
@@ -11461,7 +11766,7 @@ type TAddLabelOptions = {
11461
11766
  /**
11462
11767
  * The placement of the text relative to the pin.
11463
11768
  */
11464
- textPlacement?: LabelTextPlacement$1[];
11769
+ textPlacement?: LabelTextPlacement[];
11465
11770
  /**
11466
11771
  * Whether the label should be occluded by 3D geometry.
11467
11772
  * @default true
@@ -11489,6 +11794,11 @@ type WithState<T$1> = T$1 extends {
11489
11794
  type TUpdateState<T$1 extends MapElementsWithState | string> = T$1 extends {
11490
11795
  __type: infer U;
11491
11796
  } ? U extends keyof MapElementToUpdateState ? MapElementToUpdateState[U] : never : T$1 extends string ? T$1 extends keyof MapElementToUpdateState ? MapElementToUpdateState[T$1] : Record<string, any> : never;
11797
+ /**
11798
+ * Maps each map element discriminator (`__type`) to the read-only rendered state
11799
+ * type the element exposes. Used internally by `getRenderedState` to derive a
11800
+ * precise return type from the element passed in.
11801
+ */
11492
11802
  type MapElementToGetRenderedState = {
11493
11803
  [Label.__type]: ReadonlyDeep<LabelRenderedState>;
11494
11804
  };
@@ -11503,6 +11813,11 @@ type MapElementWithRenderedState = WithState<Label>;
11503
11813
  type TGetRenderedState<T$1 extends MapElementWithRenderedState | string> = T$1 extends {
11504
11814
  __type: infer U;
11505
11815
  } ? U extends keyof MapElementToGetRenderedState ? MapElementToGetRenderedState[U] : never : T$1 extends string ? T$1 extends keyof MapElementToGetRenderedState ? MapElementToGetRenderedState[T$1] : Record<string, any> : never;
11816
+ /**
11817
+ * Map-wide state applied to all elements, such as the background color, hover
11818
+ * highlight color, and shared visibility flags. Returned by `MapView.getState`
11819
+ * and consumed by extensions that need a snapshot of the global render state.
11820
+ */
11506
11821
  type GlobalState = {
11507
11822
  /**
11508
11823
  * The color of the background, in hex format(#000000).
@@ -11664,6 +11979,10 @@ type TCameraInteractionsSetOptions = {
11664
11979
  */
11665
11980
  bearingAndPitch?: boolean;
11666
11981
  };
11982
+ /**
11983
+ * Options passed to `MapView.setFloor` to control how the floor change is performed
11984
+ * and to provide an optional reason that is propagated to `floor-change` event listeners.
11985
+ */
11667
11986
  type TSetFloorOptions = {
11668
11987
  /**
11669
11988
  * Optionally provide the context for the floor change which will be published as the `reason` for the `floor-change` event.
@@ -12391,6 +12710,12 @@ declare abstract class BaseMapData {
12391
12710
  }
12392
12711
  //#endregion
12393
12712
  //#region src/map-data-objects/detailed-map-data.d.ts
12713
+ /**
12714
+ * Abstract base class for map data objects that carry rich metadata (images,
12715
+ * hyperlinks, location profiles, and an external ID). Specific classes such as
12716
+ * {@link Space}, {@link PointOfInterest}, and {@link Connection} extend this
12717
+ * to expose typed accessors for their `details` payload.
12718
+ */
12394
12719
  declare abstract class DetailedMapData<MVFData extends Feature$1<Geometry$1, {
12395
12720
  id: string;
12396
12721
  externalId?: string;
@@ -12520,8 +12845,8 @@ declare class Area extends DetailedMapData<AreaCollection['features'][number]> i
12520
12845
  */
12521
12846
  get geoJSON(): {
12522
12847
  properties: null;
12523
- type: _mappedin_mvf_v22.FeatureType;
12524
- geometry: _mappedin_mvf_v22.Polygon;
12848
+ type: _mappedin_mvf_v25.FeatureType;
12849
+ geometry: _mappedin_mvf_v25.Polygon;
12525
12850
  };
12526
12851
  /** @internal */
12527
12852
  get focusTarget(): this;
@@ -12623,8 +12948,8 @@ declare class Door extends DetailedMapData<EntranceFeature> implements IGeoJSOND
12623
12948
  */
12624
12949
  get geoJSON(): {
12625
12950
  properties: null;
12626
- type: _mappedin_mvf_v22.FeatureType;
12627
- geometry: _mappedin_mvf_v22.LineString;
12951
+ type: _mappedin_mvf_v25.FeatureType;
12952
+ geometry: _mappedin_mvf_v25.LineString;
12628
12953
  };
12629
12954
  /** @internal */
12630
12955
  get focusTarget(): Coordinate;
@@ -12760,8 +13085,8 @@ declare class Space extends DetailedMapData<SpaceFeature> implements IGeoJSONDat
12760
13085
  */
12761
13086
  get geoJSON(): {
12762
13087
  properties: null;
12763
- type: _mappedin_mvf_v22.FeatureType;
12764
- geometry: _mappedin_mvf_v22.Point | _mappedin_mvf_v22.LineString | _mappedin_mvf_v22.Polygon;
13088
+ type: _mappedin_mvf_v25.FeatureType;
13089
+ geometry: _mappedin_mvf_v25.Point | _mappedin_mvf_v25.Polygon | _mappedin_mvf_v25.LineString;
12765
13090
  };
12766
13091
  /** @internal */
12767
13092
  get focusTarget(): this | Coordinate;
@@ -12847,7 +13172,7 @@ declare class PointOfInterest extends DetailedMapData<FeatureCollection$1<Point$
12847
13172
  */
12848
13173
  get geoJSON(): {
12849
13174
  properties: null;
12850
- type: _mappedin_mvf_v22.FeatureType;
13175
+ type: _mappedin_mvf_v25.FeatureType;
12851
13176
  geometry: Point$1;
12852
13177
  };
12853
13178
  /**
@@ -12961,8 +13286,8 @@ declare class Annotation extends DetailedMapData<AnnotationCollection['features'
12961
13286
  */
12962
13287
  get geoJSON(): {
12963
13288
  properties: null;
12964
- type: _mappedin_mvf_v22.FeatureType;
12965
- geometry: _mappedin_mvf_v22.Point;
13289
+ type: _mappedin_mvf_v25.FeatureType;
13290
+ geometry: _mappedin_mvf_v25.Point;
12966
13291
  };
12967
13292
  /** @internal */
12968
13293
  get focusTarget(): Coordinate;
@@ -13178,8 +13503,8 @@ declare class MapObject extends DetailedMapData<ObstructionFeature> implements I
13178
13503
  */
13179
13504
  get geoJSON(): {
13180
13505
  properties: null;
13181
- type: _mappedin_mvf_v22.FeatureType;
13182
- geometry: _mappedin_mvf_v22.LineString | _mappedin_mvf_v22.Polygon;
13506
+ type: _mappedin_mvf_v25.FeatureType;
13507
+ geometry: _mappedin_mvf_v25.Polygon | _mappedin_mvf_v25.LineString;
13183
13508
  };
13184
13509
  /** @internal */
13185
13510
  get anchorTarget(): Coordinate;
@@ -13492,8 +13817,8 @@ declare class Node extends BaseMetaData implements IGeoJSONData, IFocusable, IAn
13492
13817
  */
13493
13818
  get geoJSON(): {
13494
13819
  properties: null;
13495
- type: _mappedin_mvf_v22.FeatureType;
13496
- geometry: _mappedin_mvf_v22.Point;
13820
+ type: _mappedin_mvf_v25.FeatureType;
13821
+ geometry: _mappedin_mvf_v25.Point;
13497
13822
  };
13498
13823
  /** @internal */
13499
13824
  get focusTarget(): Coordinate;
@@ -14381,6 +14706,11 @@ declare class LocationCategory extends BaseMetaData implements Omit<Category, 'p
14381
14706
  }
14382
14707
  //#endregion
14383
14708
  //#region src/api-geojson/language.d.ts
14709
+ /**
14710
+ * Options passed to {@link findPreferredLanguageInVenue} controlling which language is
14711
+ * selected when more than one is available, and whether to fall back to the
14712
+ * browser's preferred language.
14713
+ */
14384
14714
  type TFindPreferredLanguageInVenueOptions = {
14385
14715
  /**
14386
14716
  * Preferred language code to use.
@@ -14736,6 +15066,10 @@ declare class InternalSearch {
14736
15066
  search(term: string, options?: SearchOptions): Promise<SearchResult>;
14737
15067
  suggest(term: string, options?: SuggestOptions): Promise<Suggestion[]>;
14738
15068
  }
15069
+ /**
15070
+ * A single search result returned by `MapData.search`. Wraps the matched
15071
+ * map data object along with its match metadata and relevance score.
15072
+ */
14739
15073
  type SearchResultItem<T$1 extends Places | EnterpriseLocation | EnterpriseCategory> = {
14740
15074
  type: T$1['__type'];
14741
15075
  match: SearchResult$1['match'];
@@ -14743,14 +15077,17 @@ type SearchResultItem<T$1 extends Places | EnterpriseLocation | EnterpriseCatego
14743
15077
  item: T$1;
14744
15078
  };
14745
15079
  /**
15080
+ * A search result wrapping a matched {@link EnterpriseCategory}.
14746
15081
  * @interface
14747
15082
  */
14748
15083
  type SearchResultEnterpriseCategory = SearchResultItem<EnterpriseCategory>;
14749
15084
  /**
15085
+ * A search result wrapping a matched {@link EnterpriseLocation}.
14750
15086
  * @interface
14751
15087
  */
14752
15088
  type SearchResultEnterpriseLocations = SearchResultItem<EnterpriseLocation>;
14753
15089
  /**
15090
+ * A search result wrapping a matched place (Space, PointOfInterest, etc.).
14754
15091
  * @interface
14755
15092
  */
14756
15093
  type SearchResultPlaces = SearchResultItem<Places>;
@@ -14805,6 +15142,8 @@ declare const suggestOptionsSchema: ZodObject<{
14805
15142
  }, $strip>>;
14806
15143
  }, $strip>;
14807
15144
  /**
15145
+ * Options passed to `MapData.search` to filter the searchable data sources
15146
+ * (places, enterprise locations, enterprise categories) and tune behavior.
14808
15147
  * @interface
14809
15148
  */
14810
15149
  type SearchOptions = output<typeof searchOptionsSchema>;
@@ -15529,7 +15868,7 @@ declare class MapData {
15529
15868
  * console.log(`Current language: ${language.name} (${language.code})`);
15530
15869
  * ```
15531
15870
  */
15532
- get currentLanguage(): _mappedin_mvf_v22.Language | undefined;
15871
+ get currentLanguage(): _mappedin_mvf_v25.Language | undefined;
15533
15872
  /**
15534
15873
  * Gets the natural bearing of the map.
15535
15874
  *
@@ -15771,6 +16110,7 @@ type Style$1 = {
15771
16110
  join: LineStyle$2['join'];
15772
16111
  cap: LineStyle$2['cap'];
15773
16112
  topColor?: string;
16113
+ hoverColor?: string;
15774
16114
  showImage: boolean;
15775
16115
  flipImageToFaceCamera: boolean;
15776
16116
  enableImageCollisions: boolean;
@@ -16185,6 +16525,11 @@ type FeatureCollectionState = {
16185
16525
  * preserved for now.
16186
16526
  */
16187
16527
  topColor?: string;
16528
+ /**
16529
+ * Per-feature hover color. Setting this cascades to all children, and reads
16530
+ * back through to the first child.
16531
+ */
16532
+ hoverColor?: string;
16188
16533
  /**
16189
16534
  * @deprecated Per-feature property; read-through to the first child is
16190
16535
  * preserved for now.
@@ -17302,6 +17647,9 @@ type Text3DState$1 = {
17302
17647
  readonly rotation: number;
17303
17648
  } & Text3DStyle;
17304
17649
  /**
17650
+ * Initial state for a 3D text element when it is first added to the map.
17651
+ * Mirrors the shape of {@link TText3DState} with all fields optional and
17652
+ * with the auto-managed `id` and `type` fields omitted.
17305
17653
  * @interface
17306
17654
  */
17307
17655
  type InitializeText3DState$1 = Partial<Omit<Text3DState$1, 'id' | 'type'>>;
@@ -17316,7 +17664,7 @@ type Text3DProperties = {
17316
17664
  textArea?: MeshComponentProperties['textArea'];
17317
17665
  };
17318
17666
  /**
17319
- * Options for labeling a geometry with 3D text.
17667
+ * Options accepted when adding a 3D text element (for example to label a space).
17320
17668
  */
17321
17669
  type AddText3DOptions$2 = {
17322
17670
  appearance?: Partial<InitializeText3DState$1>;
@@ -17458,9 +17806,26 @@ type ClippingPlane = {
17458
17806
  verticalOffset: number;
17459
17807
  plane?: Plane;
17460
17808
  holeFillMesh?: Mesh;
17809
+ /**
17810
+ * Group containing the two stencil counting passes (mesh0/mesh1) that toggle
17811
+ * the clipping bit on cross-section pixels. Must be kept in sync with the
17812
+ * cap's visibility: when the cap isn't rendered, it can't clear the clipping
17813
+ * bit, so the counting passes must also be skipped to avoid leaving the bit
17814
+ * set and corrupting other stencil-based features (e.g. underground mask).
17815
+ */
17816
+ holeFillGroup?: Group$1;
17461
17817
  topColor?: string;
17462
17818
  needsRebuild: boolean;
17463
17819
  topVisible?: boolean;
17820
+ /**
17821
+ * World-space XY center of the model's bounding box. Used to size and position
17822
+ * the stencil bias / hole-fill plane to the model's footprint instead of a
17823
+ * giant screen-covering quad (which would corrupt other stencil features).
17824
+ */
17825
+ bboxCenter?: {
17826
+ x: number;
17827
+ y: number;
17828
+ };
17464
17829
  };
17465
17830
  declare class ClippingPlaneComponent implements ClippingPlane {
17466
17831
  readonly type: "clippingPlane";
@@ -17469,8 +17834,13 @@ declare class ClippingPlaneComponent implements ClippingPlane {
17469
17834
  verticalOffset: number;
17470
17835
  plane?: Plane;
17471
17836
  holeFillMesh?: Mesh;
17837
+ holeFillGroup?: Group$1;
17472
17838
  topColor?: string;
17473
17839
  topVisible: boolean;
17840
+ bboxCenter?: {
17841
+ x: number;
17842
+ y: number;
17843
+ };
17474
17844
  }
17475
17845
  //#endregion
17476
17846
  //#region ../renderer-three/src/entities/geometry3d.d.ts
@@ -18797,6 +19167,21 @@ declare class Camera$2 extends PubSub<{
18797
19167
  * The camera's current elevation in meters from the ground.
18798
19168
  */
18799
19169
  get elevation(): number;
19170
+ /**
19171
+ * The maximum elevation (in meters) the camera is allowed to reach.
19172
+ * @default Infinity
19173
+ */
19174
+ get maxElevation(): number;
19175
+ /**
19176
+ * Cap the camera's elevation in meters. Applies to user pedestal drag (when
19177
+ * `panMode` is `'elevation'`), `setElevation`, and `animateElevation`. The
19178
+ * current elevation is snapped down to the cap if it exceeds the new
19179
+ * maximum.
19180
+ *
19181
+ * @param maxElevation The new maximum elevation in meters.
19182
+ * @default Infinity
19183
+ */
19184
+ setMaxElevation(maxElevation: number): void;
18800
19185
  /**
18801
19186
  * @param elevation The elevation in meters.
18802
19187
  */
@@ -19671,11 +20056,23 @@ declare class ClippingPlaneSystem {
19671
20056
  update(): void;
19672
20057
  private process;
19673
20058
  /**
19674
- * Creates the stencil geometry for hole fill detection
19675
- * @param modelGeometry - The merged model geometry for counting passes
19676
- * @param planeGeometry - The plane geometry for bias pass (covers entire hole fill area)
19677
- * @param plane - The clipping plane
19678
- * @param renderOrder - Base render order for the meshes
20059
+ * Creates the stencil counting passes that mark cross-section pixels.
20060
+ *
20061
+ * Two passes operate on a single reserved stencil bit (CLIPPING_BIT = 0x80),
20062
+ * which is guaranteed to be 0 in every mask ID, so the clipping system and the
20063
+ * masking system never overwrite each other's stencil state:
20064
+ *
20065
+ * - mesh0 (back faces below clip): toggles bit 7 via InvertStencilOp.
20066
+ * - mesh1 (front faces below clip): toggles bit 7 via InvertStencilOp.
20067
+ *
20068
+ * For closed manifold meshes from a camera outside the model, each balanced
20069
+ * back/front pair toggles bit 7 twice (returning it to 0), while each unpaired
20070
+ * back face above the clip leaves bit 7 = 1. The cap then renders where
20071
+ * bit 7 == 1 and immediately clears bit 7 again with ZeroStencilOp.
20072
+ *
20073
+ * @param modelGeometry - The merged model geometry used for both passes
20074
+ * @param plane - The user-defined clipping plane
20075
+ * @param renderOrder - Base render order for the passes
19679
20076
  */
19680
20077
  private createHoleFillGeometry;
19681
20078
  }
@@ -20309,6 +20706,10 @@ type Systems = {
20309
20706
  pluginSystem: PluginSystem;
20310
20707
  shadowsSystem?: ShadowsSystem;
20311
20708
  };
20709
+ /**
20710
+ * Top-level state for the MapView, exposing global hover colors that apply
20711
+ * to all interactive elements. Returned by state APIs and consumed by extensions.
20712
+ */
20312
20713
  type MapViewState$1 = {
20313
20714
  readonly type: 'map-view';
20314
20715
  hoverColor: string;
@@ -20744,6 +21145,7 @@ declare class GroupContainerObject3D extends Object3D {
20744
21145
  setVisible(visible: boolean): void;
20745
21146
  setAltitude(altitude: number): void;
20746
21147
  set2DGeometryChildrenPositionDirty(): void;
21148
+ liftFocusableCaches(dz: number): void;
20747
21149
  get altitude(): number;
20748
21150
  setOpacity(opacity: number): void;
20749
21151
  get opacity(): number;
@@ -20820,7 +21222,16 @@ declare class Geometry2D {
20820
21222
  type Position$2 = [lon: number, lat: number] | [lon: number, lat: number, alt: number];
20821
21223
  //#endregion
20822
21224
  //#region ../renderer-three/src/types/options.d.ts
21225
+ /**
21226
+ * Selects which environment map is used for image-based lighting.
21227
+ * `'basic'` enables a default environment map, `false` disables environment lighting.
21228
+ */
20823
21229
  type EnvMapOptions$2 = 'basic' | false;
21230
+ /**
21231
+ * Low-level options consumed by `RendererCore` to configure rendering, camera
21232
+ * defaults, outdoor view integration, and visual effects. Most consumers
21233
+ * should use `TShow3DMapOptions` instead, which is converted into this shape internally.
21234
+ */
20824
21235
  type RendererCoreOptions$2 = Partial<{
20825
21236
  center?: Position$2;
20826
21237
  zoomLevel?: number;
@@ -21024,9 +21435,14 @@ type BevelState = {
21024
21435
  */
21025
21436
  segments?: number;
21026
21437
  };
21438
+ /**
21439
+ * Visual styling for filled (polygon-based) geometry such as spaces and shapes.
21440
+ * Controls color, opacity, height, textures, bevel, shading and outlines.
21441
+ */
21027
21442
  type PaintStyle$2 = {
21028
21443
  color: string;
21029
21444
  topColor?: string;
21445
+ hoverColor?: string;
21030
21446
  height?: number;
21031
21447
  altitude?: number;
21032
21448
  opacity?: number;
@@ -21065,14 +21481,23 @@ type PaintStyle$2 = {
21065
21481
  */
21066
21482
  __EXPERIMENTAL_maskEnabled?: boolean;
21067
21483
  };
21484
+ /**
21485
+ * Configures the vertical shading gradient applied to extruded geometry to give
21486
+ * walls and shapes a sense of depth. `start` and `end` are normalized heights.
21487
+ */
21068
21488
  type Shading$1 = {
21069
21489
  start?: number;
21070
21490
  end?: number;
21071
21491
  intensity?: number;
21072
21492
  };
21493
+ /**
21494
+ * Visual styling for line-based geometry such as paths and connection lines.
21495
+ * Controls color, width, caps/joins, shading and outlines.
21496
+ */
21073
21497
  type LineStyle$2 = {
21074
21498
  color: string;
21075
21499
  topColor?: string;
21500
+ hoverColor?: string;
21076
21501
  width: number;
21077
21502
  opacity?: number;
21078
21503
  height?: number;
@@ -21111,6 +21536,10 @@ type ModelProperties = {
21111
21536
  */
21112
21537
  visibleThroughGeometry?: boolean;
21113
21538
  };
21539
+ /**
21540
+ * Padding applied to the camera's visible area so map content stays clear of
21541
+ * UI overlays such as headers, sidebars and bottom sheets.
21542
+ */
21114
21543
  type InsetPadding$2 = {
21115
21544
  top: number;
21116
21545
  left: number;
@@ -21268,6 +21697,11 @@ type MapEvent = {
21268
21697
  * All entities in 3D
21269
21698
  */
21270
21699
  type All3DTypes = Geometry3DTypes | FeatureCollectionObject3D | GroupContainerObject3D;
21700
+ /**
21701
+ * Snapshot of the renderer's internal state passed to {@link ISystemPlugin}
21702
+ * instances on every frame. Exposes the Three.js scene, camera and geometry
21703
+ * registries so plugins can inspect or augment the render pipeline.
21704
+ */
21271
21705
  type RendererState = {
21272
21706
  /**
21273
21707
  * A map of all 3D geometries in the world.
@@ -21483,7 +21917,16 @@ declare class MapLibreOverlay<T$1> extends PubSub<T$1> implements IControl {
21483
21917
  private handleMove;
21484
21918
  private handleMoveEnd;
21485
21919
  private handleError;
21920
+ /**
21921
+ * Called by MapLibre when this overlay is added to a map as an IControl.
21922
+ * @param map - The MapLibre map this overlay is being attached to.
21923
+ * @returns The DOM element rendered by this overlay.
21924
+ */
21486
21925
  onAdd(map: Map$1): HTMLDivElement;
21926
+ /**
21927
+ * Called by MapLibre when this overlay is removed from a map. Detaches all
21928
+ * map listeners, removes the custom layer, and destroys the underlying renderer.
21929
+ */
21487
21930
  onRemove(): void;
21488
21931
  }
21489
21932
  //#endregion
@@ -21498,12 +21941,21 @@ declare const MAPPEDIN_COLORS: {
21498
21941
  };
21499
21942
  //#endregion
21500
21943
  //#region ../packages/common/Mappedin.Logger.d.ts
21944
+ /**
21945
+ * SDK logging verbosity. Ordered from most verbose to least — selecting a level
21946
+ * enables that level plus every level after it.
21947
+ */
21501
21948
  declare enum E_SDK_LOG_LEVEL {
21502
21949
  LOG = 0,
21503
21950
  WARN = 1,
21504
21951
  ERROR = 2,
21505
21952
  SILENT = 3,
21506
21953
  }
21954
+ /**
21955
+ * Set the SDK's global log verbosity. Lower levels include all higher-numbered levels;
21956
+ * `SILENT` suppresses all output.
21957
+ * @param level - The desired verbosity from {@link E_SDK_LOG_LEVEL}.
21958
+ */
21507
21959
  declare function setLoggerLevel(level: E_SDK_LOG_LEVEL): void;
21508
21960
  //#endregion
21509
21961
  //#region src/utils/convert-renderer-core-options.d.ts
@@ -21515,6 +21967,11 @@ declare function setLoggerLevel(level: E_SDK_LOG_LEVEL): void;
21515
21967
  declare function convertToRendererCoreOptions(options: TShow3DMapOptions | undefined): Partial<RendererCoreOptions$1> | undefined;
21516
21968
  //#endregion
21517
21969
  //#region src/api-geojson/multi-floor.d.ts
21970
+ /**
21971
+ * Multi-floor visibility state returned by {@link getMultiFloorState}, describing
21972
+ * the outdoor opacity and per-floor state used when rendering a stacked view of
21973
+ * multiple floors at once.
21974
+ */
21518
21975
  type VisibilityState = {
21519
21976
  outdoorOpacity: number | 'initial';
21520
21977
  floorStates: {
@@ -21522,6 +21979,11 @@ type VisibilityState = {
21522
21979
  state: TFloorState;
21523
21980
  }[];
21524
21981
  };
21982
+ /**
21983
+ * Configuration for the footprint rendered beneath stacked floors in multi-floor
21984
+ * view, controlling its color, opacity, outlines, and the visual treatment of
21985
+ * spaces open to the floor below.
21986
+ */
21525
21987
  type FootprintConfig = {
21526
21988
  /**
21527
21989
  * The color of the footprint.
@@ -21981,6 +22443,23 @@ declare const checkWorkerUrls: () => Promise<false | {
21981
22443
  collision: boolean;
21982
22444
  maplibre: boolean;
21983
22445
  }>;
22446
+ /**
22447
+ * Render a Mappedin map into the given DOM container and return its {@link MapView}.
22448
+ *
22449
+ * This is the main entry point for Mappedin JS. Combine with {@link getMapData}
22450
+ * to load venue data and render an interactive 3D map.
22451
+ *
22452
+ * @param el - The container element to render the map into. Must be attached to the DOM and have non-zero size.
22453
+ * @param mapData - Venue data, typically obtained from {@link getMapData}.
22454
+ * @param options - Optional {@link TShow3DMapOptions} to customize the initial state, UI, and behavior of the map.
22455
+ * @returns A promise that resolves to a {@link MapView} once the map has been initialized.
22456
+ *
22457
+ * @example
22458
+ * ```ts
22459
+ * const mapData = await getMapData({ key: '...', secret: '...', mapId: '...' });
22460
+ * const mapView = await show3dMap(document.getElementById('mappedin-map')!, mapData);
22461
+ * ```
22462
+ */
21984
22463
  declare const show3dMap: (el: HTMLElement, mapData: MapData, options?: TShow3DMapOptions) => Promise<MapView>;
21985
22464
  /**
21986
22465
  * Returns the package version of the SDK.