architwin 1.11.5 → 1.12.2
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/architwin.d.ts +17 -16
- package/lib/architwin.js +1 -1
- package/lib/atwinui/components/toolbar/menuBar.d.ts +1 -0
- package/lib/atwinui/components/toolbar/menuBar.js +4 -2
- package/lib/atwinui/components/toolbar/roomCreation/roomFormPane.d.ts +68 -0
- package/lib/atwinui/components/toolbar/roomCreation/roomFormPane.js +798 -0
- package/lib/atwinui/components/toolbar/roomCreation/roomLayerListPane.d.ts +33 -0
- package/lib/atwinui/components/toolbar/roomCreation/roomLayerListPane.js +447 -0
- package/lib/atwinui/events.js +1 -0
- package/lib/convert.d.ts +13 -0
- package/lib/convert.js +54 -0
- package/lib/loaders/polydrawerLoader.js +1 -1
- package/lib/minimap.d.ts +12 -4
- package/lib/minimap.js +177 -57
- package/lib/types.d.ts +7 -1
- package/package.json +1 -1
- package/static/map.css +16 -2
package/lib/architwin.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ declare function connectSpace(url: string, auth: {
|
|
|
81
81
|
onStart: Function;
|
|
82
82
|
onPlay: Function;
|
|
83
83
|
}): Promise<void>;
|
|
84
|
-
declare function getAtwinSdk(): MpSdk | null;
|
|
84
|
+
declare function getAtwinSdk(iframeId?: string): MpSdk | null;
|
|
85
85
|
/**
|
|
86
86
|
* Check if a specific toolbar feature is enabled or not
|
|
87
87
|
*/
|
|
@@ -120,7 +120,7 @@ declare function getCurrentCameraZoom(): MpSdk.Camera.ZoomData;
|
|
|
120
120
|
declare function getCameraPosition(): MpSdk.Vector3;
|
|
121
121
|
declare function getCurrentSweepPosition(): MpSdk.Vector3;
|
|
122
122
|
declare function getCurrentFloor(): MpSdk.Floor.FloorData;
|
|
123
|
-
declare function getSweeps(): Promise<ISweep | null>;
|
|
123
|
+
declare function getSweeps(iframeId?: string): Promise<ISweep | null>;
|
|
124
124
|
declare function getAllSweeps(): {
|
|
125
125
|
id: string;
|
|
126
126
|
position: Vector3;
|
|
@@ -194,11 +194,11 @@ declare function convertToEuler(coords: EulerCoordinates): ObjectCoordinates;
|
|
|
194
194
|
declare function setObjectTransformation(node: Scene.INode, transform: Object3DPosition, reverting?: boolean): void;
|
|
195
195
|
declare function playVideo(videoId: number): void;
|
|
196
196
|
declare function pauseVideo(videoId: number): void;
|
|
197
|
-
declare function cameraRotate(x: number, y: number, speed: number): Promise<void>;
|
|
198
|
-
declare function cameraSetRotation(x: number, y: number, speed?: number): Promise<void>;
|
|
199
|
-
declare function cameraPan(x: number, z: number): Promise<void>;
|
|
200
|
-
declare function cameraLookAt(x: number, y: number): Promise<void>;
|
|
201
|
-
declare function captureSpaceScreenshot(callback?: Function | null, resolution?: Renderer.Resolution, visibility?: Renderer.Visibility): Promise<void>;
|
|
197
|
+
declare function cameraRotate(x: number, y: number, speed: number, iframeId?: string): Promise<void>;
|
|
198
|
+
declare function cameraSetRotation(x: number, y: number, speed?: number, iframeId?: string): Promise<void>;
|
|
199
|
+
declare function cameraPan(x: number, z: number, iframeId?: string): Promise<void>;
|
|
200
|
+
declare function cameraLookAt(x: number, y: number, iframeId?: string): Promise<void>;
|
|
201
|
+
declare function captureSpaceScreenshot(callback?: Function | null, resolution?: Renderer.Resolution, visibility?: Renderer.Visibility, iframeId?: string): Promise<void>;
|
|
202
202
|
/**
|
|
203
203
|
* Captures a space screenshot and retrieves camera details.
|
|
204
204
|
* @param callback - Optional callback function.
|
|
@@ -228,29 +228,29 @@ declare function captureCurrentView(callback?: Function | null, resolution?: Ren
|
|
|
228
228
|
* NOTE: This will FAIL if user is not in Inside Mode
|
|
229
229
|
* @param zoom -
|
|
230
230
|
*/
|
|
231
|
-
declare function cameraZoomBy(zoom: number, callback?: Function): Promise<number | undefined>;
|
|
231
|
+
declare function cameraZoomBy(zoom: number, callback?: Function, iframeId?: string): Promise<number | undefined>;
|
|
232
232
|
/**
|
|
233
233
|
* Zooms the camera to a percentage of the base field of view.
|
|
234
234
|
* Ex: Doubling the zoom, halves the field of view.
|
|
235
235
|
* NOTE: This will FAIL if user is not in Inside Mode
|
|
236
236
|
* @param zoom -
|
|
237
237
|
*/
|
|
238
|
-
declare function cameraZoomTo(zoom: number, callback?: Function): Promise<number | undefined>;
|
|
238
|
+
declare function cameraZoomTo(zoom: number, callback?: Function, iframeId?: string): Promise<number | undefined>;
|
|
239
239
|
/**
|
|
240
240
|
* Reset the zoom of the camera back to 1.0x.
|
|
241
241
|
* NOTE: This will FAIL if user is not in Inside Mode
|
|
242
242
|
*/
|
|
243
|
-
declare function cameraZoomReset(): Promise<void>;
|
|
243
|
+
declare function cameraZoomReset(iframeId?: string): Promise<void>;
|
|
244
244
|
/**
|
|
245
245
|
* Moves the camera position in the direction of the argument provided.
|
|
246
246
|
* @constructor
|
|
247
247
|
* @param direction FORWARD,BACKWARD,LEFT,RIGHT,UP,DOWN
|
|
248
248
|
* @type {string}
|
|
249
249
|
*/
|
|
250
|
-
declare function moveInDirection(direction: string): Promise<void>;
|
|
250
|
+
declare function moveInDirection(direction: string, iframeId?: string): Promise<void>;
|
|
251
251
|
declare function getViewMode(): MpSdk.Mode.Mode;
|
|
252
|
-
declare function setViewMode(mode: string): Promise<void>;
|
|
253
|
-
declare function disconnectSpace(): Promise<void>;
|
|
252
|
+
declare function setViewMode(mode: string, iframeId?: string): Promise<void>;
|
|
253
|
+
declare function disconnectSpace(iframeId?: string): Promise<void>;
|
|
254
254
|
/**
|
|
255
255
|
* This method enables the targeting pointer to appear. Clicking on any area of the 3D space will
|
|
256
256
|
* give your the position coordinates of that area you clicked on. You can optionally pass a callback function into this method
|
|
@@ -597,10 +597,11 @@ declare function setTagIcon(payload: {
|
|
|
597
597
|
iconName: string;
|
|
598
598
|
iconUrl: string;
|
|
599
599
|
color: MpSdk.Color | string;
|
|
600
|
+
iframeId?: string;
|
|
600
601
|
}): Promise<void>;
|
|
601
602
|
declare function renderTag(payload: {
|
|
602
603
|
tag: MpSdk.Tag.Descriptor;
|
|
603
|
-
}, addTo_tags?: boolean): Promise<MpSdk.Tag.TagData>;
|
|
604
|
+
}, addTo_tags?: boolean, iframeId?: string): Promise<MpSdk.Tag.TagData>;
|
|
604
605
|
declare function addTag(tagData: MpSdk.Tag.TagData): ITag;
|
|
605
606
|
declare function getMpTags(): ITag[];
|
|
606
607
|
declare function disposeTag(payload: {
|
|
@@ -610,8 +611,8 @@ declare function getMpTag(tagId: string): ITag;
|
|
|
610
611
|
declare function getTags(space: ISpace): Promise<ITag[] | null>;
|
|
611
612
|
declare function gotoTag(tagId: string): Promise<void>;
|
|
612
613
|
declare function tagStateSubscriber(): Promise<void>;
|
|
613
|
-
declare function showTags(tags: ITag[], _withIcon?: boolean): Promise<void>;
|
|
614
|
-
declare function disposeTags(): Promise<void>;
|
|
614
|
+
declare function showTags(tags: ITag[], _withIcon?: boolean, iframeId?: string): Promise<void>;
|
|
615
|
+
declare function disposeTags(iframeId?: string): Promise<void>;
|
|
615
616
|
declare function attachTagMedia(payload: {
|
|
616
617
|
tagId: string;
|
|
617
618
|
attachments: string[];
|