mx3d 2024.8.29 → 2024.12.5-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/index.d.ts +48 -1
- package/mx3d.min.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'mx3d' {
|
|
2
2
|
let accessToken: string;
|
|
3
3
|
let pk: string;
|
|
4
4
|
let sl: string;
|
|
@@ -447,6 +447,53 @@ declare module MX3D {
|
|
|
447
447
|
registerAfterRender(): void;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
+
export class BABYLONLayer implements CustomLayerInterface {
|
|
451
|
+
id: string;
|
|
452
|
+
type: 'custom';
|
|
453
|
+
renderingMode?: '3d' | '2d';
|
|
454
|
+
map: Map;
|
|
455
|
+
worldMatrix: Matrix;
|
|
456
|
+
camera: Camera;
|
|
457
|
+
scene: Scene;
|
|
458
|
+
engine: Engine;
|
|
459
|
+
highlightLayer: HighlightLayer;
|
|
460
|
+
iEvent: DefaultEvent;
|
|
461
|
+
container: AdvancedDynamicTexture;
|
|
462
|
+
toolTips: ToolTips;
|
|
463
|
+
environment: Environment;
|
|
464
|
+
resources: Resources;
|
|
465
|
+
project: Project;
|
|
466
|
+
positionGizmo: PositionGizmo;
|
|
467
|
+
constructor(_map: Map, _worldMatrix: Matrix);
|
|
468
|
+
render(gl: any, matrix: any): void;
|
|
469
|
+
onAdd(map: Map, gl: WebGLRenderingContext | WebGL2RenderingContext): Promise<void>;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export class CoordinateConverter {
|
|
473
|
+
private sourceProjection;
|
|
474
|
+
private targetProjection;
|
|
475
|
+
private originXY;
|
|
476
|
+
private translationVector;
|
|
477
|
+
private rotationAngle;
|
|
478
|
+
constructor(originLonLat: [number, number], originXY: Vector2, rotationAngle: number);
|
|
479
|
+
lonLatToXY(lonLat: [number, number]): Vector2;
|
|
480
|
+
xyToLonLat(xy: Vector2): [number, number];
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export class GeoJsonLayer {
|
|
484
|
+
static convert(container: HTMLElement): Promise<void>;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export class GisLayer {
|
|
488
|
+
map: maplibregl.Map;
|
|
489
|
+
worldOrigin: maplibregl.LngLatLike;
|
|
490
|
+
worldAltitude: number;
|
|
491
|
+
worldRotate: number[];
|
|
492
|
+
MAPTILER_KEY: string;
|
|
493
|
+
WEBGLLayer: BABYLONLayer;
|
|
494
|
+
constructor(container: HTMLElement);
|
|
495
|
+
}
|
|
496
|
+
|
|
450
497
|
export class HubService {
|
|
451
498
|
static connection: any;
|
|
452
499
|
static listener(_Url: string): Promise<void>;
|