@manycore/custom-sdk 3.0.7 → 3.1.0
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.css +8 -14
- package/index.d.ts +51 -7
- package/index.js +79 -34
- package/package.json +1 -1
package/index.css
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
.InferenceTip-inference-tip_02453{position:absolute;pointer-events:none;left:0;top:0;z-index:10;color:#333;border:1px solid #ffaf00;background:#fff4c0;font-size:10px;height:18px;padding:0 3px;white-space:nowrap}
|
|
3
|
-
.devTools-root_90e7d{display:flex}.devTools-root_90e7d:hover .devTools-toggle-button_452fe{display:block}.devTools-toggle-button_452fe{background-color:#24242c;border:none;margin:0;display:none;cursor:pointer}.devTools-fps-value_9fd8c{background-color:#24242c;padding-left:5px;padding-right:5px;line-height:20px}
|
|
4
|
-
.components-root_11d8d{margin:10px 0}.components-root-heading_13b51{color:var(--color_text__primary);font-size:16px}.components-item_e67f3 .components-link_c7273{margin-left:4px;font-style:italic;color:var(--brand__normal)}.components-audit_1f0ab{margin:5px 0}.components-audit_1f0ab .components-description_4d8e2,.components-audit_1f0ab .components-limit_ce3ba{margin:10px 0}.components-audit_1f0ab .components-recommentations_128b1{padding-left:20px}.components-audit_1f0ab .components-recommentations_128b1 li{list-style:decimal}.components-heading_64cc8{margin-bottom:5px;display:flex;font-size:1.2em;color:var(--color_text__primary)}.components-heading_64cc8.components-failed_5bcfc{color:var(--color_error__normal)}.components-heading_64cc8 .components-value-text_4bc68:not(:empty){margin:0 5px}.components-heading_64cc8 .components-value-text_4bc68:not(:empty):before{content:"—";margin-right:5px}
|
|
5
|
-
.components-container_d448e{width:60%;margin-left:auto;margin-right:auto}.components-score_8c96f{display:flex;flex-direction:column;align-items:center;margin-top:20px}.components-score-value_3e569{font-size:30px;border-radius:50%;width:100px;line-height:100px;background-color:pink;text-align:center}.components-score-name_2422d{margin-top:10px;margin-bottom:20px;font-weight:600;font-size:20px}.components-rule-message_96895{margin-top:10px}.components-block_72677{margin-top:20px;margin-bottom:20px}
|
|
6
|
-
.components-perf-chart-view_46796{display:flex}.components-perf-chart-view_46796 .components-data_c3d21{margin-left:20px}.components-perf-chart-view_46796 .components-data_c3d21 .components-data-heading_92885{margin-left:15px}.components-perf-chart-view_46796 .components-data_c3d21 .components-record_bee8d{display:flex;align-items:center}.components-perf-chart-view_46796 .components-data_c3d21 .components-chart-indicator_992e4{margin-right:5px;width:10px;height:10px}
|
|
7
|
-
.components-header_0e2c8{display:flex;justify-content:space-between;align-items:center}.components-header_0e2c8 select{height:24px}
|
|
8
|
-
.components-detail_6b550{margin:10px 20px}.components-detail_6b550 dl{display:flex}.components-detail_6b550 dt{margin-right:5px}.components-detail_6b550 dd{margin-right:10px}.components-tooltip-item-container_6f3c9{margin:10px 0;display:flex;justify-content:center}.components-tooltip-item_15e1d{display:flex;margin:0 10px;align-items:center;cursor:pointer}.components-tooltip-item_15e1d.components-inactive_f0833{opacity:.5}.components-tooltip-item_15e1d .components-marker_db62c{width:10px;height:10px;margin-right:10px}
|
|
9
|
-
.components-container_27eb0{display:flex}.components-block_3dbe9{width:50%;padding:0 20px}.components-audits_27435{padding:0 20px}.components-heading_7d882{color:var(--color_text__primary)}
|
|
10
|
-
.devTools-perf-root_98e3a{width:100vw;height:80vh;z-index:2;background:var(--color_background__base1);position:fixed;bottom:0;left:0}.devTools-perf-root_98e3a .devTools-heading_775ac{margin-top:25px;margin-bottom:20px;color:var(--color_text__primary)}.devTools-perf-root_98e3a .devTools-sub-heading_91d08{margin-top:15px;margin-bottom:10px;color:var(--color_text__secondary)}.devTools-perf-root_98e3a .devTools-toolbar_48721{margin-top:15px;margin-bottom:10px}.devTools-perf-root_98e3a .devTools-close-button_7a730{position:absolute;right:0;top:0;z-index:1}.devTools-perf-root_98e3a .devTools-toolbar_48721{margin-left:10px;margin-right:10px}.devTools-perf-root_98e3a .devTools-toolbar_48721 .devTools-checkbox_3d4b6{margin-right:5px}.devTools-perf-root_98e3a .devTools-devtools-warning_a185b{margin-bottom:10px;font-style:italic}.devTools-perf-root_98e3a .devTools-devtools-warning_a185b a{text-decoration:underline;color:var(--color_warning__normal)}.devTools-perf-root_98e3a .devTools-frames_ef6ab{display:flex;width:100%;overflow:auto}.devTools-perf-root_98e3a>.devTools-perf-maincontent_f00a2{overflow:auto;height:100%}.devTools-perf-root_98e3a .devTools-detail-container_94a01{display:flex}.devTools-perf-root_98e3a .devTools-detail-container_94a01>div{padding-left:10px;padding-right:10px;margin-top:10px;margin-bottom:10px}.devTools-perf-root_98e3a .devTools-detail-container_94a01>div:nth-child(1),.devTools-perf-root_98e3a .devTools-detail-container_94a01>div:nth-child(3){width:30%}.devTools-perf-root_98e3a .devTools-detail-container_94a01>div:nth-child(2){width:40%}.devTools-perf-frame_5648f{width:10px;background-color:var(--color_text__tertiary);flex-shrink:0;margin-top:10px;position:relative}.devTools-perf-frame_5648f .devTools-indicators_8042d{position:absolute;width:10px;height:10px;left:0;top:-10px;background-color:#ff8c00}.devTools-perf-frame_5648f.devTools-danger_b7624{background-color:#5c1200}.devTools-perf-frame_5648f:hover{background-color:#00664c}.devTools-perf-frame_5648f.devTools-active_b564f{background-color:blue}:root[data-tui-theme=dark] #perf .tui-table{color:var(--color_text__secondary)}:root[data-tui-theme=dark] #perf{background-color:var(--coolgray2_1)}
|
|
11
|
-
.RoamerNavigator-root_821fd{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);height:150px;perspective:800px;pointer-events:none}.RoamerNavigator-container_f3009{margin:0 auto;width:150px;height:150px;position:relative;transform:rotateX(60deg);pointer-events:none}.RoamerNavigator-base_7aa8a{width:0;height:0;position:absolute;border-style:solid;opacity:.6}.RoamerNavigator-base_7aa8a:not(.RoamerNavigator-disable_f1a16){pointer-events:auto}.RoamerNavigator-base_7aa8a:not(.RoamerNavigator-disable_f1a16):hover{opacity:1}.RoamerNavigator-base_7aa8a:before{content:"";position:absolute;border-style:solid}.RoamerNavigator-up_ba739{top:0;left:50%;transform:translateX(-50%);border-width:0 20px 40px 20px;border-color:transparent transparent #fff transparent}.RoamerNavigator-up_ba739:before{border-width:0 18px 36px 18px;border-color:transparent transparent #1e2329 transparent;transform:translate(-18px, 2.5px)}.RoamerNavigator-down_dccbf{bottom:0;left:50%;transform:translateX(-50%);border-width:40px 20px 0 20px;border-color:#fff transparent transparent transparent}.RoamerNavigator-down_dccbf:before{border-width:36px 18px 0 18px;border-color:#1e2329 transparent transparent transparent;transform:translate(-18px, -38.5px)}.RoamerNavigator-left_53594{top:50%;left:0;transform:translateY(-50%);border-width:20px 40px 20px 0;border-color:transparent #fff transparent transparent}.RoamerNavigator-left_53594:before{border-width:18px 36px 18px 0;border-color:transparent #1e2329 transparent transparent;transform:translate(2.5px, -18px)}.RoamerNavigator-right_1aff8{top:50%;right:0;transform:translateY(-50%);border-width:20px 0 20px 40px;border-color:transparent transparent transparent #fff}.RoamerNavigator-right_1aff8:before{border-width:18px 0 18px 36px;border-color:transparent transparent transparent #1e2329;transform:translate(-38.5px, -18px)}
|
|
1
|
+
html,body{margin:0;width:100%;height:100%;font-size:16px;color:#333;line-height:1.2;overscroll-behavior-x:none}canvas{display:block}
|
|
12
2
|
.Scene3D-root_8340d{position:relative;overflow:hidden}
|
|
13
3
|
.TextToolTip-root_3e879{position:absolute;top:0;left:0;font-size:12px;border-radius:2px;background-color:#1e2329;color:#fff;opacity:.9;padding:8px;line-height:1;pointer-events:none}.TextToolTip-root_3e879.TextToolTip-with-degree_3e30f:after{content:"";display:block;float:right;width:5px;height:5px;margin-left:3px;margin-top:2px;border-radius:50%;border:1px solid #fff}.TextToolTip-root_3e879.TextToolTip-maybe-over-target_1784a{background-color:rgba(30,35,41,.4)}
|
|
14
|
-
.
|
|
15
|
-
|
|
16
|
-
.
|
|
4
|
+
.mouseTip-root_404b0{position:fixed;z-index:9999;padding:6px 10px;text-align:center;white-space:nowrap;background:rgba(0,0,0,.6);border-radius:3px;transform:translate(-50%, -100px)}.mouseTip-mousetips-wrapper_8cbef{position:fixed;z-index:9999;background:rgba(0,0,0,0);pointer-events:none}.mouseTip-content_e44eb{color:#fff;font-size:12px;line-height:18px}
|
|
5
|
+
.RoamerNavigator-root_821fd{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);height:150px;perspective:800px;pointer-events:none}.RoamerNavigator-container_f3009{margin:0 auto;width:150px;height:150px;position:relative;transform:rotateX(60deg);pointer-events:none}.RoamerNavigator-base_7aa8a{width:0;height:0;position:absolute;border-style:solid;opacity:.6}.RoamerNavigator-base_7aa8a:not(.RoamerNavigator-disable_f1a16){pointer-events:auto}.RoamerNavigator-base_7aa8a:not(.RoamerNavigator-disable_f1a16):hover{opacity:1}.RoamerNavigator-base_7aa8a:before{content:"";position:absolute;border-style:solid}.RoamerNavigator-up_ba739{top:0;left:50%;transform:translateX(-50%);border-width:0 20px 40px 20px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #fff rgba(0,0,0,0)}.RoamerNavigator-up_ba739:before{border-width:0 18px 36px 18px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #1e2329 rgba(0,0,0,0);transform:translate(-18px, 2.5px)}.RoamerNavigator-down_dccbf{bottom:0;left:50%;transform:translateX(-50%);border-width:40px 20px 0 20px;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.RoamerNavigator-down_dccbf:before{border-width:36px 18px 0 18px;border-color:#1e2329 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(-18px, -38.5px)}.RoamerNavigator-left_53594{top:50%;left:0;transform:translateY(-50%);border-width:20px 40px 20px 0;border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}.RoamerNavigator-left_53594:before{border-width:18px 36px 18px 0;border-color:rgba(0,0,0,0) #1e2329 rgba(0,0,0,0) rgba(0,0,0,0);transform:translate(2.5px, -18px)}.RoamerNavigator-right_1aff8{top:50%;right:0;transform:translateY(-50%);border-width:20px 0 20px 40px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #fff}.RoamerNavigator-right_1aff8:before{border-width:18px 0 18px 36px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #1e2329;transform:translate(-38.5px, -18px)}
|
|
6
|
+
.InferenceTip-inference-tip_39d06{position:absolute;pointer-events:none;left:0;top:0;z-index:10;color:#333;border:1px solid #ffaf00;background:#fff4c0;font-size:10px;height:18px;padding:0 3px;white-space:nowrap}
|
|
7
|
+
.app-kaf-app_da19d{position:relative;box-sizing:border-box;width:100%;height:100%;user-select:none;overflow:hidden}
|
|
8
|
+
.ui-debug-root_47b7b{position:fixed;top:0;left:0;height:30px;background:rgba(0,0,0,0);z-index:100000000000;pointer-events:none;font-size:12px}.ui-debug-root_47b7b .ui-debug-button_73a33{color:#fff;pointer-events:auto;cursor:pointer}.ui-debug-root_47b7b .ui-debug-button_73a33:hover .ui-debug-setting_bb0cc{display:flex}.ui-debug-root_47b7b .ui-debug-setting_bb0cc{display:none;width:800px;padding:10px;color:#000;background:rgba(255,255,255,.8);z-index:2;flex-direction:column}.ui-debug-root_47b7b .ui-debug-setting-row_94ade{display:flex;flex-direction:column}.ui-debug-root_47b7b .ui-debug-setting-row-title_6b6be{text-align:left;font-weight:bold}.ui-debug-root_47b7b .ui-debug-setting-row-content_fc85a{display:flex;flex-wrap:wrap}.ui-debug-root_47b7b .ui-debug-setting-item_6ac86{margin-right:2em;display:flex;align-items:center}.ui-debug-root_47b7b .ui-debug-setting-item-label_9289f{margin-left:.5em}.ui-debug-root_47b7b .ui-profile-wrapper_f26ef{position:absolute;top:0;left:0;width:1500px;height:600px;pointer-events:none;opacity:.4;overflow:hidden;display:none;z-index:1}.ui-debug-root_47b7b .ui-profile-wrapper_f26ef canvas{width:100%;height:100%;background:rgba(0,0,0,0)}.ui-debug-root_47b7b .ui-profile-visible_b5bbc{display:block}
|
|
9
|
+
.devTools-root_90e7d{display:flex}.devTools-root_90e7d:hover .devTools-toggle-button_452fe{display:block}.devTools-toggle-button_452fe{background-color:#24242c;border:none;margin:0;display:none;cursor:pointer}.devTools-fps-value_9fd8c{background-color:#24242c;padding-left:5px;padding-right:5px;line-height:20px}
|
|
10
|
+
.InferenceTip-inference-tip_02453{position:absolute;pointer-events:none;left:0;top:0;z-index:10;color:#333;border:1px solid #ffaf00;background:#fff4c0;font-size:10px;height:18px;padding:0 3px;white-space:nowrap}
|
|
17
11
|
.scene3D_xp6bt,.rightPanel_rWXWm,.toolbox_2xNhH{position:absolute;box-sizing:border-box}.scene3D_xp6bt{width:calc(100% - 274px);height:100%;top:0;left:0;overflow:hidden}.scene3D_xp6bt canvas:focus{outline:none}.rightPanel_rWXWm{width:274px;height:100%;top:0;right:0;background:var(--color_contrast__primary);overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;-ms-scroll-chaining:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.empty_3WAJv{background:var(--color_background__light1)}.empty_3WAJv>p{font-size:16px;color:var(--color_text__tertiary)}.toolbox_2xNhH{width:calc(100% - 274px);height:48px;left:2.3%;bottom:3.1%;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center}.tui-toast{box-shadow:var(--shadow__medium)}.tui-toast-message{line-height:20px}
|
|
18
12
|
.no-transit{transition:none !important}[class$=-enter-active],[class$=-exit-active]{transition:.25s}.fade-enter,.fade-exit-active{opacity:0}.flip-enter,.flip-exit-active{transform:translate3d(0, 30%, 0);opacity:0}.slip-enter,.slip-exit-active{transform:translate3d(-100%, 0, 0);opacity:0}.slide-enter,.slide-exit-active{transform:translate3d(100%, 0, 0);opacity:0}.fold-enter,.fold-exit-active{height:0;transform:rotate3d(1, 0, 0, -90deg);opacity:0}
|
|
19
13
|
.empty_1Rq0Z{display:flex;height:100%;min-height:150px;box-sizing:border-box;flex-direction:column;justify-content:center;text-align:center}.empty_1Rq0Z>img{max-width:80%;max-height:80%;margin:15px auto}.empty_1Rq0Z>p{margin:0 0 15px;font-size:12px;color:var(--color_text__secondary)}
|
package/index.d.ts
CHANGED
|
@@ -202,15 +202,11 @@ export declare const CUSTOM_MODEL_CATEGORY_FILTER = [
|
|
|
202
202
|
/**
|
|
203
203
|
* 装饰陈设
|
|
204
204
|
*/
|
|
205
|
-
596,
|
|
206
|
-
/**
|
|
205
|
+
596, /**
|
|
207
206
|
* 参数化软装
|
|
208
|
-
*/
|
|
209
|
-
2048,
|
|
210
|
-
/**
|
|
207
|
+
*/ 2048, /**
|
|
211
208
|
* 软装部件
|
|
212
|
-
*/
|
|
213
|
-
2049,
|
|
209
|
+
*/ 2049,
|
|
214
210
|
];
|
|
215
211
|
|
|
216
212
|
/**
|
|
@@ -879,6 +875,24 @@ declare enum EParamUnitType {
|
|
|
879
875
|
NUMBER = 3
|
|
880
876
|
}
|
|
881
877
|
|
|
878
|
+
/**
|
|
879
|
+
* 板件面ID
|
|
880
|
+
*/
|
|
881
|
+
export declare enum EPlankFaceId {
|
|
882
|
+
/** 顶面 */
|
|
883
|
+
TOP = 0,
|
|
884
|
+
/** 左侧面 */
|
|
885
|
+
LEFT,
|
|
886
|
+
/** 正面 */
|
|
887
|
+
FRONT,
|
|
888
|
+
/** 右侧面 */
|
|
889
|
+
RIGHT,
|
|
890
|
+
/** 背面 */
|
|
891
|
+
BACK,
|
|
892
|
+
/** 底面 */
|
|
893
|
+
BOT,
|
|
894
|
+
}
|
|
895
|
+
|
|
882
896
|
/**
|
|
883
897
|
* 线的类型
|
|
884
898
|
*/
|
|
@@ -3079,6 +3093,18 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3079
3093
|
*/
|
|
3080
3094
|
paths: IPlankPath[];
|
|
3081
3095
|
|
|
3096
|
+
/**
|
|
3097
|
+
* 设置轮廓关联的模型面高亮,面形状根据轮廓路径定义
|
|
3098
|
+
* @param option
|
|
3099
|
+
*/
|
|
3100
|
+
setFaceHint(option: IPlankAreaHintOption): void;
|
|
3101
|
+
|
|
3102
|
+
/**
|
|
3103
|
+
* 清除轮廓关联的模型面高亮
|
|
3104
|
+
* @param id
|
|
3105
|
+
*/
|
|
3106
|
+
removeFaceHint(id: EPlankFaceId.TOP | EPlankFaceId.BOT): void;
|
|
3107
|
+
|
|
3082
3108
|
/**
|
|
3083
3109
|
* 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径,高亮时会将轮廓中心点放置到 (0, 0)
|
|
3084
3110
|
* @param option.resetCenter 是否重置轮廓中心点为 (0, 0),默认为true
|
|
@@ -3092,6 +3118,24 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3092
3118
|
getCenterPoint(): Number2_2 | undefined;
|
|
3093
3119
|
}
|
|
3094
3120
|
|
|
3121
|
+
/**
|
|
3122
|
+
* 轮廓高亮面配置
|
|
3123
|
+
*/
|
|
3124
|
+
export declare interface IPlankAreaHintOption {
|
|
3125
|
+
/** 高亮面ID */
|
|
3126
|
+
id: EPlankFaceId.TOP | EPlankFaceId.BOT;
|
|
3127
|
+
/**
|
|
3128
|
+
* 高亮面颜色
|
|
3129
|
+
* @default #ecfdf0
|
|
3130
|
+
*/
|
|
3131
|
+
color?: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* 高亮面不透明度
|
|
3134
|
+
* @default 1
|
|
3135
|
+
*/
|
|
3136
|
+
opacity?: number;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3095
3139
|
/**
|
|
3096
3140
|
* 板面信息
|
|
3097
3141
|
*/
|