architwin 1.18.10 → 1.19.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.
@@ -7,14 +7,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { actionBar, renderObjectCards, renderLibraryCards, renderTags, renderTagRow, getTagFormData, addClickEventToTagRow, setActiveCard, setActiveMenu, removeObjectCard, clearActiveMenu, setTagCategoriesOption, toggleDropdown, tagFormMode, selectedTag, renderRecepientOptions, renderTagMessages, createTagMessage, setTagLink, setTagMessagingDetails, renderCategoryDropdownOptions, clearTagFormDropdown, clearActiveActionBtn, clearActiveCard, toggleActionBarButtons, selectedCategoryFilterId, selectedSubCategoryFilterId, filterTagList, toggleModal, setModalAction, } from "./components/toolbar";
11
- import { getTargetPosition, addMediaScreen, _3DXObjects, selectedObject, setTransformControls, copyObject, revertTransform, clearSelectedObject, removeTransformControls, getLibrary, getMpTags, renderTag, captureSpaceScreenshot, moveTag, subscribeSpaceEvent, setModelVisibility, disposeModel, disposeTag, _tags, _tagCategories, dispatchSpaceEvent, editTagLabel, editTagDescription, setTagMessageRecepients, setTagMessages, setSelectedTagUuid, renderMeetingSidebar, setTagIcon, setObjectTransformation, getSelectedObject, _atwin, isCdnMapDataAvailable, captureScreenshotAndCameraDetails, _mpConfig, cancelModelPlacement, _modelDetails, actionHistory, get3DXObjects, transformHistory, goToModel, themeManager, _partitionNodes, setSpacePartitionNodes, getSpaceId, setFloorBaseHeight, toggleWallVisibility, getChildrenOfModel, toggleFloorVisibility, renderPolygon, getCurrentPolygon, getFloorBaseHeight, setSelectedObject, redoDrawAction, undoDrawAction, setWallBaseHeight, clearWallBaseHeight, clearFloorBaseHeight, isToolbarFeatureEnabled, captureCurrentView, getCurrentFloor, _spaceUsers, setPipeCategories, setPipes, detachTagMedia, getTagDataCollection, setVertexPath, _screenSharingHostUser, toggleVisibilityTag, _tagIotCategoryTypes, getIoTDeviceTagIcons, toggleMeshChildrenVisibility, set3DXObjects, partitionHistory, _thisVertexPath, setPolygonPath, editMode,
10
+ import { actionBar, renderObjectCards, renderLibraryCards, renderTags, renderTagRow, getTagFormData, addClickEventToTagRow, setActiveCard, setActiveMenu, removeObjectCard, clearActiveMenu, setTagCategoriesOption, toggleDropdown, tagFormMode, selectedTag, renderRecepientOptions, renderTagMessages, createTagMessage, setTagLink, setTagMessagingDetails, renderCategoryDropdownOptions, clearTagFormDropdown, clearActiveActionBtn, clearActiveCard, toggleActionBarButtons, originalTagBackup, selectedCategoryFilterId, selectedSubCategoryFilterId, filterTagList, toggleModal, setModalAction, } from "./components/toolbar";
11
+ import { getTargetPosition, addMediaScreen, _3DXObjects, selectedObject, setTransformControls, copyObject, revertTransform, clearSelectedObject, removeTransformControls, getLibrary, getMpTags, renderTag, captureSpaceScreenshot, moveTag, subscribeSpaceEvent, setModelVisibility, disposeModel, disposeTag, _tags, _tagCategories, dispatchSpaceEvent, editTagLabel, editTagDescription, editTagColor, setTagMessageRecepients, setTagMessages, setSelectedTagUuid, renderMeetingSidebar, setTagIcon, setObjectTransformation, getSelectedObject, _atwin, isCdnMapDataAvailable, captureScreenshotAndCameraDetails, _mpConfig, cancelModelPlacement, _modelDetails, actionHistory, get3DXObjects, transformHistory, goToModel, themeManager, _partitionNodes, setSpacePartitionNodes, getSpaceId, setFloorBaseHeight, toggleWallVisibility, getChildrenOfModel, toggleFloorVisibility, renderPolygon, getCurrentPolygon, getFloorBaseHeight, setSelectedObject, redoDrawAction, undoDrawAction, setWallBaseHeight, clearWallBaseHeight, clearFloorBaseHeight, isToolbarFeatureEnabled, captureCurrentView, getCurrentFloor, _spaceUsers, setPipeCategories, setPipes, detachTagMedia, getTagDataCollection, setVertexPath, _screenSharingHostUser, toggleVisibilityTag, _tagIotCategoryTypes, getIoTDeviceTagIcons, toggleMeshChildrenVisibility, set3DXObjects, partitionHistory, _thisVertexPath, setPolygonPath, editMode, importMatterPortTag,
12
12
  // polygonHistory
13
13
  } from "../architwin";
14
14
  import { Notyf } from 'notyf';
15
15
  import 'notyf/notyf.min.css';
16
16
  import { SPACE_EVENTS, COORDINATE_SYSTEM, UNITS, DEGREE, MAP_OPTIONS, sortTagOptions, sortObjectOptions, CUSTOM_MAP_MODE, TAG_TYPE } from "../types";
17
- import { initFormData, setTagFormMode } from "./components/toolbar/tagFormPane";
17
+ import { clearSelectedTag, initFormData, setSelectedTag, hideTagsFromSpace, renderTagsInSpace, setTagFormMode } from "./components/toolbar/tagFormPane";
18
18
  import { renderObjectList, resetSelectedObjectSortOption, selectedObjectSortOption, sortShowcaseObjects, updateSelectedObjectSortOption } from "./components/toolbar/objectListPane";
19
19
  import { renderLibraryList } from "./components/toolbar/libraryPane";
20
20
  import { renderObjectCard } from "./components/toolbar/card";
@@ -347,7 +347,8 @@ function renderTagPaneContent() {
347
347
  setTagPaneActive(true);
348
348
  setCurrentTagPaneMode(TAG_TYPE.MP);
349
349
  resetSelectedTagSortOption();
350
- const sortedTagsToDisplay = sortTags(tags, selectedTagSortOption);
350
+ const mpTags = tags.filter(tag => !tag.tag_type || tag.tag_type === TAG_TYPE.MP);
351
+ const sortedTagsToDisplay = sortTags(mpTags, selectedTagSortOption);
351
352
  renderTags(sortedTagsToDisplay, true);
352
353
  }
353
354
  else if (!isTagPaneActive) {
@@ -526,6 +527,7 @@ function setupIndividualEventListeners() {
526
527
  handlePipeList();
527
528
  handleResponsiveChanges();
528
529
  handleToggleVisibilityTags();
530
+ handleImportMTagDisplay();
529
531
  handlePreviewModalResize();
530
532
  }
531
533
  //================ OBJECT EVENT HANDLERS ===============//s
@@ -821,7 +823,7 @@ function handlePlaceTag() {
821
823
  log.info("Last Tag Pushed", currentTag);
822
824
  cancelTagPlacementPrompt.style.display = 'none';
823
825
  isPlacingTag = false;
824
- // clearTagFormDropdown()
826
+ setSelectedTag(currentTag);
825
827
  });
826
828
  }
827
829
  handleMobilePlaceTag(true);
@@ -845,7 +847,9 @@ function handlePlaceTag() {
845
847
  const row = renderTagRow(iTag, '');
846
848
  tagContainer.appendChild(row);
847
849
  addClickEventToTagRow(iTag);
848
- yield attachTagMedia({ sdk: _atwin, tag: iTag, attachments: iTag.attachments });
850
+ if (iTag.attachments && iTag.attachments.length > 0) {
851
+ yield attachTagMedia({ sdk: _atwin, tag: iTag, attachments: iTag.attachments });
852
+ }
849
853
  // toggleDisplayPane('at-cancel-tag-form-btn')
850
854
  notyf.success(`${i18n.t('SuccessAddTagToSpace')}`);
851
855
  const tags = getMpTags();
@@ -987,11 +991,45 @@ function onDisposeTag() {
987
991
  }
988
992
  }
989
993
  clearTagFormDropdown();
994
+ clearSelectedTag();
990
995
  iTag = null;
991
996
  cancelTagPlacementPrompt.style.display = 'none';
992
997
  isPlacingTag = false;
993
998
  return;
994
999
  }
1000
+ // If we are editing an existing tag and user cancels, revert to original values
1001
+ if (tagFormMode === "EDIT" /* FORM_MODE.EDIT */ && selectedTag && originalTagBackup) {
1002
+ try {
1003
+ yield editTagColor({ tagId: selectedTag.json_data.id, color: originalTagBackup.color });
1004
+ }
1005
+ catch (e) {
1006
+ log.error('Failed to revert tag color on cancel', e);
1007
+ }
1008
+ try {
1009
+ // revert position/stemVector
1010
+ if (_atwin && _atwin.Tag && _atwin.Tag.editPosition) {
1011
+ _atwin.Tag.editPosition(selectedTag.json_data.id, {
1012
+ anchorPosition: originalTagBackup.anchorPosition,
1013
+ stemVector: Object.assign({}, originalTagBackup.stemVector),
1014
+ });
1015
+ }
1016
+ }
1017
+ catch (e) {
1018
+ log.error('Failed to revert tag position on cancel', e);
1019
+ }
1020
+ // revert category/subcategory and other metadata in local cache
1021
+ const idx = _tags.findIndex(t => t.json_data.id === selectedTag.json_data.id);
1022
+ if (idx !== -1) {
1023
+ _tags[idx].json_data = Object.assign(Object.assign({}, _tags[idx].json_data), originalTagBackup);
1024
+ }
1025
+ clearTagFormDropdown();
1026
+ clearSelectedTag();
1027
+ setTagFormMode("NONE" /* FORM_MODE.NONE */);
1028
+ if (cancelTagPlacementPrompt)
1029
+ cancelTagPlacementPrompt.style.display = 'none';
1030
+ isPlacingTag = false;
1031
+ return;
1032
+ }
995
1033
  cancelMoveTag();
996
1034
  if (iTag !== null) {
997
1035
  yield disposeTag({ tagId: iTag.id });
@@ -1048,6 +1086,7 @@ function handleSaveTag() {
1048
1086
  currentTag.tag_icon_url = targetSubCat.json_data.iconUrl;
1049
1087
  }
1050
1088
  }
1089
+ yield attachTagMedia({ sdk: _atwin, tag: currentTag.json_data, attachments: [currentTag.media_url] });
1051
1090
  let payload = { tag: currentTag };
1052
1091
  console.log("@__ handleSaveTag payload ", payload);
1053
1092
  dispatchSpaceEvent(SPACE_EVENTS.TAG_SAVED, payload);
@@ -1139,6 +1178,13 @@ function handleSaveTag() {
1139
1178
  _tags[index].category_uuid = tagFormPayload.tagSubcategoryId;
1140
1179
  _tags[index].json_data.color = targetCategory.json_data.color.rgb;
1141
1180
  if (tagFormPayload.tagEmbed && tagFormPayload.tagEmbed != '') { // this condition is added when Embed URL is removed by user and is Empty #15842
1181
+ _tags[index].media_url = undefined;
1182
+ const tagDataCollection = getTagDataCollection();
1183
+ _tags[index].json_data.attachments = tagDataCollection[_tags[index].json_data.id] ? tagDataCollection[_tags[index].json_data.id].attachments : _tags[index].json_data.attachments;
1184
+ if (_tags[index].json_data.attachments) {
1185
+ yield detachTagMedia({ tagId: _tags[index].json_data.id, attachmentIds: _tags[index].json_data.attachments });
1186
+ _tags[index].json_data.attachments = [];
1187
+ }
1142
1188
  if (tagFormPayload.tagEmbed !== _tags[index].media_url) {
1143
1189
  const tagData = {
1144
1190
  id: _tags[index].json_data.id,
@@ -1215,6 +1261,7 @@ function handleSaveTag() {
1215
1261
  }
1216
1262
  }
1217
1263
  clearTagFormDropdown();
1264
+ clearSelectedTag();
1218
1265
  iTag = null;
1219
1266
  saveTagBtn.classList.remove('at_disabled');
1220
1267
  setTagFormMode("NONE" /* FORM_MODE.NONE */);
@@ -1571,6 +1618,7 @@ function setupSpaceEventSubscriptions() {
1571
1618
  subscribeSpaceEvent(SPACE_EVENTS.SCREEN_SHARE_HOST_END_SESSION, handleScreenShareEndSessionEvent);
1572
1619
  subscribeSpaceEvent(SPACE_EVENTS.SCREEN_SHARE_ACCEPT_REQUEST, handleScreenShareAcceptRequest);
1573
1620
  subscribeSpaceEvent(SPACE_EVENTS.SCREEN_SHARE_BACK_USER_LIST_PANE, handleScreenShareBackUserListPane);
1621
+ subscribeSpaceEvent(SPACE_EVENTS.PROCEED_IMPORT_MTAGS, handleImportMTag);
1574
1622
  }
1575
1623
  function handleVertexDragEnd(payload) {
1576
1624
  log.info("handleVertexDragEnd()", payload);
@@ -3281,37 +3329,35 @@ function handleClearSearchTagName() {
3281
3329
  log.info('handleClearSearchTagName()');
3282
3330
  const searchTagName = document.getElementById('at-clear-search-tag-name');
3283
3331
  if (searchTagName) {
3284
- searchTagName.addEventListener('click', () => {
3332
+ searchTagName.addEventListener('click', () => __awaiter(this, void 0, void 0, function* () {
3285
3333
  searchClearfield();
3286
3334
  // commented out due to iot Dummy Data
3287
3335
  // const tags = getMpTags()
3288
3336
  const tags = [..._tags];
3289
- const filteredTags = filterTagList(tags);
3290
3337
  if (selectedCategoryFilterId || selectedSubCategoryFilterId && isTagPaneActive) {
3291
- const filteredTags = filterTagList(tags);
3338
+ const filteredTags = filterTagList(tags).filter(tag => tag.tag_type === TAG_TYPE.MP);
3339
+ // show filtered tags only
3340
+ yield renderTagsInSpace(filteredTags, true);
3292
3341
  renderTags(filteredTags);
3293
3342
  }
3294
3343
  else if (tags.length > 0 && isTagPaneActive) {
3295
- renderTags(tags, true);
3344
+ const filteredMPTags = tags.filter(tag => tag.tag_type === TAG_TYPE.MP);
3345
+ yield renderTagsInSpace(filteredMPTags, true);
3346
+ renderTags(filteredMPTags, true);
3296
3347
  }
3297
3348
  else if (!isTagPaneActive) {
3298
3349
  const filteredIotTags = filterIotTagList(tags);
3350
+ yield renderTagsInSpace(filteredIotTags, true);
3299
3351
  renderTags(filteredIotTags);
3300
- // if (selectedCategoryFilterId || selectedSubCategoryFilterId) {
3301
- // const sortedTags = sortTags(filteredTags, {by: 'label', order: 'asc'})
3302
- // renderTags(sortedTags)
3303
- // } else if (tags.length > 0) {
3304
- // const sortedTags = sortTags(tags, {by: 'label', order: 'asc'})
3305
- // renderTags(sortedTags,true)
3306
3352
  }
3307
- });
3353
+ }));
3308
3354
  }
3309
3355
  }
3310
3356
  function handleSearchFromTagListButton() {
3311
3357
  log.info('handleSearchFromTagListButton()');
3312
3358
  const searchTagNameButton = document.getElementById('at-search-tag-button');
3313
3359
  if (searchTagNameButton) {
3314
- searchTagNameButton.addEventListener('click', () => {
3360
+ searchTagNameButton.addEventListener('click', () => __awaiter(this, void 0, void 0, function* () {
3315
3361
  const tags = getMpTags();
3316
3362
  const tagSearch = getSearchTagTerm();
3317
3363
  if (tagSearch) {
@@ -3321,18 +3367,36 @@ function handleSearchFromTagListButton() {
3321
3367
  if (foundTag) {
3322
3368
  if (selectedCategoryFilterId || selectedSubCategoryFilterId && isTagPaneActive) {
3323
3369
  const filteredTags = filterTagList(foundTag);
3370
+ const removeTags = tags.filter(tag => !filteredTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
3371
+ log.info("removeTags", removeTags);
3372
+ // remove tags that is not part in the sorted Tags
3373
+ yield hideTagsFromSpace(removeTags);
3374
+ // show filtered tags only
3375
+ yield renderTagsInSpace(filteredTags, true);
3324
3376
  renderTags(filteredTags);
3325
3377
  }
3326
3378
  else if (foundTag.length > 0 && isTagPaneActive) {
3379
+ const removeTags = tags.filter(tag => !foundTag.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.MP);
3380
+ log.info("removeTags", removeTags);
3381
+ // remove tags that is not part in the sorted Tags
3382
+ yield hideTagsFromSpace(removeTags);
3383
+ // show filtered tags only
3384
+ yield renderTagsInSpace(foundTag, true);
3327
3385
  renderTags(foundTag, true);
3328
3386
  }
3329
3387
  else if (!isTagPaneActive) {
3330
3388
  const filteredIotTags = filterIotTagList(foundTag);
3389
+ const removeTags = tags.filter(tag => !filteredIotTags.some(ft => ft.id === tag.id) && tag.tag_type === TAG_TYPE.IOT);
3390
+ log.info("removeTags", removeTags);
3391
+ // remove tags that is not part in the sorted Tags
3392
+ yield hideTagsFromSpace(removeTags);
3393
+ // show filtered tags only
3394
+ yield renderTagsInSpace(filteredIotTags, true);
3331
3395
  renderTags(filteredIotTags);
3332
3396
  }
3333
3397
  }
3334
3398
  }
3335
- });
3399
+ }));
3336
3400
  }
3337
3401
  }
3338
3402
  function handleCustomMapFloorImageUploaded(payload) {
@@ -4096,6 +4160,22 @@ function handleVisiblePartitions(mpSdk) {
4096
4160
  });
4097
4161
  }));
4098
4162
  }
4163
+ function handleImportMTagDisplay() {
4164
+ log.info('handleImportMTagDisplay');
4165
+ const importMTagBtn = document.getElementById('at-import-mattertag-btn');
4166
+ if (importMTagBtn) {
4167
+ importMTagBtn.addEventListener('click', () => __awaiter(this, void 0, void 0, function* () {
4168
+ log.info('@caroline MTagButton is clicked');
4169
+ yield dispatchSpaceEvent(SPACE_EVENTS.IMPORT_MTAGS, {
4170
+ payload: true
4171
+ });
4172
+ }));
4173
+ }
4174
+ }
4175
+ function handleImportMTag() {
4176
+ log.info("handleImportMTag()");
4177
+ importMatterPortTag();
4178
+ }
4099
4179
  export {
4100
4180
  //state
4101
4181
  activeToolbarItem, activeActionItem, cancelModelPlacementPrompt, isCustomMapControlsVisible, pipeColor,
package/lib/tag.d.ts CHANGED
@@ -24,6 +24,11 @@ declare function setTagIcon(payload: {
24
24
  iconUrl: string;
25
25
  color: MpSdk.Color | string;
26
26
  }): Promise<void>;
27
+ declare function attachTagMediaById(payload: {
28
+ sdk: MpSdk;
29
+ tagId: string;
30
+ attachmentId: string[];
31
+ }): Promise<void>;
27
32
  declare function attachTagMedia(payload: {
28
33
  sdk: MpSdk;
29
34
  tag: MpSdk.Tag.TagData;
@@ -100,4 +105,4 @@ declare function toggleTagVisibility(payload: {
100
105
  sdk: MpSdk;
101
106
  visibility: boolean;
102
107
  }): void;
103
- export { renderTag, disposeTag, moveTag, attachTagMedia, detachTagMedia, setTagIcon, editBillboard, editStem, editColor, saveTagDb, deleteTag, getTagColorCodeID, getEmbedlyData, cancelMoveTag, handleTagPlacerCreated, attachSandbox, registerSandbox, toggleTagVisibility };
108
+ export { renderTag, disposeTag, moveTag, attachTagMediaById, attachTagMedia, detachTagMedia, setTagIcon, editBillboard, editStem, editColor, saveTagDb, deleteTag, getTagColorCodeID, getEmbedlyData, cancelMoveTag, handleTagPlacerCreated, attachSandbox, registerSandbox, toggleTagVisibility };
package/lib/tag.js CHANGED
@@ -125,17 +125,27 @@ function setTagIcon(payload) {
125
125
  }
126
126
  });
127
127
  }
128
+ function attachTagMediaById(payload) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ if (!payload.attachmentId || payload.attachmentId.length === 0) {
131
+ log.error('__@ No Attachments IDs');
132
+ return;
133
+ }
134
+ yield payload.sdk.Tag.attach(payload.tagId, ...payload.attachmentId);
135
+ });
136
+ }
128
137
  function attachTagMedia(payload) {
129
138
  return __awaiter(this, void 0, void 0, function* () {
130
139
  log.info('__@ attachTagContent()', payload);
131
140
  // log.info('attachTagContent()', payload)
132
- if (!payload.attachments || payload.attachments.length === 0) {
141
+ const validAttachments = (payload.attachments || []).filter(url => !!url);
142
+ if (validAttachments.length === 0) {
133
143
  log.error('__@ No Attachments');
134
144
  return;
135
145
  }
136
146
  payload.tag.attachments = [];
137
- for (let i in payload.attachments) {
138
- const [attachmentId] = yield payload.sdk.Tag.registerAttachment(payload.attachments[i]);
147
+ for (let i in validAttachments) {
148
+ const [attachmentId] = yield payload.sdk.Tag.registerAttachment(validAttachments[i]);
139
149
  log.info("media attachmentId ", attachmentId);
140
150
  payload.tag.attachments.push(attachmentId);
141
151
  }
@@ -440,7 +450,7 @@ function toggleTagVisibility(payload) {
440
450
  docking: payload.visibility,
441
451
  });
442
452
  }
443
- export { renderTag, disposeTag, moveTag, attachTagMedia, detachTagMedia, setTagIcon, editBillboard, editStem, editColor, saveTagDb, deleteTag, getTagColorCodeID, getEmbedlyData, cancelMoveTag, handleTagPlacerCreated, attachSandbox, registerSandbox, toggleTagVisibility };
453
+ export { renderTag, disposeTag, moveTag, attachTagMediaById, attachTagMedia, detachTagMedia, setTagIcon, editBillboard, editStem, editColor, saveTagDb, deleteTag, getTagColorCodeID, getEmbedlyData, cancelMoveTag, handleTagPlacerCreated, attachSandbox, registerSandbox, toggleTagVisibility };
444
454
  // # -------------------------------------------------------------------------
445
455
  // # tag
446
456
  // # -------------------------------------------------------------------------
package/lib/types.d.ts CHANGED
@@ -34,6 +34,8 @@ export interface ITag {
34
34
  iot_tag?: IoTTagDetails;
35
35
  created_on?: string;
36
36
  notion_page_url: string;
37
+ iconId?: string;
38
+ fontId?: string;
37
39
  }
38
40
  export interface IoTTagDetails {
39
41
  linked_system?: string;
@@ -71,6 +73,42 @@ export interface IotCategoryType {
71
73
  iconBase64: string;
72
74
  };
73
75
  }
76
+ export interface IMattertagVector3 {
77
+ x: number;
78
+ y: number;
79
+ z: number;
80
+ }
81
+ export interface IMattertagFloor {
82
+ id: string;
83
+ }
84
+ export interface IMattertag {
85
+ id: string;
86
+ floor: IMattertagFloor;
87
+ created: string;
88
+ modified: string;
89
+ enabled: boolean;
90
+ color: string;
91
+ icon?: string;
92
+ keywords: string[];
93
+ label: string;
94
+ description: string;
95
+ media?: string | string[];
96
+ mediaType?: string;
97
+ position: IMattertagVector3;
98
+ anchorPosition: IMattertagVector3;
99
+ discPosition: IMattertagVector3;
100
+ stemNormal: IMattertagVector3;
101
+ stemLength: number;
102
+ stemEnabled: boolean;
103
+ stemDirection: IMattertagVector3;
104
+ }
105
+ export interface IMattertagsResponse {
106
+ data: {
107
+ model: {
108
+ mattertags: IMattertag[];
109
+ };
110
+ };
111
+ }
74
112
  export interface ITagColor {
75
113
  name: COLOR;
76
114
  rgb: {
@@ -815,7 +853,9 @@ export declare enum SPACE_EVENTS {
815
853
  DRAW_PIPE_UNDO = "DRAW_PIPE_UNDO",
816
854
  DRAW_PIPE_REDO = "DRAW_PIPE_REDO",
817
855
  PIPE_VERTEX_REMOVED = "PIPE_VERTEX_REMOVED",
818
- PATH_UPDATED = "PATH_UPDATED"
856
+ PATH_UPDATED = "PATH_UPDATED",
857
+ IMPORT_MTAGS = "IMPORT_MTAGS",
858
+ PROCEED_IMPORT_MTAGS = "PROCEED_IMPORT_MTAGS"
819
859
  }
820
860
  export declare const enum TAG_COLOR {
821
861
  MAROON = "MAROON",
package/lib/types.js CHANGED
@@ -151,6 +151,8 @@ export var SPACE_EVENTS;
151
151
  SPACE_EVENTS["DRAW_PIPE_REDO"] = "DRAW_PIPE_REDO";
152
152
  SPACE_EVENTS["PIPE_VERTEX_REMOVED"] = "PIPE_VERTEX_REMOVED";
153
153
  SPACE_EVENTS["PATH_UPDATED"] = "PATH_UPDATED";
154
+ SPACE_EVENTS["IMPORT_MTAGS"] = "IMPORT_MTAGS";
155
+ SPACE_EVENTS["PROCEED_IMPORT_MTAGS"] = "PROCEED_IMPORT_MTAGS";
154
156
  })(SPACE_EVENTS || (SPACE_EVENTS = {}));
155
157
  export var MEETING_SIDEBAR;
156
158
  (function (MEETING_SIDEBAR) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architwin",
3
- "version": "1.18.10",
3
+ "version": "1.19.1",
4
4
  "description": "ArchiTwin Library for Matterport",
5
5
  "main": "./lib/architwin.js",
6
6
  "types": "./lib/architwin.d.ts",
@@ -720,3 +720,6 @@
720
720
  background-color: #222222 !important;
721
721
  }
722
722
 
723
+ .at_import_matterport_btn{
724
+ width: calc(100% - 8px);
725
+ }