@mappedin/mappedin-js 6.32.0 → 6.33.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.
@@ -4616,6 +4616,8 @@ interface ConnectionRecord {
4616
4616
  nodeIds: string[];
4617
4617
  /** geometry-anchored anchors (v2: from connection nodes; v3: from connection entrances/exits) */
4618
4618
  anchors: AnchorRecord[];
4619
+ /** navigation flag words (v2: connection.flags only; v3: OR of entrance/exit flags) */
4620
+ flags?: number[];
4619
4621
  details?: Record<string, unknown>;
4620
4622
  }
4621
4623
  //#endregion
@@ -6168,6 +6170,34 @@ declare class Connection extends DetailedMapData<Feature$1<Point$1, SpacePropert
6168
6170
  * @returns {boolean} Whether the connection is accessible.
6169
6171
  */
6170
6172
  get accessible(): boolean;
6173
+ /**
6174
+ * The navigation flags set on the connection, as their declared keys.
6175
+ *
6176
+ * Flag keys come from the venue's navigation flag declarations (`navigationFlags.json` in MVFv2, or the v3
6177
+ * bundle's `navigationFlags`). MVFv2 decodes `connection.flags` only: a connection whose bundle omits it has no
6178
+ * flags, the same as cms-v6-compat reads it (node flags describe a point, not passage through it). MVFv3 has no
6179
+ * connection-level flag field, so a flag belongs to the connection when any of its entrances or exits sets it
6180
+ * (the converter's `someFlags`).
6181
+ *
6182
+ * This may include `'accessible'` even when {@link Connection.accessible} is `false`: that getter requires the flag
6183
+ * on some entrance *and* some exit, while this reports any flagged anchor. Returns an empty array when the venue
6184
+ * declares no flags. Results depend on the venue's data: a declared key that no connection carries does not appear,
6185
+ * and many real venues declare custom filter-flag keys without putting them on connections.
6186
+ *
6187
+ * Door connections are exposed on enterprise MVFv2 loads (and can be excluded like any other connection); the
6188
+ * non-enterprise MVFv2 builder and native MVFv3 do not expose them as {@link Connection} objects.
6189
+ *
6190
+ * @returns {readonly string[]} The declared navigation flag keys present on the connection.
6191
+ * @example
6192
+ * ```ts
6193
+ * const mapData = await getMapData({ mapId, key, secret });
6194
+ * const excludedConnections = mapData
6195
+ * .getByType('connection')
6196
+ * .filter(connection => connection.navigationFlags.includes('staff-only'));
6197
+ * const directions = await mapData.getDirections(from, to, { excludedConnections });
6198
+ * ```
6199
+ */
6200
+ get navigationFlags(): readonly string[];
6171
6201
  /**
6172
6202
  * Gets the type of the connection.
6173
6203
  *
@@ -7196,6 +7226,11 @@ declare class EnterpriseLocation extends BaseMetaData implements Omit<Enterprise
7196
7226
  * The tags of the location.
7197
7227
  */
7198
7228
  tags?: string[] | undefined;
7229
+ /**
7230
+ * Navigation flag keys that apps use to gate routing (filter flags) for this location, as declared by the venue.
7231
+ * Undefined when the location carries no filter flags.
7232
+ */
7233
+ filterFlags?: string[] | undefined;
7199
7234
  /**
7200
7235
  * The type of the location.
7201
7236
  */
@@ -14053,9 +14088,9 @@ declare const floorStateSchemaPartial: ZodObject<{
14053
14088
  height: ZodOptional<ZodDefault<ZodNumber>>;
14054
14089
  opacity: ZodOptional<ZodDefault<ZodNumber>>;
14055
14090
  side: ZodOptional<ZodDefault<ZodEnum<{
14056
- back: "back";
14057
- front: "front";
14058
14091
  double: "double";
14092
+ front: "front";
14093
+ back: "back";
14059
14094
  }>>>;
14060
14095
  color: ZodOptional<ZodDefault<ZodString>>;
14061
14096
  ceilingVisible: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -14138,9 +14173,9 @@ declare const floorStateSchemaStrict: ZodObject<{
14138
14173
  height: ZodDefault<ZodNumber>;
14139
14174
  opacity: ZodDefault<ZodNumber>;
14140
14175
  side: ZodDefault<ZodEnum<{
14141
- back: "back";
14142
- front: "front";
14143
14176
  double: "double";
14177
+ front: "front";
14178
+ back: "back";
14144
14179
  }>>;
14145
14180
  color: ZodDefault<ZodString>;
14146
14181
  ceilingVisible: ZodDefault<ZodBoolean>;
@@ -14212,6 +14247,12 @@ declare const geometryStateSchemaPartial: ZodObject<{
14212
14247
  borderVisible: ZodOptional<ZodDefault<ZodBoolean>>;
14213
14248
  borderColor: ZodOptional<ZodOptional<ZodString>>;
14214
14249
  borderWidth: ZodOptional<ZodOptional<ZodNumber>>;
14250
+ EXPERIMENTAL_surfaceEffect: ZodOptional<ZodOptional<ZodNullable<ZodObject<{
14251
+ id: ZodString;
14252
+ params: ZodObject<{
14253
+ amount: ZodNumber;
14254
+ }, $strip>;
14255
+ }, $strip>>>>;
14215
14256
  }, $strip>;
14216
14257
  /** @internal */
14217
14258
  declare const geometryStateSchemaStrict: ZodObject<{
@@ -14238,6 +14279,12 @@ declare const geometryStateSchemaStrict: ZodObject<{
14238
14279
  borderVisible: ZodDefault<ZodBoolean>;
14239
14280
  borderColor: ZodOptional<ZodString>;
14240
14281
  borderWidth: ZodOptional<ZodNumber>;
14282
+ EXPERIMENTAL_surfaceEffect: ZodOptional<ZodNullable<ZodObject<{
14283
+ id: ZodString;
14284
+ params: ZodObject<{
14285
+ amount: ZodNumber;
14286
+ }, $strip>;
14287
+ }, $strip>>>;
14241
14288
  }, $strict>;
14242
14289
  /**
14243
14290
  * The serialized state of a geometry element such as a {@link Space}, including
@@ -14254,7 +14301,7 @@ type TGeometryUpdateState = output<typeof geometryStateSchemaPartial>;
14254
14301
  declare const labelStateSchema: ZodObject<{
14255
14302
  type: ZodDefault<ZodLiteral<"label">>;
14256
14303
  text: ZodString;
14257
- rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
14304
+ rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
14258
14305
  appearance: ZodCustom<LabelAppearance, LabelAppearance>;
14259
14306
  interactive: ZodDefault<ZodBoolean>;
14260
14307
  enabled: ZodDefault<ZodBoolean>;
@@ -14277,7 +14324,7 @@ declare const labelStateSchema: ZodObject<{
14277
14324
  declare const labelStateSchemaPartial: ZodObject<{
14278
14325
  type: ZodOptional<ZodDefault<ZodLiteral<"label">>>;
14279
14326
  text: ZodOptional<ZodString>;
14280
- rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
14327
+ rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
14281
14328
  appearance: ZodOptional<ZodCustom<LabelAppearance, LabelAppearance>>;
14282
14329
  interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14283
14330
  enabled: ZodOptional<ZodDefault<ZodBoolean>>;
@@ -14310,7 +14357,7 @@ type TLabelUpdateState = output<typeof labelStateSchemaPartial>;
14310
14357
  /** @internal */
14311
14358
  declare const markerStateSchema: ZodObject<{
14312
14359
  type: ZodDefault<ZodLiteral<"marker">>;
14313
- rank: ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">;
14360
+ rank: ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>;
14314
14361
  placement: ZodOptional<ZodUnion<readonly [ZodEnum<{
14315
14362
  hidden: "hidden";
14316
14363
  top: "top";
@@ -14353,7 +14400,7 @@ declare const markerStateSchemaPartial: ZodObject<{
14353
14400
  type: ZodOptional<ZodDefault<ZodLiteral<"marker">>>;
14354
14401
  enabled: ZodOptional<ZodDefault<ZodBoolean>>;
14355
14402
  interactive: ZodOptional<ZodDefault<ZodUnion<readonly [ZodBoolean, ZodLiteral<"pointer-events-auto">]>>>;
14356
- rank: ZodOptional<ZodCustom<TCollisionRankingTier | "initial", TCollisionRankingTier | "initial">>;
14403
+ rank: ZodOptional<ZodCustom<"initial" | TCollisionRankingTier, "initial" | TCollisionRankingTier>>;
14357
14404
  occlude: ZodOptional<ZodDefault<ZodBoolean>>;
14358
14405
  placement: ZodOptional<ZodOptional<ZodUnion<readonly [ZodEnum<{
14359
14406
  hidden: "hidden";
@@ -14700,9 +14747,9 @@ declare const modelStateUpdateSchema: ZodObject<{
14700
14747
  clippingPlaneZOffset: ZodOptional<ZodDefault<ZodCustom<number, number>>>;
14701
14748
  clippingPlaneTopColor: ZodOptional<ZodDefault<ZodString>>;
14702
14749
  clippingPlaneTopVisible: ZodOptional<ZodDefault<ZodBoolean>>;
14703
- altitude: ZodOptional<ZodOptional<ZodNumber>>;
14704
14750
  position: ZodOptional<ZodCustom<Coordinate, Coordinate>>;
14705
14751
  interactive: ZodOptional<ZodDefault<ZodBoolean>>;
14752
+ altitude: ZodOptional<ZodOptional<ZodNumber>>;
14706
14753
  }, $strip>;
14707
14754
  /** @internal */
14708
14755
  declare const modelStateSchemaStrict: ZodObject<{
@@ -18793,9 +18840,24 @@ type Style$1 = {
18793
18840
  desaturateUseDepth?: boolean;
18794
18841
  washOutAmount?: number;
18795
18842
  washOutUseDepth?: boolean;
18843
+ /**
18844
+ * Per-geometry *additions* to the effect amounts above, summed with them and clamped in the shader.
18845
+ *
18846
+ * Additive on purpose: a caller can raise an effect the scene asks for but never lower or cancel it, so
18847
+ * this cannot express "off". Absent is the common case and means nothing on top.
18848
+ */
18849
+ effectAdditions?: EffectAdditions;
18796
18850
  maxImageSize?: number;
18797
18851
  visibleThroughGeometry?: boolean;
18798
18852
  };
18853
+ /**
18854
+ * Additions to the three depth-effect amounts, in [0, 1], applied on top of the style's own amounts.
18855
+ */
18856
+ type EffectAdditions = {
18857
+ darken: number;
18858
+ desaturate: number;
18859
+ washOut: number;
18860
+ };
18799
18861
  declare class StyleComponent implements Style$1 {
18800
18862
  #private;
18801
18863
  readonly type: "style";
@@ -18849,6 +18911,7 @@ declare class StyleComponent implements Style$1 {
18849
18911
  desaturateUseDepth: boolean;
18850
18912
  washOutAmount: number;
18851
18913
  washOutUseDepth: boolean;
18914
+ effectAdditions?: EffectAdditions;
18852
18915
  maxImageSize?: number;
18853
18916
  /**
18854
18917
  * Whether this geometry renders on top of other geometry (depth test/write off).
@@ -19145,7 +19208,6 @@ type ModelStyle = {
19145
19208
  clippingPlaneTopColor: string;
19146
19209
  /**
19147
19210
  * Whether the clipping plane is visible.
19148
- * @experimental
19149
19211
  * @default true
19150
19212
  */
19151
19213
  clippingPlaneTopVisible: boolean;
@@ -19459,6 +19521,28 @@ declare class BatchedStandardMaterial extends MeshLambertMaterial {
19459
19521
  color: Color;
19460
19522
  topColor: Color;
19461
19523
  };
19524
+ /**
19525
+ * Sets this instance's *additions* to the scene's depth effect amounts, in [0, 1].
19526
+ *
19527
+ * Additive by design: the shader sums them with the material's uniforms and clamps at 1, so a geometry
19528
+ * can raise an effect the feature turned on but never reduce or cancel it.
19529
+ * @param batchId - Instance index within this material's batch.
19530
+ * @param darken - Addition to the darken amount.
19531
+ * @param desaturate - Addition to the desaturate amount.
19532
+ * @param washOut - Addition to the wash-out amount.
19533
+ */
19534
+ setEffectAdditions(batchId: number, darken: number, desaturate: number, washOut: number): void;
19535
+ /**
19536
+ * Reads an instance's per-geometry effect additions back, in the form
19537
+ * {@link setEffectAdditions} accepts.
19538
+ * @param batchId - Instance index within the batch.
19539
+ * @returns The addition to each effect amount, in [0, 1]; zeros for an unbatched index.
19540
+ */
19541
+ getEffectAdditions(batchId: number): {
19542
+ darken: number;
19543
+ desaturate: number;
19544
+ washOut: number;
19545
+ };
19462
19546
  showTextures: (batchId: number) => void;
19463
19547
  hideTextures(batchId: number): void;
19464
19548
  removeSideTexture(batchId: number): void;
@@ -19485,6 +19569,22 @@ declare class SimpleGeometryMaterial extends MeshLambertMaterial {
19485
19569
  * Sets `color` and `topColor` as uniforms directly (no batchId / data texture).
19486
19570
  */
19487
19571
  setColor(color: Color, topColor: Color): void;
19572
+ /**
19573
+ * Sets this mesh's *additions* to the scene's depth effect amounts, in [0, 1], clamped.
19574
+ *
19575
+ * The merged counterpart of `BatchedStandardMaterial.setEffectAdditions(batchId, …)`: same meaning,
19576
+ * same clamped sum in the shader, so an override looks identical on either kind of geometry.
19577
+ */
19578
+ setEffectAdditions(darken: number, desaturate: number, washOut: number): void;
19579
+ /**
19580
+ * Reads the per-geometry effect additions back, in the form {@link setEffectAdditions} accepts.
19581
+ * @returns The addition to each effect amount, in [0, 1].
19582
+ */
19583
+ getEffectAdditions(): {
19584
+ darken: number;
19585
+ desaturate: number;
19586
+ washOut: number;
19587
+ };
19488
19588
  getColor(): {
19489
19589
  color: Color;
19490
19590
  topColor: Color;
@@ -19802,6 +19902,21 @@ type GeometryState = {
19802
19902
  * @default false
19803
19903
  */
19804
19904
  visibleThroughGeometry?: boolean;
19905
+ /**
19906
+ * Adds an amount to one depth effect for this geometry only, on top of the scene's own amount; `null`
19907
+ * clears every addition. Additive: a geometry can raise an effect the feature turned on but never
19908
+ * lower or cancel it, so there is no way to express "off" here.
19909
+ *
19910
+ * Write-only, like the effect amounts it adds to: `getState` does not report it back.
19911
+ *
19912
+ * @experimental
19913
+ */
19914
+ EXPERIMENTAL_surfaceEffect?: {
19915
+ id: string;
19916
+ params: {
19917
+ amount: number;
19918
+ };
19919
+ } | null;
19805
19920
  };
19806
19921
  declare class MeshComponent {
19807
19922
  #private;