@manycore/custom-sdk 3.1.10 → 3.1.12
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 +3 -2
- package/index.d.ts +56 -0
- package/index.js +23 -23
- package/package.json +1 -1
package/index.css
CHANGED
|
@@ -8,7 +8,8 @@ html,body{margin:0;width:100%;height:100%;font-size:16px;color:#333;line-height:
|
|
|
8
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
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
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}
|
|
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}
|
|
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}
|
|
13
11
|
.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)}
|
|
14
12
|
.app-layout-root-container_3CYlG{width:100%}
|
|
13
|
+
.noticeDraggable_2NybE{position:absolute;z-index:999999;cursor:move}.noticeContent_2WHto{background:#fff;box-shadow:0 0 12px 0 rgba(96,101,108,.12);border-radius:2px;padding:16px;max-width:360px;min-width:200px}.noticeMessage_2Prka{font-size:14px;color:#313438;letter-spacing:0;line-height:20px;font-weight:500;margin-left:20px;margin-bottom:4px}.noticeDescription_cnX5N{font-size:13px;color:#92989f;letter-spacing:0;font-weight:400;margin-left:20px}.noticeIcon_fquEK{position:absolute}
|
|
14
|
+
.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}
|
|
15
|
+
.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}
|
package/index.d.ts
CHANGED
|
@@ -262,6 +262,32 @@ export declare class CustomModelService extends BaseService {
|
|
|
262
262
|
}): Promise<void>;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
/**
|
|
266
|
+
* 检测的逻辑
|
|
267
|
+
* @example
|
|
268
|
+
* ```typescript
|
|
269
|
+
* const detectionService = application.getService(DetectionService);
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
export declare class DetectionService extends BaseService {
|
|
273
|
+
/**
|
|
274
|
+
* 开启检测能力
|
|
275
|
+
*/
|
|
276
|
+
enableDetection(): void;
|
|
277
|
+
/**
|
|
278
|
+
* 设置检测UI内容
|
|
279
|
+
*/
|
|
280
|
+
setDetectionUI(option: Partial<IDetectionUIOption>): void;
|
|
281
|
+
/**
|
|
282
|
+
* 监听模型检测结果
|
|
283
|
+
*/
|
|
284
|
+
onAfterDetect: (fn: (detectResult: IDetectResult) => void) => void;
|
|
285
|
+
/**
|
|
286
|
+
* 取消监听模型检测结果
|
|
287
|
+
*/
|
|
288
|
+
offAfterDetect: (fn: (detectResult: IDetectResult) => void) => void;
|
|
289
|
+
}
|
|
290
|
+
|
|
265
291
|
/**
|
|
266
292
|
* 槽应用类型
|
|
267
293
|
*/
|
|
@@ -1643,6 +1669,36 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1643
1669
|
referencePlane?: EReferencePlane;
|
|
1644
1670
|
}
|
|
1645
1671
|
|
|
1672
|
+
export declare interface IDetectionUIOption {
|
|
1673
|
+
/**
|
|
1674
|
+
* 检测面板提示标题
|
|
1675
|
+
* @default 模型数据更新提示
|
|
1676
|
+
* */
|
|
1677
|
+
message: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* 检测面板提示描述
|
|
1680
|
+
* @default 设计方案中的模型数据已更新,建议完成模型数据更新后继续操作
|
|
1681
|
+
* */
|
|
1682
|
+
description: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* 检测面板初始化位置
|
|
1685
|
+
* x:检测面板左外边距边界距离
|
|
1686
|
+
* y:检测面板上外边距边界距离
|
|
1687
|
+
* @default 默认距上外边界12px,距离左边界window.innerWidth-372px
|
|
1688
|
+
* */
|
|
1689
|
+
defaultPosition: {
|
|
1690
|
+
x: number;
|
|
1691
|
+
y: number;
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
export declare interface IDetectResult {
|
|
1696
|
+
/** 检测的对象 */
|
|
1697
|
+
productId: string;
|
|
1698
|
+
/** 检测的结果 true成功 false失败 */
|
|
1699
|
+
result: boolean;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1646
1702
|
/**
|
|
1647
1703
|
* 场景内的某个模型
|
|
1648
1704
|
*/
|