@xtctwins/tctwins-bimx-engine 0.3.2 → 0.3.3
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/README.md +196 -193
- package/dist/AnnotationTool-C3o-nYdK.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +165 -265
- package/dist/CameraViewTool-DaGFzAdV.mjs +164 -0
- package/dist/CommentTool-BuqyVt4A.mjs +1529 -0
- package/dist/{HiddenTool-rORoKTeD.mjs → HiddenTool-B20p_qDY.mjs} +16 -16
- package/dist/{InspectorTool-l4bDxTia.mjs → InspectorTool-ChM2elpV.mjs} +66 -66
- package/dist/{MeasureTool-d-EV6m2R.mjs → MeasureTool-BZF__yUT.mjs} +107 -131
- package/dist/{MouseTool-DKMcdeRD.mjs → MouseTool-Bhmif0vq.mjs} +32 -35
- package/dist/{NavigateTool-BNvZ8Oat.mjs → NavigateTool-DER-SD2Y.mjs} +13 -13
- package/dist/{RoamTool-DJu93SVl.mjs → RoamTool-B2fyUtKk.mjs} +14 -14
- package/dist/ScreenShotTool-C8iq1Ssm.mjs +357 -0
- package/dist/SectionTool-CL95rzx4.mjs +331 -0
- package/dist/SettingTool-b9HLJ1iu.mjs +657 -0
- package/dist/StructureTree-DlqVbX97.mjs +1583 -0
- package/dist/{Alert-5pEYzrMO.mjs → alert-DoM5CyWV.mjs} +8 -8
- package/dist/const-DOnRsYpZ.mjs +389 -0
- package/dist/el-input-number-Bj97l7q_.mjs +818 -0
- package/dist/index-Cslxj2q_.mjs +128302 -0
- package/dist/index.html +17 -17
- package/dist/{Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs → panel.vue_vue_type_style_index_0_lang-r40t3eim.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{TallPanel-DtXOSzmF.mjs → tallPanel-CdjNke7H.mjs} +14 -14
- package/package.json +3 -4
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- package/types/components/{tools/NavigateTool.vue.d.ts → BimViewerComponents/CameraViewTool.vue.d.ts} +3 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/{MobileCommentAdd.vue.d.ts → add.vue.d.ts} +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -478
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -499
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +0 -4
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -4026
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +1 -18
- package/types/components/BimxViewerComp.vue.d.ts +14 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -499
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -478
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +14 -7
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/i18n/index.d.ts +5 -5
- package/types/i18n/locales/en-US.d.ts +1 -1
- package/types/i18n/locales/zh-CN.d.ts +1 -1
- package/types/pages/BimxViewerEntry.vue.d.ts +59 -5
- package/types/pages/viewerEntry.vue.d.ts +57 -7
- package/types/store/bcfReflect.d.ts +81 -13
- package/types/store/const.d.ts +228 -11
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +117 -69
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/tests/cmt.d.ts +1 -0
- package/types/utils/OSSHelper.d.ts +0 -27
- package/types/utils/cacheInfo.d.ts +3 -26
- package/types/utils/eventBus.d.ts +87 -1
- package/types/viewerManager/viewerManager.d.ts +3 -53
- package/dist/AnnotationTool-B3tDIyWy.mjs +0 -239
- package/dist/CommentTool--UgPVIZZ.mjs +0 -1541
- package/dist/ScreenShotTool-D2h0Qjtv.mjs +0 -430
- package/dist/SectionTool-DHw2Zfzv.mjs +0 -343
- package/dist/SettingTool-D13GBT87.mjs +0 -747
- package/dist/StructureTree-DHaOzAP9.mjs +0 -1662
- package/dist/bimTools-D3TraX9d.mjs +0 -75
- package/dist/el-slider-CHaMBaUG.mjs +0 -1040
- package/dist/index-BDupeKSG.mjs +0 -127986
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +0 -16
- package/types/components/bcf/BCFAddPanel.vue.d.ts +0 -55
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +0 -59
- package/types/components/bcf/BCFDisplayList.vue.d.ts +0 -18
- package/types/components/bcf/BCFFilter.vue.d.ts +0 -14
- package/types/components/bcf/BCFTool.vue.d.ts +0 -15
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +0 -11
- package/types/components/bcf/CommentInput.vue.d.ts +0 -51
- package/types/components/bcf/CommentsView.vue.d.ts +0 -48
- package/types/components/bcf/DialogPanel.vue.d.ts +0 -15
- package/types/components/bcf/ImageView.vue.d.ts +0 -17
- package/types/components/bcf/ImageZoomIn.vue.d.ts +0 -9
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +0 -56
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +0 -55
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +0 -498
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +0 -475
- package/types/components/bcf/MobileBCFTool.vue.d.ts +0 -17
- package/types/components/bcf/MobileCommentInput.vue.d.ts +0 -54
- package/types/components/bcf/MobileCommentsView.vue.d.ts +0 -17
- package/types/components/bcf/SelectPanel.vue.d.ts +0 -12
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +0 -14
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +0 -11
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +0 -17
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +0 -475
- package/types/components/comment/mobile/MobileList.vue.d.ts +0 -497
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +0 -9
- package/types/components/comment/pc/PcDraw.vue.d.ts +0 -14
- package/types/components/shared/Alert.vue.d.ts +0 -32
- package/types/components/shared/CloseButton.vue.d.ts +0 -50
- package/types/components/shared/CloseButtonDark.vue.d.ts +0 -32
- package/types/components/shared/EmptyPage.vue.d.ts +0 -6
- package/types/components/shared/Loading.vue.d.ts +0 -2
- package/types/components/shared/Panel.vue.d.ts +0 -47
- package/types/components/shared/Prompt.vue.d.ts +0 -8
- package/types/components/shared/RectangleButton.vue.d.ts +0 -106
- package/types/components/shared/TallPanel.vue.d.ts +0 -69
- package/types/components/shared/TallPanelNoPos.vue.d.ts +0 -82
- package/types/components/tools/AnnotationTool.vue.d.ts +0 -14
- package/types/components/tools/AppToolbar.vue.d.ts +0 -27
- package/types/components/tools/ClickEvent.vue.d.ts +0 -6
- package/types/components/tools/CommentTool.vue.d.ts +0 -45
- package/types/components/tools/HiddenTool.vue.d.ts +0 -12
- package/types/components/tools/InspectorTool.vue.d.ts +0 -14
- package/types/components/tools/MeasureTool.vue.d.ts +0 -14
- package/types/components/tools/MouseTool.vue.d.ts +0 -6
- package/types/components/tools/RoamTool.vue.d.ts +0 -12
- package/types/components/tools/ScreenShotTool.vue.d.ts +0 -10
- package/types/components/tools/SectionTool.vue.d.ts +0 -14
- package/types/components/tools/SettingTool.vue.d.ts +0 -13
- package/types/components/tools/StructureTree.vue.d.ts +0 -11645
- package/types/components/tools/Toolbar.vue.d.ts +0 -10
- package/types/composables/useBimViewerEvent.d.ts +0 -44
- package/types/composables/useEmitHandler.d.ts +0 -2
- package/types/composables/useToolActive.d.ts +0 -1
- package/types/composables/useToolReady.d.ts +0 -1
- package/types/store/const/app.d.ts +0 -66
- package/types/store/const/bimTools.d.ts +0 -81
- package/types/store/const/project.d.ts +0 -48
- package/types/store/const/theme.d.ts +0 -16
- package/types/store/const/toolbar.d.ts +0 -26
- package/types/stores/viewerStore.d.ts +0 -112
- package/types/types/bcf.d.ts +0 -83
- package/types/types/events.d.ts +0 -88
- package/types/utils/dbscan.d.ts +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
visibleTools?: any;
|
|
3
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
-
emitHandler: (...args: any[]) => void;
|
|
5
|
-
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
-
visibleTools?: any;
|
|
7
|
-
}> & Readonly<{
|
|
8
|
-
onEmitHandler?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
|
-
export default _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useBimViewerEvent — 安全订阅 bimViewer 引擎事件,自动清理
|
|
3
|
-
*
|
|
4
|
-
* 使用场景:任何组件需要监听 window.bimViewer.eventTrigger 事件时,
|
|
5
|
-
* 替代手写 on("event", handler) + 手动 off() 的模式。
|
|
6
|
-
*
|
|
7
|
-
* 特性:
|
|
8
|
-
* - 自动 onBeforeUnmount 清理,防止内存泄漏(修复 ClickEvent/MouseTool/BimxViewerComp 缺失清理的问题)
|
|
9
|
-
* - 支持延迟订阅(defer: true),等待引擎就绪("BimViewer" 事件)后再注册
|
|
10
|
-
* - 自动处理 window.bimViewer 为 null/undefined 的边界情况
|
|
11
|
-
* - 类型安全的事件订阅封装
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // 直接订阅(引擎已就绪的场景)
|
|
15
|
-
* useBimViewerEvent({
|
|
16
|
-
* event: "pickedEntity",
|
|
17
|
-
* handler: (entity) => { window.bimViewer.setEntitySelected(entity); },
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* // 延迟订阅(等待引擎就绪)
|
|
22
|
-
* useBimViewerEvent({
|
|
23
|
-
* event: "pickedNothing",
|
|
24
|
-
* handler: () => { focus.value = false; },
|
|
25
|
-
* defer: true,
|
|
26
|
-
* });
|
|
27
|
-
*/
|
|
28
|
-
export interface BimViewerEventOptions {
|
|
29
|
-
/** bimViewer engine 事件名(如 "pickedEntity" / "pickedNothing" / "metaLoaded") */
|
|
30
|
-
event: string;
|
|
31
|
-
/** 事件处理器,接收引擎传来的原始数据 */
|
|
32
|
-
handler: (data: any) => void;
|
|
33
|
-
/**
|
|
34
|
-
* 是否延迟订阅。
|
|
35
|
-
* true → 不立即订阅,等待 "BimViewer" 事件(引擎就绪)后再订阅
|
|
36
|
-
* false → onMounted 后立即订阅(引擎此时应已就绪)
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
defer?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export declare function useBimViewerEvent(options: BimViewerEventOptions): {
|
|
42
|
-
subscribe: () => void;
|
|
43
|
-
unsubscribe: () => void;
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useToolActive(componentId: number): import('vue').Ref<boolean, boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useToolReady(componentId: number): void;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export declare const MENU = "menus";
|
|
2
|
-
export declare const TOKEN = "token";
|
|
3
|
-
export declare const IS_FOLD = "isFold";
|
|
4
|
-
export declare const USER_INFO = "userInfo";
|
|
5
|
-
export declare const USER_LIST = "userList";
|
|
6
|
-
export declare const ENTIRE_ROLES = "entireRoles";
|
|
7
|
-
export declare const KEYID = "LTAI4FvDVqNXSTHoAUqXGMfo";
|
|
8
|
-
export declare const CACHE_LOGIN_USER_INFO = "loginUserInfo";
|
|
9
|
-
export declare const KEYSECRET = "6wusVUYf8w9pW8YOJuGhRouYNHLnwY";
|
|
10
|
-
export declare const USER_DEFAULT_AVATAR: string;
|
|
11
|
-
export declare const USER_DEFAULT_POPOVER_AVATAR: string;
|
|
12
|
-
export declare const INVALID_FILENAME: RegExp;
|
|
13
|
-
export declare const TABLIST: ({
|
|
14
|
-
id: number;
|
|
15
|
-
name: string;
|
|
16
|
-
showIcon: boolean;
|
|
17
|
-
type: string;
|
|
18
|
-
active: boolean;
|
|
19
|
-
iconUpActive?: undefined;
|
|
20
|
-
iconDownActive?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
id: number;
|
|
23
|
-
name: string;
|
|
24
|
-
showIcon: boolean;
|
|
25
|
-
type: string;
|
|
26
|
-
active: boolean;
|
|
27
|
-
iconUpActive: boolean;
|
|
28
|
-
iconDownActive: boolean;
|
|
29
|
-
} | {
|
|
30
|
-
id: number;
|
|
31
|
-
name: string;
|
|
32
|
-
showIcon: boolean;
|
|
33
|
-
type: string;
|
|
34
|
-
active?: undefined;
|
|
35
|
-
iconUpActive?: undefined;
|
|
36
|
-
iconDownActive?: undefined;
|
|
37
|
-
})[];
|
|
38
|
-
export declare const CREATEITEM: {
|
|
39
|
-
projectId: number;
|
|
40
|
-
isCreat: boolean;
|
|
41
|
-
operate: number;
|
|
42
|
-
}[];
|
|
43
|
-
export declare const TABLE_TABS: {
|
|
44
|
-
id: number;
|
|
45
|
-
num: string;
|
|
46
|
-
fileType: string;
|
|
47
|
-
name: string;
|
|
48
|
-
img: string;
|
|
49
|
-
}[];
|
|
50
|
-
export declare const ACCOUNT_APP_ID = "wx74d8c813cb7fd518";
|
|
51
|
-
export declare const CHOOSETYPELIST: {
|
|
52
|
-
id: number;
|
|
53
|
-
name: string;
|
|
54
|
-
data: number[];
|
|
55
|
-
}[];
|
|
56
|
-
export declare const FILETYPE: {
|
|
57
|
-
id: number;
|
|
58
|
-
name: string;
|
|
59
|
-
data: number[];
|
|
60
|
-
}[];
|
|
61
|
-
export declare const CONVERT_STATUS: {
|
|
62
|
-
unconverted: number;
|
|
63
|
-
converting: number;
|
|
64
|
-
convertSuccessful: number;
|
|
65
|
-
convertFailed: number;
|
|
66
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { AnnoType } from '../../utils/eventBus';
|
|
2
|
-
export declare const BULK_OPERATION: {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const MEASUREMENT: {
|
|
7
|
-
id: number;
|
|
8
|
-
code: string;
|
|
9
|
-
name: string;
|
|
10
|
-
label: string;
|
|
11
|
-
img: string;
|
|
12
|
-
imgActive: string;
|
|
13
|
-
svg: string;
|
|
14
|
-
svgActive: string;
|
|
15
|
-
}[];
|
|
16
|
-
export declare const LINE_WEIGHT_LIST: {
|
|
17
|
-
id: number;
|
|
18
|
-
size: string;
|
|
19
|
-
}[];
|
|
20
|
-
export declare const TIPS_COLOR: {
|
|
21
|
-
id: number;
|
|
22
|
-
color: string;
|
|
23
|
-
}[];
|
|
24
|
-
export declare const FONT_SIZE_LIST: {
|
|
25
|
-
id: number;
|
|
26
|
-
name: string;
|
|
27
|
-
label: string;
|
|
28
|
-
fontSize: string;
|
|
29
|
-
}[];
|
|
30
|
-
export declare const COMMENT_TOOL_LIST: {
|
|
31
|
-
id: number;
|
|
32
|
-
name: string;
|
|
33
|
-
label: string;
|
|
34
|
-
buttontype: string;
|
|
35
|
-
img: string;
|
|
36
|
-
imgActive: string;
|
|
37
|
-
svg: string;
|
|
38
|
-
svgActive: string;
|
|
39
|
-
isShow: boolean;
|
|
40
|
-
}[];
|
|
41
|
-
export declare const ANNOTATION_LIST: {
|
|
42
|
-
id: number;
|
|
43
|
-
code: AnnoType;
|
|
44
|
-
name: string;
|
|
45
|
-
okType: string;
|
|
46
|
-
img: string;
|
|
47
|
-
img_active: string;
|
|
48
|
-
imgActive: string;
|
|
49
|
-
}[];
|
|
50
|
-
export declare const HIDDEN_LIST: {
|
|
51
|
-
id: number;
|
|
52
|
-
name: string;
|
|
53
|
-
img: string;
|
|
54
|
-
img_active: string;
|
|
55
|
-
}[];
|
|
56
|
-
export declare const SCREEN_LIST: ({
|
|
57
|
-
id: number;
|
|
58
|
-
name: string;
|
|
59
|
-
width: string;
|
|
60
|
-
height: string;
|
|
61
|
-
label?: undefined;
|
|
62
|
-
} | {
|
|
63
|
-
id: number;
|
|
64
|
-
label: string;
|
|
65
|
-
name?: undefined;
|
|
66
|
-
width?: undefined;
|
|
67
|
-
height?: undefined;
|
|
68
|
-
})[];
|
|
69
|
-
export declare const NAVIGATE_LIST: {
|
|
70
|
-
id: number;
|
|
71
|
-
code: string;
|
|
72
|
-
name: string;
|
|
73
|
-
label: string;
|
|
74
|
-
dir_num: number;
|
|
75
|
-
img: string;
|
|
76
|
-
imgActive: string;
|
|
77
|
-
}[];
|
|
78
|
-
export declare const STRUCTURE_TREE_LIST: {
|
|
79
|
-
id: number;
|
|
80
|
-
name: string;
|
|
81
|
-
}[];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* project.ts — 项目/成员/分享相关常量
|
|
3
|
-
*/
|
|
4
|
-
export declare const ALLOCATION_ROLE_LIST: {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const PROJECT_CHOOSE_TYPE: {
|
|
10
|
-
id: number;
|
|
11
|
-
name: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
14
|
-
export declare const DIRECTORY_LIST: {
|
|
15
|
-
id: number;
|
|
16
|
-
name: string;
|
|
17
|
-
label: string;
|
|
18
|
-
isShow: boolean;
|
|
19
|
-
color: string;
|
|
20
|
-
}[];
|
|
21
|
-
export declare const MEMBER_BENEFITS: {
|
|
22
|
-
id: number;
|
|
23
|
-
name: string;
|
|
24
|
-
img: string;
|
|
25
|
-
}[];
|
|
26
|
-
export declare const MEMBER_TYPE_LIST: {
|
|
27
|
-
id: number;
|
|
28
|
-
name: string;
|
|
29
|
-
}[];
|
|
30
|
-
export declare const PROVOLEGE_LIST: {
|
|
31
|
-
id: number;
|
|
32
|
-
name: string;
|
|
33
|
-
}[];
|
|
34
|
-
export declare const ENJOY_MEMBER_LIST: {
|
|
35
|
-
id: number;
|
|
36
|
-
name: string;
|
|
37
|
-
label: string;
|
|
38
|
-
}[];
|
|
39
|
-
export declare const VALIDITY_PERIOD_LIST: {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
label: string;
|
|
43
|
-
}[];
|
|
44
|
-
export declare const ROLE_LIST: {
|
|
45
|
-
id: number;
|
|
46
|
-
name: string;
|
|
47
|
-
label: string;
|
|
48
|
-
}[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* theme.ts — 主题/背景色常量
|
|
3
|
-
*/
|
|
4
|
-
export declare const BG_COLOR_APP_LIST: {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
color: string;
|
|
8
|
-
rgb: number[];
|
|
9
|
-
}[];
|
|
10
|
-
export declare const BG_COLOR_LIST: {
|
|
11
|
-
id: number;
|
|
12
|
-
name: string;
|
|
13
|
-
label: string;
|
|
14
|
-
color: string;
|
|
15
|
-
rgb: number[];
|
|
16
|
-
}[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* toolbar.ts — 工具栏列表常量(PC / 移动端 / 协同)
|
|
3
|
-
*/
|
|
4
|
-
export declare const TOOL_BAR_LIST: {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
isShowDelimiter: boolean;
|
|
8
|
-
img: string;
|
|
9
|
-
imgActive: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const TOOL_BAR_APP_LIST: {
|
|
12
|
-
id: number;
|
|
13
|
-
code: string;
|
|
14
|
-
name: string;
|
|
15
|
-
isShowDelimiter: boolean;
|
|
16
|
-
img: string;
|
|
17
|
-
imgActive: string;
|
|
18
|
-
}[];
|
|
19
|
-
export declare const TOOL_BAR_APP_SHARED_LIST: {
|
|
20
|
-
id: number;
|
|
21
|
-
code: string;
|
|
22
|
-
name: string;
|
|
23
|
-
isShowDelimiter: boolean;
|
|
24
|
-
img: string;
|
|
25
|
-
imgActive: string;
|
|
26
|
-
}[];
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export declare const useViewerStore: import('pinia').StoreDefinition<"viewer", Pick<{
|
|
2
|
-
viewerInstance: import('vue').Ref<any, any>;
|
|
3
|
-
isReady: import('vue').ComputedRef<boolean>;
|
|
4
|
-
viewerState: import('vue').Ref<{
|
|
5
|
-
measureType: "distance" | "angle";
|
|
6
|
-
}, {
|
|
7
|
-
measureType: "distance" | "angle";
|
|
8
|
-
} | {
|
|
9
|
-
measureType: "distance" | "angle";
|
|
10
|
-
}>;
|
|
11
|
-
entityState: import('vue').Ref<{
|
|
12
|
-
xrayedObjectIds: string[];
|
|
13
|
-
highlightedObjectIds: string[];
|
|
14
|
-
selectedObjectIds: string[];
|
|
15
|
-
visibleObjectIds: string[];
|
|
16
|
-
edgesObjectIds: string[];
|
|
17
|
-
}, {
|
|
18
|
-
xrayedObjectIds: string[];
|
|
19
|
-
highlightedObjectIds: string[];
|
|
20
|
-
selectedObjectIds: string[];
|
|
21
|
-
visibleObjectIds: string[];
|
|
22
|
-
edgesObjectIds: string[];
|
|
23
|
-
} | {
|
|
24
|
-
xrayedObjectIds: string[];
|
|
25
|
-
highlightedObjectIds: string[];
|
|
26
|
-
selectedObjectIds: string[];
|
|
27
|
-
visibleObjectIds: string[];
|
|
28
|
-
edgesObjectIds: string[];
|
|
29
|
-
}>;
|
|
30
|
-
setViewerInstance: (instance: any) => void;
|
|
31
|
-
configViewer: (eventTarget?: string) => void;
|
|
32
|
-
saveViewerState: (content: Record<string, any>) => void;
|
|
33
|
-
setToolActiveById: (id: number, active?: boolean) => void;
|
|
34
|
-
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
35
|
-
setAllClose: () => void;
|
|
36
|
-
destroyViewer: () => void;
|
|
37
|
-
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
38
|
-
}, "viewerInstance" | "viewerState" | "entityState">, Pick<{
|
|
39
|
-
viewerInstance: import('vue').Ref<any, any>;
|
|
40
|
-
isReady: import('vue').ComputedRef<boolean>;
|
|
41
|
-
viewerState: import('vue').Ref<{
|
|
42
|
-
measureType: "distance" | "angle";
|
|
43
|
-
}, {
|
|
44
|
-
measureType: "distance" | "angle";
|
|
45
|
-
} | {
|
|
46
|
-
measureType: "distance" | "angle";
|
|
47
|
-
}>;
|
|
48
|
-
entityState: import('vue').Ref<{
|
|
49
|
-
xrayedObjectIds: string[];
|
|
50
|
-
highlightedObjectIds: string[];
|
|
51
|
-
selectedObjectIds: string[];
|
|
52
|
-
visibleObjectIds: string[];
|
|
53
|
-
edgesObjectIds: string[];
|
|
54
|
-
}, {
|
|
55
|
-
xrayedObjectIds: string[];
|
|
56
|
-
highlightedObjectIds: string[];
|
|
57
|
-
selectedObjectIds: string[];
|
|
58
|
-
visibleObjectIds: string[];
|
|
59
|
-
edgesObjectIds: string[];
|
|
60
|
-
} | {
|
|
61
|
-
xrayedObjectIds: string[];
|
|
62
|
-
highlightedObjectIds: string[];
|
|
63
|
-
selectedObjectIds: string[];
|
|
64
|
-
visibleObjectIds: string[];
|
|
65
|
-
edgesObjectIds: string[];
|
|
66
|
-
}>;
|
|
67
|
-
setViewerInstance: (instance: any) => void;
|
|
68
|
-
configViewer: (eventTarget?: string) => void;
|
|
69
|
-
saveViewerState: (content: Record<string, any>) => void;
|
|
70
|
-
setToolActiveById: (id: number, active?: boolean) => void;
|
|
71
|
-
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
72
|
-
setAllClose: () => void;
|
|
73
|
-
destroyViewer: () => void;
|
|
74
|
-
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
75
|
-
}, "isReady">, Pick<{
|
|
76
|
-
viewerInstance: import('vue').Ref<any, any>;
|
|
77
|
-
isReady: import('vue').ComputedRef<boolean>;
|
|
78
|
-
viewerState: import('vue').Ref<{
|
|
79
|
-
measureType: "distance" | "angle";
|
|
80
|
-
}, {
|
|
81
|
-
measureType: "distance" | "angle";
|
|
82
|
-
} | {
|
|
83
|
-
measureType: "distance" | "angle";
|
|
84
|
-
}>;
|
|
85
|
-
entityState: import('vue').Ref<{
|
|
86
|
-
xrayedObjectIds: string[];
|
|
87
|
-
highlightedObjectIds: string[];
|
|
88
|
-
selectedObjectIds: string[];
|
|
89
|
-
visibleObjectIds: string[];
|
|
90
|
-
edgesObjectIds: string[];
|
|
91
|
-
}, {
|
|
92
|
-
xrayedObjectIds: string[];
|
|
93
|
-
highlightedObjectIds: string[];
|
|
94
|
-
selectedObjectIds: string[];
|
|
95
|
-
visibleObjectIds: string[];
|
|
96
|
-
edgesObjectIds: string[];
|
|
97
|
-
} | {
|
|
98
|
-
xrayedObjectIds: string[];
|
|
99
|
-
highlightedObjectIds: string[];
|
|
100
|
-
selectedObjectIds: string[];
|
|
101
|
-
visibleObjectIds: string[];
|
|
102
|
-
edgesObjectIds: string[];
|
|
103
|
-
}>;
|
|
104
|
-
setViewerInstance: (instance: any) => void;
|
|
105
|
-
configViewer: (eventTarget?: string) => void;
|
|
106
|
-
saveViewerState: (content: Record<string, any>) => void;
|
|
107
|
-
setToolActiveById: (id: number, active?: boolean) => void;
|
|
108
|
-
setToolActiveByKey: (key: string, active?: boolean) => void;
|
|
109
|
-
setAllClose: () => void;
|
|
110
|
-
destroyViewer: () => void;
|
|
111
|
-
showRequestBusy: (show: boolean, callback?: Function) => void;
|
|
112
|
-
}, "setViewerInstance" | "configViewer" | "saveViewerState" | "setToolActiveById" | "setToolActiveByKey" | "setAllClose" | "destroyViewer" | "showRequestBusy">>;
|
package/types/types/bcf.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { InputBCFView } from '@xtctwins/tctwins-bimx-viewer/types/src/toolbar/BCFTool';
|
|
2
|
-
/** BCF 用户信息 */
|
|
3
|
-
export type BcfUserInfo = {
|
|
4
|
-
avatar: string;
|
|
5
|
-
createTime: string;
|
|
6
|
-
updateTime: any;
|
|
7
|
-
email: string;
|
|
8
|
-
inviteId: number;
|
|
9
|
-
inviteUserName: string;
|
|
10
|
-
mobile: string;
|
|
11
|
-
role: number;
|
|
12
|
-
status: number;
|
|
13
|
-
userId: number;
|
|
14
|
-
userName: string;
|
|
15
|
-
self: boolean;
|
|
16
|
-
};
|
|
17
|
-
/** BCF 列表 + 人员信息的组合载荷 */
|
|
18
|
-
export type BcfContent = {
|
|
19
|
-
userId: number;
|
|
20
|
-
bcfList: BcfTopicTotal[];
|
|
21
|
-
staffList: BcfUserInfo[];
|
|
22
|
-
};
|
|
23
|
-
/** BCF 评论输入 */
|
|
24
|
-
export type BcfInputComment = {
|
|
25
|
-
guid?: string;
|
|
26
|
-
date: string;
|
|
27
|
-
userId?: number;
|
|
28
|
-
author: string | number;
|
|
29
|
-
comment: string;
|
|
30
|
-
snapshotList?: any[];
|
|
31
|
-
modified_author?: string;
|
|
32
|
-
modified_date?: string;
|
|
33
|
-
viewPoint?: string;
|
|
34
|
-
};
|
|
35
|
-
/** 服务端返回的完整 BCF 议题 */
|
|
36
|
-
export type BcfTopicTotal = {
|
|
37
|
-
_id: number;
|
|
38
|
-
fileId: number;
|
|
39
|
-
userId: number;
|
|
40
|
-
guid?: string;
|
|
41
|
-
title: string;
|
|
42
|
-
author: number | string;
|
|
43
|
-
createDate: string;
|
|
44
|
-
index: number;
|
|
45
|
-
priority?: string;
|
|
46
|
-
type?: string;
|
|
47
|
-
stage?: string;
|
|
48
|
-
status?: string;
|
|
49
|
-
labels?: string[] | undefined;
|
|
50
|
-
dueDate?: string;
|
|
51
|
-
assignedTo?: string | number;
|
|
52
|
-
description?: string;
|
|
53
|
-
viewPoints?: InputBCFView[];
|
|
54
|
-
comments?: BcfInputComment[];
|
|
55
|
-
server_assigned_id?: string;
|
|
56
|
-
reference_links?: string[] | undefined;
|
|
57
|
-
modified_date?: string;
|
|
58
|
-
modified_author?: string;
|
|
59
|
-
related_topics?: string[] | undefined;
|
|
60
|
-
};
|
|
61
|
-
/** 新创建的 BCF 议题(guid 还没有服务端分配时) */
|
|
62
|
-
export type BcfTopic = {
|
|
63
|
-
guid?: string;
|
|
64
|
-
title: string;
|
|
65
|
-
author: number | string;
|
|
66
|
-
createDate: string;
|
|
67
|
-
index?: number;
|
|
68
|
-
priority?: string;
|
|
69
|
-
type?: string;
|
|
70
|
-
stage?: string;
|
|
71
|
-
status?: string;
|
|
72
|
-
labels?: string[] | undefined;
|
|
73
|
-
dueDate?: string;
|
|
74
|
-
assignedTo?: string | number;
|
|
75
|
-
description?: string;
|
|
76
|
-
viewPoints?: InputBCFView[];
|
|
77
|
-
comments?: BcfInputComment[];
|
|
78
|
-
server_assigned_id?: string;
|
|
79
|
-
reference_links?: string[] | undefined;
|
|
80
|
-
modified_date?: string;
|
|
81
|
-
modified_author?: string;
|
|
82
|
-
related_topics?: string[] | undefined;
|
|
83
|
-
};
|
package/types/types/events.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ComponentName } from '../store/toolbars';
|
|
2
|
-
import { BcfTopic, BcfTopicTotal, BcfInputComment } from './bcf';
|
|
3
|
-
import { ToolDir } from '../store/initConfigs';
|
|
4
|
-
/** 标注附件类型 */
|
|
5
|
-
export type AnnoType = "file" | "image" | "record" | "text" | "video";
|
|
6
|
-
/** 漫游事件类型 */
|
|
7
|
-
export type RoamEvent = "goUp" | "goDown" | "goLeft" | "goRight" | "goForward" | "goBackward" | "stop";
|
|
8
|
-
/** 测量工具类型 */
|
|
9
|
-
export type MeasureTool = "distance" | "angle";
|
|
10
|
-
/**
|
|
11
|
-
* 组件间事件通信的载荷结构
|
|
12
|
-
*
|
|
13
|
-
* @remarks 通过 mitt emitter 发送,event_target 标识事件来源组件,event_name 标识事件名。
|
|
14
|
-
*/
|
|
15
|
-
export type EventContent = {
|
|
16
|
-
/** 是否来自工具(true)还是 UI 组件(false) */
|
|
17
|
-
isTool: boolean;
|
|
18
|
-
/** 触发事件的目标组件 */
|
|
19
|
-
event_target: ComponentName | "BimXViewer" | "ToolBar";
|
|
20
|
-
/** 事件名称 */
|
|
21
|
-
event_name: string;
|
|
22
|
-
/** 事件载荷 */
|
|
23
|
-
content: {
|
|
24
|
-
content?: any;
|
|
25
|
-
id?: any;
|
|
26
|
-
msg?: string;
|
|
27
|
-
code?: 200 | -1;
|
|
28
|
-
item?: any;
|
|
29
|
-
type?: string;
|
|
30
|
-
toolId?: number;
|
|
31
|
-
toolKey?: string;
|
|
32
|
-
color?: string;
|
|
33
|
-
active?: boolean;
|
|
34
|
-
enable?: boolean;
|
|
35
|
-
tool_type?: AnnoType;
|
|
36
|
-
annoId?: string;
|
|
37
|
-
object?: any;
|
|
38
|
-
currentAnnotation?: any;
|
|
39
|
-
rawFile?: any;
|
|
40
|
-
targetAnno?: any;
|
|
41
|
-
status?: string | boolean;
|
|
42
|
-
nodeId?: string | number;
|
|
43
|
-
entityId?: string | number;
|
|
44
|
-
objectId?: string | number;
|
|
45
|
-
viewer_nodeId?: string | number;
|
|
46
|
-
active_tree?: number;
|
|
47
|
-
img_data?: string;
|
|
48
|
-
roam?: RoamEvent;
|
|
49
|
-
newSets?: any;
|
|
50
|
-
newComment?: any;
|
|
51
|
-
direction?: number;
|
|
52
|
-
measureTool?: MeasureTool;
|
|
53
|
-
newMeasure?: any;
|
|
54
|
-
measurePrefer?: any;
|
|
55
|
-
bcf?: BcfTopic | BcfTopicTotal;
|
|
56
|
-
bcfId?: number;
|
|
57
|
-
bcf_guid?: string;
|
|
58
|
-
bcf_cmt?: BcfInputComment;
|
|
59
|
-
bcf_cmt_guid?: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
type InstructionName = "updateCmtList" | "checkCmtDetail" | "newComment" | "updateBcfList" | "checkBcfDetail" | "changeBackgroundColor" | "setNavCube" | "setAnnoStatus" | "lastSetsContent";
|
|
63
|
-
/**
|
|
64
|
-
* 跨组件指令通信结构
|
|
65
|
-
*
|
|
66
|
-
* @remarks 用于父子组件间的指令传递,如更新列表、检查详情等。
|
|
67
|
-
*/
|
|
68
|
-
export type InstructionContent = {
|
|
69
|
-
instruct_name: InstructionName;
|
|
70
|
-
content: {
|
|
71
|
-
code?: any;
|
|
72
|
-
guid?: any;
|
|
73
|
-
msg?: any;
|
|
74
|
-
type?: any;
|
|
75
|
-
active?: boolean;
|
|
76
|
-
color?: string;
|
|
77
|
-
move?: boolean;
|
|
78
|
-
pos?: ToolDir;
|
|
79
|
-
posNum?: number[];
|
|
80
|
-
index?: number;
|
|
81
|
-
cmtList?: any;
|
|
82
|
-
cmtDetail?: any;
|
|
83
|
-
bcfList?: BcfTopicTotal[];
|
|
84
|
-
bcfDetail?: BcfTopicTotal;
|
|
85
|
-
lastSet?: any;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export {};
|
package/types/utils/dbscan.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function startDBSCAN(modelId: string): void;
|