@mappedin/mappedin-js 5.24.0 → 5.24.1
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/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{browser-FCKW4QRX.js → browser-Z5EKTYYR.js} +1 -1
- package/lib/esm/renderer/chunk-2HQXEF7A.js +1 -0
- package/lib/esm/renderer/{chunk-AGO2EUXB.js → chunk-3TNGMY5M.js} +1 -1
- package/lib/esm/renderer/index.d.ts +196 -113
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-PIWHCLTT.js → outdoor-context-GF6EP5I7.js} +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-32TOCVT4.js +0 -1
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
// ../three
|
|
5
5
|
// ../@tweenjs/tween.js
|
|
6
6
|
// ../geojson
|
|
7
|
+
// ../minisearch
|
|
7
8
|
// ../n8ao
|
|
8
9
|
// ../postprocessing
|
|
9
|
-
// ../minisearch
|
|
10
10
|
|
|
11
11
|
declare module '@mappedin/mappedin-js' {
|
|
12
12
|
import { MapView } from '@mappedin/mappedin-js/renderer/public/MapView';
|
|
@@ -112,7 +112,7 @@ declare module '@mappedin/mappedin-js' {
|
|
|
112
112
|
declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
113
113
|
import '../internal/Mappedin.css';
|
|
114
114
|
import { Mappedin, MappedinCoordinate, MappedinLocation, MappedinMap, MappedinNode, MappedinPolygon } from '@mappedin/mappedin-js/get-venue';
|
|
115
|
-
import { E_SDK_EVENT_PAYLOAD, TCreateMarkerOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TMapViewOptions, TPathOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
115
|
+
import { E_SDK_EVENT_PAYLOAD, TCreateMarkerOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TMapViewOptions, TPathOptions, TCreateTooltipCommonOptions, TCreateTooltipOptions, TAOConfiguration, TAntialiasConfiguration } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
116
116
|
import { E_SDK_EVENT, STATE } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
117
117
|
import SmartTooltip from '@mappedin/mappedin-js/renderer/internal/Mappedin.SmartTooltip';
|
|
118
118
|
import { Marker } from '@mappedin/mappedin-js/renderer/private/controllers/MarkersController';
|
|
@@ -125,11 +125,11 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
125
125
|
import { Paths } from '@mappedin/mappedin-js/renderer/public/api/Paths';
|
|
126
126
|
import { BlueDot } from '@mappedin/mappedin-js/renderer/public/api/BlueDot';
|
|
127
127
|
import { Camera } from '@mappedin/mappedin-js/renderer/public/api/Camera';
|
|
128
|
+
import { Exporter } from '@mappedin/mappedin-js/renderer/public/api/Exporter';
|
|
128
129
|
import { StackedMaps } from '@mappedin/mappedin-js/renderer/public/api/StackedMaps';
|
|
129
130
|
import OutdoorView from '@mappedin/mappedin-js/renderer/public/api/OutdoorView';
|
|
130
131
|
import { Layers } from '@mappedin/mappedin-js/renderer/public/api/Layers';
|
|
131
132
|
import { DynamicFocus } from '@mappedin/mappedin-js/renderer/public/api/DynamicFocus';
|
|
132
|
-
import { TN8AOConfiguration } from '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer';
|
|
133
133
|
/**
|
|
134
134
|
* Primary API class for controlling and interacting with a 3D map.
|
|
135
135
|
*/
|
|
@@ -147,6 +147,12 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
147
147
|
* API for controlling flat labels.
|
|
148
148
|
*/
|
|
149
149
|
FlatLabels: IFlatLabels<void>;
|
|
150
|
+
/**
|
|
151
|
+
* API for exporting the scene.
|
|
152
|
+
*
|
|
153
|
+
* @hidden
|
|
154
|
+
*/
|
|
155
|
+
Exporter: Exporter;
|
|
150
156
|
/**
|
|
151
157
|
* API for controlling floating labels.
|
|
152
158
|
*/
|
|
@@ -743,7 +749,8 @@ declare module '@mappedin/mappedin-js/renderer/public/MapView' {
|
|
|
743
749
|
* @returns A {@link MappedinCoordinate} on the given map.
|
|
744
750
|
*/
|
|
745
751
|
getMappedinCoordinateAtScreenCoordinate(x: number, y: number, map: MappedinMap): MappedinCoordinate;
|
|
746
|
-
setAmbientOcclusionSettings(settings:
|
|
752
|
+
setAmbientOcclusionSettings(settings: TAOConfiguration): void;
|
|
753
|
+
setAntialiasSettings(settings: TAntialiasConfiguration): void;
|
|
747
754
|
/**
|
|
748
755
|
* Destroy the mapView instance and reclaim memory.
|
|
749
756
|
*
|
|
@@ -1500,14 +1507,14 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1500
1507
|
* Enable ambient occlusion. Only works in single buffer mode and when device supports WebGL2.
|
|
1501
1508
|
* @default false
|
|
1502
1509
|
*/
|
|
1503
|
-
aoEnabled?:
|
|
1510
|
+
aoEnabled?: TAOConfiguration['aoEnabled'];
|
|
1504
1511
|
/**
|
|
1505
1512
|
* @experimental
|
|
1506
1513
|
*
|
|
1507
1514
|
* Change the quality of ambient occlusion in the scene. Greater quality means less noise, but worse performance.
|
|
1508
1515
|
* @default 'medium'
|
|
1509
1516
|
*/
|
|
1510
|
-
aoQuality?: '
|
|
1517
|
+
aoQuality?: TAOConfiguration['aoQuality'];
|
|
1511
1518
|
/**
|
|
1512
1519
|
* @experimental
|
|
1513
1520
|
*
|
|
@@ -1515,7 +1522,7 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1515
1522
|
* of visual artifacting.
|
|
1516
1523
|
* @default 'half'
|
|
1517
1524
|
*/
|
|
1518
|
-
aoResolution?: '
|
|
1525
|
+
aoResolution?: TAOConfiguration['aoResolution'];
|
|
1519
1526
|
/**
|
|
1520
1527
|
* Background color of the map as a string e.g. `#2e2e2e`.
|
|
1521
1528
|
*/
|
|
@@ -1528,7 +1535,14 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1528
1535
|
* Controls whether antialiasing is on. Defaults to `true`, as long as devicePixelRatio is 1. This is very expensive on high resolution screens.
|
|
1529
1536
|
* @default true
|
|
1530
1537
|
*/
|
|
1531
|
-
antialias?:
|
|
1538
|
+
antialias?: TAntialiasConfiguration['antialias'];
|
|
1539
|
+
/**
|
|
1540
|
+
* @experimental
|
|
1541
|
+
*
|
|
1542
|
+
* Controls the antialiasing quality. Greater quality means less artifacts(less aliasing), but worse performance.
|
|
1543
|
+
* @default 'medium'
|
|
1544
|
+
*/
|
|
1545
|
+
antialiasQuality?: TAntialiasConfiguration['antialiasQuality'];
|
|
1532
1546
|
disableHover?: boolean;
|
|
1533
1547
|
disableZoomOnMapSizeChange?: boolean;
|
|
1534
1548
|
loadOptions?: {
|
|
@@ -1969,6 +1983,28 @@ declare module '@mappedin/mappedin-js/renderer/MapView.types' {
|
|
|
1969
1983
|
export type FloatingLabelClickEventPayload = {
|
|
1970
1984
|
text?: string;
|
|
1971
1985
|
} & Omit<ClickEventPayload, 'coordinate'>;
|
|
1986
|
+
export type TAntialiasConfiguration = {
|
|
1987
|
+
antialias?: boolean;
|
|
1988
|
+
antialiasQuality?: 'low' | 'medium' | 'high' | 'ultra';
|
|
1989
|
+
};
|
|
1990
|
+
export type TAOConfiguration = {
|
|
1991
|
+
aoEnabled?: boolean;
|
|
1992
|
+
aoQuality?: string;
|
|
1993
|
+
aoSamples?: number;
|
|
1994
|
+
aoRadius?: number;
|
|
1995
|
+
denoiseSamples?: number;
|
|
1996
|
+
denoiseRadius?: number;
|
|
1997
|
+
intensity?: number;
|
|
1998
|
+
denoiseIterations?: number;
|
|
1999
|
+
renderMode?: number;
|
|
2000
|
+
color?: string;
|
|
2001
|
+
gammaCorrection?: boolean;
|
|
2002
|
+
logarithmicDepthBuffer?: boolean;
|
|
2003
|
+
screenSpaceRadius?: boolean;
|
|
2004
|
+
aoResolution?: 'half' | 'full';
|
|
2005
|
+
depthAwareUpsampling?: boolean;
|
|
2006
|
+
autoRenderBeauty?: boolean;
|
|
2007
|
+
};
|
|
1972
2008
|
export type TMapClickEvent = {
|
|
1973
2009
|
/**
|
|
1974
2010
|
* The latitude / longitude of where the user clicked the map.
|
|
@@ -4185,6 +4221,7 @@ declare module '@mappedin/mappedin-js/renderer/internal' {
|
|
|
4185
4221
|
export { MultiBufferRenderer } from '@mappedin/mappedin-js/renderer/internal/Mappedin.Renderer';
|
|
4186
4222
|
export { JourneyController } from '@mappedin/mappedin-js/renderer/private/controllers/JourneyController';
|
|
4187
4223
|
export { default as OutdoorViewController } from '@mappedin/mappedin-js/renderer/private/controllers/OutdoorViewController';
|
|
4224
|
+
export { default as ExportController } from '@mappedin/mappedin-js/renderer/private/controllers/ExportController';
|
|
4188
4225
|
export { default as WatermarkController } from '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController';
|
|
4189
4226
|
export { default as LayerController } from '@mappedin/mappedin-js/renderer/private/controllers/LayerController';
|
|
4190
4227
|
/**
|
|
@@ -4414,109 +4451,35 @@ declare module '@mappedin/mappedin-js/renderer' {
|
|
|
4414
4451
|
export type { IOutdoorContextProvider } from '@mappedin/mappedin-js/renderer/internal/outdoor-context/Outdoor-Context.provider';
|
|
4415
4452
|
}
|
|
4416
4453
|
|
|
4417
|
-
declare module '@mappedin/mappedin-js/renderer/
|
|
4418
|
-
import {
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
inputBuffer: Uniform;
|
|
4427
|
-
staticSceneColorTexture: Uniform;
|
|
4428
|
-
staticSceneDepthTexture: Uniform;
|
|
4429
|
-
animatedSceneColorTexture: Uniform;
|
|
4430
|
-
animatedSceneDepthTexture: Uniform;
|
|
4431
|
-
alwaysOnTopSceneColorTexture: Uniform;
|
|
4432
|
-
alwaysOnBottomSceneColorTexture: Uniform;
|
|
4433
|
-
};
|
|
4434
|
-
type TAmbientOcclusionOptions = Pick<TMapViewOptions, 'aoQuality' | 'aoResolution' | 'aoEnabled'>;
|
|
4435
|
-
export type TPostProcessingOptions = TAmbientOcclusionOptions & {
|
|
4436
|
-
antialias?: boolean;
|
|
4437
|
-
compositeUniforms?: TCompositeUniforms;
|
|
4438
|
-
};
|
|
4439
|
-
export type TPass = (RenderPass | ShaderPass | EffectPass | AmbientOcclusionPass) & {
|
|
4440
|
-
name: string;
|
|
4441
|
-
};
|
|
4442
|
-
export enum EAOQualities {
|
|
4443
|
-
performance = "Performance",
|
|
4444
|
-
low = "Low",
|
|
4445
|
-
medium = "Medium",
|
|
4446
|
-
high = "High",
|
|
4447
|
-
ultra = "Ultra"
|
|
4448
|
-
}
|
|
4449
|
-
export enum EPass {
|
|
4450
|
-
RenderPass = "RenderPass",
|
|
4451
|
-
CompositeRenderPass = "CompositeRenderPass",
|
|
4452
|
-
AmbientOcclusionPass = "AmbientOcclusionPass",
|
|
4453
|
-
EffectsPass = "EffectsPass",
|
|
4454
|
-
FinalPass = "FinalPass"
|
|
4455
|
-
}
|
|
4456
|
-
export enum EEffect {
|
|
4457
|
-
FXAA = "FXAAEffect",
|
|
4458
|
-
Outline = "OutlineEffect"
|
|
4459
|
-
}
|
|
4460
|
-
export type TN8AOConfiguration = {
|
|
4461
|
-
aoSamples?: number;
|
|
4462
|
-
aoRadius?: number;
|
|
4463
|
-
denoiseSamples?: number;
|
|
4464
|
-
denoiseRadius?: number;
|
|
4465
|
-
intensity?: number;
|
|
4466
|
-
denoiseIterations?: number;
|
|
4467
|
-
renderMode?: number;
|
|
4468
|
-
color?: Color;
|
|
4469
|
-
gammaCorrection?: boolean;
|
|
4470
|
-
logarithmicDepthBuffer?: boolean;
|
|
4471
|
-
screenSpaceRadius?: boolean;
|
|
4472
|
-
halfRes?: boolean;
|
|
4473
|
-
depthAwareUpsampling?: boolean;
|
|
4474
|
-
autoRenderBeauty?: boolean;
|
|
4454
|
+
declare module '@mappedin/mappedin-js/renderer/public/api/Exporter' {
|
|
4455
|
+
import { ExportController } from '@mappedin/mappedin-js/renderer/internal';
|
|
4456
|
+
/**
|
|
4457
|
+
* @hidden
|
|
4458
|
+
*/
|
|
4459
|
+
export type TGLTFExportOptions = {
|
|
4460
|
+
onlyVisible?: boolean;
|
|
4461
|
+
binary?: boolean;
|
|
4462
|
+
scale?: number;
|
|
4475
4463
|
};
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
constructor(camera?: PerspectiveCamera, ...effects: Effect[]);
|
|
4495
|
-
getEffects(): Effect[];
|
|
4496
|
-
setEffects(effects: Effect[]): void;
|
|
4497
|
-
}
|
|
4498
|
-
export class EffectComposer {
|
|
4499
|
-
options: TPostProcessingOptions;
|
|
4500
|
-
isWebGL2: boolean;
|
|
4501
|
-
effectComposer: PPEffectComposer;
|
|
4502
|
-
scene: Scene;
|
|
4503
|
-
camera: PerspectiveCamera;
|
|
4504
|
-
depthTexture?: Texture;
|
|
4505
|
-
renderer: any;
|
|
4506
|
-
ambientOcclusionPass: AmbientOcclusionPass | null;
|
|
4507
|
-
constructor(renderer: any, options: TPostProcessingOptions);
|
|
4508
|
-
get initialized(): boolean;
|
|
4509
|
-
init(scene: Scene, camera: PerspectiveCamera): void;
|
|
4510
|
-
render(): void;
|
|
4511
|
-
setSize(width: number, height: number): void;
|
|
4512
|
-
getPassByName(passName: EPass): TPass | null;
|
|
4513
|
-
getEffectByName(name: EEffect): Effect | null;
|
|
4514
|
-
setAmbientOcclusionConfiguration(configuration: TN8AOConfiguration): void;
|
|
4515
|
-
setPolygonOutlineColor(color: string): void;
|
|
4516
|
-
addSelectionForOutline(polygonMesh: Mesh): void;
|
|
4517
|
-
removeSelectionForOutline(polygonMesh: Mesh): void;
|
|
4464
|
+
/**
|
|
4465
|
+
* API to export the scene.
|
|
4466
|
+
*
|
|
4467
|
+
* @hidden
|
|
4468
|
+
*/
|
|
4469
|
+
export class Exporter {
|
|
4470
|
+
#private;
|
|
4471
|
+
/**
|
|
4472
|
+
* @hidden
|
|
4473
|
+
* @internal
|
|
4474
|
+
*/
|
|
4475
|
+
constructor(controller: ExportController);
|
|
4476
|
+
/**
|
|
4477
|
+
* Exports the current scene as a GLTF file.
|
|
4478
|
+
*
|
|
4479
|
+
* @hidden
|
|
4480
|
+
*/
|
|
4481
|
+
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
4518
4482
|
}
|
|
4519
|
-
export {};
|
|
4520
4483
|
}
|
|
4521
4484
|
|
|
4522
4485
|
declare module '@mappedin/mappedin-js/get-venue/Mappedin.types' {
|
|
@@ -6344,7 +6307,7 @@ declare module '@mappedin/mappedin-js/renderer/internal/outdoor-context/Mappedin
|
|
|
6344
6307
|
declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
6345
6308
|
import { Color, Vector2, Vector3, Mesh } from 'three';
|
|
6346
6309
|
import type { TPadding, TGetPolygonsAtCoordinateOptions, TMapViewOptions, TileManager, BillboardManager, StackedMapsController, SmartCollisionEngine, OutdoorViewController, LayerController } from '@mappedin/mappedin-js/renderer/internal';
|
|
6347
|
-
import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem } from '@mappedin/mappedin-js/renderer/internal';
|
|
6310
|
+
import { BlueDotController, CameraController, STATE, MappedinMap, Mappedin, MappedinCoordinate, MappedinPolygon, MappedinNode, changeListenerFn, RENDER, INTERNAL_EVENT_PAYLOAD, INTERNAL_EVENT, TaskScheduler, SceneManager, PubSub, FlatLabel, MapObject, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, ExportController, EventSystem } from '@mappedin/mappedin-js/renderer/internal';
|
|
6348
6311
|
import Tween, { Easing } from '@tweenjs/tween.js';
|
|
6349
6312
|
import WatermarkController from '@mappedin/mappedin-js/renderer/private/controllers/WatermarkController';
|
|
6350
6313
|
import PolygonHoverColorsController from '@mappedin/mappedin-js/renderer/private/controllers/PolygonHoverColorsController';
|
|
@@ -6429,6 +6392,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core.interface' {
|
|
|
6429
6392
|
billboardManager: BillboardManager;
|
|
6430
6393
|
stackedMaps: StackedMapsController;
|
|
6431
6394
|
outdoorViewController?: OutdoorViewController;
|
|
6395
|
+
exportController: ExportController;
|
|
6432
6396
|
watermark: WatermarkController;
|
|
6433
6397
|
layerController: LayerController;
|
|
6434
6398
|
state: STATE;
|
|
@@ -7285,9 +7249,8 @@ declare module '@mappedin/mappedin-js/get-venue/pub-sub.typed' {
|
|
|
7285
7249
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MapObject' {
|
|
7286
7250
|
import { Group, Box3, Mesh, MeshLambertMaterial, Object3D, Vector3 } from 'three';
|
|
7287
7251
|
import { FrameTaskGroup } from '@mappedin/mappedin-js/get-venue/Mappedin.TaskScheduler';
|
|
7288
|
-
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, FloatingLabel } from '@mappedin/mappedin-js/renderer/internal';
|
|
7252
|
+
import { Element, FlippableImage, MappedinMap, TaskScheduler, FlatLabel, SmartTooltip, ICore, FloatingLabel, TCreateThreeDMarkerOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
7289
7253
|
import { PubSub } from '@mappedin/mappedin-js/renderer/internal/pub-sub';
|
|
7290
|
-
import { TCreateThreeDMarkerOptions } from '@mappedin/mappedin-js/renderer/internal';
|
|
7291
7254
|
/**
|
|
7292
7255
|
* Some preset priorities for tasks.
|
|
7293
7256
|
*/
|
|
@@ -8936,6 +8899,32 @@ declare module '@mappedin/mappedin-js/renderer/private/controllers/JourneyContro
|
|
|
8936
8899
|
}
|
|
8937
8900
|
}
|
|
8938
8901
|
|
|
8902
|
+
declare module '@mappedin/mappedin-js/renderer/private/controllers/ExportController' {
|
|
8903
|
+
import type { ICore } from '@mappedin/mappedin-js/renderer/internal';
|
|
8904
|
+
/**
|
|
8905
|
+
* @hidden
|
|
8906
|
+
*/
|
|
8907
|
+
export type TGLTFExportOptions = {
|
|
8908
|
+
onlyVisible?: boolean;
|
|
8909
|
+
binary?: boolean;
|
|
8910
|
+
scale?: number;
|
|
8911
|
+
};
|
|
8912
|
+
/**
|
|
8913
|
+
* API for exporting the scene.
|
|
8914
|
+
*
|
|
8915
|
+
* @hidden
|
|
8916
|
+
*/
|
|
8917
|
+
export default class ExportController {
|
|
8918
|
+
#private;
|
|
8919
|
+
core: ICore;
|
|
8920
|
+
constructor(core: ICore);
|
|
8921
|
+
/**
|
|
8922
|
+
* Exports the current scene as a GLTF file.
|
|
8923
|
+
*/
|
|
8924
|
+
getCurrentSceneGLTF(userOptions: TGLTFExportOptions): Promise<Blob>;
|
|
8925
|
+
}
|
|
8926
|
+
}
|
|
8927
|
+
|
|
8939
8928
|
declare module '@mappedin/mappedin-js/renderer/private/controllers/LayerController' {
|
|
8940
8929
|
import type { ICore } from '@mappedin/mappedin-js/renderer/private/Core.interface';
|
|
8941
8930
|
import { MappedinMap } from '@mappedin/mappedin-js/get-venue';
|
|
@@ -9592,7 +9581,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9592
9581
|
import { Color, Mesh, PerspectiveCamera, Scene, Vector2 } from 'three';
|
|
9593
9582
|
import '../internal/object3D.destroy';
|
|
9594
9583
|
import type { TGetPolygonsAtCoordinateOptions, TMapViewOptions, TPadding, MappedinPolygon } from '@mappedin/mappedin-js/renderer/internal';
|
|
9595
|
-
import { Renderer, TaskScheduler, MapManager, FlatLabel, SmartCollisionEngine, PubSub, INTERNAL_EVENT, INTERNAL_EVENT_PAYLOAD, MapView, STATE, MapObject, SceneManager, TileManager, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem, BlueDotController, CameraController, BillboardManager, StackedMapsController, OutdoorViewController, WatermarkController, PolygonHoverColorsController, LayerController } from '@mappedin/mappedin-js/renderer/internal';
|
|
9584
|
+
import { Renderer, TaskScheduler, MapManager, FlatLabel, SmartCollisionEngine, PubSub, INTERNAL_EVENT, INTERNAL_EVENT_PAYLOAD, MapView, STATE, MapObject, SceneManager, TileManager, PathsController, FloatingLabelsController, FlatLabelsController, PolygonColorsController, MarkersController, PolygonInteractionController, TooltipsController, PolygonStatesController, PolygonImagesController, ThreeDMarkersController, EventSystem, BlueDotController, CameraController, BillboardManager, StackedMapsController, OutdoorViewController, WatermarkController, PolygonHoverColorsController, ExportController, LayerController } from '@mappedin/mappedin-js/renderer/internal';
|
|
9596
9585
|
import { Mappedin as IMappedin, MappedinCoordinate, MappedinMap, MappedinNode } from '@mappedin/mappedin-js/get-venue';
|
|
9597
9586
|
import { E_MAP_CHANGED_REASON } from '@mappedin/mappedin-js/renderer/MapView.enums';
|
|
9598
9587
|
export const raycaster: any;
|
|
@@ -9636,6 +9625,7 @@ declare module '@mappedin/mappedin-js/renderer/private/Core' {
|
|
|
9636
9625
|
blueDot: BlueDotController;
|
|
9637
9626
|
camera: CameraController;
|
|
9638
9627
|
outdoorViewController?: OutdoorViewController;
|
|
9628
|
+
exportController: ExportController;
|
|
9639
9629
|
watermark: WatermarkController;
|
|
9640
9630
|
layerController: LayerController;
|
|
9641
9631
|
options: TMapViewOptions & {
|
|
@@ -11005,6 +10995,99 @@ declare module '@mappedin/mappedin-js/renderer/internal/quad-tree' {
|
|
|
11005
10995
|
export { QuadTree, Rectangle };
|
|
11006
10996
|
}
|
|
11007
10997
|
|
|
10998
|
+
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.EffectComposer' {
|
|
10999
|
+
import { N8AOPostPass } from 'n8ao';
|
|
11000
|
+
import { EffectComposer as PPEffectComposer, EffectPass, Pass, ShaderPass, RenderPass, ClearPass, Effect, SMAAPreset } from 'postprocessing';
|
|
11001
|
+
import type { PerspectiveCamera, Scene, Texture, Mesh } from 'three';
|
|
11002
|
+
import { Uniform } from 'three';
|
|
11003
|
+
import type { TAntialiasConfiguration, TAOConfiguration, TMapViewOptions } from '@mappedin/mappedin-js/renderer/MapView.types';
|
|
11004
|
+
export type TCompositeUniforms = {
|
|
11005
|
+
animatedColorOpacity: Uniform;
|
|
11006
|
+
inputBuffer: Uniform;
|
|
11007
|
+
staticSceneColorTexture: Uniform;
|
|
11008
|
+
staticSceneDepthTexture: Uniform;
|
|
11009
|
+
animatedSceneColorTexture: Uniform;
|
|
11010
|
+
animatedSceneDepthTexture: Uniform;
|
|
11011
|
+
alwaysOnTopSceneColorTexture: Uniform;
|
|
11012
|
+
alwaysOnBottomSceneColorTexture: Uniform;
|
|
11013
|
+
};
|
|
11014
|
+
type TAmbientOcclusionOptions = Pick<TMapViewOptions, 'aoQuality' | 'aoResolution' | 'aoEnabled'>;
|
|
11015
|
+
type TAntialiasOptions = Pick<TMapViewOptions, 'antialias' | 'antialiasQuality'>;
|
|
11016
|
+
export type TPostProcessingOptions = TAmbientOcclusionOptions & TAntialiasOptions & {
|
|
11017
|
+
compositeUniforms?: TCompositeUniforms;
|
|
11018
|
+
};
|
|
11019
|
+
export type TPass = (RenderPass | ShaderPass | EffectPass | AmbientOcclusionPass) & {
|
|
11020
|
+
name: string;
|
|
11021
|
+
};
|
|
11022
|
+
export enum EAOQualities {
|
|
11023
|
+
performance = "Performance",
|
|
11024
|
+
low = "Low",
|
|
11025
|
+
medium = "Medium",
|
|
11026
|
+
high = "High",
|
|
11027
|
+
ultra = "Ultra"
|
|
11028
|
+
}
|
|
11029
|
+
export enum EPass {
|
|
11030
|
+
RenderPass = "RenderPass",
|
|
11031
|
+
CompositeRenderPass = "CompositeRenderPass",
|
|
11032
|
+
AmbientOcclusionPass = "AmbientOcclusionPass",
|
|
11033
|
+
EffectsPassAntialiasEnabled = "EffectsPassAntialiasEnabled",
|
|
11034
|
+
EffectsPassAntialiasDisabled = "EffectsPassAntialiasDisabled",
|
|
11035
|
+
FinalPass = "FinalPass"
|
|
11036
|
+
}
|
|
11037
|
+
export enum EEffect {
|
|
11038
|
+
SMAA = "SMAAEffect",
|
|
11039
|
+
Outline = "OutlineEffect"
|
|
11040
|
+
}
|
|
11041
|
+
export class CustomRenderPass extends Pass {
|
|
11042
|
+
effectComposer: EffectComposer;
|
|
11043
|
+
clearPass: ClearPass;
|
|
11044
|
+
constructor(effectComposer: any);
|
|
11045
|
+
render(renderer: any, inputBuffer: any, outputBuffer: any, deltaTime: any, stencilTest: any): void;
|
|
11046
|
+
initialize(_: any, __: any, frameBufferType: any): void;
|
|
11047
|
+
}
|
|
11048
|
+
export class AmbientOcclusionPass extends N8AOPostPass {
|
|
11049
|
+
effectComposer: EffectComposer;
|
|
11050
|
+
cachePass: ShaderPass;
|
|
11051
|
+
enabled: boolean;
|
|
11052
|
+
constructor(effectComposer: EffectComposer, configuration: TAOConfiguration);
|
|
11053
|
+
setAOConfiguration(configuration: TAOConfiguration): void;
|
|
11054
|
+
setQualityMode(aoQuality: any): void;
|
|
11055
|
+
get distanceFalloff(): number;
|
|
11056
|
+
initialize(renderer: any, alpha: any, frameBufferType: any): void;
|
|
11057
|
+
render(renderer: any, inputBuffer: any, outputBuffer: any, deltaTime: any, stencilTest: any): void;
|
|
11058
|
+
}
|
|
11059
|
+
export class CustomEffectPass extends EffectPass {
|
|
11060
|
+
constructor(camera?: PerspectiveCamera, ...effects: Effect[]);
|
|
11061
|
+
getEffects(): Effect[];
|
|
11062
|
+
getEffectByName(name: EEffect): Effect | null;
|
|
11063
|
+
}
|
|
11064
|
+
export class EffectComposer {
|
|
11065
|
+
options: TPostProcessingOptions & Required<Pick<TPostProcessingOptions, 'antialias' | 'antialiasQuality' | 'aoEnabled' | 'aoQuality' | 'aoResolution'>>;
|
|
11066
|
+
isWebGL2: boolean;
|
|
11067
|
+
effectComposer: PPEffectComposer;
|
|
11068
|
+
scene: Scene;
|
|
11069
|
+
camera: PerspectiveCamera;
|
|
11070
|
+
depthTexture?: Texture;
|
|
11071
|
+
renderer: any;
|
|
11072
|
+
constructor(renderer: any, options: TPostProcessingOptions);
|
|
11073
|
+
get initialized(): boolean;
|
|
11074
|
+
init(scene: Scene, camera: PerspectiveCamera): void;
|
|
11075
|
+
render(): void;
|
|
11076
|
+
setSize(width: number, height: number): void;
|
|
11077
|
+
getPassByName(passName: EPass): TPass | null;
|
|
11078
|
+
getEffectsByName(name: EEffect): Effect[];
|
|
11079
|
+
setAmbientOcclusionConfiguration(configuration: TAOConfiguration): void;
|
|
11080
|
+
setAntialiasConfiguration(configuration: TAntialiasConfiguration): void;
|
|
11081
|
+
setPolygonOutlineColor(color: string): void;
|
|
11082
|
+
addSelectionForOutline(polygonMesh: Mesh): void;
|
|
11083
|
+
removeSelectionForOutline(polygonMesh: Mesh): void;
|
|
11084
|
+
getOutlineEffect(): Effect;
|
|
11085
|
+
getAntialiasingPreset(): SMAAPreset;
|
|
11086
|
+
getAntialiasingEffect(): Effect;
|
|
11087
|
+
}
|
|
11088
|
+
export {};
|
|
11089
|
+
}
|
|
11090
|
+
|
|
11008
11091
|
declare module '@mappedin/mappedin-js/renderer/internal/Mappedin.MultiFloorView' {
|
|
11009
11092
|
export namespace VIEW_STATE {
|
|
11010
11093
|
let SINGLE_FLOOR: string;
|