architwin 1.13.11 → 1.14.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/architwin.d.ts +61 -4
- package/lib/architwin.js +1 -1
- package/lib/atwinui/components/toolbar/i18n.js +43 -1
- package/lib/atwinui/components/toolbar/index.js +13 -1
- package/lib/atwinui/components/toolbar/menuBar.d.ts +1 -0
- package/lib/atwinui/components/toolbar/menuBar.js +11 -0
- package/lib/atwinui/components/toolbar/screenSharePane.d.ts +3 -1
- package/lib/atwinui/components/toolbar/screenSharePane.js +89 -37
- package/lib/atwinui/components/toolbar/spaceUserListPane.js +1 -1
- package/lib/atwinui/components/toolbar/viewingRemoteSpace.js +5 -5
- package/lib/atwinui/events.d.ts +1 -0
- package/lib/atwinui/events.js +90 -3
- package/lib/tag.d.ts +14 -1
- package/lib/tag.js +28 -1
- package/lib/types.d.ts +47 -1
- package/lib/types.js +23 -1
- package/package.json +1 -1
- package/static/atwinui.css +260 -1
- package/static/utility.css +82 -2
package/lib/architwin.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { MpSdk, Scene, Vector3, Vector2, Renderer } from "../bundle/sdk";
|
|
|
3
3
|
import { tubeLineType, pathLineType } from "./loaders";
|
|
4
4
|
import { getAssetUrl } from "./utils";
|
|
5
5
|
import { initToolbarUI, themeManager } from "./atwinui";
|
|
6
|
-
import { type ITag, type IUser, type ISpace, type IShowcaseObject, type I3DObject, type IMPConfig, type ISweep, type ITagPublic, type NearbyPayload, type NearbyObjects, type IObjectData, TRANSFORM_TYPE, Object3DPosition, ObjectCoordinates, EulerCoordinates, State, FileUpload, ObjectConfig, IAtwinFloor, IAtwinLabel, SPACE_EVENTS, ComponentOptions, SpaceAvatar, IMapConfig, MEETING_SIDEBAR, IO_ROLE, IO_SPACE_EVENTS, IO_MEETING_EVENTS, SCREEN_POSITIONS, ITagCategory, TagMessage, ISdkConnections, PartitionNode, PartitionPayload, ICurrentSpace, SpaceMetadata, IObjectFilters, PathConfig, ModelPayload, IPipeCategory, IPipe } from "./types";
|
|
6
|
+
import { type ITag, type IUser, type ISpace, type IShowcaseObject, type I3DObject, type IMPConfig, type ISweep, type ITagPublic, type NearbyPayload, type NearbyObjects, type IObjectData, TRANSFORM_TYPE, Object3DPosition, ObjectCoordinates, EulerCoordinates, State, FileUpload, ObjectConfig, IAtwinFloor, IAtwinLabel, SPACE_EVENTS, ComponentOptions, SpaceAvatar, IMapConfig, MEETING_SIDEBAR, IO_ROLE, IO_SPACE_EVENTS, IO_MEETING_EVENTS, SCREEN_POSITIONS, ITagCategory, TagMessage, ISdkConnections, PartitionNode, PartitionPayload, ICurrentSpace, SpaceMetadata, IObjectFilters, ScreenShareUser, PathConfig, ModelPayload, IPipeCategory, IPipe } from "./types";
|
|
7
7
|
import * as minimap from './minimap';
|
|
8
8
|
import '../static/sidebar.css';
|
|
9
9
|
import '../static/map.css';
|
|
@@ -13,6 +13,7 @@ import { ActionHistory } from "./actionHistory";
|
|
|
13
13
|
import * as meet from './zoom';
|
|
14
14
|
import 'notyf/notyf.min.css';
|
|
15
15
|
import { convertYupToZup, convertZupToYup, getRelativePosition, getOriginalWorldPosition } from "./worldConversion";
|
|
16
|
+
import { removeScreenShareSessionData } from "./atwinui/components/toolbar/screenSharePane";
|
|
16
17
|
declare const transformHistory: ActionHistory;
|
|
17
18
|
declare const _config: {
|
|
18
19
|
mp: {
|
|
@@ -61,6 +62,10 @@ _redoDrawActions: any[];
|
|
|
61
62
|
declare let _tubes: MpSdk.Scene.IObject;
|
|
62
63
|
declare let _pathConfig: PathConfig;
|
|
63
64
|
declare let _partitionNodes: PartitionNode[];
|
|
65
|
+
declare let _currentSpace: any;
|
|
66
|
+
declare let _spaceUsers: ScreenShareUser[];
|
|
67
|
+
declare let _screenSharingHostUser: ScreenShareUser;
|
|
68
|
+
declare let _screenSharingParticipantUsers: ScreenShareUser[];
|
|
64
69
|
declare let _pipeCategories: IPipeCategory[];
|
|
65
70
|
declare let _selectedPipeCategory: IPipeCategory;
|
|
66
71
|
declare let _pipes: IPipe[];
|
|
@@ -135,7 +140,8 @@ declare function getAllSweeps(): {
|
|
|
135
140
|
}[];
|
|
136
141
|
declare function moveToSweep(sweepId: string, rotation?: Vector2, iframeId?: string): Promise<void>;
|
|
137
142
|
declare function getNearbySweeps(sweepId: string): Promise<any>;
|
|
138
|
-
declare function disableSweeps(iframeId?: string): Promise<void>;
|
|
143
|
+
declare function disableSweeps(sweeps?: ISweep[], iframeId?: string): Promise<void>;
|
|
144
|
+
declare function enableSweeps(sweeps?: ISweep[], iframeId?: string): Promise<void>;
|
|
139
145
|
/**
|
|
140
146
|
* Enables the current or an array of sweeps
|
|
141
147
|
* @param sweepIds (optional) - If not set, will enable or disable the current sweep
|
|
@@ -669,6 +675,16 @@ declare function detachTagMedia(payload: {
|
|
|
669
675
|
attachmentIds: string[];
|
|
670
676
|
}): Promise<void>;
|
|
671
677
|
declare function moveTag(tagId: string, callback?: Function): Promise<void>;
|
|
678
|
+
declare function registerSandbox(payload: {
|
|
679
|
+
content: string;
|
|
680
|
+
options?: Partial<MpSdk.Tag.SandboxOptions>;
|
|
681
|
+
iframeId?: string;
|
|
682
|
+
}): Promise<[sandboxId: string, messenger: MpSdk.Tag.IMessenger]>;
|
|
683
|
+
declare function attachSandbox(payload: {
|
|
684
|
+
sandboxId: string;
|
|
685
|
+
tagIds: string[];
|
|
686
|
+
iframeId?: string;
|
|
687
|
+
}): Promise<void>;
|
|
672
688
|
declare function editTagLabel(payload: {
|
|
673
689
|
tagId: string;
|
|
674
690
|
label: string;
|
|
@@ -721,7 +737,7 @@ declare function setTagMessages(messages: Array<TagMessage>): void;
|
|
|
721
737
|
declare function getTagMessages(): Array<TagMessage>;
|
|
722
738
|
declare function setSelectedTagUuid(uuid: string): void;
|
|
723
739
|
declare function getSelectedTagUuid(): string;
|
|
724
|
-
declare function setCurrentSpace(space: ICurrentSpace):
|
|
740
|
+
declare function setCurrentSpace(space: ICurrentSpace): any;
|
|
725
741
|
declare function renderMeetingSidebar(template?: string, templateName?: MEETING_SIDEBAR): void;
|
|
726
742
|
/**
|
|
727
743
|
* Subscribes a method or an array of methods to a Matterport event.
|
|
@@ -808,6 +824,41 @@ declare function setSpaceMetadata(payload: SpaceMetadata | null): void;
|
|
|
808
824
|
* @returns
|
|
809
825
|
*/
|
|
810
826
|
declare function getSpaceMetadata(): SpaceMetadata;
|
|
827
|
+
/**
|
|
828
|
+
* Set value to screen sharing host user
|
|
829
|
+
* @param {ScreenShareUser | null} user
|
|
830
|
+
* @returns
|
|
831
|
+
*/
|
|
832
|
+
declare function setScreenSharingHostUser(user: ScreenShareUser | null): ScreenShareUser;
|
|
833
|
+
/**
|
|
834
|
+
* Set value to screen sharing participant users
|
|
835
|
+
* @param {ScreenShareUser[]} users
|
|
836
|
+
* @returns
|
|
837
|
+
*/
|
|
838
|
+
declare function setScreenSharingParticipantUsers(users: ScreenShareUser[]): ScreenShareUser[];
|
|
839
|
+
/**
|
|
840
|
+
* Update the texture of the pointer reticle using a registered texture ID.
|
|
841
|
+
* Defaults to 'targetPointer' if no ID is provided.
|
|
842
|
+
* @param {string} [textureId] - Optional texture ID to apply to the pointer, if equal to 'resetTexture' it will reset texture
|
|
843
|
+
* @returns {Promise<void>}
|
|
844
|
+
*/
|
|
845
|
+
declare function updatePointerTexture(textureId?: string): Promise<void>;
|
|
846
|
+
/**
|
|
847
|
+
* Syncs an object's position and rotation to align with a pointer intersection surface.
|
|
848
|
+
* If an object is provided, its transformation is updated. Otherwise, a new marker is added at the intersection point.
|
|
849
|
+
*
|
|
850
|
+
* @param {MpSdk.Pointer.Intersection} pointerIntersection - The pointer intersection from Matterport SDK
|
|
851
|
+
* @param {IObjectData} [_object] - Optional object to transform
|
|
852
|
+
* @param {string} [markerTexture] - Optional texture URL for a new marker
|
|
853
|
+
* @returns {Promise<IShowcaseObject | void>} - Returns the new object if created, otherwise void
|
|
854
|
+
*/
|
|
855
|
+
declare const renderCursorMarkerPointer: (pointerIntersection: MpSdk.Pointer.Intersection, _object?: IObjectData, markerTexture?: string) => Promise<IShowcaseObject>;
|
|
856
|
+
/**
|
|
857
|
+
* Toggles the visibility of an HTML element by its ID.
|
|
858
|
+
* @param {string} id - The ID of the HTML element to be shown or hidden.
|
|
859
|
+
* @param {boolean} shouldShow - Boolean flag to show (true) or hide (false) the element.
|
|
860
|
+
*/
|
|
861
|
+
declare function toggleElementVisibility(id: string, shouldShow: boolean): void;
|
|
811
862
|
/**
|
|
812
863
|
* Set pipes categories value
|
|
813
864
|
* @param {IPipeCategory[]} pipes
|
|
@@ -862,4 +913,10 @@ declare function setVertexPath(path: Vector2[]): void;
|
|
|
862
913
|
* @returns - The current pipe.
|
|
863
914
|
*/
|
|
864
915
|
declare function getPipeIsDrawingMode(): Boolean;
|
|
865
|
-
|
|
916
|
+
/**
|
|
917
|
+
* Sets whether the screen sharing pointer is enabled
|
|
918
|
+
* @param value boolean
|
|
919
|
+
* @returns void
|
|
920
|
+
* */
|
|
921
|
+
declare function setPointerEnabled(value: boolean): void;
|
|
922
|
+
export { _atwin, _config, _mpConfig, tags, sweeps, selectedObject, previousObjTransform, currentObjTransform, actionHistory, state, _tags, _tagCategories, _tagMessageRecepients, _space, _spaceId, _api, _pointerCoord, _3DXObjects, _meetingParticipants, _generatedObjectIds, tagColors, domMousePosition, isFitScreenOccupied, isCdnMapDataAvailable, minimap, _modelDetails, _onMouseClickInstance, transformHistory, _partitionNodes, _currentSpace, _spaceUsers, _screenSharingHostUser, _screenSharingParticipantUsers, _undoDrawActions, _redoDrawActions, initAtwinApi, getAtwinSdk, connectSpace, disconnectSpace, clearActionHistory, getSweeps, getCurrentSweep, getCurrentSweepPosition, moveToSweep, getNearbySweeps, getAllSweeps, getCurrentCameraPose, getCurrentCameraZoom, getCameraPosition, getCurrentFloor, moveInDirection, cameraLookAt, cameraPan, cameraRotate, cameraSetRotation, getViewMode, setViewMode, captureSpaceScreenshot, captureScreenshotAndCameraDetails, captureCurrentView, cameraZoomBy, cameraZoomReset, cameraZoomTo, getNearbyObjects, setTransformMode, setSelectedObject, clearSelectedObject, revertTransform, setTransformControls, removeTransformControls, setRenderDistance, addObject, getObject, addObjectToSpace, renderModel, addMediaScreen, attachMediaScreenContent, updateObject, updateShowcaseObject, deleteObject, deleteShowcaseObject, copyObject, replaceObject, getTargetPosition, setObjectTransformation, setPointerCoordinates, addTextMarkupScreen, setTextMarkupScreenContent, goTo3dx, goToModel, hasTimeElapsed, getSelectedObject, renderAvatar, setSpaceAvatar, get3DXObjects, clear3DXObjects, setLibrary, getLibrary, disposeModel, disposeAllModels, renderInSpaceMediaScreen, goToPosition, goToParticipant, getNearestSweepFromObject, cancelModelPlacement, renderViewpointMarker, toggleViewpointVisibility, convertDegRotationToEuler, isToolbarFeatureEnabled, goToMPOrigin, pauseVideo, playVideo, setVideoPlayback, setAnimationState, showMinimap, hideMinimap, getMapConfig, addTag, getTags, gotoTag, renderTag, disposeTag, disposeTags, getMpTags, getTagDataCollection, getMpTag, showTags, attachTagMedia, detachTagMedia, moveTag, editTagLabel, editTagDescription, editTagStem, editTagIcon, editTagColor, attachSandbox, registerSandbox, saveTag, rotateCameraToObject, setModelVisibility, tagStateSubscriber, setTagIcon, setTagCategories, setUserAssignedCategories, getUserAssignedCategories, setTagMessageRecepients, getTagMessageRecepients, setTagMessages, getTagMessages, setSelectedTagUuid, getSelectedTagUuid, setCurrentSpace, toggleFitToScreen, getFloors, getLabels, renderMeetingSidebar, createMeetingTemplate, joinMeetingTemplate, meet, dispatchSpaceEvent, subscribeSpaceEvent, unsubscribeSpaceEvent, registerCustomSpaceEvent, clearSpaceEventQueue, initSocketIo, socketEmit, getParticipants, followParticipant, unFollowParticipant, enableHUD, disableHUD, getMediaScreenHUDs, canSetHud, saveMediaScreenHud, removeMediaScreenHud, enableFitScreen, disableFitScreen, initToolbarUI, themeManager, convertToEuler, disableSweeps, enableSweeps, enableSweep, disableSweep, tubeLineType, pathLineType, _sceneObject, _tubes, drawPath, toggleSpaceNavigation, startDraw, exitDraw, cancelDraw, setPolygonPath, setPathLine, setPathLineOptions, getCurrentTubeLine, renderPolygon, toggleWallVisibility, toggleMeshChildrenVisibility, toggleFloorVisibility, getChildrenOfModel, toggleVerticeRingVisibility, setPolygonFloorOffset, getPolygonFloorOffset, setFloorBaseHeight, clearFloorBaseHeight, enableVerticeControls, deleteEdge, disposePathLine, getFloorBaseHeight, setMeshChildrenMaterialProperty, undoDrawAction, redoDrawAction, addUndoDrawActions, setWallBaseHeight, getWallBaseHeight, clearWallBaseHeight, setSpacePartitionNodes, setCurrentPolygon, getSpaceId, getCurrentPolygon, getPathBetweenSweeps, moveAlongPath, _atwinConnections, convertZupToYup, convertYupToZup, getRelativePosition, getOriginalWorldPosition, setSpaceMetadata, getSpaceMetadata, getAssetUrl, setScreenSharingHostUser, setScreenSharingParticipantUsers, renderCursorMarkerPointer, updatePointerTexture, toggleElementVisibility, renderPath, setDrawingConfig, resetDrawingConfig, _pipeCategories, _selectedPipeCategory, setPipeCategories, setSelectedPipeCategory, getSelectedPipeCategory, _pipes, _selectedPipe, setPipes, setSelectedPipe, getSelectedPipe, deleteVertex, setPipeIsDrawingMode, getPipeIsDrawingMode, setPointerEnabled, removeScreenShareSessionData, setVertexPath, _pathConfig };
|